<? global $vis_language;?>
<? if($blab_comment): ?>
<article class="chat-item chat-item-comment left">
<? if($blab_comment['image_name']!='' && is_file(VIS_PATH_PROFILE.$blab_comment['image_name']) && $blab_comment['image_name']!='default.jpg'){?>
<div class="l-avatar pull-left">
<img src="<?= VIS_PATH_PROFILE.$blab_comment['image_name'];?>" class="sm">
</div>

<? }else{ ?>
<div class="l-avatar pull-left">
<? if($blab_comment['first_name']!=''){
	$firstname=preg_split('//u', $blab_comment['first_name'], -1, PREG_SPLIT_NO_EMPTY);
$lastname=preg_split('//u', $blab_comment['last_name'], -1, PREG_SPLIT_NO_EMPTY);
	?>
<div class="sm"><? echo ucfirst($firstname[0]).ucfirst($lastname[0]);?></div>
    <? }else{ ?>
    <img class="sm" src="<?= VIS_PATH_PROFILE.'default.jpg';?>">
    <? }?>

</div>
<? }?>

<!--<a href="#" class="pull-left m-t-lg thumb-sm avatar">
	<img src="<? //= VIS_PATH_PROFILE.($blab_comment['image_name']!='' && is_file(VIS_PATH_PROFILE.$blab_comment['image_name']) ? $blab_comment['image_name'] : 'default.jpg');?>">	
</a>-->
<span class="font-bold text-default m-l"><? echo $blab_comment['first_name'].' '.$blab_comment['last_name'] ; ?></span>
<small class="text-muted m-l-sm"><? echo format_datetime($blab_comment['entry_date']); ?>
</small>
<? if($blab_comment['owner'] == VIS_STAFF_ID): ?>
	<button data-dismiss="modal" class="close" type="button" title="<? echo $vis_language['TXTDELETE']; ?>" data-toggle="ajaxModal" data-modal-arguments="vis_module=blabber&vis_operation=get_delete_comment&vis_blab_id=<? echo $blabId ?>&vis_comment_id=<? echo $blab_comment['comment_id'] ?>&vis_static_area=vis_blab_form_<? echo $blabId; ?>" >×</button>
<? endif; ?>
<section class="chat-body m-t-xs">
  <div class="panel bg-light dk text-sm m-b-none">
	<div class="panel-body">
	  <span class="arrow left"></span>
	  <p class="m-b-none"><? echo $blab_comment['content']; ?></p>
	</div>
  </div>
</section>
</article>
<? endif;?>