示例#1
0
文件: view.html.php 项目: gokuale/vel
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('VEL_PAGE_TITLE'), 'caution');
     JToolBarHelper::divider();
     $canDo = VelNoticeHelper::getActions();
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_velnotice');
     }
     jimport('joomla.language.help');
     jimport('joomla.i18n.help');
     JToolBarHelper::help('help', true);
 }
示例#2
0
文件: view.html.php 项目: gokuale/vel
 function display($tpl = null)
 {
     $this->form = $this->get("Form");
     $this->item = $this->get("Item");
     $this->state = $this->get("State");
     $this->setLayout('edit');
     $document = JFactory::getDocument();
     $document->addStyleSheet(JURI::base() . 'components/com_velnotice/css/icons.css');
     JHTML::_('stylesheet', 'icons.css', JURI::base() . 'components/com_velnotice/css/');
     $this->canDo = VelNoticeHelper::getActions($this->item->id);
     $this->addToolbar();
     parent::display($tpl);
 }
示例#3
0
文件: view.html.php 项目: gokuale/vel
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $canDo = VelNoticeHelper::getActions();
     JToolBarHelper::title(JText::_('VEL_IGNORE_LIST'), 'caution');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('velignore.add', 'JTOOLBAR_NEW');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('velignore.edit');
     }
     JToolBarHelper::publishList('velignores.publish', 'JTOOLBAR_PUBLISH', true);
     JToolBarHelper::unpublishList('velignores.unpublish', 'JTOOLBAR_UNPUBLISH', true);
     if ($canDo->get('core.delete')) {
         JToolBarHelper::archiveList('velignores.archive', 'JTOOLBAR_ARCHIVE');
         JToolBarHelper::trash('velignores.trash');
         JToolBarHelper::deleteList('', 'velignores.delete', 'JTOOLBAR_EMPTY_TRASH');
     }
     JToolBarHelper::divider();
     jimport('joomla.language.help');
     jimport('joomla.i18n.help');
     JToolBarHelper::help('help', true);
 }