english/administrator/components/com_languages/views/languages/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()
	{
		require_once JPATH_COMPONENT.'/helpers/languages.php';
		$canDo	= LanguagesHelper::getActions();
		JToolBarHelper::title(JText::_('COM_LANGUAGES_VIEW_LANGUAGES_TITLE'), 'langmanager.png');
		if ($canDo->get('core.create')) {
			JToolBarHelper::addNew('language.add');
		}
		if ($canDo->get('core.edit')) {
			JToolBarHelper::editList('language.edit');
			JToolBarHelper::divider();
		}
		if ($canDo->get('core.edit.state')) {
			if ($this->state->get('filter.published') != 2) {
				JToolBarHelper::publishList('languages.publish');
				JToolBarHelper::unpublishList('languages.unpublish');
			}
		}
		if ($this->state->get('filter.published') == -2 && $canDo->get('core.delete')) {
			JToolBarHelper::deleteList('', 'languages.delete','JTOOLBAR_EMPTY_TRASH');
			JToolBarHelper::divider();
		} else if ($canDo->get('core.edit.state')) {
			JToolBarHelper::trash('languages.trash');
			JToolBarHelper::divider();
		}
		if ($canDo->get('core.admin')) {
			JToolBarHelper::preferences('com_languages');
			JToolBarHelper::divider();
		}
		JToolBarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_CONTENT');
	}
protected function addToolbar ( ) { require_once JPATH_COMPONENT . '/helpers/languages.php' ; $ canDo = LanguagesHelper :: getActions ( ) ; JToolBarHelper :: title ( JText :: _ ( 'COM_LANGUAGES_VIEW_LANGUAGES_TITLE' ) , 'langmanager.png' ) ; if ( $ canDo -> get ( 'core.create' ) ) { JToolBarHelper :: addNew ( 'language.add' ) ; } if ( $ canDo -> get ( 'core.edit' ) ) { JToolBarHelper :: editList ( 'language.edit' ) ; JToolBarHelper :: divider ( ) ; } if ( $ canDo -> get ( 'core.edit.state' ) ) { if ( $ this -> state -> get ( 'filter.published' ) != 2 ) { JToolBarHelper :: publishList ( 'languages.publish' ) ; JToolBarHelper :: unpublishList ( 'languages.unpublish' ) ; } } if ( $ this -> state -> get ( 'filter.published' ) == - 2 && $ canDo -> get ( 'core.delete' ) ) { JToolBarHelper :: deleteList ( '' , 'languages.delete' , 'JTOOLBAR_EMPTY_TRASH' ) ; JToolBarHelper :: divider ( ) ; } else if ( $ canDo -> get ( 'core.edit.state' ) ) { JToolBarHelper :: trash ( 'languages.trash' ) ; JToolBarHelper :: divider ( ) ; } if ( $ canDo -> get ( 'core.admin' ) ) { JToolBarHelper :: preferences ( 'com_languages' ) ; JToolBarHelper :: divider ( ) ; } JToolBarHelper :: help ( 'JHELP_EXTENSIONS_LANGUAGE_MANAGER_CONTENT' ) ; }
Add the page title and toolbar.
Add the page title and toolbar .