예제 #1
0
echo Yii::t('podium/view', '{n, plural, =1{# guest} other{# guests}}', ['n' => !empty($lastActive['guests']) ? $lastActive['guests'] : 0]);
?>
, 
            <?php 
echo Yii::t('podium/view', '{n, plural, =1{# anonymous user} other{# anonymous users}}', ['n' => !empty($lastActive['anonymous']) ? $lastActive['anonymous'] : 0]);
?>
        </p>
<?php 
if (!empty($lastActive['names'])) {
    ?>
        <p>
<?php 
    foreach ($lastActive['names'] as $id => $name) {
        ?>
            <?php 
        echo Helper::podiumUserTag($name['name'], $name['role'], $id, $name['slug']);
    }
    ?>
        </p>
<?php 
}
?>
    </div>
    <div class="panel-footer small">
        <ul class="list-inline">
            <li><?php 
echo Yii::t('podium/view', 'Members');
?>
 <span class="badge"><?php 
echo Activity::totalMembers();
?>
예제 #2
0
 /**
  * Returns Podium name tag.
  * @param boolean $simple
  * @return string
  */
 public function getPodiumTag($simple = false)
 {
     return Helper::podiumUserTag($this->podiumName, $this->role, $this->id, $this->podiumSlug, $simple);
 }
예제 #3
0
 /**
  * Returns Podium name tag.
  * @param boolean $simple
  * @return string
  */
 public function getPodiumTag($simple = false)
 {
     return Helper::podiumUserTag($this->getPodiumName(), $this->getPodiumRole(), $this->getPodiumId(), $this->getPodiumSlug(), $simple);
 }