コード例 #1
0
 /**
  * Show mini-list of members
  *
  * @return void
  */
 function showMembers()
 {
     $member = $this->group->getMembers(0, MEMBERS_PER_SECTION);
     if (!$member) {
         return;
     }
     $this->elementStart('div', array('id' => 'entity_members', 'class' => 'section'));
     if (Event::handle('StartShowGroupMembersMiniList', array($this))) {
         $this->elementStart('h2');
         $this->element('a', array('href' => common_local_url('groupmembers', array('nickname' => $this->group->nickname))), _('Members'));
         $this->text(' ');
         $this->text($this->group->getMemberCount());
         $this->elementEnd('h2');
         $gmml = new GroupMembersMiniList($member, $this);
         $cnt = $gmml->show();
         if ($cnt == 0) {
             // TRANS: Description for mini list of group members on a group page when the group has no members.
             $this->element('p', null, _('(None)'));
         }
         // @todo FIXME: Should be shown if a group has more than 27 members, but I do not see it displayed at
         //              for example http://identi.ca/group/statusnet. Broken?
         if ($cnt > MEMBERS_PER_SECTION) {
             $this->element('a', array('href' => common_local_url('groupmembers', array('nickname' => $this->group->nickname))), _('All members'));
         }
         Event::handle('EndShowGroupMembersMiniList', array($this));
     }
     $this->elementEnd('div');
 }
コード例 #2
0
ファイル: showgroup.php プロジェクト: stevertiqo/StatusNet
 /**
  * Show mini-list of members
  *
  * @return void
  */
 function showMembers()
 {
     $member = $this->group->getMembers(0, MEMBERS_PER_SECTION);
     if (!$member) {
         return;
     }
     $this->elementStart('div', array('id' => 'entity_members', 'class' => 'section'));
     if (Event::handle('StartShowGroupMembersMiniList', array($this))) {
         $this->element('h2', null, _('Members'));
         $gmml = new GroupMembersMiniList($member, $this);
         $cnt = $gmml->show();
         if ($cnt == 0) {
             $this->element('p', null, _('(None)'));
         }
         if ($cnt > MEMBERS_PER_SECTION) {
             $this->element('a', array('href' => common_local_url('groupmembers', array('nickname' => $this->group->nickname))), _('All members'));
         }
         Event::handle('EndShowGroupMembersMiniList', array($this));
     }
     $this->elementEnd('div');
 }
コード例 #3
0
ファイル: groupaction.php プロジェクト: Grasia/bolotweet
 /**
  * Show mini-list of members
  *
  * @return void
  */
 function showMembers()
 {
     $member = $this->group->getMembers(0);
     if (!$member) {
         return;
     }
     $this->elementStart('div', array('id' => 'entity_members', 'class' => 'section'));
     if (Event::handle('StartShowGroupMembersMiniList', array($this))) {
         $this->elementStart('h2');
         $this->element('a', array('href' => common_local_url('groupmembers', array('nickname' => $this->group->nickname))), _('Members'));
         $this->text(' ');
         $this->text($this->group->getMemberCount());
         $this->elementEnd('h2');
         $this->elementStart('div', array('id' => 'div-members-scroll'));
         $gmml = new GroupMembersMiniList($member, $this);
         $cnt = $gmml->show();
         if ($cnt == 0) {
             // TRANS: Description for mini list of group members on a group page when the group has no members.
             $this->element('p', null, _('(Ninguno)'));
         }
         $this->elementEnd('div');
         Event::handle('EndShowGroupMembersMiniList', array($this));
     }
     $this->elementEnd('div');
 }
コード例 #4
0
ファイル: GradesPlugin.php プロジェクト: Grasia/bolotweet
 function onStartAsideGroupProfile($out, $group)
 {
     $user = common_current_user();
     if (!empty($user)) {
         $out->elementStart('div', array("id" => "entity_graders", "class" => "section"));
         $out->elementStart('h2');
         $out->text('Profesores');
         $out->text(' ');
         $graders = Gradesgroup::getGraders($group->id);
         $out->text($graders->N);
         $out->elementEnd('h2');
         $out->elementStart('div', array('id' => 'div-members-scroll'));
         $gmml = new GroupMembersMiniList($graders, $out);
         $cnt = $gmml->show();
         if ($cnt == 0) {
             // TRANS: Description for mini list of group members on a group page when the group has no members.
             $out->element('p', null, _('(Ninguno)'));
         }
         $out->elementEnd('div');
         $out->elementEnd('div');
     }
     return true;
 }