<?php 
$countFollow = count( $this->whoToFollow );
if( isset( $this->whoToFollow ) && $countFollow != 0 ) :
?>   
   <!-- ***** Start Panel ***** -->
   <div class="panel panel-default panel-relative">
   	
   	<div class="preloader-user"></div>
     	
	   <span class="panel-heading btn-block grid-panel-title">
	   		<i class="glyphicon glyphicon-plus size-icon-popover"></i><i class="icon-user3 myicon-right"></i> <?php echo $_SESSION['LANG']['who_to_follow']; ?>
	   		
	   		<?php if( $countFollow >= 3 ) : ?>
	   		<span class="pull-right">
	   			<i class="fa fa-refresh" id="reloadUsers"></i>
	   		</span>
	   		<?php  endif; ?>
	   		
	   	</span>
	   	

<div class="panel-body" id="whoBox">
	
				<?php
   			foreach ( $this->whoToFollow as $key ) {
   				//============ VERIFIED
				if( $key['type_account'] == '1' ) {
					$verfied = ' <i class="fa fa-check-circle verified verified-min showTooltip" title="'.$_SESSION["LANG"]["verified"].'" data-toggle="tooltip" data-placement="right"></i>';
				} else {
					$verfied = null;
				}
   			 ?>
         
         <div class="media li-group padding-sm">
                    <div class="pull-left">
                       <a href="<?php echo URL_BASE.$key['username']; ?>" <?php echo URL_BASE.$key['username']; ?>" data-id="<?php echo $key['id'] ?>" class="openModal">
                       	<img src="<?php echo URL_BASE."thumb/50-50-public/avatar/".$key['avatar']; ?>" alt="Image" class="media-object img-rounded" />
                       </a>
                    </div>
                    <div class="media-body clearfix text-overflow">
                       <strong class="media-heading">
                       		<a href="<?php echo URL_BASE.$key['username']; ?>" data-id="<?php echo $key['id'] ?>" class="openModal link-follow"><?php echo stripslashes( $key['name'] ); ?> <?php echo $verfied; ?></a>
                       	</strong>
                       	
                       <p class="text-col" style="margin-top: 5px;">
                          <button type="button" class="btn btn-default btn-border btn-xs whofollow" data-follow="<?php echo $_SESSION['LANG']['follow']; ?>" data-following="<?php echo $_SESSION['LANG']['following']; ?>" data-username="<?php echo $key['username']; ?>" data-id="<?php echo _Function::randomString( 10, FALSE, TRUE, FALSE ).'-'.$key['id']; ?>">
                          	<i class="icon-user3 myicon-right"></i> 
                          	<?php echo $_SESSION['LANG']['follow']; ?> @<?php echo $key['username']; ?></a>
                          	</button>
                       </p>
               </div><!-- media-body -->
         </div><!-- Media -->
         
         <?php }//<---FOREACH ?>
         
         
	</div><!-- Panel Body -->
  </div><!--./ ***** Panel Default ***** -->
   
   <?php  endif; ?>