/** * Add the page title and toolbar. * * @return void * * @since 1.6 */ protected function addToolbar() { $canDo = JHelperContent::getActions('com_templates'); JToolbarHelper::title(JText::_('COM_TEMPLATES_MANAGER_STYLES'), 'eye 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') || $canDo->get('core.options')) { JToolbarHelper::preferences('com_templates'); JToolbarHelper::divider(); } JToolbarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_STYLES'); JHtmlSidebar::setAction('index.php?option=com_templates&view=styles'); }
/** * Add the page title and toolbar. * * @return void * * @since 1.6 */ protected function addToolbar() { $canDo = JHelperContent::getActions('com_languages'); if ((int) $this->state->get('client_id') === 1) { JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_INSTALLED_ADMIN_TITLE'), 'comments-2 langmanager'); } else { JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_INSTALLED_SITE_TITLE'), 'comments-2 langmanager'); } 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'); // Switch administrator language if ($this->state->get('client_id', 0) == 1) { JToolbarHelper::custom('installed.switchadminlanguage', 'refresh', 'refresh', 'COM_LANGUAGES_SWITCH_ADMIN', false); JToolbarHelper::divider(); } $bar->appendButton('Link', 'upload', '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'); $this->sidebar = JHtmlSidebar::render(); }
/** * Sets up the toolbar for backend editing. * * @return void */ protected function addToolbar() { $user = JFactory::getUser(); parent::addToolbar(); if ($user->authorise('status.edit', 'com_monitor')) { JToolbarHelper::makeDefault('status.default'); JToolbarHelper::custom('status.open', 'eye-open', '', 'COM_MONITOR_STATUS_TASK_OPEN'); JToolbarHelper::custom('status.close', 'eye-close', '', 'COM_MONITOR_STATUS_TASK_CLOSE'); } }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { // Set toolbar items for the page JToolbarHelper::title(JText::_('COM_USERIDEAS_STATUSES_MANAGER')); JToolbarHelper::addNew('status.add'); JToolbarHelper::editList('status.edit'); JToolbarHelper::divider(); JToolbarHelper::makeDefault('statuses.setDefault', 'COM_USERIDEAS_DEFAULT'); JToolbarHelper::divider(); JToolbarHelper::deleteList(JText::_("COM_USERIDEAS_DELETE_ITEMS_QUESTION"), "statuses.delete"); JToolbarHelper::divider(); JToolbarHelper::custom('statuses.backToDashboard', "dashboard", "", JText::_("COM_USERIDEAS_DASHBOARD"), false); }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $canDo = JHelperContent::getActions('com_languages'); JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_INSTALLED_TITLE'), 'comments-2 langmanager'); 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'); $this->sidebar = JHtmlSidebar::render(); }
/** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { $canDo = JHelperContent::getActions('com_languages'); JToolbarHelper::title(JText::_('COM_LANGUAGES_VIEW_INSTALLED_TITLE'), 'comments-2 langmanager'); 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', 'upload', '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'); $this->sidebar = JHtmlSidebar::render(); }
protected function addToolbar() { $canDo = JHelperContent::getActions('com_tz_portfolio_plus'); $bar = JToolBar::getInstance(); JToolBarHelper::title(JText::_('COM_TZ_PORTFOLIO_PLUS_TEMPLATE_STYLES_MANAGER'), 'palette'); if ($canDo->get('core.edit.state')) { JToolbarHelper::makeDefault('template_styles.setDefault', 'COM_TEMPLATES_TOOLBAR_SET_HOME'); JToolbarHelper::divider(); } JToolBarHelper::editList('template_style.edit'); JToolBarHelper::divider(); if ($canDo->get('core.create')) { JToolbarHelper::custom('template_styles.duplicate', 'copy.png', 'copy_f2.png', 'JTOOLBAR_DUPLICATE', true); } if ($canDo->get('core.delete')) { JToolBarHelper::deleteList(JText::_('COM_TZ_PORTFOLIO_PLUS_QUESTION_DELETE'), 'template_styles.delete'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_tz_portfolio_plus'); JToolBarHelper::divider(); } $doc = JFactory::getDocument(); // If the joomla is version 3.0 if (COM_TZ_PORTFOLIO_PLUS_JVERSION_COMPARE) { $doc->addStyleSheet(JURI::base(true) . '/components/com_tz_portfolio_plus/fonts/font-awesome-4.5.0/css/font-awesome.min.css'); } $doc->addStyleSheet(JURI::base(true) . '/components/com_tz_portfolio_plus/css/style.min.css'); JToolBarHelper::help('JHELP_CONTENT_ARTICLE_MANAGER', false, 'http://wiki.templaza.com/TZ_Portfolio_Plus_v3:Administration#Tags'); // Special HTML workaround to get send popup working $docClass = ' class="btn btn-small"'; $youtubeIcon = '<i class="tz-icon-youtube tz-icon-14"></i> '; $wikiIcon = '<i class="tz-icon-wikipedia tz-icon-14"></i> '; $youtubeTitle = JText::_('COM_TZ_PORTFOLIO_PLUS_VIDEO_TUTORIALS'); $wikiTitle = JText::_('COM_TZ_PORTFOLIO_PLUS_WIKIPEDIA_TUTORIALS'); $videoTutorial = '<a' . $docClass . ' onclick="Joomla.popupWindow(\'http://www.youtube.com/channel/UCykS6SX6L2GOI-n3IOPfTVQ/videos\', \'' . $youtubeTitle . '\', 800, 500, 1)"' . ' href="#">' . $youtubeIcon . $youtubeTitle . '</a>'; $wikiTutorial = '<a' . $docClass . ' onclick="Joomla.popupWindow(\'http://wiki.templaza.com/Main_Page\', \'' . $wikiTitle . '\', 800, 500, 1)"' . ' href="#">' . $wikiIcon . $wikiTitle . '</a>'; $bar->appendButton('Custom', $videoTutorial, 'youtube'); $bar->appendButton('Custom', $wikiTutorial, 'wikipedia'); JHtmlSidebar::addFilter(JText::_('COM_TZ_PORTFOLIO_PLUS_OPTION_SELECT_TEMPLATE'), 'filter_template', JHtml::_('select.options', TZ_Portfolio_PlusHelperTemplates::getTemplateOptions(), 'value', 'text', $this->state->get('filter.template'))); }
/** * Add the page title and toolbar. * * @return void * * @since 1.6 */ protected function addToolbar() { $canDo = JHelperContent::getActions('com_menus'); $user = JFactory::getUser(); // Get the toolbar object instance $bar = JToolBar::getInstance('toolbar'); JToolbarHelper::title(JText::_('COM_MENUS_VIEW_ITEMS_TITLE'), 'list menumgr'); 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::publish('items.publish', 'JTOOLBAR_PUBLISH', true); JToolbarHelper::unpublish('items.unpublish', 'JTOOLBAR_UNPUBLISH', true); } if (JFactory::getUser()->authorise('core.admin')) { 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'); } if (JFactory::getUser()->authorise('core.admin')) { JToolbarHelper::custom('items.rebuild', 'refresh.png', 'refresh_f2.png', 'JToolbar_Rebuild', false); } // Add a batch button if ($user->authorise('core.create', 'com_menus') && $user->authorise('core.edit', 'com_menus') && $user->authorise('core.edit.state', 'com_menus')) { JHtml::_('bootstrap.modal', 'collapseModal'); $title = JText::_('JTOOLBAR_BATCH'); // Instantiate a new JLayoutFile instance and render the batch button $layout = new JLayoutFile('joomla.toolbar.batch'); $dhtml = $layout->render(array('title' => $title)); $bar->appendButton('Custom', $dhtml, 'batch'); } JToolbarHelper::help('JHELP_MENUS_MENU_ITEM_MANAGER'); }
/** * 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')); $user = JFactory::getUser(); // Get the toolbar object instance $bar = JToolBar::getInstance('toolbar'); 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::publish('items.publish', 'JTOOLBAR_PUBLISH', true); JToolbarHelper::unpublish('items.unpublish', 'JTOOLBAR_UNPUBLISH', true); } if (JFactory::getUser()->authorise('core.admin')) { 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'); } if (JFactory::getUser()->authorise('core.admin')) { JToolbarHelper::custom('items.rebuild', 'refresh.png', 'refresh_f2.png', 'JToolbar_Rebuild', false); } // Add a batch button if ($user->authorise('core.create', 'com_menus') && $user->authorise('core.edit', 'com_menus') && $user->authorise('core.edit.state', 'com_menus')) { JHtml::_('bootstrap.modal', 'collapseModal'); $title = JText::_('JTOOLBAR_BATCH'); // Instantiate a new JLayoutFile instance and render the batch button $layout = new JLayoutFile('joomla.toolbar.batch'); $dhtml = $layout->render(array('title' => $title)); $bar->appendButton('Custom', $dhtml, 'batch'); } JToolbarHelper::help('JHELP_MENUS_MENU_ITEM_MANAGER'); JHtmlSidebar::setAction('index.php?option=com_menus&view=items'); JHtmlSidebar::addFilter('', 'menutype', JHtml::_('select.options', JHtml::_('menu.menus'), 'value', 'text', $this->state->get('filter.menutype')), false); JHtmlSidebar::addFilter(JText::_('COM_MENUS_OPTION_SELECT_LEVEL'), 'filter_level', JHtml::_('select.options', $this->f_levels, 'value', 'text', $this->state->get('filter.level'))); JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('archived' => false)), 'value', 'text', $this->state->get('filter.published'), true)); JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'))); JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_LANGUAGE'), 'filter_language', JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language'))); }
protected function addToolbar() { $canDo = JHelperContent::getActions('com_tz_portfolio'); $user = JFactory::getUser(); $bar = JToolBar::getInstance(); JToolBarHelper::title(JText::_('COM_TZ_PORTFOLIO_TEMPLATES_MANAGER')); if ($canDo->get('core.edit.state')) { JToolbarHelper::makeDefault('templates.setDefault', 'COM_TEMPLATES_TOOLBAR_SET_HOME'); JToolbarHelper::divider(); } JToolBarHelper::addNew('template.add'); JToolBarHelper::editList('template.edit'); JToolBarHelper::divider(); // JToolBarHelper::publish('templates.publish'); // JToolBarHelper::unpublish('templates.unpublish'); if ($canDo->get('core.create')) { JToolbarHelper::custom('templates.duplicate', 'copy.png', 'copy_f2.png', 'JTOOLBAR_DUPLICATE', true); } if ($canDo->get('core.delete')) { JToolBarHelper::deleteList(JText::_('COM_TZ_PORTFOLIO_QUESTION_DELETE'), 'templates.delete'); JToolBarHelper::divider(); } if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_tz_portfolio'); JToolBarHelper::divider(); } $doc = JFactory::getDocument(); // If the joomla is version 3.0 if (COM_TZ_PORTFOLIO_JVERSION_COMPARE) { $doc->addStyleSheet(JURI::base(true) . '/components/com_tz_portfolio/fonts/font-awesome-v3.0.2/css/font-awesome.min.css'); } $doc->addStyleSheet(JURI::base(true) . '/components/com_tz_portfolio/css/style.min.css'); // // Complie button // $compileTitle = JText::_('COM_TZ_PORTFOLIO_COMPILE_LESS_TO_CSS'); // $compileIcon = '<i class="icon-check"></i> '; // $compileClass = ' class="btn btn-small"'; // // //// If the joomla's version is more than or equal to 3.0 // if(!COM_TZ_PORTFOLIO_JVERSION_COMPARE){ // $compileIcon = '<span class="tz-icon-compile"></span>'; // $compileClass = null; // } // // $compileButton = '<a'.$compileClass.' onclick="Joomla.submitbutton(\'action.lesscall\')" href="#">' // .$compileIcon.$compileTitle.'</a> '; // // // JS Compress button // $compressTitle = JText::_('COM_TZ_PORTFOLIO_COMPRESSION_JS'); // $compressIcon = '<i class="icon-check"></i> '; // $compressClass = ' class="btn btn-small"'; // // //// If the joomla's version is more than or equal to 3.0 // if(!COM_TZ_PORTFOLIO_JVERSION_COMPARE){ // $compressIcon = '<span class="tz-icon-compress"></span>'; // $compressClass = null; // } // // $compressButton = '<a'.$compressClass.' onclick="Joomla.submitbutton(\'action.jscompress\')" href="#">' // .$compressIcon.$compressTitle.'</a> '; // // $bar -> appendButton('Custom',$compileButton,'compile'); // $bar -> appendButton('Custom',$compressButton,'compress'); // JToolBarHelper::divider(); JToolBarHelper::help('JHELP_CONTENT_ARTICLE_MANAGER', false, 'http://wiki.templaza.com/TZ_Portfolio_v3:Administration#Tags'); // Special HTML workaround to get send popup working $docClass = ' class="btn btn-small"'; $youtubeIcon = '<i class="tz-icon-youtube tz-icon-14"></i> '; $wikiIcon = '<i class="tz-icon-wikipedia tz-icon-14"></i> '; $youtubeTitle = JText::_('COM_TZ_PORTFOLIO_VIDEO_TUTORIALS'); $wikiTitle = JText::_('COM_TZ_PORTFOLIO_WIKIPEDIA_TUTORIALS'); //// If the joomla's version is more than or equal to 3.0 if (!COM_TZ_PORTFOLIO_JVERSION_COMPARE) { $youtubeIcon = '<span class="tz-icon-youtube" title="' . $youtubeTitle . '"></span>'; $wikiIcon = '<span class="tz-icon-wikipedia" title="' . $wikiTitle . '"></span>'; $docClass = null; } $videoTutorial = '<a' . $docClass . ' onclick="Joomla.popupWindow(\'http://www.youtube.com/channel/UCykS6SX6L2GOI-n3IOPfTVQ/videos\', \'' . $youtubeTitle . '\', 800, 500, 1)"' . ' href="#">' . $youtubeIcon . $youtubeTitle . '</a>'; $wikiTutorial = '<a' . $docClass . ' onclick="Joomla.popupWindow(\'http://wiki.templaza.com/Main_Page\', \'' . $wikiTitle . '\', 800, 500, 1)"' . ' href="#">' . $wikiIcon . $wikiTitle . '</a>'; $bar->appendButton('Custom', $videoTutorial, 'youtube'); $bar->appendButton('Custom', $wikiTutorial, 'wikipedia'); // $state = array( 'P' => JText::_('JPUBLISHED'), 'U' => JText::_('JUNPUBLISHED')); // JHtmlSidebar::addFilter( // JText::_('JOPTION_SELECT_PUBLISHED'), // 'filter_state', // JHtml::_('select.options',$state,'value','text',$this -> state -> filter_state) // ); }
<?php /** * @version 1.5 * @package com_translationsmanager * @author Ifan Evans * @copyright Copyright (C) 2007 Ifan Evans. All rights reserved. * @license GNU/GPL * @bugs - please report to post@ffenest.co.uk */ defined('_JEXEC') or die('Restricted access'); // TOOLBAR JToolbarHelper::title(JText::_('Translation Manager'), 'langmanager.png'); JToolbarHelper::custom('files', 'edit', '', 'View Files'); JToolbarHelper::makeDefault(); JToolbarHelper::archiveList('package', 'Package'); JToolbarHelper::divider(); JToolbarHelper::deleteList(JText::_('Confirm Delete XML'), 'removexml'); JToolbarHelper::editList('editxml'); JToolbarHelper::addNew('addxml'); JToolbarHelper::divider(); // ! configure/preferences check will be deprecated is_callable(array('JToolbarHelper', 'preferences')) ? JToolbarHelper::preferences('com_translationsmanager', 400, 600) : JToolbarHelper::configuration('com_translationsmanager', 400, 600); // build a submenu $submenu = ' <div class="submenu-box"> <div class="submenu-pad"> <ul id="submenu">'; foreach (array('*' => JText::_('Any Client')) + $this->options['clients'] as $k => $v) { $class = $k == $this->options['filter_client'] ? ' class="active"' : ''; $submenu .= "\n\t\t\t" . '<li><a href="index.php?option=com_translationsmanager&filter_client=' . $k . '"' . $class . '>' . $v . '</a></li>';
/** * Add the page title, submenu and toolbar. * */ protected function addToolbar() { $jinput = JFactory::getApplication()->input; $layout = $jinput->getCmd('layout', ''); $canDo = BwPostmanHelper::getActions(0, 'template'); // Get document object, set document title and add css $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_BWPOSTMAN_TPL')); $document->addStyleSheet(JURI::root(true) . '/administrator/components/com_bwpostman/assets/css/bwpostman_backend.css'); switch ($layout) { case 'uploadtpl': $alt = "COM_BWPOSTMAN_BACK"; $bar = JToolBar::getInstance('toolbar'); $backlink = 'index.php?option=com_bwpostman&view=templates'; $bar->appendButton('Link', 'arrow-left', $alt, $backlink); JToolBarHelper::title(JText::_('COM_BWPOSTMAN_TPL_UPLOADTPL'), 'upload'); JToolBarHelper::spacer(); JToolBarHelper::divider(); JToolBarHelper::spacer(); break; case 'installtpl': $alt = "COM_BWPOSTMAN_BACK"; $bar = JToolBar::getInstance('toolbar'); $backlink = 'index.php?option=com_bwpostman&view=templates'; $bar->appendButton('Link', 'arrow-left', $alt, $backlink); JToolBarHelper::title(JText::_('COM_BWPOSTMAN_TPL_INSTALLTPL'), 'plus'); JToolBarHelper::spacer(); JToolBarHelper::divider(); JToolBarHelper::spacer(); break; default: // Set toolbar title JToolBarHelper::title(JText::_('COM_BWPOSTMAN_TPL'), 'picture'); // Set toolbar items for the page if ($canDo->get('core.create')) { JToolBarHelper::custom('template.addhtml', 'calendar', 'HTML', 'COM_BWPOSTMAN_TPL_ADDHTML', false); } if ($canDo->get('core.create')) { JToolBarHelper::custom('template.addtext', 'new', 'TEXT', 'COM_BWPOSTMAN_TPL_ADDTEXT', false); } if ($canDo->get('core.edit') || $canDo->get('core.edit.own')) { JToolBarHelper::editList('template.edit'); } if ($canDo->get('core.edit.state')) { JToolbarHelper::makeDefault('template.setDefault', 'COM_BWPOSTMAN_TPL_SET_DEFAULT'); JToolBarHelper::publishList('templates.publish'); JToolBarHelper::unpublishList('templates.unpublish'); } JToolBarHelper::divider(); JToolBarHelper::spacer(); if ($canDo->get('core.archive')) { JToolBarHelper::archiveList('template.archive'); JToolBarHelper::divider(); JToolBarHelper::spacer(); } if ($canDo->get('core.manage')) { JToolBarHelper::checkin('templates.checkin'); JToolBarHelper::divider(); } // templateupload if ($canDo->get('core.create')) { $bar = JToolBar::getInstance('toolbar'); JHTML::_('behavior.modal'); $html = '<a class="btn btn-small" href="' . JURI::root(true) . '/administrator/index.php?option=com_bwpostman&view=templates&layout=uploadtpl" rel="{handler: \'iframe\', size: {x: 850, y: 500}}" ><span class="icon-upload"></span>' . JText::_('COM_BWPOSTMAN_TPL_INSTALLTPL') . '</a>'; $bar->appendButton('Custom', $html); } } JToolBarHelper::help(JText::_("COM_BWPOSTMAN_FORUM"), false, 'http://www.boldt-webservice.de/forum/bwpostman.html'); JToolBarHelper::spacer(); }
/** * Add the page title and toolbar. * * @return void * * @since 1.6 */ protected function addToolbar() { $canDo = JHelperContent::getActions('com_templates'); JToolbarHelper::title(JText::_('COM_TEMPLATES_MANAGER_STYLES'), 'eye 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'); JHtmlSidebar::setAction('index.php?option=com_templates&view=styles'); JHtmlSidebar::addFilter(JText::_('COM_TEMPLATES_FILTER_TEMPLATE'), 'filter_template', JHtml::_('select.options', TemplatesHelper::getTemplateOptions($this->state->get('filter.client_id')), 'value', 'text', $this->state->get('filter.template'))); JHtmlSidebar::addFilter(JText::_('JGLOBAL_FILTER_CLIENT'), 'filter_client_id', JHtml::_('select.options', TemplatesHelper::getClientOptions(), 'value', 'text', $this->state->get('filter.client_id'))); }