Beispiel #1
0
 /**
  * Renders the submenu (toolbar links) for all detected views of this component
  *
  * @return  void
  */
 public function renderSubmenu()
 {
     parent::renderSubmenu();
     $activeView = $this->input->getCmd('extension', '');
     $this->appendLink(JText::_('COM_BABIOONEVENT_CATEGORIES'), 'index.php?option=com_categories&extension=com_babioonevent', 'com_babioonevent' == $activeView);
     $activeView = $this->input->getCmd('view', 'cpanel');
     $this->appendLink(JText::_('COM_BABIOONEVENT_LIVEUPDATE'), 'index.php?option=com_babioonevent&view=liveupdate', 'liveupdate' == $activeView);
 }
Beispiel #2
0
 public function renderSubmenu($vName = null)
 {
     if (is_null($vName)) {
         $vName = $this->input->getCmd('view', 'cpanel');
     }
     $this->input->set('view', $vName);
     parent::renderSubmenu();
     $toolbar = FOFToolbar::getAnInstance($this->input->getCmd('option', 'com_db8locate'), $this->config);
     $toolbar->appendLink(Jtext::_('COM_DB8LOCATE_SUBMENU_CATEGORIES'), 'index.php?option=com_categories&extension=com_db8locate', $vName == 'categories');
 }