/** * Configure the Link bar. * * @param string $vName The name of the active view. * * @return void */ public static function addSubmenu($vName) { JHtmlSidebar::addEntry(JText::_('COM_FBIMPORTER_TOOL'), 'index.php?option=com_fbimporter&view=items', $vName == 'items'); JHtmlSidebar::addEntry(JText::_('COM_FBIMPORTER_FORMAT_SETTING'), 'index.php?option=com_fbimporter&view=formats', $vName == 'formats'); $dispatcher = \JEventDispatcher::getInstance(); $dispatcher->trigger('onAfterAddSubmenu', array('com_fbimporter', $vName)); }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * * @return void * * @since 1.6 */ public static function addSubmenu($vName) { JHtmlSidebar::addEntry(JText::_('COM_PDFAPPFORM_SUBMENU_MESSAGES'), 'index.php?option=com_pdfappform', $vName == 'pdfappform'); JHtmlSidebar::addEntry(JText::_('COM_PDFAPPFORM_SUBMENU_SETTINGS'), 'index.php?option=com_pdfappform&view=message', $vName == 'message'); $name = $vName == 'pdfappform' ? JText::_('COM_PDFAPPFROM_SUBMENU_MESSAGES') : JText::_('COM_PDFAPPFROM_SUBMENU_SETTINGS'); JToolBarHelper::title(JText::_(sprintf(JText::_('COM_PDFAPPFORM'), JText::_($name)))); }
/** * Configure the Linkbar. */ public static function addSubmenu($submenu) { if (JVERSION >= '3.0.0') { JHtmlSidebar::addEntry(JText::_('SL_MAN') . ' Manager', 'index.php?option=com_slp&view=slp', $submenu == 'slp'); JHtmlSidebar::addEntry(JText::_('SL_ABOUT'), 'index.php?option=com_slp&view=slpconfig', $submenu == 'slpconfig'); } }
/** * Configure the Linkbar. */ public static function addSubmenu($vName = '') { $canDo = ImcHelper::getActions(); JHtmlSidebar::addEntry(JText::_('COM_IMC_TITLE_ISSUES'), 'index.php?option=com_imc&view=issues', $vName == 'issues'); JHtmlSidebar::addEntry(JText::_('COM_IMC_TITLE_CATEGORIES'), "index.php?option=com_categories&extension=com_imc", $vName == 'categories'); if ($vName == 'categories') { JToolBarHelper::title('Improve My City: Categories (Issues)'); } JHtmlSidebar::addEntry(JText::_('COM_IMC_TITLE_LOGS'), 'index.php?option=com_imc&view=logs', $vName == 'logs'); /* TODO: Remove vote.php and votes.php JHtmlSidebar::addEntry( JText::_('COM_IMC_TITLE_VOTES'), 'index.php?option=com_imc&view=votes', $vName == 'votes' ); */ if ($canDo->get('imc.manage.keys')) { JHtmlSidebar::addEntry(JText::_('COM_IMC_TITLE_COMMENTS'), 'index.php?option=com_imc&view=comments', $vName == 'comments'); } if ($canDo->get('imc.manage.steps')) { JHtmlSidebar::addEntry(JText::_('COM_IMC_TITLE_STEPS'), 'index.php?option=com_imc&view=steps', $vName == 'steps'); } if ($canDo->get('imc.manage.keys')) { JHtmlSidebar::addEntry(JText::_('COM_IMC_TITLE_KEYS'), 'index.php?option=com_imc&view=keys', $vName == 'keys'); } }
/** * Configure the Linkbar. */ public static function addSubmenu($submenu, $type) { JHtmlSidebar::addEntry(JText::_('COM_ADMIRORGALLERY_CONTROL_PANEL'), 'index.php?option=com_admirorgallery&controller=admirorgallery', $submenu == 'control_panel'); JHtmlSidebar::addEntry(JText::_('COM_ADMIRORGALLERY_TEMPLATES'), 'index.php?option=com_admirorgallery&view=resourcemanager&AG_resourceType=templates', $type == 'templates'); JHtmlSidebar::addEntry(JText::_('COM_ADMIRORGALLERY_POPUPS'), 'index.php?option=com_admirorgallery&view=resourcemanager&AG_resourceType=popups', $type == 'popups'); JHtmlSidebar::addEntry(JText::_('COM_ADMIRORGALLERY_IMAGE_MANAGER'), 'index.php?option=com_admirorgallery&view=imagemanager', $submenu == 'imagemanager'); }
/** * Create Submenu */ public static function addSubmenu($vName) { JHtmlSidebar::addEntry(JText::_('COM_CHPANEL_VIEW_PANEL'), 'index.php?option=com_chpanel&view=panel', $vName == 'panel'); foreach (self::getViews() as $view) { JHtmlSidebar::addEntry(JText::_('COM_CHPANEL_VIEW_' . strtoupper($view)), 'index.php?option=com_chpanel&view=' . $view, $vName == $view); } }
public static function addEntry($name, $link = '', $active = false, $cur_link = true) { if (!empty($link) && $cur_link) { $input = JFactory::getApplication()->input; $component_link = array(); if ($option = $input->getCmd('option')) { $component_link[] = 'option=' . $option; } if ($view = $input->getCmd('view')) { $component_link[] = 'view=' . $view; } if ($layout = $input->getCmd('layout')) { $component_link[] = 'layout=' . $layout; } if ($id = $input->getInt('addon_id')) { $component_link[] = 'addon_id=' . $id; } if ($link) { $component_link[] = $link; } if (count($component_link)) { $link = 'index.php?' . implode('&', $component_link); } } parent::addEntry($name, $link, $active); }
private function addToolBar() { switch ($this->getLayout()) { case 'add': JToolBarHelper::title(JText::_('COM_JEPROSHOP_ADD_NEW_TRACKING_TITLE'), 'jeproshop-tracking'); JToolBarHelper::apply('save'); JToolBarHelper::cancel('cancel'); break; case 'edit': JToolBarHelper::title(JText::_('COM_JEPROSHOP_EDIT_TRACKING_TITLE'), 'jeproshop-tracking'); JToolBarHelper::apply('update'); break; default: JToolBarHelper::title(JText::_('COM_JEPROSHOP_TRACKING_LIST_TITLE'), 'jeproshop-tracking'); JToolBarHelper::addNew('add'); break; } JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_DASHBOARD_LABEL'), 'index.php?option=com_jeproshop'); JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_CATALOG_LABEL'), 'index.php?option=com_jeproshop&task=catalog', true); JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_ORDERS_LABEL'), 'index.php?option=com_jeproshop&task=orders'); JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_CUSTOMERS_LABEL'), 'index.php?option=com_jeproshop&task=customers'); JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_PRICE_RULES_LABEL'), 'index.php?option=com_jeproshop&task=price_rules'); JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_SHIPPING_LABEL'), 'index.php?option=com_jeproshop&task=shipping'); JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_LOCALIZATION_LABEL'), 'index.php?option=com_jeproshop&task=localization'); JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_SETTINGS_LABEL'), 'index.php?option=com_jeproshop&task=settings'); JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_ADMINISTRATION_LABEL'), 'index.php?option=com_jeproshop&task=administration'); JHtmlSidebar::addEntry(JText::_('COM_JEPROSHOP_STATS_LABEL'), 'index.php?option=com_jeproshop&task=stats'); }
public static function addSubmenu($vName = 'notes') { if (version_compare(JVERSION, '3', '<')) { JSubMenuHelper::addEntry(JText::_('Notes'), 'index.php?option=com_pfmobileappws&view=notes', $vName == 'notes'); } else { JHtmlSidebar::addEntry(JText::_('Notes'), 'index.php?option=com_pfmobileappws&view=notes', $vName == 'notes'); } if (version_compare(JVERSION, '3', '<')) { JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } else { JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } if (version_compare(JVERSION, '3', '<')) { JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } else { JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } if (version_compare(JVERSION, '3', '<')) { JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } else { JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } if (version_compare(JVERSION, '3', '<')) { JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } else { JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } if (version_compare(JVERSION, '3', '<')) { JSubMenuHelper::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } else { JHtmlSidebar::addEntry(JText::_(''), 'index.php?option=com_pfmobileappws&view=', $vName == ''); } }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * * @since 1.6 */ public static function addSubmenu($vName = 'dashboard') { JHtmlSidebar::addEntry(JText::_('COM_EMAILTEMPLATES_DASHBOARD'), 'index.php?option=' . self::$extension . '&view=dashboard', $vName === 'dashboard'); JHtmlSidebar::addEntry(JText::_('COM_EMAILTEMPLATES_CATEGORIES'), 'index.php?option=com_categories&extension=' . self::$extension . '', $vName === 'categories'); JHtmlSidebar::addEntry(JText::_('COM_EMAILTEMPLATES_EMAIL_TEMPLATES'), 'index.php?option=' . self::$extension . '&view=emails', $vName === 'emails'); JHtmlSidebar::addEntry(JText::_('COM_EMAILTEMPLATES_PLACEHOLDERS'), 'index.php?option=' . self::$extension . '&view=placeholders', $vName === 'placeholders'); }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * * @since 1.6 */ public static function addSubmenu($vName = 'dashboard') { JHtmlSidebar::addEntry(JText::_('COM_IDENTITYPROOF_DASHBOARD'), 'index.php?option=' . self::$extension . '&view=dashboard', $vName == 'dashboard'); JHtmlSidebar::addEntry(JText::_('COM_IDENTITYPROOF_FILES'), 'index.php?option=' . self::$extension . '&view=files', $vName == 'records'); JHtmlSidebar::addEntry(JText::_('COM_IDENTITYPROOF_USERS'), 'index.php?option=' . self::$extension . '&view=users', $vName == 'users'); JHtmlSidebar::addEntry(JText::_('COM_IDENTITYPROOF_PLUGINS'), 'index.php?option=com_plugins&view=plugins&filter_search=' . rawurlencode("proof"), $vName == 'plugins'); }
public static function addSubmenu($vName = 'default') { JHtmlSidebar::addEntry( JText::_('COM_PRP_VIEW_DEFAULT'), 'index.php?option=com_prp&view=default', $vName == 'default' ); JHtmlSidebar::addEntry( JText::_('COM_PRP_VIEW_TABLES'), 'index.php?option=com_prp&view=tables', $vName == 'tables' ); JHtmlSidebar::addEntry( JText::_('COM_PRP_VIEW_QUERIES'), 'index.php?option=com_prp&view=queries', $vName == 'queries' ); JHtmlSidebar::addEntry( JText::_('COM_PRP_VIEW_RULES'), 'index.php?option=com_prp&view=rules', $vName == 'rules' ); JHtmlSidebar::addEntry( JText::_('COM_PRP_VIEW_EXPORTS'), 'index.php?option=com_prp&view=exports', $vName == 'exports' ); }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * * @return void * * @since 1.6 */ public static function addSubmenu($vName) { JHtmlSidebar::addEntry(JText::_('COM_BANNERS_SUBMENU_BANNERS'), 'index.php?option=com_banners&view=banners', $vName == 'banners'); JHtmlSidebar::addEntry(JText::_('COM_BANNERS_SUBMENU_CATEGORIES'), 'index.php?option=com_categories&extension=com_banners', $vName == 'categories'); JHtmlSidebar::addEntry(JText::_('COM_BANNERS_SUBMENU_CLIENTS'), 'index.php?option=com_banners&view=clients', $vName == 'clients'); JHtmlSidebar::addEntry(JText::_('COM_BANNERS_SUBMENU_TRACKS'), 'index.php?option=com_banners&view=tracks', $vName == 'tracks'); }
public static function addSubmenu($vName) { JHtmlSidebar::addEntry('Membres', 'index.php?option=com_estivole&view=members', $vName == 'members'); JHtmlSidebar::addEntry('Secteurs', 'index.php?option=com_estivole&view=services', $vName == 'services'); JHtmlSidebar::addEntry('Calendriers', 'index.php?option=com_estivole&view=calendars', $vName == 'calendars'); JHtmlSidebar::addEntry('Inscriptions', 'index.php?option=com_estivole&view=daytimes', $vName == 'daytimes'); }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * @param int $client The client id of the active view. Maybe be 0 or 1 * * @return void */ public static function addSubmenu($vName, $client = 0) { JHtmlSidebar::addEntry(JText::_('COM_LANGUAGES_SUBMENU_INSTALLED_SITE'), 'index.php?option=com_languages&view=installed&client=0', $vName == 'installed' && $client === 0); JHtmlSidebar::addEntry(JText::_('COM_LANGUAGES_SUBMENU_INSTALLED_ADMINISTRATOR'), 'index.php?option=com_languages&view=installed&client=1', $vName == 'installed' && $client === 1); JHtmlSidebar::addEntry(JText::_('COM_LANGUAGES_SUBMENU_CONTENT'), 'index.php?option=com_languages&view=languages', $vName == 'languages'); JHtmlSidebar::addEntry(JText::_('COM_LANGUAGES_SUBMENU_OVERRIDES'), 'index.php?option=com_languages&view=overrides', $vName == 'overrides'); }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * * @return void * * @since 1.6 */ public static function addSubmenu($vName) { JHtmlSidebar::addEntry(JText::_('COM_TESTYOURSELF_SUBMENU_QUESTIONS'), 'index.php?option=com_testyourself&view=questions', $vName == 'questions'); JHtmlSidebar::addEntry(JText::_('COM_TESTYOURSELF_SUBMENU_FORMS'), 'index.php?option=com_testyourself&view=forms', $vName == 'forms'); JHtmlSidebar::addEntry(JText::_('COM_TESTYOURSELF_SUBMENU_RECOMMENDATIONS'), 'index.php?option=com_testyourself&view=recommendations', $vName == 'recommendations'); JHtmlSidebar::addEntry(JText::_('COM_TESTYOURSELF_SUBMENU_TESTS'), 'index.php?option=com_testyourself&view=tests', $vName == 'tests'); }
public static function addSubmenu($in_view = 'jvrelatives') { $canDo = JvrelativesHelper::getActions(); JHtmlSidebar::addEntry(JText::_('COM_JVRELATIVES_DASHBOARD'), 'index.php?option=com_jvrelatives&view=jvrelatives', $in_view == 'jvrelatives'); if ($canDo->get('core.admin')) { JHtmlSidebar::addEntry(JText::_('COM_JVRELATIVES_CONFIGURATION'), 'index.php?option=com_jvrelatives&task=config.edit&id=1', $in_view == 'config'); } JHtmlSidebar::addEntry(JText::_('COM_JVRELATIVES_LOG'), 'index.php?option=com_jvrelatives&view=log', $in_view == 'log'); JHtmlSidebar::addEntry(JText::_('COM_JVRELATIVES_CLEARCACHE'), 'index.php?option=com_jvrelatives&task=clearcache', false); JHtmlSidebar::addEntry(JText::_('COM_JVRELATIVES_DELTHUMBS'), 'index.php?option=com_jvrelatives&task=delthumbs', false); $document = JFactory::getDocument(); $document->addStyleDeclaration('.icon-48-jvrelatives {background-image: url(../media/com_jvrelatives/assets/images/icon-48x48.png);}'); switch ($in_view) { case 'config': $title = JText::_('COM_JVRELATIVES_CONFIGURATION'); break; case 'log': $title = JText::_('COM_JVRELATIVES_LOG'); break; default: $title = JText::_('COM_JVRELATIVES_ADMIN'); break; } $document->setTitle($title); }
/** * Configure the Linkbar. * * @param string $viewName The name of the active view. * * @return void */ public static function addSubmenu($viewName) { $menu = JToolBar::getInstance('submenu'); $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('m.*')->from('#__menu AS m')->innerJoin('#__menu AS m2 ON m.parent_id = m2.id')->where("m2.link='index.php?option=com_jea'")->order('id ASC'); $db->setQuery($query); $items = $db->loadObjectList(); foreach ($items as $item) { $active = false; switch ($item->title) { case 'com_jea_properties': $item->title = 'COM_JEA_PROPERTIES_MANAGEMENT'; break; case 'com_jea_features': $item->title = 'COM_JEA_FEATURES_MANAGEMENT'; break; } if (preg_match('#&view=([a-z]+)#', $item->link, $matches)) { $active = $matches[1] == $viewName; } if ((double) JVERSION > 3) { JHtmlSidebar::addEntry(JText::_($item->title), $item->link, $active); } else { $menu->appendButton(JText::_($item->title), $item->link, $active); } } }
protected function addToolbar() { // Set toolbar items for the page JToolBarHelper::custom("elements.installer", "archive", "archive", JText::_('COM_FALANG_INSTALL'), false); if (FALANG_J30) { JToolBarHelper::custom("elements.detail", "eye", "eye", JText::_('COM_FALANG_DETAIL'), true); } else { JToolBarHelper::custom("elements.detail", "preview", "preview", JText::_('COM_FALANG_DETAIL'), true); } JToolBarHelper::deleteList(JText::_("COM_FALANG_TRANSLATION_DELETE_MSG"), "elements.remove"); JToolBarHelper::help('screen.elements', true); if (FALANG_J30) { JHtmlSidebar::setAction('index.php?option=com_falang&view=element'); JHtmlSidebar::addEntry(JText::_('COM_FALANG_CONTROL_PANEL'), 'index.php?option=com_falang'); JHtmlSidebar::addEntry(JText::_('COM_FALANG_TRANSLATION'), 'index.php?option=com_falang&task=translate.overview'); JHtmlSidebar::addEntry(JText::_('COM_FALANG_ORPHANS'), 'index.php?option=com_falang&task=translate.orphans'); JHtmlSidebar::addEntry(JText::_('COM_FALANG_CONTENT_ELEMENTS'), 'index.php?option=com_falang&task=elements.show', true); JHtmlSidebar::addEntry(JText::_('COM_FALANG_HELP_AND_HOWTO'), 'index.php?option=com_falang&task=help.show', false); $this->sidebar = JHtmlSidebar::render(); } else { JSubMenuHelper::addEntry(JText::_('COM_FALANG_CONTROL_PANEL'), 'index.php?option=com_falang'); JSubMenuHelper::addEntry(JText::_('COM_FALANG_TRANSLATION'), 'index.php?option=com_falang&task=translate.overview'); JSubMenuHelper::addEntry(JText::_('COM_FALANG_ORPHANS'), 'index.php?option=com_falang&task=translate.orphans'); JSubMenuHelper::addEntry(JText::_('COM_FALANG_CONTENT_ELEMENTS'), 'index.php?option=com_falang&task=elements.show', true); JSubMenuHelper::addEntry(JText::_('COM_FALANG_HELP_AND_HOWTO'), 'index.php?option=com_falang&task=help.show', false); } }
/** * Configure the Linkbar. * * @param string $vName string * * @return void */ public static function addSubmenu($vName = '') { JHtmlSidebar::addEntry(JText::_('COM_AKRECIPES_TITLE_INGREDIENTS'), 'index.php?option=com_akrecipes&view=ingredients', $vName == 'ingredients'); JHtmlSidebar::addEntry(JText::_('COM_AKRECIPES_TITLE_CUISINES'), 'index.php?option=com_akrecipes&view=cuisines', $vName == 'cuisines'); JHtmlSidebar::addEntry(JText::_('COM_AKRECIPES_TITLE_COURSES'), 'index.php?option=com_akrecipes&view=courses', $vName == 'courses'); JHtmlSidebar::addEntry(JText::_('COM_AKRECIPES_TITLE_RECIPES'), 'index.php?option=com_akrecipes&view=recipes', $vName == 'recipes'); JHtmlSidebar::addEntry(JText::_('JCATEGORIES') . ' (' . JText::_('COM_AKRECIPES_TITLE_RECIPES') . ')', "index.php?option=com_categories&extension=com_akrecipes", $vName == 'categories'); if ($vName == 'categories') { JToolBarHelper::title('Archanas Kitchen Recipes: JCATEGORIES (COM_AKRECIPES_TITLE_RECIPES)'); } // JHtmlSidebar::addEntry( // JText::_('COM_AKRECIPES_TITLE_USERS'), // 'index.php?option=com_akrecipes&view=users', // $vName == 'users' // ); // JHtmlSidebar::addEntry( // JText::_('COM_AKRECIPES_TITLE_GROUPS'), // 'index.php?option=com_akrecipes&view=groups', // $vName == 'groups' // ); JHtmlSidebar::addEntry(JText::_('COM_AKRECIPES_TITLE_RATINGS'), 'index.php?option=com_akrecipes&view=ratings', $vName == 'ratings'); JHtmlSidebar::addEntry(JText::_('COM_AKRECIPES_TITLE_RECIPESBYUSERSS'), 'index.php?option=com_akrecipes&view=recipesbyuserss', $vName == 'recipesbyuserss'); JHtmlSidebar::addEntry(JText::_('COM_AKBRANDS_TITLE_BRANDS'), 'index.php?option=com_akrecipes&view=brands', $vName == 'brands'); JHtmlSidebar::addEntry(JText::_('COM_AKCONTESTS_TITLE_CONTESTS'), 'index.php?option=com_akrecipes&view=contests', $vName == 'contests'); JHtmlSidebar::addEntry(JText::_('COM_AKPRODUCTS_TITLE_PRODUCTS'), 'index.php?option=com_akrecipes&view=products', $vName == 'products'); }
public static function loadNavi() { $links = self::getMenuLinks(); foreach ($links as $link) { JHtmlSidebar::addEntry($link['text'], $link['link']); } }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * * @since 1.6 */ public static function addSubmenu($vName = 'dashboard') { JHtmlSidebar::addEntry(JText::_('COM_ITPMETA_DASHBOARD'), 'index.php?option=' . self::$extension . '&view=dashboard', $vName === 'dashboard'); JHtmlSidebar::addEntry(JText::_('COM_ITPMETA_GLOBALS_TAGS'), 'index.php?option=' . self::$extension . '&view=globals', $vName === 'globals'); JHtmlSidebar::addEntry(JText::_('COM_ITPMETA_URLS_MANAGER'), 'index.php?option=' . self::$extension . '&view=urls', $vName === 'urls'); JHtmlSidebar::addEntry(JText::_('COM_ITPMETA_PLUGINS'), 'index.php?option=com_plugins&view=plugins&filter_search=itpmeta', $vName === 'plugins'); }
/** * Configure the Linkbar. */ public static function addSubmenu($vName = '') { JHtmlSidebar::addEntry(JText::_('COM_AVAILABLE_ASSETS_TITLE_AIRCRAFTLIST'), 'index.php?option=com_available_assets&view=aircraftlist', $vName == 'aircraftlist'); JHtmlSidebar::addEntry(JText::_('COM_AVAILABLE_ASSETS_TITLE_ADDITIONS'), 'index.php?option=com_available_assets&view=additions', $vName == 'additions'); JHtmlSidebar::addEntry(JText::_('COM_AVAILABLE_ASSETS_TITLE_REMOVALS'), 'index.php?option=com_available_assets&view=removals', $vName == 'removals'); JHtmlSidebar::addEntry(JText::_('COM_AVAILABLE_ASSETS_TITLE_UPDATES'), 'index.php?option=com_available_assets&view=updates', $vName == 'updates'); }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * * @return void * @since 1.6 */ public static function addSubmenu($vName) { JHtmlSidebar::addEntry(JText::_('COM_CONTACT_SUBMENU_CONTACTS'), 'index.php?option=com_contact&view=contacts', $vName == 'contacts'); JHtmlSidebar::addEntry(JText::_('COM_CONTACT_SUBMENU_CATEGORIES'), 'index.php?option=com_categories&extension=com_contact', $vName == 'categories'); if ($vName == 'categories') { JToolbarHelper::title(JText::sprintf('COM_CATEGORIES_CATEGORIES_TITLE', JText::_('com_contact')), 'contact-categories'); } }
/** * Configure the Linkbar. * * @param string The name of the active view. */ public static function addSubmenu($vName) { JHtmlSidebar::addEntry(JText::_('COM_NEWSFEEDS_SUBMENU_NEWSFEEDS'), 'index.php?option=com_newsfeeds&view=newsfeeds', $vName == 'newsfeeds'); JHtmlSidebar::addEntry(JText::_('COM_NEWSFEEDS_SUBMENU_CATEGORIES'), 'index.php?option=com_categories&extension=com_newsfeeds', $vName == 'categories'); if ($vName == 'categories') { JToolbarHelper::title(JText::sprintf('COM_CATEGORIES_CATEGORIES_TITLE', JText::_('com_newsfeeds')), 'newsfeeds-categories'); } }
/** * Configure the Linkbar. */ public static function addSubmenu($vName = '') { JHtmlSidebar::addEntry(JText::_('COM_DOWNLOAD_TITLE_DOWNLOADS'), 'index.php?option=com_download&view=downloads', $vName == 'downloads'); JHtmlSidebar::addEntry('Categories (Downloads)', "index.php?option=com_categories&extension=com_download", $vName == 'categories'); if ($vName == 'categories') { JToolBarHelper::title('Download: Categories (Downloads)'); } }
/** * Configure the Linkbar. */ public static function addSubmenu($vName = '') { JHtmlSidebar::addEntry(JText::_('COM_ALLCONTACTS_TITLE_CONTACTS'), 'index.php?option=com_allcontacts&view=contacts', $vName == 'contacts'); JHtmlSidebar::addEntry(JText::_('JCATEGORIES') . ' (' . JText::_('COM_ALLCONTACTS_TITLE_CONTACTS') . ')', "index.php?option=com_categories&extension=com_allcontacts", $vName == 'categories'); if ($vName == 'categories') { JToolBarHelper::title('All Contacts: JCATEGORIES (COM_ALLCONTACTS_TITLE_CONTACTS)'); } }
/** * Configure the Linkbar * * @param string The name of the active view * * @return void */ public static function addSubmenu($vName) { $document = JFactory::getDocument(); $document->addStyleDeclaration('.icon-48-tagmeta {background-image: url(../administrator/components/com_tagmeta/images/icon-48-tagmeta.png);}'); JHtmlSidebar::addEntry(JText::_('COM_TAGMETA_MENU_RULES'), 'index.php?option=com_tagmeta&view=rules', $vName == 'rules'); JHtmlSidebar::addEntry(JText::_('COM_TAGMETA_MENU_SYNONYMS'), 'index.php?option=com_tagmeta&view=synonyms', $vName == 'synonyms'); JHtmlSidebar::addEntry(JText::_('COM_TAGMETA_MENU_ABOUT'), 'index.php?option=com_tagmeta&view=about', $vName == 'about'); }
/** * Configure the Linkbar. * * @param string The name of the active view. * @since 1.6 */ public static function addSubmenu($vName = 'weblinks') { JHtmlSidebar::addEntry(JText::_('COM_WEBLINKS_SUBMENU_WEBLINKS'), 'index.php?option=com_weblinks&view=weblinks', $vName == 'weblinks'); JHtmlSidebar::addEntry(JText::_('COM_WEBLINKS_SUBMENU_CATEGORIES'), 'index.php?option=com_categories&extension=com_weblinks', $vName == 'categories'); if ($vName == 'categories') { JToolbarHelper::title(JText::sprintf('COM_CATEGORIES_CATEGORIES_TITLE', JText::_('com_weblinks')), 'weblinks-categories'); } }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * * @since 1.6 */ public static function addSubmenu($vName = 'dashboard') { JHtmlSidebar::addEntry(JText::_('COM_SOCIALCOMMUNITY_DASHBOARD'), 'index.php?option=' . self::$extension . '&view=dashboard', $vName == 'dashboard'); JHtmlSidebar::addEntry(JText::_('COM_SOCIALCOMMUNITY_PROFILES'), 'index.php?option=' . self::$extension . '&view=profiles', $vName == 'profiles'); JHtmlSidebar::addEntry(JText::_('COM_SOCIALCOMMUNITY_LOCATIONS'), 'index.php?option=' . self::$extension . '&view=locations', $vName == 'locations'); JHtmlSidebar::addEntry(JText::_('COM_SOCIALCOMMUNITY_COUNTRIES'), 'index.php?option=' . self::$extension . '&view=countries', $vName == 'countries'); JHtmlSidebar::addEntry(JText::_('COM_SOCIALCOMMUNITY_PLUGINS'), 'index.php?option=com_plugins&view=plugins&filter_search=socialcommunity', $vName == 'plugins'); }