english/administrator/components/com_banners/views/tracks/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/banners.php';
		$canDo	= BannersHelper::getActions($this->state->get('filter.category_id'));
		JToolBarHelper::title(JText::_('COM_BANNERS_MANAGER_TRACKS'), 'banners-tracks.png');
		$bar = JToolBar::getInstance('toolbar');
			$bar->appendButton('Popup', 'export', 'JTOOLBAR_EXPORT', 'index.php?option=com_banners&amp;view=download&amp;tmpl=component',600,300);
		$document = JFactory::getDocument();
		$app = JFactory::getApplication();
		if ($canDo->get('core.delete')) {
			$bar->appendButton('Confirm','COM_BANNERS_DELETE_MSG', 'delete', 'COM_BANNERS_TRACKS_DELETE', 'tracks.delete',false);
			JToolBarHelper::divider();
		}
		if ($canDo->get('core.admin')) {
			JToolBarHelper::preferences('com_banners');
			JToolBarHelper::divider();
		}
		JToolBarHelper::help('JHELP_COMPONENTS_BANNERS_TRACKS');
	}
protected function addToolbar ( ) { require_once JPATH_COMPONENT . '/helpers/banners.php' ; $ canDo = BannersHelper :: getActions ( $ this -> state -> get ( 'filter.category_id' ) ) ; JToolBarHelper :: title ( JText :: _ ( 'COM_BANNERS_MANAGER_TRACKS' ) , 'banners-tracks.png' ) ; $ bar = JToolBar :: getInstance ( 'toolbar' ) ; $ bar -> appendButton ( 'Popup' , 'export' , 'JTOOLBAR_EXPORT' , 'index.php?option=com_banners&amp;view=download&amp;tmpl=component' , 600 , 300 ) ; $ document = JFactory :: getDocument ( ) ; $ app = JFactory :: getApplication ( ) ; if ( $ canDo -> get ( 'core.delete' ) ) { $ bar -> appendButton ( 'Confirm' , 'COM_BANNERS_DELETE_MSG' , 'delete' , 'COM_BANNERS_TRACKS_DELETE' , 'tracks.delete' , false ) ; JToolBarHelper :: divider ( ) ; } if ( $ canDo -> get ( 'core.admin' ) ) { JToolBarHelper :: preferences ( 'com_banners' ) ; JToolBarHelper :: divider ( ) ; } JToolBarHelper :: help ( 'JHELP_COMPONENTS_BANNERS_TRACKS' ) ; }
Add the page title and toolbar.
Add the page title and toolbar .