english/administrator/components/com_templates/views/styles/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	= 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') && $isSite) {
			JToolBarHelper::custom('styles.duplicate', 'copy.png', 'copy_f2.png', 'JTOOLBAR_DUPLICATE', true);
			JToolBarHelper::divider();
		}
		if ($canDo->get('core.delete') && $isSite) {
			JToolBarHelper::deleteList('', 'styles.delete');
			JToolBarHelper::divider();
		}
		if ($canDo->get('core.admin')) {
			JToolBarHelper::preferences('com_templates');
			JToolBarHelper::divider();
		}
		JToolBarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_STYLES');
	}
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' ) && $ isSite ) { JToolBarHelper :: custom ( 'styles.duplicate' , 'copy.png' , 'copy_f2.png' , 'JTOOLBAR_DUPLICATE' , true ) ; JToolBarHelper :: divider ( ) ; } if ( $ canDo -> get ( 'core.delete' ) && $ isSite ) { JToolBarHelper :: deleteList ( '' , 'styles.delete' ) ; JToolBarHelper :: divider ( ) ; } if ( $ canDo -> get ( 'core.admin' ) ) { JToolBarHelper :: preferences ( 'com_templates' ) ; JToolBarHelper :: divider ( ) ; } JToolBarHelper :: help ( 'JHELP_EXTENSIONS_TEMPLATE_MANAGER_STYLES' ) ; }
Add the page title and toolbar.
Add the page title and toolbar .