public static function sidebar($app = null)
{
global $registry;
if (empty($app)) {
$app = $registry->getApp();
}
$menu = new Horde_Menu();
$registry->callAppMethod($app, 'menu', array('args' => array($menu)));
$sidebar = $menu->render();
$registry->callAppMethod($app, 'sidebar', array('args' => array($sidebar)));
return $sidebar;
}
/** * Output page footer. * * @param array $opts Options: * - NONE currently */ public function footer(array $opts = array()) { global $browser, $notification, $registry; $view = new Horde_View(array('templatePath' => $registry->get('templates', 'horde') . '/common')); if (!$browser->isMobile()) { $notification->notify(array('listeners' => array('audio'))); } $view->outputJs = $this->deferScripts; $view->pageOutput = $this; switch ($this->_view) { case $registry::VIEW_MINIMAL: $view->minimalView = true; break; case $registry::VIEW_SMARTMOBILE: $view->smartmobileView = true; break; case $registry::VIEW_BASIC: $view->basicView = true; if ($this->sidebar) { $view->sidebar = Horde::sidebar(); } break; } echo $view->render('footer'); $this->deferScripts = false; }