function onStartShowLocalNavBlock($action) { $actionName = $action->trimmed('action'); if ($actionName == 'showstream') { $action->elementStart('dl', array('id' => 'site_nav_local_views')); // TRANS: DT element for local views block. String is hidden in default CSS. $action->element('dt', null, _('Local views')); $action->elementStart('dd'); $nav = new SubGroupNav($action, $action->user); $nav->show(); $action->elementEnd('dd'); $action->elementEnd('dl'); Event::handle('EndShowLocalNavBlock', array($action)); return false; } return true; }
function showLocalNav() { $nav = new SubGroupNav($this, $this->user); $nav->show(); }
function showLocalNav() { $nav = new SubGroupNav($this, common_current_user()); $nav->show(); }