english/administrator/components/com_banners/views/clients/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();
		JToolBarHelper::title(JText::_('COM_BANNERS_MANAGER_CLIENTS'), 'banners-clients.png');
		if ($canDo->get('core.create')) {
			JToolBarHelper::addNew('client.add');
		}
		if ($canDo->get('core.edit')) {
			JToolBarHelper::editList('client.edit');
		}
		if ($canDo->get('core.edit.state')) {
			JToolBarHelper::divider();
			JToolBarHelper::publish('clients.publish', 'JTOOLBAR_PUBLISH', true);
			JToolBarHelper::unpublish('clients.unpublish', 'JTOOLBAR_UNPUBLISH', true);
			JToolBarHelper::divider();
			JToolBarHelper::archiveList('clients.archive');
			JToolBarHelper::checkin('clients.checkin');
		}
		if ($canDo->get('core.edit.state')) {
			JToolBarHelper::trash('clients.trash');
		}
		if ( $canDo->get('core.delete')) {
			JToolBarHelper::deleteList('', 'clients.delete', 'JTOOLBAR_EMPTY_TRASH');
			JToolBarHelper::divider();
		}
		if ($canDo->get('core.admin')) {
			JToolBarHelper::preferences('com_banners');
			JToolBarHelper::divider();
		}
		JToolBarHelper::help('JHELP_COMPONENTS_BANNERS_CLIENTS');
	}
protected function addToolbar ( ) { require_once JPATH_COMPONENT . '/helpers/banners.php' ; $ canDo = BannersHelper :: getActions ( ) ; JToolBarHelper :: title ( JText :: _ ( 'COM_BANNERS_MANAGER_CLIENTS' ) , 'banners-clients.png' ) ; if ( $ canDo -> get ( 'core.create' ) ) { JToolBarHelper :: addNew ( 'client.add' ) ; } if ( $ canDo -> get ( 'core.edit' ) ) { JToolBarHelper :: editList ( 'client.edit' ) ; } if ( $ canDo -> get ( 'core.edit.state' ) ) { JToolBarHelper :: divider ( ) ; JToolBarHelper :: publish ( 'clients.publish' , 'JTOOLBAR_PUBLISH' , true ) ; JToolBarHelper :: unpublish ( 'clients.unpublish' , 'JTOOLBAR_UNPUBLISH' , true ) ; JToolBarHelper :: divider ( ) ; JToolBarHelper :: archiveList ( 'clients.archive' ) ; JToolBarHelper :: checkin ( 'clients.checkin' ) ; } if ( $ canDo -> get ( 'core.edit.state' ) ) { JToolBarHelper :: trash ( 'clients.trash' ) ; } if ( $ canDo -> get ( 'core.delete' ) ) { JToolBarHelper :: deleteList ( '' , 'clients.delete' , 'JTOOLBAR_EMPTY_TRASH' ) ; JToolBarHelper :: divider ( ) ; } if ( $ canDo -> get ( 'core.admin' ) ) { JToolBarHelper :: preferences ( 'com_banners' ) ; JToolBarHelper :: divider ( ) ; } JToolBarHelper :: help ( 'JHELP_COMPONENTS_BANNERS_CLIENTS' ) ; }
Add the page title and toolbar.
Add the page title and toolbar .