english/administrator/components/com_plugins/views/plugins/view.html.php
/**
	 * Add the page title and toolbar.
	 *
	 * @since	1.6
	 */
Add the page title and toolbar.
Add the page title and toolbar .
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');
	}
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' ) ; }
Add the page title and toolbar.
Add the page title and toolbar .