/**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $canDo = PluginsHelper::getActions();
     JToolBarHelper::title(JText::sprintf('COM_PLUGINS_MANAGER_PLUGIN', JText::_($this->item->name)), 'plugin');
     // If not checked out, can save the item.
     if ($canDo->get('core.edit')) {
         JToolBarHelper::apply('plugin.apply');
         JToolBarHelper::save('plugin.save');
     }
     JToolBarHelper::cancel('plugin.cancel', 'JTOOLBAR_CLOSE');
     JToolBarHelper::divider();
     // Get the help information for the plugin item.
     $lang = JFactory::getLanguage();
     $help = $this->get('Help');
     if ($lang->hasKey($help->url)) {
         $debug = $lang->setDebug(false);
         $url = JText::_($help->url);
         $lang->setDebug($debug);
     } else {
         $url = null;
     }
     JToolBarHelper::help($help->key, false, $url);
 }
Beispiel #2
0
 /**
  * Setup the Toolbar
  */
 protected function _setToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $canDo = PluginsHelper::getActions();
     JToolBarHelper::title(JText::_('Plugn_Manager_Plugin'), 'plugin');
     // If not checked out, can save the item.
     if ($canDo->get('core.edit')) {
         JToolBarHelper::apply('plugin.apply', 'JToolbar_Apply');
         JToolBarHelper::save('plugin.save', 'JToolbar_Save');
     }
     JToolBarHelper::cancel('plugin.cancel', 'JToolbar_Close');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.plugins.edit');
 }
Beispiel #3
0
 /**
  * Setup the Toolbar.
  */
 protected function _setToolbar()
 {
     $state = $this->get('State');
     $canDo = PluginsHelper::getActions();
     JToolBarHelper::title(JText::_('Plugn_Manager_Plugins'), 'plugin');
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::custom('plugins.publish', 'publish.png', 'publish_f2.png', 'JToolbar_Enable', true);
         JToolBarHelper::custom('plugins.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JToolbar_Disable', true);
     }
     /**
      * Don't think we need an Edit button if names are clickable.
      */
     //if ($canDo->get('core.edit')) {
     //	JToolBarHelper::editList('plugin.edit');
     // }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_plugins');
     }
     JToolBarHelper::help('screen.plugins');
 }
 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     $canDo = PluginsHelper::getActions();
     JToolbarHelper::title(JText::_('COM_PLUGINS_MANAGER_PLUGINS'), 'plugin');
     if ($canDo->get('core.edit')) {
         JToolbarHelper::editList('plugin.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('plugins.publish', 'JTOOLBAR_ENABLE', true);
         JToolbarHelper::unpublish('plugins.unpublish', 'JTOOLBAR_DISABLE', true);
         JToolbarHelper::checkin('plugins.checkin');
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_plugins');
     }
     JToolbarHelper::help('JHELP_EXTENSIONS_PLUGIN_MANAGER');
     JHtmlSidebar::setAction('index.php?option=com_plugins&view=plugins');
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_enabled', JHtml::_('select.options', PluginsHelper::publishedOptions(), 'value', 'text', $this->state->get('filter.enabled'), true));
     JHtmlSidebar::addFilter(JText::_('COM_PLUGINS_OPTION_FOLDER'), 'filter_folder', JHtml::_('select.options', PluginsHelper::folderOptions(), 'value', 'text', $this->state->get('filter.folder')));
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     $this->sidebar = JHtmlSidebar::render();
 }
Beispiel #5
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = PluginsHelper::getActions();
     JToolBarHelper::title(JText::_('COM_PLUGINS_MANAGER_PLUGINS'), 'plugin');
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('plugin.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::publish('plugins.publish', 'JTOOLBAR_ENABLE', true);
         JToolBarHelper::unpublish('plugins.unpublish', 'JTOOLBAR_DISABLE', true);
         JToolBarHelper::divider();
         JToolBarHelper::checkin('plugins.checkin');
     }
     if ($canDo->get('core.admin')) {
         JToolBarHelper::divider();
         JToolBarHelper::preferences('com_plugins');
     }
     JToolBarHelper::divider();
     JToolBarHelper::help('JHELP_EXTENSIONS_PLUGIN_MANAGER');
 }