<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>
<div class="elpis_lp_members">
  <div class="container no-padding">
    <div class="row justify-content-lg-center">
      <?php foreach( $this->paginator as $user ): ?>
      <div class="col-lg-2 col-md-3 col-6">
        <div class="elips_member_box"> <?php echo $this->htmlLink($user->getHref(), $this->itemBackgroundPhoto($user, 'thumb.profile', $user->getTitle()), array('class' => 'popularmembers_thumb')) ?>
          <div class='info'>
            <div class='name'> <?php echo $this->htmlLink($user->getHref() , $user->getTitle(), array('class' => 'font_color')) ?> </div>
            <div class='friends'> <?php echo $this->translate(array('%s friend', '%s friends', $user->member_count),$this->locale()->toNumber($user->member_count)) ?> </div>
          </div>
        </div>
      </div>
      <?php endforeach; ?>
    </div>
    <?php if( $this->paginator->getPages()->pageCount > 1 ): ?>
    <?php echo $this->partial('_widgetLinks.tpl', 'core', array(
        'url' => $this->url(array('action' => 'browse'), 'user_general', true),
        'param' => array('orderby' => 'member_count')
        )); ?>
    <?php endif; ?>
  </div>
</div>
