sidebar() 공개 정적인 메소드

Returns the sidebar for the current application.
public static sidebar ( string $app = null ) : Horve_View_Sidebar
$app string The application to generate the menu for. Defaults to the current app.
리턴 Horve_View_Sidebar The sidebar.
예제 #1
0
 /**
  * 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;
 }