<? global $vis_language;?>
<div class="modal-dialog modal-md">
    <div class="modal-content">
		<div class="modal-header " style="border-bottom:none !important; height:5px">
		  <button type="button" class="close" data-dismiss="modal">&times;</button>
		  <h4 class="modal-title"><? echo $vis_language['TXTTOPICFOLLOWERS']; ?></h4>
		</div>
		<div class="modal-body  wrapper">
			<div class="wrapper-sm m-b-sm">
				  <div class="scrollable" style="max-height: 430px">
						<ul id="vis_recent_activities" class="list-group no-radius m-b-none  list-group no-border">
							<?php for($i=0; $i< count($forumTopicFollowers); $i++) { ?>
								<li class="list-group-item wrapper">
        <a href="#">
        <? if($forumTopicFollowers[$i]['follower_image']=='' || $forumTopicFollowers[$i]['follower_image']=='default.jpg'){?>
<div class="l-avatar pull-left  m-r-sm m-t-n-sm">
<? if($forumTopicFollowers[$i]['follower_name']!=''){
$namearr=explode(' ',$forumTopicFollowers[$i]['follower_name']);
$fullname='';
if(count($namearr)>1){ 
$lastname=preg_split('//u', $namearr[1], -1, PREG_SPLIT_NO_EMPTY); 
$firstname=preg_split('//u', $namearr[0], -1, PREG_SPLIT_NO_EMPTY);
$fullname=ucfirst($firstname[0]).ucfirst($lastname[0]);
}else{
	$firstname=preg_split('//u', $namearr[0], -1, PREG_SPLIT_NO_EMPTY);
	$fullname=ucfirst($firstname[0]);
}
	?>
    <div class="sm"><? echo $fullname;?></div>
    <? }else{ ?>
    <img class="sm" src="<?= VIS_PATH_PROFILE.'default.jpg';?>">
    <? }?>

</div>
<? }else{ ?>
<div class="l-avatar pull-left  m-r-sm m-t-n-sm">
<img src="<? echo VIS_PATH_PROFILE.$forumTopicFollowers[$i]['follower_image']; ?>" class="sm">
</div>
<? }?>
</a>
									<!--<a href="#" class="thumb-sm pull-left  m-r-sm m-t-n-sm  avatar"><img src="<? //echo VIS_PATH_PROFILE.($forumTopicFollowers[$i]['follower_image']==''?'default.jpg':$forumTopicFollowers[$i]['follower_image']); ?>" /></a>-->
									<? $client =$forumTopicFollowers[$i]['follower_name']."/".$forumTopicFollowers[$i]['follower_id'];
									$staff=$forumTopicFollowers[$i]['follower_id'];?>
									<a href="javascript:void(0);" class="clear" data-dismiss="modal" onclick='(<?=$forumTopicFollowers[$i]['follower_type']?>==0)?$("#vis_workpanel_div").visExecution("load_module","Profile/<?=$staff;?>",{"vis_module":"home","vis_operation":"profile_view"}) : $("#vis_workpanel_div").visExecution("load_module","<?=$client;?>",{"vis_module":"client","vis_operation":"client_details"})'>
									<div class="block m-t-n-xs"><strong class="text-default"><?=$forumTopicFollowers[$i]['follower_name'] ;?> </strong> <?=$forumTopicFollowers[$i]['follower_email'];?></div>
									
									</a>
									<?php if(($forumTopicFollowers[$i]['follower_id'] == VIS_STAFF_ID) && $forumTopicFollowers[$i]['follower_type']==0) {?>
									<div class="pull-right m-t-n"  id="followerAction<?=$forumTopicFollowers[$i]['follow_id']; ?>">
											   <span><a class="text-muted link" href="javascript:void(0);" onclick="$(this).visExecution('load_operations',{'vis_module':'forums', 'vis_operation':'delete_followers','follower_id': '<?php echo $forumTopicFollowers[$i]['follower_id']; ?>','vis_topic_id':'<?=$forumTopicFollowers[$i]['topic_id']?>'});" ><?=$vis_language['TXTUNFOLLOW']; ?></a></span>
									</div>
									<?php } ?>
								</li>
							<?php } ?>
						</ul>
				</div>
			</div>
		</div>
    </div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->

