english/administrator/components/com_templates/views/source/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()
	{
		JRequest::setVar('hidemainmenu', true);
		$user		= JFactory::getUser();
		$canDo		= TemplatesHelper::getActions();
		JToolBarHelper::title(JText::_('COM_TEMPLATES_MANAGER_EDIT_FILE'), 'thememanager');
		if ($canDo->get('core.edit')) {
			JToolBarHelper::apply('source.apply');
			JToolBarHelper::save('source.save');
		}
		JToolBarHelper::cancel('source.cancel');
		JToolBarHelper::divider();
		JToolBarHelper::help('JHELP_EXTENSIONS_TEMPLATE_MANAGER_TEMPLATES_EDIT_SOURCE');
	}
protected function addToolbar ( ) { JRequest :: setVar ( 'hidemainmenu' , true ) ; $ user = JFactory :: getUser ( ) ; $ canDo = TemplatesHelper :: getActions ( ) ; JToolBarHelper :: title ( JText :: _ ( 'COM_TEMPLATES_MANAGER_EDIT_FILE' ) , 'thememanager' ) ; if ( $ canDo -> get ( 'core.edit' ) ) { JToolBarHelper :: apply ( 'source.apply' ) ; JToolBarHelper :: save ( 'source.save' ) ; } JToolBarHelper :: cancel ( 'source.cancel' ) ; JToolBarHelper :: divider ( ) ; JToolBarHelper :: help ( 'JHELP_EXTENSIONS_TEMPLATE_MANAGER_TEMPLATES_EDIT_SOURCE' ) ; }
Add the page title and toolbar.
Add the page title and toolbar .
// Can save the item.