english/administrator/components/com_menus/views/menus/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/menus.php';
		$canDo	= MenusHelper::getActions($this->state->get('filter.parent_id'));
		JToolBarHelper::title(JText::_('COM_MENUS_VIEW_MENUS_TITLE'), 'menumgr.png');
		if ($canDo->get('core.create')) {
			JToolBarHelper::addNew('menu.add');
		}
		if ($canDo->get('core.edit')) {
			JToolBarHelper::editList('menu.edit');
		}
		if ($canDo->get('core.delete')) {
			JToolBarHelper::divider();
			JToolBarHelper::deleteList('', 'menus.delete');
		}
		JToolBarHelper::custom('menus.rebuild', 'refresh.png', 'refresh_f2.png', 'JTOOLBAR_REBUILD', false);
		if ($canDo->get('core.admin')) {
			JToolBarHelper::divider();
			JToolBarHelper::preferences('com_menus');
		}
		JToolBarHelper::divider();
		JToolBarHelper::help('JHELP_MENUS_MENU_MANAGER');
	}
protected function addToolbar ( ) { require_once JPATH_COMPONENT . '/helpers/menus.php' ; $ canDo = MenusHelper :: getActions ( $ this -> state -> get ( 'filter.parent_id' ) ) ; JToolBarHelper :: title ( JText :: _ ( 'COM_MENUS_VIEW_MENUS_TITLE' ) , 'menumgr.png' ) ; if ( $ canDo -> get ( 'core.create' ) ) { JToolBarHelper :: addNew ( 'menu.add' ) ; } if ( $ canDo -> get ( 'core.edit' ) ) { JToolBarHelper :: editList ( 'menu.edit' ) ; } if ( $ canDo -> get ( 'core.delete' ) ) { JToolBarHelper :: divider ( ) ; JToolBarHelper :: deleteList ( '' , 'menus.delete' ) ; } JToolBarHelper :: custom ( 'menus.rebuild' , 'refresh.png' , 'refresh_f2.png' , 'JTOOLBAR_REBUILD' , false ) ; if ( $ canDo -> get ( 'core.admin' ) ) { JToolBarHelper :: divider ( ) ; JToolBarHelper :: preferences ( 'com_menus' ) ; } JToolBarHelper :: divider ( ) ; JToolBarHelper :: help ( 'JHELP_MENUS_MENU_MANAGER' ) ; }
Add the page title and toolbar.
Add the page title and toolbar .