function showSubscribers()
 {
     $profile = $this->user->getSubscribers(0, PROFILES_PER_MINILIST + 1);
     $this->elementStart('div', array('id' => 'entity_subscribers', 'class' => 'section'));
     if (Event::handle('StartShowSubscribersMiniList', array($this))) {
         $this->element('h2', null, _('Subscribers'));
         $cnt = 0;
         if (!empty($profile)) {
             $sml = new SubscribersMiniList($profile, $this);
             $cnt = $sml->show();
             if ($cnt == 0) {
                 $this->element('p', null, _('(None)'));
             }
         }
         if ($cnt > PROFILES_PER_MINILIST) {
             $this->elementStart('p');
             $this->element('a', array('href' => common_local_url('subscribers', array('nickname' => $this->profile->nickname)), 'class' => 'more'), _('All subscribers'));
             $this->elementEnd('p');
         }
         Event::handle('EndShowSubscribersMiniList', array($this));
     }
     $this->elementEnd('div');
 }
Exemple #2
0
 function showSubscribers()
 {
     $profile = $this->profile->getSubscribers(0, PROFILES_PER_MINILIST + 1);
     $this->elementStart('div', array('id' => 'entity_subscribers', 'class' => 'section'));
     if (Event::handle('StartShowSubscribersMiniList', array($this))) {
         $this->elementStart('h2');
         // TRANS: H2 text for user subscriber statistics.
         $this->statsSectionLink('subscribers', _('Followers'));
         $this->text(' ');
         $this->text($this->profile->subscriberCount());
         $this->elementEnd('h2');
         $cnt = 0;
         if (!empty($profile)) {
             $sml = new SubscribersMiniList($profile, $this);
             $cnt = $sml->show();
             if ($cnt == 0) {
                 // TRANS: Text for user subscriber statistics if user has no subscribers.
                 $this->element('p', null, _('(None)'));
             }
         }
         Event::handle('EndShowSubscribersMiniList', array($this));
     }
     $this->elementEnd('div');
 }