コード例 #1
0
ファイル: view.html.php プロジェクト: sansandeep143/av
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'phocagallerycp.php';
     $state = $this->get('State');
     $canDo = PhocaGalleryCpHelper::getActions();
     JToolBarHelper::title(JText::_('COM_PHOCAGALLERY_PG_CONTROL_PANEL'), 'phoca.png');
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_phocagallery');
         JToolBarHelper::divider();
     }
     JToolBarHelper::help('screen.phocagallery', true);
 }
コード例 #2
0
ファイル: view.html.php プロジェクト: 01J/furcom
 protected function addToolBar()
 {
     require_once JPATH_COMPONENT . '/helpers/phocagallerycp.php';
     $canDo = PhocaGalleryCpHelper::getActions(NULL);
     JToolBarHelper::title(JText::_('COM_PHOCAGALLERY_PG_ERROR'), 'warning');
     // This button is unnecessary but it is displayed because Joomla! design bug
     $bar = JToolBar::getInstance('toolbar');
     $dhtml = '<a href="index.php?option=com_phocagallery" class="btn btn-small"><i class="icon-home-2" title="' . JText::_('COM_PHOCAGALLERY_CONTROL_PANEL') . '"></i> ' . JText::_('COM_PHOCAGALLERY_CONTROL_PANEL') . '</a>';
     $bar->appendButton('Custom', $dhtml);
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_phocagallery');
     }
     JToolBarHelper::help('screen.phocagallery', true);
 }
コード例 #3
0
ファイル: view.html.php プロジェクト: VierlingMt/joomla-3.x
 protected function addToolBar()
 {
     require_once JPATH_COMPONENT . '/helpers/phocagallerycp.php';
     $canDo = PhocaGalleryCpHelper::getActions(NULL);
     JToolBarHelper::title(JText::_('COM_PHOCAGALLERY_PG_INFO'), 'info');
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_phocagallery');
     }
     JToolBarHelper::help('screen.phocagallery', true);
 }