本文整理汇总了PHP中JHtmlSidebar::addEntry方法的典型用法代码示例。如果您正苦于以下问题:PHP JHtmlSidebar::addEntry方法的具体用法?PHP JHtmlSidebar::addEntry怎么用?PHP JHtmlSidebar::addEntry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHtmlSidebar
的用法示例。
在下文中一共展示了JHtmlSidebar::addEntry方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addSubmenu
/**
* 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));
}
示例2: addSubmenu
/**
* 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))));
}
示例3: addSubmenu
/**
* 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');
}
}
示例4: addSubmenu
/**
* 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');
}
}
示例5: addSubmenu
/**
* 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');
}
示例6: addSubmenu
/**
* 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);
}
}
示例7: addEntry
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);
}
示例8: addToolBar
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');
}
示例9: addSubmenu
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 == '');
}
}
示例10: addSubmenu
/**
* 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');
}
示例11: addSubmenu
/**
* 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');
}
示例12: addSubmenu
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'
);
}
示例13: addSubmenu
/**
* 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');
}
示例14: addSubmenu
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');
}
示例15: addSubmenu
/**
* 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');
}