function addToolbar() { require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'phocaguestbookcp.php'; $state = $this->get('State'); $canDo = PhocaGuestbookCpHelper::getActions(); JToolBarHelper::title(JText::_('COM_PHOCAGUESTBOOK_PG_CONTROL_PANEL'), 'phoca.png'); if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_phocaguestbook'); JToolBarHelper::divider(); } JToolBarHelper::help('screen.phocaguestbook', true); }