Exemplo n.º 1
0
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     // Set title.
     $title = AKDEV ? ucfirst($this->getName()) . ' ' . JText::_($this->text_prefix . '_TITLE_ITEM_EDIT') : JText::_($this->text_prefix . '_' . strtoupper($this->getName()) . '_TITLE_ITEM_EDIT');
     AKToolBarHelper::title($title, 'article-add.png');
     parent::addToolbar();
 }
Exemplo n.º 2
0
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     AKToolBarHelper::title(JText::_('COM_REMOTEIMAGE_TITLE_MANAGER'), 'article-add.png');
     $canDo = RMHelper::getActions($this->option);
     //parent::addToolbar();
     if ($canDo->get('core.admin')) {
         AKToolBarHelper::preferences($this->option);
     }
 }
Exemplo n.º 3
0
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     AKToolBarHelper::title('Item' . ' ' . JText::_('COM_WEBGALLERY_TITLE_ITEM_EDIT'), 'article-add.png');
     parent::addToolbar();
 }
Exemplo n.º 4
0
 /**
  * Add the page title and toolbar.
  */
 protected function addToolbar()
 {
     $app = JFactory::getApplication();
     $state = $this->get('State');
     $canDo = AKHelper::getActions($this->option);
     $user = JFactory::getUser();
     $filter_state = $this->state->get('filter');
     // Get the toolbar object instance
     $bar = JToolBar::getInstance('toolbar');
     // Toolbar Buttons
     // ========================================================================
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew($this->item_name . '.add');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList($this->item_name . '.edit');
     }
     if ($canDo->get('core.create')) {
         JToolBarHelper::custom($this->list_name . '.duplicate', 'copy.png', 'copy_f2.png', 'JTOOLBAR_DUPLICATE', true);
     }
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::divider();
         JToolBarHelper::publish($this->list_name . '.publish', 'JTOOLBAR_PUBLISH', true);
         JToolBarHelper::unpublish($this->list_name . '.unpublish', 'JTOOLBAR_UNPUBLISH', true);
         JToolbarHelper::checkin($this->list_name . '.checkin');
         if ($this->state->get('items.nested')) {
             JToolBarHelper::custom($this->list_name . '.rebuild', 'refresh.png', 'refresh_f2.png', 'JTOOLBAR_REBUILD', false);
         }
         JToolBarHelper::divider();
     }
     if (JArrayHelper::getValue($filter_state, 'a.published') == -2 && $canDo->get('core.delete') || $this->get('no_trash') || AKDEBUG) {
         JToolbarHelper::deleteList(JText::_('LIB_WINDWALKER_TOOLBAR_CONFIRM_DELETE'), $this->list_name . '.delete');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash($this->list_name . '.trash');
     }
     // Add a batch modal button
     $batch = AKHelper::_('path.get', null, $this->option) . '/views/' . $this->list_name . '/tmpl/default_batch.php';
     if ($canDo->get('core.edit') && JVERSION >= 3 && JFile::exists($batch)) {
         AKToolbarHelper::modal('JTOOLBAR_BATCH', 'batchModal');
     }
     if ($canDo->get('core.admin') && $app->isAdmin()) {
         AKToolBarHelper::preferences($this->option);
     }
 }