function showSections() { // $top = new TopPostersSection($this); // $top->show(); $pop = new PopularNoticeSection($this); $pop->show(); $gbp = new GroupsByMembersSection($this); $gbp->show(); $feat = new FeaturedUsersSection($this); $feat->show(); }
function showSections() { // Show invite button, as long as site isn't closed, and // we have a logged in user. if (common_config('invite', 'enabled') && !common_config('site', 'closed') && common_logged_in()) { if (!common_config('site', 'private')) { $ibs = new InviteButtonSection($this, _m('BUTTON', 'Send invite')); } else { $ibs = new InviteButtonSection($this); } $ibs->show(); } $p = Profile::current(); $pop = new PopularNoticeSection($this, $p); $pop->show(); if (!common_config('performance', 'high')) { $cloud = new PublicTagCloudSection($this); $cloud->show(); } $feat = new FeaturedUsersSection($this); $feat->show(); }
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; }
function showSections() { $ibs = new InviteButtonSection($this); $ibs->show(); $pop = new PopularNoticeSection($this); $pop->show(); $cloud = new PublicTagCloudSection($this); $cloud->show(); $feat = new FeaturedUsersSection($this); $feat->show(); }