/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $state = $this->get('State'); $canDo = TemplatesHelper::getActions(); $isSite = $state->get('filter.client_id') == 0; JToolBarHelper::title(JText::_('COM_TEMPLATES_MANAGER_STYLES'), 'thememanager'); if ($canDo->get('core.edit.state')) { JToolBarHelper::makeDefault('styles.setDefault', 'COM_TEMPLATES_TOOLBAR_SET_HOME'); JToolBarHelper::divider(); } if ($canDo->get('core.edit')) { JToolBarHelper::editList('style.edit'); } if ($canDo->get('core.create')) { JToolBarHelper::custom('styles.duplicate', 'copy.png', 'copy_f2.png', 'JTOOLBAR_DUPLICATE', true); JToolBarHelper::divider(); } if ($canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'styles.delete'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_templates'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_STYLES'); }
function display($tpl = null) { $cid = JRequest::getVar('cid', array(0), 'get', 'array'); $edit = JRequest::getVar('edit', true); $me = JFactory::getUser(); JArrayHelper::toInteger($cid, array(0)); $db = JFactory::getDBO(); $user = JTable::getInstance('ExtUser', 'KunenaImporterTable'); $user->load($cid[0]); $importer = $this->getModel('import'); $items = $importer->findPotentialUsers($user, true); $myuser = JFactory::getUser(); $acl = JFactory::getACL(); // Check for post data in the event that we are returning // from a unsuccessful attempt to save data /* $post = JRequest::get('post'); if ( $post ) { $user->bind($post); }*/ // build the html select list $lists['block'] = JHTML::_('select.booleanlist', 'block', 'class="inputbox" size="1"', $user->get('block')); // build the html select list $lists['sendEmail'] = JHTML::_('select.booleanlist', 'sendEmail', 'class="inputbox" size="1"', $user->get('sendEmail')); $this->assignRef('me', $me); $this->assignRef('lists', $lists); $this->assignRef('user', $user); $this->assignRef('items', $items); JToolBarHelper::makeDefault('select', 'Select'); JToolBarHelper::back(); parent::display($tpl); }
function __construct($default = array()) { parent::__construct($default); $task = JRequest::getWord('task', ''); switch ($task) { case 'add': case 'save': case 'apply': case 'edit': JToolBarHelper::apply(); JToolBarHelper::save(); JToolBarHelper::cancel(); break; default: JToolBarHelper::addNew(); JToolBarHelper::deleteList(); JToolBarHelper::makeDefault('publish'); break; } // Register Extra tasks JRequest::setVar('view', 'services'); $this->registerTask('add', 'edit'); $this->registerTask('apply', 'save'); $this->registerTask('publish', 'setDefault'); }
function display($tpl = null) { // Load the helper(s) if (!class_exists('VmHTML')) { require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php'; } // $this->assignRef('perms', Permissions::getInstance()); $model = VmModel::getModel(); $layoutName = JRequest::getWord('layout', 'default'); if ($layoutName == 'edit') { $shoppergroup = $model->getShopperGroup(); $this->SetViewTitle('SHOPPERGROUP', $shoppergroup->shopper_group_name); $vendors = ShopFunctions::renderVendorList($shoppergroup->virtuemart_vendor_id); $this->assignRef('vendorList', $vendors); $this->assignRef('shoppergroup', $shoppergroup); $this->addStandardEditViewCommands(); } else { $this->SetViewTitle(); JToolBarHelper::makeDefault(); $this->loadHelper('permissions'); $showVendors = Permissions::getInstance()->check('admin'); $this->assignRef('showVendors', $showVendors); $this->addStandardDefaultViewCommands(); $this->addStandardDefaultViewLists($model); $shoppergroups = $model->getShopperGroups(false, true); $this->assignRef('shoppergroups', $shoppergroups); $pagination = $model->getPagination(); $this->assignRef('pagination', $pagination); } parent::display($tpl); }
/** * Control Panel display function * * @param template $tpl */ public function display($tpl = null) { $document = JFactory::getDocument(); $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('LANGUAGE_TITLE')); // Set toolbar items for the page JToolBarHelper::apply('languages.apply'); JToolBarHelper::save('languages.save'); JToolBarHelper::title(JText::_('LANGUAGE_TITLE'), 'language'); JToolBarHelper::makeDefault('languages.setDefault'); JToolBarHelper::deleteList('ARE_YOU_SURE_YOU_WANT_TO_DELETE_THE_SELCTED_ITEMS', 'languages.remove'); JToolBarHelper::addNew('languages.add'); JToolBarHelper::cancel('languages.cancel', 'JTOOLBAR_CLOSE'); JToolBarHelper::divider(); JToolBarHelper::help('screen.languages', 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'); } 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', true); 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'); $option = JRequest::getCmd('option', 'com_joomfish'); $filter_state = JFactory::getApplication()->getUserStateFromRequest($option . 'filter_state', 'filter_state', '', 'word'); $filter_catid = JFactory::getApplication()->getUserStateFromRequest($option . 'filter_catid', 'filter_catid', 0, 'int'); $filter_order = JFactory::getApplication()->getUserStateFromRequest($option . 'filter_order', 'filter_order', 'l.ordering', 'cmd'); $filter_order_Dir = JFactory::getApplication()->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', '', 'word'); $search = JFactory::getApplication()->getUserStateFromRequest($option . 'search', 'search', '', 'string'); $search = JString::strtolower($search); $languages = $this->get('data'); $defaultLanguage = $this->get('defaultLanguage'); $this->assignRef('items', $languages); $this->assignRef('defaultLanguage', $defaultLanguage); $jfManager = JoomFishManager::getInstance(); $overwriteGlobalConfig = $jfManager->getCfg('overwriteGlobalConfig'); $this->assignRef('overwriteGlobalConfig', $overwriteGlobalConfig); $directory_flags = $jfManager->getCfg('directory_flags'); $this->assignRef('directory_flags', $directory_flags); // state filter $lists['state'] = JHTML::_('grid.state', $filter_state); // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; // search filter $lists['search'] = $search; $user = JFactory::getUser(); $this->assignRef('user', $user); $this->assignRef('lists', $lists); JHTML::_('behavior.tooltip'); parent::display($tpl); }
/** * Setup the Toolbar * * @since 1.6 */ protected function _setToolBar() { JToolBarHelper::title(JText::_('Langs_View_Installed_Title'), 'langmanager.png'); JToolBarHelper::makeDefault('installed.publish'); JToolBarHelper::divider(); JToolBarHelper::preferences('com_languages'); JToolBarHelper::divider(); JToolBarHelper::help('screen.languages'); }
function displayList($tpl = null) { JToolBarHelper::title(_JSHOP_LIST_CURRENCY, 'generic.png'); JToolBarHelper::makeDefault("setdefault"); JToolBarHelper::addNew(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::deleteList(); parent::display($tpl); }
function display($tpl = null) { // Create the form $this->form =& ComJea::getParams(); $this->form->loadSetupFile(JPATH_COMPONENT . DS . 'models' . DS . 'Config.xml'); JHTML::_('behavior.tooltip'); JToolBarHelper::title('JEA : ' . JText::_('Configuration'), 'config.png'); JToolBarHelper::save(); JToolBarHelper::makeDefault(); parent::display($tpl); }
function display($tpl = null) { global $mainframe; $this->_layout = 'default'; /* * Set toolbar items for the page */ $menutype = $mainframe->getUserStateFromRequest('com_menus.menutype', 'menutype', 'mainmenu', 'menutype'); JToolBarHelper::title(JText::_('MENU ITEM MANAGER'), 'menu.png'); JToolBarHelper::addNewX('newItem'); JToolBarHelper::spacer(); JToolBarHelper::trash(); JToolBarHelper::spacer(); JToolBarHelper::customX('move', 'move.png', 'move_f2.png', 'Move', true); JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'Copy', true); JToolBarHelper::spacer(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::spacer(); JToolBarHelper::makeDefault('setdefault'); JSubMenuHelper::addEntry(JText::_('Items'), 'index.php?option=com_menus&task=view', true); JSubMenuHelper::addEntry(JText::_('Menus'), 'index.php?option=com_menus'); if (JFactory::getUser()->authorize('com_trash', 'manage')) { JSubMenuHelper::addEntry(JText::_('Trash'), 'index.php?option=com_trash&task=viewMenu'); } $document =& JFactory::getDocument(); $document->setTitle(JText::_('View Menu Items')); $limitstart = JRequest::getVar('limitstart', '0', '', 'int'); $items =& $this->get('Items'); $pagination =& $this->get('Pagination'); $lists =& $this->_getViewLists(); $user =& JFactory::getUser(); require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'helper.php'; $menus = MenusHelper::getMenuTypelist(); // Ensure ampersands and double quotes are encoded in item titles foreach ($items as $i => $item) { $treename = $item->treename; $treename = JFilterOutput::ampReplace($treename); $treename = str_replace('"', '"', $treename); $items[$i]->treename = $treename; } //Ordering allowed ? $ordering = $lists['order'] == 'm.ordering'; JHTML::_('behavior.tooltip'); $this->assignRef('items', $items); $this->assignRef('pagination', $pagination); $this->assignRef('lists', $lists); $this->assignRef('user', $user); $this->assignRef('menutype', $menutype); $this->assignRef('ordering', $ordering); $this->assignRef('limitstart', $limitstart); $this->assignRef('menus', $menus); parent::display($tpl); }
/** * set up the menu when viewing the list of connections */ function setConnectionsToolbar() { JToolBarHelper::title(JText::_('CONNECTIONS'), 'fabrik-connection.png'); JToolBarHelper::makeDefault('setdefault'); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'Copy'); JToolBarHelper::deleteList(); JToolBarHelper::editListX(); JToolBarHelper::addNewX(); }
function _DEFAULT(&$client) { JToolBarHelper::title(JText::_('Template Manager'), 'thememanager'); if ($client->id == '1') { JToolBarHelper::makeDefault('publish'); } else { JToolBarHelper::makeDefault(); } JToolBarHelper::editListX('edit', 'Edit'); //JToolBarHelper::addNew(); JToolBarHelper::help('screen.templates'); }
/** * Hellos view display method * @return void **/ function display($tpl = null) { JToolBarHelper::title(JText::_('Saisonliste'), 'generic.png'); JToolBarHelper::makeDefault('setdefault'); JToolBarHelper::deleteList(); JToolBarHelper::editListX(); JToolBarHelper::addNewX(); // Get data from the model $items =& $this->get('Data'); $this->assignRef('items', $items); parent::display($tpl); }
public function registerToolbar() { JToolBarHelper::title(JText::_('COM_EASYDISCUSS_CATEGORIES_TITLE'), 'category'); JToolBarHelper::custom('home', 'arrow-left', '', JText::_('COM_EASYDISCUSS_TOOLBAR_HOME'), false); JToolBarHelper::divider(); JToolBarHelper::makeDefault('makeDefault'); JToolBarHelper::divider(); JToolbarHelper::publishList(); JToolbarHelper::unpublishList(); JToolBarHelper::divider(); JToolbarHelper::addNew(); JToolbarHelper::deleteList(); }
function addToolbar() { $group = JRequest::getWord('group', ''); JToolBarHelper::title(JText::_('CONFIGURATION_MANAGER')); if ($group == 'integrate') { JToolBarHelper::makeDefault('makedefault'); } elseif ($group == 'permissions') { JToolBarHelper::addNew('add', 'Add User'); JToolBarHelper::deleteList(); } else { JToolBarHelper::save(); } }
/** * The default method that will display the output of this view which is called by * Joomla * * @param string template Template file name **/ public function display($tpl = null) { if ($this->getLayout() == 'edit') { $this->_displayEditLayout($tpl); return; } // Set the titlebar text JToolBarHelper::title(JText::_('COM_COMMUNITY_TEMPLATES'), 'templates'); // Add the necessary buttons JToolBarHelper::makeDefault('publish'); $this->assign('config', CFactory::getConfig()); $this->assign('templates', $this->getTemplates()); parent::display($tpl); }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { require_once JPATH_COMPONENT . '/helpers/languages.php'; $canDo = LanguagesHelper::getActions(); JToolBarHelper::title(JText::_('COM_LANGUAGES_VIEW_INSTALLED_TITLE'), 'langmanager.png'); if ($canDo->get('core.edit.state')) { JToolBarHelper::makeDefault('installed.setDefault'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_languages'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_INSTALLED'); }
/** * Control Panel display function * * @param template $tpl */ public function display($tpl = null) { global $mainframe; $document = JFactory::getDocument(); $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('Language Title')); // Set toolbar items for the page JToolBarHelper::title(JText::_('Language Title'), 'language'); JToolBarHelper::makeDefault('languages.setDefault', 'Default', 'Set as frontend default language'); JToolBarHelper::deleteList('Are you sure you want to delete the selcted items?', 'languages.remove'); JToolBarHelper::custom('languages.save', 'save', 'save', 'Save', false); JToolBarHelper::custom('languages.apply', 'apply', 'apply', 'Apply', false); JToolBarHelper::addNew('languages.add'); JToolBarHelper::cancel('languages.cancel'); JToolBarHelper::help('screen.languages', 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', false); JSubMenuHelper::addEntry(JText::_('Language Configuration'), 'index2.php?option=com_joomfish&task=languages.show', true); 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); $option = JRequest::getCmd('option', 'com_joomfish'); $filter_state = $mainframe->getUserStateFromRequest($option . 'filter_state', 'filter_state', '', 'word'); $filter_catid = $mainframe->getUserStateFromRequest($option . 'filter_catid', 'filter_catid', 0, 'int'); $filter_order = $mainframe->getUserStateFromRequest($option . 'filter_order', 'filter_order', 'lext.ordering', 'cmd'); $filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', '', 'word'); $search = $mainframe->getUserStateFromRequest($option . 'search', 'search', '', 'string'); $search = JString::strtolower($search); $languages = $this->get('data'); $defaultLanguage = $this->get('defaultLanguage'); $this->assignRef('items', $languages); $this->assignRef('defaultLanguage', $defaultLanguage); $jfManager = JoomFishManager::getInstance(); $this->assignRef('overwriteGlobalConfig', $jfManager->getCfg('overwriteGlobalConfig')); $this->assignRef('directory_flags', $jfManager->getCfg('directory_flags')); // state filter $lists['state'] = JHTML::_('grid.state', $filter_state); // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; // search filter $lists['search'] = $search; $this->assignRef('user', JFactory::getUser()); $this->assignRef('lists', $lists); JHTML::_('behavior.tooltip'); parent::display($tpl); }
function display($tpl = null) { global $mainframe; $this->_layout = 'default'; /* * Set toolbar items for the page */ $menutype = $mainframe->getUserStateFromRequest('com_menus.menutype', 'menutype', 'mainmenu', 'menutype'); JToolBarHelper::title(JText::_('MENU ITEM MANAGER') . ': <small><small>[' . $menutype . ']</small></small>', 'menu.png'); $bar =& JToolBar::getInstance('toolbar'); $bar->appendButton('Link', 'menus', 'Menus', "index.php?option=com_menus"); JToolBarHelper::makeDefault('setdefault'); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::customX('move', 'move.png', 'move_f2.png', 'Move', true); JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'Copy', true); JToolBarHelper::trash(); JToolBarHelper::editListX(); JToolBarHelper::addNewX('newItem'); JToolBarHelper::help('screen.menus'); $document =& JFactory::getDocument(); $document->setTitle(JText::_('View Menu Items')); $limitstart = JRequest::getVar('limitstart', '0', '', 'int'); $items =& $this->get('Items'); $pagination =& $this->get('Pagination'); $lists =& $this->_getViewLists(); $user =& JFactory::getUser(); // Ensure ampersands and double quotes are encoded in item titles foreach ($items as $i => $item) { $treename = $item->treename; $treename = JFilterOutput::ampReplace($treename); $treename = str_replace('"', '"', $treename); $items[$i]->treename = $treename; } //Ordering allowed ? $ordering = $lists['order'] == 'm.ordering'; JHTML::_('behavior.tooltip'); $this->assignRef('items', $items); $this->assignRef('pagination', $pagination); $this->assignRef('lists', $lists); $this->assignRef('user', $user); $this->assignRef('menutype', $menutype); $this->assignRef('ordering', $ordering); $this->assignRef('limitstart', $limitstart); parent::display($tpl); }
function display($tpl = null) { $option = JRequest::getCmd('option'); JHTML::_('behavior.tooltip'); $layout = $this->getLayout(); if ($layout == 'form') { // Obtiene título de la interfaz if (JRequest::getCmd('task') != 'add') { $title = JText::_('EDIT'); } else { $title = JText::_('NEW'); } $title .= ' ' . JText::_('CP.CURRENCY'); // Se colocan los botones en la barra de herramientas JToolBarHelper::customX('save2new', 'save-new', '', JText::_('CP.SAVE_AND_NEW'), false); JToolBarHelper::divider(); JToolBarHelper::save('save'); JToolBarHelper::apply('apply'); JToolBarHelper::cancel('cancel'); JRequest::setVar('hidemainmenu', 1); } else { // 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(); JToolBarHelper::makeDefault('setdefault'); JToolBarHelper::divider(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::divider(); JToolBarHelper::deleteList(JText::_('CP.CONFIRM_DELETE')); JToolBarHelper::editListX(); JToolBarHelper::addNewX(); JSubMenuHelper::addEntry(JText::_('CP.PRINCIPAL_VIEW'), 'index.php?option=' . $option); // Obtiene título de la interfaz $title = JText::_('CP.CATALOGOPLANES') . ' :: ' . JText::_('CP.CURRENCY'); } // Agrega título de la plantilla JToolBarHelper::title($title, 'currency.png'); $this->assignRef('viewName', $this->getName()); parent::display($tpl); }
function display($tpl = null) { /* * Set toolbar items for the page */ JToolBarHelper::makeDefault('setDefault'); JToolBarHelper::spacer(); JToolBarHelper::deleteList('', 'remove'); JToolBarHelper::editList('template'); JToolBarHelper::help('screen.installer2'); // Get data from the model $items =& $this->get('Items'); $pagination =& $this->get('Pagination'); $this->assignRef('items', $items); $this->assignRef('pagination', $pagination); parent::showHeader(); parent::display($tpl); }
/** * The default method that will display the output of this view which is called by * Joomla * * @param string template Template file name **/ public function display($tpl = null) { // Load tooltips JHTML::_('behavior.tooltip', '.hasTip'); if ($this->getLayout() == 'edit') { $this->_displayEditLayout($tpl); return; } // Set the titlebar text JToolBarHelper::title(JText::_('COM_COMMUNITY_TEMPLATES'), 'templates'); // Add the necessary buttons JToolBarHelper::back(JText::_('COM_COMMUNITY_HOME'), 'index.php?option=com_community'); JToolBarHelper::divider(); JToolBarHelper::makeDefault('publish'); $this->assignRef('config', CFactory::getConfig()); $this->assignRef('templates', $this->getTemplates()); parent::display($tpl); }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { require_once JPATH_COMPONENT . '/helpers/languages.php'; $canDo = LanguagesHelper::getActions(); JToolBarHelper::title(JText::_('COM_LANGUAGES_VIEW_INSTALLED_TITLE'), 'langmanager.png'); if ($canDo->get('core.edit.state')) { JToolBarHelper::makeDefault('installed.setDefault'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { // Add install languages link to the lang installer component $bar = JToolBar::getInstance('toolbar'); $bar->appendButton('Link', 'extension', 'COM_LANGUAGES_INSTALL', 'index.php?option=com_installer&view=languages'); JToolBarHelper::divider(); JToolBarHelper::preferences('com_languages'); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_INSTALLED'); }
public static function _THEMES() { $user = JFactory::getUser(); $document = JFactory::getDocument(); $document->addStyleSheet('components/com_formmaker/FormMakerLogo.css'); JToolBarHelper::title('Form Maker: Themes'); if ($user->authorise('core.create', 'com_formmaker')) { JToolBarHelper::addNew('add_themes'); } if ($user->authorise('core.edit', 'com_formmaker')) { JToolBarHelper::editList('edit_themes'); JToolBarHelper::makeDefault(); } if ($user->authorise('core.delete', 'com_formmaker')) { JToolBarHelper::deleteList('Are you sure you want to delete? ', 'remove_themes'); } if (JFactory::getUser()->authorise('core.admin', 'com_formmaker')) { JToolBarHelper::preferences('com_formmaker'); } }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JToolBarHelper::title(' ' . JText::_('JTTHEMES_TITLE'), 'theme'); if ($this->canDo->get('core.create')) { JToolBarHelper::addNew('add', 'JTOOLBAR_NEW'); } if ($this->canDo->get('core.edit')) { JToolBarHelper::editList('edit', 'JTOOLBAR_EDIT'); } if ($this->canDo->get('core.delete')) { JToolBarHelper::deleteList('JT_CONFIRMDELETE', 'delete', 'JTOOLBAR_DELETE'); } if ($this->canDo->get('core.edit.state')) { JToolBarHelper::divider(); JToolBarHelper::makeDefault('setDefault', 'JTTHEME_TOOLBAR_SET_HOME'); } if ($this->canDo->get('core.edit')) { JToolBarHelper::divider(); JToolBarHelper::custom('edit_css', 'editcss', 'editcss', 'JTOOLBAR_EDIT_CSS', true); } JToolBarHelper::divider(); JToolBarHelper::help('JoaktreeManuel', true, 'http://joaktree.com/index.php/en/joaktree/manual'); }
function display($tpl = null) { // Load the helper(s) $this->loadHelper('html'); $model = VmModel::getModel(); $layoutName = $this->getLayout(); $this->task = JRequest::getWord('task', $layoutName); if ($layoutName == 'edit') { $this->perms = Permissions::getInstance(); VmConfig::loadJLang('com_virtuemart_config'); $shoppergroup = $model->getShopperGroup(); $this->SetViewTitle('SHOPPERGROUP', $shoppergroup->shopper_group_name); if (Vmconfig::get('multix', 'none') !== 'none') { $this->vendorList = ShopFunctions::renderVendorList($shoppergroup->virtuemart_vendor_id, false); } $this->shoppergroup = $shoppergroup; $this->addStandardEditViewCommands(); } else { if (JRequest::getWord('format', '') === 'raw') { $tpl = 'results'; } else { $this->SetViewTitle(); JToolBarHelper::makeDefault(); $this->addStandardDefaultViewCommands(); } $this->addStandardDefaultViewLists($model); $this->loadHelper('permissions'); $this->showVendors = Permissions::getInstance()->check('admin'); $this->shoppergroups = $model->getShopperGroups(false, true); $this->pagination = $model->getPagination(); } parent::display($tpl); if ($tpl === 'results') { echo $this->AjaxScripts(); } }
protected function addToolbar() { JToolBarHelper::back('Home', 'index.php?option=com_awdwall&controller=awdwall'); JToolBarHelper::makeDefault('Default', 'Default'); JToolBarHelper::save('save', 'JTOOLBAR_SAVE'); }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { require_once JPATH_COMPONENT . '/helpers/menus.php'; $canDo = MenusHelper::getActions($this->state->get('filter.parent_id')); JToolBarHelper::title(JText::_('COM_MENUS_VIEW_ITEMS_TITLE'), 'menumgr.png'); if ($canDo->get('core.create')) { JToolBarHelper::addNew('item.add'); } if ($canDo->get('core.edit')) { JToolBarHelper::editList('item.edit'); } if ($canDo->get('core.edit.state')) { JToolBarHelper::divider(); JToolBarHelper::publish('items.publish', 'JTOOLBAR_PUBLISH', true); JToolBarHelper::unpublish('items.unpublish', 'JTOOLBAR_UNPUBLISH', true); } if (JFactory::getUser()->authorise('core.admin')) { JToolBarHelper::divider(); JToolBarHelper::checkin('items.checkin', 'JTOOLBAR_CHECKIN', true); } if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'items.delete', 'JTOOLBAR_EMPTY_TRASH'); } elseif ($canDo->get('core.edit.state')) { JToolBarHelper::trash('items.trash'); } if ($canDo->get('core.edit.state')) { JToolBarHelper::makeDefault('items.setDefault', 'COM_MENUS_TOOLBAR_SET_HOME'); JToolBarHelper::divider(); } if (JFactory::getUser()->authorise('core.admin')) { JToolBarHelper::custom('items.rebuild', 'refresh.png', 'refresh_f2.png', 'JToolbar_Rebuild', false); JToolBarHelper::divider(); } JToolBarHelper::help('JHELP_MENUS_MENU_ITEM_MANAGER'); }
function _DEFAULT() { JToolBarHelper::title(JText::_('Language Manager'), 'langmanager.png'); JToolBarHelper::makeDefault('publish'); JToolBarHelper::help('screen.languages'); }
function _LANGSLIST() { JToolBarHelper::title(_JOOMLMS_COMP_NAME . ': ' . _JLMS_LANG_TBR_LIST, 'langmanager.png'); JToolBarHelper::makeDefault('default_lang'); JToolBarHelper::customX('import_lang', 'restore.png', 'restore_f2.png', _JLMS_IMPORT, false); JToolBarHelper::spacer(); JToolBarHelper::custom('export_lang', 'upload.png', 'upload_f2.png', _JLMS_EXPORT, true); JToolBarHelper::spacer(); JToolBarHelper::divider(); JToolBarHelper::spacer(); JToolBarHelper::deleteList('', 'del_lang', _JLMS_DELETE); JToolBarHelper::spacer(); }
function TREE_TEMPLATES() { JToolBarHelper::title(JText::_('Tree templates'), 'thememanager'); JToolBarHelper::addNew('new_template'); JToolBarHelper::makeDefault('default_template'); JToolBarHelper::editList('template_pages'); JToolBarHelper::deleteList('', 'delete_template'); }