Ejemplo n.º 1
0
 function onStartShowSections(&$act)
 {
     global $action;
     $this->clear_xmlWriter($act);
     switch ($action) {
         case "showstream":
             $act->showSubscriptions();
             $this->blocks['subscriptions'] = $act->xw->flush();
             $act->showSubscribers();
             $this->blocks['subscribers'] = $act->xw->flush();
             $act->showGroups();
             $this->blocks['groups'] = $act->xw->flush();
             $act->showStatistics();
             $this->blocks['statistics'] = $act->xw->flush();
             $cloud = new PersonalTagCloudSection($act, $act->user);
             $cloud->show();
             $this->blocks['cloud'] = $act->xw->flush();
             break;
         case "showgroup":
             $act->showMembers();
             $this->blocks['groupmembers'] = $act->xw->flush();
             $act->showStatistics();
             $this->blocks['groupstatistics'] = $act->xw->flush();
             $cloud = new GroupTagCloudSection($act, $act->group);
             $cloud->show();
             $this->blocks['groupcloud'] = $act->xw->flush();
             break;
         case "public":
             $pop = new PopularNoticeSection($act);
             $pop->show();
             $this->blocks['popular'] = $act->xw->flush();
             $gbp = new GroupsByPostsSection($act);
             $gbp->show();
             $this->blocks['groupsbyposts'] = $act->xw->flush();
             $feat = new FeaturedUsersSection($act);
             $feat->show();
             $this->blocks['featuredusers'] = $act->xw->flush();
             break;
         case "groups":
             $gbp = new GroupsByPostsSection($act);
             $gbp->show();
             $this->blocks['groupsbyposts'] = $act->xw->flush();
             $gbm = new GroupsByMembersSection($act);
             $gbm->show();
             $this->blocks['groupsbymembers'] = $act->xw->flush();
             break;
     }
     return false;
 }
Ejemplo n.º 2
0
 /**
  * Fill in the sidebar.
  *
  * @return void
  */
 function showSections()
 {
     Event::handle('StartAsideGroupProfile', array($this, $this->group));
     $this->showMembers();
     $cur = common_current_user();
     if ($cur && $cur->isAdmin($this->group)) {
         $this->showPending();
         $this->showBlocked();
     }
     $this->showAdmins();
     if (!common_config('performance', 'high')) {
         $cloud = new GroupTagCloudSection($this, $this->group);
         $cloud->show();
     }
     Event::handle('EndAsideGroupProfile', array($this, $this->group));
 }
Ejemplo n.º 3
0
 /**
  * Fill in the sidebar.
  *
  * @return void
  */
 function showSections()
 {
     $this->showMembers();
     $cur = common_current_user();
     if ($cur && $cur->isAdmin($this->group)) {
         $this->showPending();
         $this->showBlocked();
     }
     $this->showAdmins();
     if (!common_config('performance', 'high')) {
         $cloud = new GroupTagCloudSection($this, $this->group);
         $cloud->show();
     }
 }
Ejemplo n.º 4
0
 /**
  * Fill in the sidebar.
  *
  * @return void
  */
 function showSections()
 {
     $this->showMembers();
     $this->showStatistics();
     $cloud = new GroupTagCloudSection($this, $this->group);
     $cloud->show();
 }