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 == ''); } }
public function display($tpl = null) { JHTML::stylesheet('joomfish.css', 'administrator/components/com_joomfish/assets/css/'); $document = JFactory::getDocument(); $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('TITLE_Statistics')); // Set toolbar items for the page JToolBarHelper::title(JText::_('TITLE_Statistics'), 'statistics'); JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL', false); JToolBarHelper::help('screen.statistics', true); JSubMenuHelper::addEntry(JText::_('Control Panel'), 'index2.php?option=com_joomfish'); JSubMenuHelper::addEntry(JText::_('Translation'), 'index2.php?option=com_joomfish&task=translate.overview'); JSubMenuHelper::addEntry(JText::_('Orphans'), 'index2.php?option=com_joomfish&task=translate.orphans'); JSubMenuHelper::addEntry(JText::_('Manage Translations'), 'index2.php?option=com_joomfish&task=manage.overview', false); JSubMenuHelper::addEntry(JText::_('Statistics'), 'index2.php?option=com_joomfish&task=statistics.overview', true); JSubMenuHelper::addEntry(JText::_('Language Configuration'), 'index2.php?option=com_joomfish&task=languages.show', false); JSubMenuHelper::addEntry(JText::_('Content elements'), 'index2.php?option=com_joomfish&task=elements.show', false); JSubMenuHelper::addEntry(JText::_('HELP AND HOWTO'), 'index2.php?option=com_joomfish&task=help.show', false); $this->panelStates = $this->get('PanelStates'); $this->contentInfo = $this->get('ContentInfo'); $this->publishedTabs = $this->get('PublishedTabs'); $this->assignRef('panelStates', $this->panelStates); $this->assignRef('contentInfo', $this->contentInfo); $this->assignRef('publishedTabs', $this->publishedTabs); JHTML::_('behavior.tooltip'); parent::display($tpl); }
/** * Configure the Linkbar. * * @param string The name of the active view. */ public static function addSubmenu($vName) { JSubMenuHelper::addEntry(JText::_('COM_LANGUAGES_SUBMENU_INSTALLED_SITE'), 'index.php?option=com_languages&view=installed&client=0', $vName == 'installed'); JSubMenuHelper::addEntry(JText::_('COM_LANGUAGES_SUBMENU_INSTALLED_ADMINISTRATOR'), 'index.php?option=com_languages&view=installed&client=1', $vName == 'installed'); JSubMenuHelper::addEntry(JText::_('COM_LANGUAGES_SUBMENU_CONTENT'), 'index.php?option=com_languages&view=languages', $vName == 'languages'); JSubMenuHelper::addEntry(JText::_('COM_LANGUAGES_SUBMENU_OVERRIDES'), 'index.php?option=com_languages&view=overrides', $vName == 'overrides'); }
/** * Control Panel display function * * @param template $tpl */ public function display($tpl = null) { $document = JFactory::getDocument(); $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('HELP_AND_HOWTO')); JHTML::stylesheet('jfhelp.css', 'administrator/components/com_joomfish/assets/css/'); // Set toolbar items for the page JToolBarHelper::title(JText::_('HELP_AND_HOWTO'), 'help'); JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'COM_JOOMFISH_CONTROL_PANEL', false); JSubMenuHelper::addEntry(JText::_('COM_JOOMFISH_CONTROL_PANEL'), 'index.php?option=com_joomfish'); JSubMenuHelper::addEntry(JText::_('TRANSLATION'), 'index.php?option=com_joomfish&task=translate.overview'); if (JOOMFISH_DEVMODE == true) { JSubMenuHelper::addEntry(JText::_('ORPHANS'), 'index.php?option=com_joomfish&task=translate.orphans'); } if (JOOMFISH_DEVMODE == true) { JSubMenuHelper::addEntry(JText::_('MANAGE_TRANSLATIONS'), 'index.php?option=com_joomfish&task=manage.overview'); } if (JOOMFISH_DEVMODE == true) { JSubMenuHelper::addEntry(JText::_('STATISTICS'), 'index.php?option=com_joomfish&task=statistics.overview'); } JSubMenuHelper::addEntry(JText::_('LANGUAGE_CONFIGURATION'), 'index.php?option=com_joomfish&task=languages.show'); JSubMenuHelper::addEntry(JText::_('CONTENT_ELEMENTS'), 'index.php?option=com_joomfish&task=elements.show'); JSubMenuHelper::addEntry(JText::_('HELP_AND_HOWTO'), 'index.php?option=com_joomfish&task=help.show', true); $layout = $this->getLayout(); if (method_exists($this, $layout)) { $this->{$layout}($tpl); } $helpov = $this->getHelpPathL('help.overview'); $this->assignRef('helppath', $helpov); parent::display($tpl); }
function display($tpl = null) { global $mainframe; //initialise variables $document =& JFactory::getDocument(); $user =& JFactory::getUser(); //only admins have access to this view if ($user->get('gid') < 24) { JError::raiseWarning('SOME_ERROR_CODE', JText::_('ALERTNOTAUTH')); $mainframe->redirect('index.php?option=com_eventlist&view=eventlist'); } //add css and submenu to document $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css'); //Create Submenu JSubMenuHelper::addEntry(JText::_('EVENTLIST'), 'index.php?option=com_eventlist'); JSubMenuHelper::addEntry(JText::_('EVENTS'), 'index.php?option=com_eventlist&view=events'); JSubMenuHelper::addEntry(JText::_('VENUES'), 'index.php?option=com_eventlist&view=venues'); JSubMenuHelper::addEntry(JText::_('CATEGORIES'), 'index.php?option=com_eventlist&view=categories'); JSubMenuHelper::addEntry(JText::_('ARCHIVESCREEN'), 'index.php?option=com_eventlist&view=archive'); JSubMenuHelper::addEntry(JText::_('GROUPS'), 'index.php?option=com_eventlist&view=groups'); JSubMenuHelper::addEntry(JText::_('HELP'), 'index.php?option=com_eventlist&view=help'); if ($user->get('gid') > 24) { JSubMenuHelper::addEntry(JText::_('SETTINGS'), 'index.php?option=com_eventlist&controller=settings&task=edit'); } //create the toolbar JToolBarHelper::title(JText::_('CLEANUP'), 'housekeeping'); JToolBarHelper::help('el.cleanup', true); parent::display($tpl); }
protected function _initialize(KConfig $config) { JSubMenuHelper::addEntry(JText::_('Newsfeeds'), 'index.php?option=com_newsfeeds&view=newsfeeds', true); JSubMenuHelper::addEntry(JText::_('Categories'), 'index.php?option=com_categories&view=categories§ion=com_newsfeeds'); parent::_initialize($config); }
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); } }
function display($tpl = null) { $option = "com_discussions"; $app = JFactory::getApplication(); JHTML::_('behavior.tooltip'); $user =& JFactory::getUser(); $db =& JFactory::getDBO(); $search = $app->getUserStateFromRequest($option . '.posts.search', 'search', '', 'string'); $search = $db->getEscaped(trim(JString::strtolower($search))); $filter_state = $app->getUserStateFromRequest($option . '.posts.filter_state', 'filter_state', '*', 'word'); $filter_order = $app->getUserStateFromRequest($option . '.posts.filter_order', 'filter_order', 'ordering', 'cmd'); $filter_order_Dir = $app->getUserStateFromRequest($option . '.posts.filter_order_Dir', 'filter_order_Dir', '', 'word'); $rows =& $this->get('Data'); $pageNav =& $this->get('Pagination'); $lists['search'] = $search; $lists['state'] = JHTML::_('grid.state', $filter_state); $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; $this->assignRef('lists', $lists); $this->assignRef('user', $user); $this->assignRef('rows', $rows); $this->assignRef('pageNav', $pageNav); JToolBarHelper::title("Discussions - " . JText::_('COFI_POSTS'), "discussions.png"); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::divider(); JToolBarHelper::editList(); JToolBarHelper::divider(); JToolBarHelper::preferences('com_discussions', '600', '800'); JSubMenuHelper::addEntry(JText::_('COFI_DASHBOARD'), 'index.php?option=com_discussions'); JSubMenuHelper::addEntry(JText::_('COFI_FORUMS'), 'index.php?option=com_discussions&view=forums'); JSubMenuHelper::addEntry(JText::_('COFI_POSTS'), 'index.php?option=com_discussions&view=posts', true); JSubMenuHelper::addEntry(JText::_('COFI_USERS'), 'index.php?option=com_discussions&view=users'); parent::display($tpl); }
/** * Configure the Linkbar. * * @param string $vName The name of the active view. * * @return void * @since 1.6 */ public static function addSubmenu($vName = 'peetcontact') { JSubMenuHelper::addEntry(JText::_('COM_PEETCONTACT_SUBMENU_MESSAGES'), 'index.php?option=com_peetcontact', $vName == 'peetcontact'); JSubMenuHelper::addEntry(JText::_('COM_PEETCONTACT_SUBMENU_SETTINGS'), 'index.php?option=com_peetcontact&view=form', $vName == 'form'); $name = $vName == 'peetcontact' ? JText::_('COM_PEETCONTACT_SUBMENU_MESSAGES') : JText::_('COM_PEETCONTACT_SUBMENU_SETTINGS'); JToolBarHelper::title(JText::_(sprintf(JText::_('COM_PEETCONTACT'), JText::_($name)))); }
/** * Configure the Linkbar. */ public static function addSubmenu($submenu) { JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_CONFIGURATION_TITLE'), 'index.php?option=com_onepage&view=config', $submenu == 'config'); JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_OPC_THEME_EDITOR'), 'index.php?option=com_onepage&view=edittheme', $submenu == 'edittheme'); JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_TRACKING_PANEL'), 'index.php?option=com_onepage&view=tracking', $submenu == 'tracking'); JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_UTILS'), 'index.php?option=com_onepage&view=utils', $submenu == 'utils'); JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_XML_EXPORT'), 'index.php?option=com_onepage&view=xmlexport', $submenu == 'xmlexport'); JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_ORDER_EXPORT_CONFIG'), 'index.php?option=com_onepage&view=order_export', $submenu == 'order_export'); JSubMenuHelper::addEntry(JText::_('COM_ONEPAGE_ORDER_MANAGEMENT') . ' (' . JText::_('COM_ONEPAGE_EXPERIMENTAL') . ')', 'index.php?option=com_onepage&view=orders', $submenu == 'orders'); /* $db = JFactory::getDBO(); $q = "select shipment_params from #__virtuemart_shipmentmethods where shipment_element = 'pickup_or_free' and published = 1 limit 0,1"; $db->setQuery($q); $json = $db->loadResult(); if (!empty($json)) { JSubMenuHelper::addEntry( JText::_('COM_ONEPAGE_ROUTE_CONFIG_LINK'), 'index.php?option=com_onepage&view=pickup', $submenu == 'pickup' ); } */ // set some global property /* $document = JFactory::getDocument(); $document->addStyleDeclaration('.icon-48-helloworld ' . '{background-image: url(../media/com_helloworld/images/tux-48x48.png);}'); */ }
function display($tpl = null) { global $mainframe, $option; if ($this->getLayout() == 'print') { $this->_displayprint($tpl); return; } //initialise variables $db =& JFactory::getDBO(); $elsettings = ELAdmin::config(); $document =& JFactory::getDocument(); $user =& JFactory::getUser(); //get vars $filter_order = $mainframe->getUserStateFromRequest($option . '.attendees.filter_order', 'filter_order', 'u.username', 'cmd'); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.attendees.filter_order_Dir', 'filter_order_Dir', '', 'word'); $filter = $mainframe->getUserStateFromRequest($option . '.attendees.filter', 'filter', '', 'int'); $search = $mainframe->getUserStateFromRequest($option . '.attendees.search', 'search', '', 'string'); $search = $db->getEscaped(trim(JString::strtolower($search))); //add css and submenu to document $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css'); //Create Submenu JSubMenuHelper::addEntry(JText::_('EVENTLIST'), 'index.php?option=com_eventlist'); JSubMenuHelper::addEntry(JText::_('EVENTS'), 'index.php?option=com_eventlist&view=events'); JSubMenuHelper::addEntry(JText::_('VENUES'), 'index.php?option=com_eventlist&view=venues'); JSubMenuHelper::addEntry(JText::_('CATEGORIES'), 'index.php?option=com_eventlist&view=categories'); JSubMenuHelper::addEntry(JText::_('ARCHIVESCREEN'), 'index.php?option=com_eventlist&view=archive'); JSubMenuHelper::addEntry(JText::_('GROUPS'), 'index.php?option=com_eventlist&view=groups'); JSubMenuHelper::addEntry(JText::_('HELP'), 'index.php?option=com_eventlist&view=help'); if ($user->get('gid') > 24) { JSubMenuHelper::addEntry(JText::_('SETTINGS'), 'index.php?option=com_eventlist&controller=settings&task=edit'); } //add toolbar JToolBarHelper::title(JText::_('REGISTERED USERS'), 'users'); JToolBarHelper::deleteList(); JToolBarHelper::spacer(); JToolBarHelper::back(); JToolBarHelper::spacer(); JToolBarHelper::help('el.registereduser', true); // Get data from the model $rows =& $this->get('Data'); $pageNav =& $this->get('Pagination'); $event =& $this->get('Event'); $event->dates = strftime($elsettings->formatdate, strtotime($event->dates)); //build filter selectlist $filters = array(); $filters[] = JHTML::_('select.option', '1', JText::_('NAME')); $filters[] = JHTML::_('select.option', '2', JText::_('USERNAME')); $lists['filter'] = JHTML::_('select.genericlist', $filters, 'filter', 'size="1" class="inputbox"', 'value', 'text', $filter); // search filter $lists['search'] = $search; // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; //assign to template $this->assignRef('lists', $lists); $this->assignRef('rows', $rows); $this->assignRef('pageNav', $pageNav); $this->assignRef('event', $event); parent::display($tpl); }
function display($tpl = null) { $mainframe =& JFactory::getApplication(); JToolBarHelper::title('RSTickets! Pro', 'rsticketspro'); JSubMenuHelper::addEntry(JText::_('RST_MANAGE_TICKETS'), 'index.php?option=com_rsticketspro&view=tickets', true); JSubMenuHelper::addEntry(JText::_('RST_DEPARTMENTS'), 'index.php?option=com_rsticketspro&view=departments'); JSubMenuHelper::addEntry(JText::_('RST_GROUPS'), 'index.php?option=com_rsticketspro&view=groups'); JSubMenuHelper::addEntry(JText::_('RST_STAFF_MEMBERS'), 'index.php?option=com_rsticketspro&view=staff'); JSubMenuHelper::addEntry(JText::_('RST_PRIORITIES'), 'index.php?option=com_rsticketspro&view=priorities'); JSubMenuHelper::addEntry(JText::_('RST_STATUSES'), 'index.php?option=com_rsticketspro&view=statuses'); JSubMenuHelper::addEntry(JText::_('RST_KNOWLEDGEBASE'), 'index.php?option=com_rsticketspro&view=knowledgebase'); JSubMenuHelper::addEntry(JText::_('RST_EMAIL_MESSAGES'), 'index.php?option=com_rsticketspro&view=emails'); JSubMenuHelper::addEntry(JText::_('RST_CONFIGURATION'), 'index.php?option=com_rsticketspro&view=configuration'); $mainframe->triggerEvent('onAfterTicketsMenu'); JSubMenuHelper::addEntry(JText::_('RST_UPDATES'), 'index.php?option=com_rsticketspro&view=updates'); JToolBarHelper::apply('applykbconvert'); JToolBarHelper::save('savekbconvert'); JToolBarHelper::cancel('cancelkbconvert'); $this->assignRef('ticket', $this->get('ticket', 'ticket')); $lists['categories'] = RSTicketsProHelper::getKBCategoriesTree('category_id', 0, 0, '', 0); $lists['publish_article'] = JHTML::_('select.booleanlist', 'publish_article', 'class="inputbox"', 1); $lists['private'] = JHTML::_('select.booleanlist', 'private', 'class="inputbox"', 0); $this->assignRef('lists', $lists); parent::display($tpl); }
/** * Configure the Linkbar. */ public static function addSubmenu($submenu) { JSubMenuHelper::addEntry(JText::_('COM_CELTAWEBTRAFFIC_TITLE_CPANEL'), 'index.php?option=com_celtawebtraffic&view=controlpanel', $submenu == 'controlpanel'); JSubMenuHelper::addEntry(JText::_('COM_CELTAWEBTRAFFIC_TITLE_VISITORS'), 'index.php?option=com_celtawebtraffic&view=visitors', $submenu == 'visitors'); JSubMenuHelper::addEntry(JText::_('COM_CELTAWEBTRAFFIC_TITLE_KNOWNIPS'), 'index.php?option=com_celtawebtraffic&view=knownips', $submenu == 'knownips'); JSubMenuHelper::addEntry(JText::_('COM_CELTAWEBTRAFFIC_TITLE_GEO'), 'index.php?option=com_celtawebtraffic&view=geoupload', $submenu == 'geoupload'); }
function display($tpl = null) { $mainframe =& JFactory::getApplication(); JToolBarHelper::title('RSMembership!', 'rsmembership'); JSubMenuHelper::addEntry(JText::_('RSM_TRANSACTIONS'), 'index.php?option=com_rsmembership&view=transactions'); JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIPS'), 'index.php?option=com_rsmembership&view=memberships'); JSubMenuHelper::addEntry(JText::_('RSM_CATEGORIES'), 'index.php?option=com_rsmembership&view=categories'); JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_EXTRAS'), 'index.php?option=com_rsmembership&view=extras'); JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_UPGRADES'), 'index.php?option=com_rsmembership&view=upgrades'); JSubMenuHelper::addEntry(JText::_('RSM_COUPONS'), 'index.php?option=com_rsmembership&view=coupons'); JSubMenuHelper::addEntry(JText::_('RSM_PAYMENT_INTEGRATIONS'), 'index.php?option=com_rsmembership&view=payments'); JSubMenuHelper::addEntry(JText::_('RSM_FILES'), 'index.php?option=com_rsmembership&view=files'); JSubMenuHelper::addEntry(JText::_('RSM_FILE_TERMS'), 'index.php?option=com_rsmembership&view=terms'); JSubMenuHelper::addEntry(JText::_('RSM_USERS'), 'index.php?option=com_rsmembership&view=users'); JSubMenuHelper::addEntry(JText::_('RSM_FIELDS'), 'index.php?option=com_rsmembership&view=fields'); JSubMenuHelper::addEntry(JText::_('RSM_REPORTS'), 'index.php?option=com_rsmembership&view=reports', true); JSubMenuHelper::addEntry(JText::_('RSM_CONFIGURATION'), 'index.php?option=com_rsmembership&view=configuration'); JSubMenuHelper::addEntry(JText::_('RSM_UPDATES'), 'index.php?option=com_rsmembership&view=updates'); $params = array(); $params['allowAllClose'] = true; $pane =& JPane::getInstance('sliders', $params); $this->assignRef('pane', $pane); $date = RSMembershipHelper::getCurrentDate(); if (RSMembershipHelper::isJ16()) { $date =& JFactory::getDate(); $date = $date->toUnix(); } $this->assignRef('from_calendar', JHTML::_('calendar', '', 'from_date', 'rsm_from_calendar')); $this->assignRef('to_calendar', JHTML::_('calendar', date('Y-m-d', $date), 'to_date', 'rsm_to_calendar')); $this->assign('user_id', $this->get('userId')); $this->assign('report', $this->get('report')); $this->assign('count_memberships', $this->get('countMemberships')); $color_pickers = !empty($this->report) && $this->report == 2 ? '4' : $this->count_memberships; $this->assign('color_pickers', $color_pickers); $lists['transaction_types'] = $this->get('transactiontypes'); $lists['memberships'] = $this->get('memberships'); $lists['memberships_transactions'] = $this->get('membershipstransactions'); $units = array(); $units[] = JHTML::_('select.option', 'day', JText::_('RSM_DAY')); $units[] = JHTML::_('select.option', 'month', JText::_('RSM_MONTH')); $units[] = JHTML::_('select.option', 'quarter', JText::_('RSM_QUARTER')); $units[] = JHTML::_('select.option', 'year', JText::_('RSM_YEAR')); $lists['unit'] = JHTML::_('select.genericlist', $units, 'unit'); $reports = array(); $reports[] = JHTML::_('select.option', 'report_1', JText::_('RSM_REPORT_1')); $reports[] = JHTML::_('select.option', 'report_2', JText::_('RSM_REPORT_2')); $lists['report'] = JHTML::_('select.genericlist', $reports, 'report', 'onchange="rsm_check_report(this.value);"'); $gateways = $this->assign('gateways', $this->get('gateways')); $viewin = array(); $viewin[] = JHTML::_('select.option', 60, JText::_('RSM_MINUTES')); $viewin[] = JHTML::_('select.option', 3600, JText::_('RSM_HOURS')); $viewin[] = JHTML::_('select.option', 86400, JText::_('RSM_DAYS')); $lists['viewin'] = JHTML::_('select.genericlist', $viewin, 'viewin', 'style="display: none;"'); $this->assignRef('lists', $lists); $this->assign('customer', $this->get('customer')); if ($this->get('ie')) { JError::raiseWarning(500, JText::_('RSM_IE_WARNING')); } parent::display($tpl); }
function overview($tpl = null) { // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! if (JVersion::isCompatible("1.6.0")) { JHTML::stylesheet('administrator/components/' . JEV_COM_COMPONENT . '/assets/css/eventsadmin.css'); } else { JHTML::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } $document =& JFactory::getDocument(); $document->setTitle(JText::_('ICALS')); // Set toolbar items for the page JToolBarHelper::title(JText::_('ICALS'), 'jevents'); JToolBarHelper::publishList('icals.publish'); JToolBarHelper::unpublishList('icals.unpublish'); JToolBarHelper::addNew('icals.edit'); JToolBarHelper::editList('icals.edit'); JToolBarHelper::deleteList('Delete Ical and all associated events and repeats?', 'icals.delete'); JToolBarHelper::spacer(); JToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false); //JToolBarHelper::help( 'screen.ical', true); JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); //$section = $params->getValue("section",0); JHTML::_('behavior.tooltip'); }
function display($tpl = null) { $app =& JFactory::getApplication(); JSubMenuHelper::addEntry(JText::_('RSSEO_OVERVIEW'), 'index.php?option=com_rsseo'); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_COMPETITORS'), 'index.php?option=com_rsseo&task=listcompetitors'); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_PAGES'), 'index.php?option=com_rsseo&task=listpages'); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_REDIRECTS'), 'index.php?option=com_rsseo&task=listredirects'); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_SITEMAP'), 'index.php?option=com_rsseo&task=sitemap'); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_CRAWLER'), 'index.php?option=com_rsseo&task=crawler', true); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_KEYWORDS'), 'index.php?option=com_rsseo&task=listkeywords'); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_BACKUPRESTORE'), 'index.php?option=com_rsseo&task=backuprestore'); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_ANALYTICS'), 'index.php?option=com_rsseo&task=analytics'); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_SETTINGS'), 'index.php?option=com_rsseo&task=editsettings'); JSubMenuHelper::addEntry(JText::_('RSSEO_MENU_UPDATE'), 'index.php?option=com_rsseo&task=update'); $task = JRequest::getVar('task'); switch ($task) { case 'crawler': $db =& JFactory::getDBO(); JToolBarHelper::title(JText::_('RSSEO_CRAWLER'), 'rsseo'); JToolBarHelper::custom('rsseo', 'preview.png', 'preview_f2.png', JText::_('RSSEO_PRODUCT'), false); $this->assignRef('rsseoConfig', $app->getuserState('rsseoConfig')); break; } parent::display($tpl); }
/** * Configure the Linkbar. */ public static function addSubmenu($submenu) { JSubMenuHelper::addEntry(JText::_('COM_VELNOTICE_SUBMENU_VEL'), 'index.php?option=com_velnotice&view=vel', $submenu == 'vel'); JSubMenuHelper::addEntry(JText::_('COM_VELNOTICE_SUBMENU_IGNORE'), 'index.php?option=com_velnotice&view=velignores', $submenu == 'velignores'); // set some global property $document = JFactory::getDocument(); }
/** * Control Panel display function * * @param template $tpl */ function cpanel($tpl = null) { jimport('joomla.html.pane'); // WHY THE HELL DO THEY BREAK PUBLIC FUNCTIONS !!! if (JVersion::isCompatible("1.6.0")) { JHTML::stylesheet('administrator/components/' . JEV_COM_COMPONENT . '/assets/css/eventsadmin.css'); } else { JHTML::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/'); } $document =& JFactory::getDocument(); $document->setTitle(JText::_('JEVENTS') . ' :: ' . JText::_('JEVENTS')); // Set toolbar items for the page //JToolBarHelper::preferences('com_jevents', '580', '750'); JToolBarHelper::title(JText::_('JEVENTS') . ' :: ' . JText::_('JEVENTS'), 'jevents'); /* $user= JFactory::getUser(); if ($user->authorise('core.admin','com_jevents.admin')) { JToolBarHelper::preferences('com_jevents' , '600', $width = '950'); } */ $this->_hideSubmenu(); if (JFactory::getApplication()->isAdmin()) { //JToolBarHelper::preferences(JEV_COM_COMPONENT, '580', '750'); } //JToolBarHelper::help( 'screen.cpanel', true); JSubMenuHelper::addEntry(JText::_('CONTROL_PANEL'), 'index.php?option=' . JEV_COM_COMPONENT, true); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); //$section = $params->getValue("section",0); JHTML::_('behavior.tooltip'); }
public function display($tpl = null) { JHTML::stylesheet('joomfish.css', 'administrator/components/com_joomfish/assets/css/'); $document = JFactory::getDocument(); $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('TITLE_Statistics')); // Set toolbar items for the page JToolBarHelper::title(JText::_('TITLE_Statistics'), 'statistics'); JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'COM_JOOMFISH_CONTROL_PANEL', false); JToolBarHelper::divider(); JToolBarHelper::help('screen.statistics', true); JSubMenuHelper::addEntry(JText::_('COM_JOOMFISH_CONTROL_PANEL'), 'index.php?option=com_joomfish'); JSubMenuHelper::addEntry(JText::_('TRANSLATION'), 'index.php?option=com_joomfish&task=translate.overview'); if (JOOMFISH_DEVMODE == true) { JSubMenuHelper::addEntry(JText::_('ORPHANS'), 'index.php?option=com_joomfish&task=translate.orphans'); } if (JOOMFISH_DEVMODE == true) { JSubMenuHelper::addEntry(JText::_('MANAGE_TRANSLATIONS'), 'index.php?option=com_joomfish&task=manage.overview', false); } if (JOOMFISH_DEVMODE == true) { JSubMenuHelper::addEntry(JText::_('STATISTICS'), 'index.php?option=com_joomfish&task=statistics.overview', true); } JSubMenuHelper::addEntry(JText::_('LANGUAGE_CONFIGURATION'), 'index.php?option=com_joomfish&task=languages.show'); JSubMenuHelper::addEntry(JText::_('CONTENT_ELEMENTS'), 'index.php?option=com_joomfish&task=elements.show'); JSubMenuHelper::addEntry(JText::_('HELP_AND_HOWTO'), 'index.php?option=com_joomfish&task=help.show'); $this->panelStates = $this->get('PanelStates'); $this->contentInfo = $this->get('ContentInfo'); $this->publishedTabs = $this->get('PublishedTabs'); $this->assignRef('panelStates', $this->panelStates); $this->assignRef('contentInfo', $this->contentInfo); $this->assignRef('publishedTabs', $this->publishedTabs); JHTML::_('behavior.tooltip'); parent::display($tpl); }
public static function addSubmenu($submenu) { JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_CONTENTS'), 'index.php?option=com_gglms', $submenu == 'Contenuti'); JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_UNITA'), 'index.php?option=com_gglms&view=unitas&extension=com_gglms', $submenu == 'Unita'); JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_UNIT'), 'index.php?option=com_gglms&view=unit&extension=com_gglms', $submenu == 'unit'); //RS JSubMenuHelper::addEntry(JText::_('COM_WEBTV_SUBMENU_PALINSESTI'), 'index.php?option=com_gglms&view=palinsestos&extension=com_gglms', $submenu == 'palinsesti'); //RS JSubMenuHelper::addEntry(JText::_('COM_WEBTV_SUBMENU_CONVERSIONI'), 'index.php?option=com_gglms&view=conversioni&extension=com_gglms', $submenu == 'conversioni'); //RS JSubMenuHelper::addEntry(JText::_('COM_WEBTV_SUBMENU_EXERCISES'), 'index.php?option=com_gglms&view=exercises&extension=com_gglms', $submenu == 'exercises'); JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_FILES'), 'index.php?option=com_gglms&view=files&extension=com_gglms', $submenu == 'files'); JSubMenuHelper::addEntry(JText::_('COM_GGLMS_SUBMENU_PARAMS'), 'index.php?option=com_gglms&view=params&extension=com_gglms', $submenu == 'params'); $document = JFactory::getDocument(); if ($submenu == 'palinsestos') { //RS $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_PALINSESTI')); } if ($submenu == 'conversioni') { //RS $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_CONVERSIONI')); } if ($submenu == 'unit') { //RS $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_UNIT')); } if ($submenu == 'unita') { //RS $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_UNITA')); } if ($submenu == 'exercises') { //RS $document->setTitle(JText::_('COM_webtv_ADMINISTRATION_EXERCISES')); } if ($submenu == 'files') { //RS $document->setTitle("Gestione allegati"); } if ($submenu == 'params') { //RS $document->setTitle("Gestione parametri contenuti"); } }
public function addSubMenu($vName) { JSubMenuHelper::addEntry(JText::_('Dashboard'), 'index.php?option=com_ninjarsssyndicator&view=info', $vName == 'info'); JSubMenuHelper::addEntry(JText::_('Feeds'), 'index.php?option=com_ninjarsssyndicator', $vName == 'feeds'); JSubMenuHelper::addEntry(JText::_('Button Maker'), 'index.php?option=com_ninjarsssyndicator&view=buttonmaker', $vName == 'buttonmaker'); JSubMenuHelper::addEntry(JText::_('Default settings'), 'index.php?option=com_ninjarsssyndicator&view=config', $vName == 'config'); }
function display($tpl = null) { JToolBarHelper::title('RSForm! Pro', 'rsform'); if (RSFormProHelper::isJ16()) { $lang =& JFactory::getLanguage(); $lang->load('com_rsform.sys', JPATH_ADMINISTRATOR); JSubMenuHelper::addEntry(JText::_('COM_RSFORM_MANAGE_FORMS'), 'index.php?option=com_rsform&task=forms.manage'); JSubMenuHelper::addEntry(JText::_('COM_RSFORM_MANAGE_SUBMISSIONS'), 'index.php?option=com_rsform&task=submissions.manage'); JSubMenuHelper::addEntry(JText::_('COM_RSFORM_CONFIGURATION'), 'index.php?option=com_rsform&task=configuration.edit', true); JSubMenuHelper::addEntry(JText::_('COM_RSFORM_BACKUP_RESTORE'), 'index.php?option=com_rsform&task=backup.restore'); JSubMenuHelper::addEntry(JText::_('COM_RSFORM_UPDATES'), 'index.php?option=com_rsform&task=updates.manage'); JSubMenuHelper::addEntry(JText::_('COM_RSFORM_PLUGINS'), 'index.php?option=com_rsform&task=goto.plugins'); } JToolBarHelper::apply('configuration.apply'); JToolBarHelper::save('configuration.save'); JToolBarHelper::cancel(''); $params = array('startOffset' => JRequest::getInt('tabposition', 0)); $tabs =& JPane::getInstance('Tabs', $params, true); $this->assignRef('tabs', $tabs); $this->assign('code', RSFormProHelper::getConfig('global.register.code')); $lists['global.iis'] = JHTML::_('select.booleanlist', 'rsformConfig[global.iis]', 'class="inputbox"', RSFormProHelper::getConfig('global.iis')); $lists['global.editor'] = JHTML::_('select.booleanlist', 'rsformConfig[global.editor]', 'class="inputbox"', RSFormProHelper::getConfig('global.editor')); $lists['global.codemirror'] = JHTML::_('select.booleanlist', 'rsformConfig[global.codemirror]', 'class="inputbox"', RSFormProHelper::getConfig('global.codemirror')); $lists['auto_responsive'] = JHTML::_('select.booleanlist', 'rsformConfig[auto_responsive]', 'class="inputbox"', RSFormProHelper::getConfig('auto_responsive')); $this->assignRef('lists', $lists); parent::display($tpl); }
static function setToolbarLinks($item) { $dashboard = 'index.php?option=com_jobboard&view=dashboard'; $jobs = 'index.php?option=com_jobboard&view=jobs'; $applicants = 'index.php?option=com_jobboard&view=applicants'; $messages = 'index.php?option=com_jobboard&view=messages'; $category = 'index.php?option=com_jobboard&view=category'; $careerlevels = 'index.php?option=com_jobboard&view=careerlevels'; $education = 'index.php?option=com_jobboard&view=education'; $departments = 'index.php?option=com_jobboard&view=departments'; $statuses = 'index.php?option=com_jobboard&view=statuses'; $users = 'index.php?option=com_jobboard&view=users'; $config = 'index.php?option=com_jobboard&view=config'; // add sub menu items JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_M_DASHBOARD'), $dashboard, $item == 'dashboard' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_M_JOBS'), $jobs, $item == 'jobs' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_JOB_APPLICANTS'), $applicants, $item == 'applicants' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_EMAIL_TEMPLATES'), $messages, $item == 'messages' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_JOB_CATEGORIES'), $category, $item == 'category' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_CAREER_LEVELS'), $careerlevels, $item == 'careerlevels' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_EDUCATION_LEVELS'), $education, $item == 'education' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_DEPARTMENTS'), $departments, $item == 'departments' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_STATUSES'), $statuses, $item == 'statuses' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_USERS'), $users, $item == 'users' ? true : false); JSubMenuHelper::addEntry(JText::_('COM_JOBBOARD_SETTINGS'), $config, $item == 'config' ? true : false); }
function display($tpl = null) { global $mainframe, $option; //initialise variables $user =& JFactory::getUser(); $db =& JFactory::getDBO(); $document =& JFactory::getDocument(); JHTML::_('behavior.tooltip'); //get vars $filter_order = $mainframe->getUserStateFromRequest($option . '.categories.filter_order', 'filter_order', 'c.ordering', 'cmd'); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . '.categories.filter_order_Dir', 'filter_order_Dir', '', 'word'); $filter_state = $mainframe->getUserStateFromRequest($option . '.categories.filter_state', 'filter_state', '*', 'word'); $search = $mainframe->getUserStateFromRequest($option . '.categories.search', 'search', '', 'string'); $search = $db->getEscaped(trim(JString::strtolower($search))); //add css and submenu to document $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css'); //Create Submenu JSubMenuHelper::addEntry(JText::_('EVENTLIST'), 'index.php?option=com_eventlist'); JSubMenuHelper::addEntry(JText::_('EVENTS'), 'index.php?option=com_eventlist&view=events'); JSubMenuHelper::addEntry(JText::_('VENUES'), 'index.php?option=com_eventlist&view=venues'); JSubMenuHelper::addEntry(JText::_('CATEGORIES'), 'index.php?option=com_eventlist&view=categories', true); JSubMenuHelper::addEntry(JText::_('ARCHIVESCREEN'), 'index.php?option=com_eventlist&view=archive'); JSubMenuHelper::addEntry(JText::_('GROUPS'), 'index.php?option=com_eventlist&view=groups'); JSubMenuHelper::addEntry(JText::_('HELP'), 'index.php?option=com_eventlist&view=help'); if ($user->get('gid') > 24) { JSubMenuHelper::addEntry(JText::_('SETTINGS'), 'index.php?option=com_eventlist&controller=settings&task=edit'); } //create the toolbar JToolBarHelper::title(JText::_('CATEGORIES'), 'elcategories'); JToolBarHelper::publishList(); JToolBarHelper::spacer(); JToolBarHelper::unpublishList(); JToolBarHelper::spacer(); JToolBarHelper::addNew(); JToolBarHelper::spacer(); JToolBarHelper::editList(); JToolBarHelper::spacer(); JToolBarHelper::deleteList(); JToolBarHelper::spacer(); JToolBarHelper::help('el.listcategories', true); //Get data from the model $rows =& $this->get('Data'); //$total = & $this->get( 'Total'); $pageNav =& $this->get('Pagination'); //publish unpublished filter $lists['state'] = JHTML::_('grid.state', $filter_state); // search filter $lists['search'] = $search; // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; $ordering = $lists['order'] == 'c.ordering'; //assign data to template $this->assignRef('lists', $lists); $this->assignRef('rows', $rows); $this->assignRef('pageNav', $pageNav); $this->assignRef('ordering', $ordering); $this->assignRef('user', $user); parent::display($tpl); }
function display($tpl = null) { JHTML::stylesheet('falang.css', 'administrator/components/com_falang/assets/css/'); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_FALANG_TITLE') . ' :: ' . JText::_('COM_FALANG_TITLE_MANAGEMENT')); // Set toolbar items for the page JToolBarHelper::title(JText::_('COM_FALANG_TITLE_MANAGEMENT'), 'manage'); // JToolBarHelper::custom( 'cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL' , false ); JToolBarHelper::help('screen.manage', true); 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::_('Manage Translations'), 'index.php?option=com_falang&task=manage.overview', true); // JSubMenuHelper::addEntry(JText::_('Statistics'), 'index.php?option=com_falang&task=statistics.overview', false); // JSubMenuHelper::addEntry(JText::_('Language Configuration'), 'index.php?option=com_falang&task=languages.show', false); JSubMenuHelper::addEntry(JText::_('COM_FALANG_CONTENT_ELEMENTS'), 'index.php?option=com_falang&task=elements.show', false); JSubMenuHelper::addEntry(JText::_('COM_FALANG_HELP_AND_HOWTO'), 'index.php?option=com_falang&task=help.show', false); $this->panelStates = $this->get('PanelStates'); $this->contentInfo = $this->get('ContentInfo'); $this->publishedTabs = $this->get('PublishedTabs'); $this->assignRef('panelStates', $this->panelStates); $this->assignRef('contentInfo', $this->contentInfo); $this->assignRef('publishedTabs', $this->publishedTabs); JHTML::_('behavior.tooltip'); parent::display($tpl); }
/** * Configure the Linkbar. */ public static function addSubmenu($submenu, $type) { JSubMenuHelper::addEntry(JText::_('COM_ADMIRORGALLERY_CONTROL_PANEL'), 'index.php?option=com_admirorgallery&controller=admirorgallery', $submenu == 'control_panel'); JSubMenuHelper::addEntry(JText::_('COM_ADMIRORGALLERY_TEMPLATES'), 'index.php?option=com_admirorgallery&view=resourcemanager&AG_resourceType=templates', $type == 'templates'); JSubMenuHelper::addEntry(JText::_('COM_ADMIRORGALLERY_POPUPS'), 'index.php?option=com_admirorgallery&view=resourcemanager&AG_resourceType=popups', $type == 'popups'); JSubMenuHelper::addEntry(JText::_('COM_ADMIRORGALLERY_IMAGE_MANAGER'), 'index.php?option=com_admirorgallery&view=imagemanager', $submenu == 'imagemanager'); }
function display($tpl = null) { //Load pane behavior jimport('joomla.html.pane'); //initialise variables $document =& JFactory::getDocument(); $pane =& JPane::getInstance('sliders'); $user =& JFactory::getUser(); //build toolbar JToolBarHelper::title(JText::_('IMPORT'), 'home'); JToolBarHelper::help('el.import', true); // Get data from the model $eventfields =& $this->get('EventFields'); $catfields =& $this->get('CategoryFields'); //add css and submenu to document $document->addStyleSheet('components/com_eventlist/assets/css/eventlistbackend.css'); //Create Submenu JSubMenuHelper::addEntry(JText::_('EVENTLIST'), 'index.php?option=com_eventlist', true); JSubMenuHelper::addEntry(JText::_('EVENTS'), 'index.php?option=com_eventlist&view=events'); JSubMenuHelper::addEntry(JText::_('VENUES'), 'index.php?option=com_eventlist&view=venues'); JSubMenuHelper::addEntry(JText::_('CATEGORIES'), 'index.php?option=com_eventlist&view=categories'); JSubMenuHelper::addEntry(JText::_('ARCHIVESCREEN'), 'index.php?option=com_eventlist&view=archive'); JSubMenuHelper::addEntry(JText::_('GROUPS'), 'index.php?option=com_eventlist&view=groups'); JSubMenuHelper::addEntry(JText::_('HELP'), 'index.php?option=com_eventlist&view=help'); if ($user->get('gid') > 24) { JSubMenuHelper::addEntry(JText::_('SETTINGS'), 'index.php?option=com_eventlist&controller=settings&task=edit'); } //assign vars to the template $this->assignRef('eventfields', $eventfields); $this->assignRef('catfields', $catfields); parent::display($tpl); }
function display($tpl = null) { $option = JRequest::getCmd('option'); JHTML::_('behavior.tooltip'); $layout = $this->getLayout(); $document =& JFactory::getDocument(); // Se colocan los botones en la barra de herramientas $bar =& JToolBar::getInstance('toolbar'); $bar->appendButton('Link', 'cpanel', JText::_('CP.PRINCIPAL_VIEW'), 'index.php?option=' . $option); JToolBarHelper::divider(); // Agrega link a las preferencias del componente JToolBarHelper::preferences($option, '600', '600'); JToolBarHelper::divider(); $bar->appendButton('Link', 'send', JText::_('CP.COMMENTS_SEND_INVITATIONS_LINK'), 'index.php?option=' . $option . '&view=comments&task=sendinvitations'); JToolBarHelper::divider(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::divider(); JToolBarHelper::deleteList(JText::_('CP.CONFIRM_DELETE')); JSubMenuHelper::addEntry(JText::_('CP.PRINCIPAL_VIEW'), 'index.php?option=' . $option); // Obtiene título de la interfaz $title = JText::_('CP.CATALOGOPLANES') . ' :: ' . JText::_('CP.COMMENTS'); // Agrega título de la plantilla JToolBarHelper::title($title, 'comment.png'); $this->assignRef('viewName', $this->getName()); parent::display($tpl); }
public static function addSubmenu($vName) { JSubMenuHelper::addEntry(JText::_('COM_BFSTOP_SUBMENU_BLOCKLIST'), 'index.php?option=com_bfstop&view=blocklist', $vName == 'blocklist'); JSubMenuHelper::addEntry(JText::_('COM_BFSTOP_SUBMENU_WHITELIST'), 'index.php?option=com_bfstop&view=whitelist', $vName == 'whitelist'); JSubMenuHelper::addEntry(JText::_('COM_BFSTOP_SUBMENU_FAILEDLOGINLIST'), 'index.php?option=com_bfstop&view=failedloginlist', $vName == 'failedloginlist'); JSubMenuHelper::addEntry(JText::_('COM_BFSTOP_SUBMENU_SETTINGS'), 'index.php?option=com_bfstop&view=settings', $vName == 'settings'); }
/** * Configure the Linkbar. * * @param string The name of the active view. * @since 1.6 */ public static function addSubmenu($vName = 'Battles') { JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_MAIN'), 'index.php?option=com_battle&view=main', $vName == 'main'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_AWARDS'), 'index.php?option=com_battle&view=awards', $vName == 'awards'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_AWARD_NAMES'), 'index.php?option=com_battle&view=awardnames', $vName == 'awardnames'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_PLAYERS'), 'index.php?option=com_battle&view=players', $vName == 'players'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_PEOPLE'), 'index.php?option=com_battle&view=people', $vName == 'people'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_BUILDINGS'), 'index.php?option=com_battle&view=buildings', $vName == 'buildings'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_CARS'), 'index.php?option=com_battle&view=cars', $vName == 'cars'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_WEAPONS'), 'index.php?option=com_battle&view=weapons', $vName == 'categories'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_MAPS'), 'index.php?option=com_battle&view=maps', $vName == 'maps'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_PORTALS'), 'index.php?option=com_battle&view=portals', $vName == 'portals'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_TWINES'), 'index.php?option=com_battle&view=twines', $vName == 'twines'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_TERMINALS'), 'index.php?option=com_battle&view=terminals', $vName == 'terminals'); JSubMenuHelper::addEntry(JText::_('COM_BATTLE_SUBMENU_PLATES'), 'index.php?option=com_battle&view=plates', $vName == 'plates'); /* JSubMenuHelper::addEntry( JText::_('COM_BATTLE_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'); } */ }