예제 #1
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/jnotification.php';
     $state = $this->get('State');
     $canDo = JNotificationHelper::getActions($state->get('filter.category_id'));
     $user = JFactory::getUser();
     JToolBarHelper::title(JText::_('COM_JNOTIFICATION_MANAGER_SEARCH_NOTIFICATIONS'), 'jnotification');
     if ($canDo->get('core.edit')) {
         JToolBarHelper::cancel('search.cancel');
     }
     JToolBarHelper::help('JHELP_COMPONENTS_JNOTIFICATION_LINKS_EDIT', true);
 }
예제 #2
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/jnotification.php';
     $state = $this->get('State');
     $canDo = JNotificationHelper::getActions($state->get('filter.category_id'));
     $user = JFactory::getUser();
     if ($canDo->get('core.edit')) {
         JRequest::setVar('hidemainmenu', true);
         JToolBarHelper::title(JText::_('COM_JNOTIFICATION_SELECT_JDOMAIN'), 'jnotification');
         JToolBarHelper::apply('domains.save');
         JToolBarHelper::cancel('domains.cancel');
         JToolBarHelper::help('JHELP_COMPONENTS_JNOTIFICATION_LINKS_EDIT', true);
     }
 }
예제 #3
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/jnotification.php';
     $state = $this->get('State');
     $canDo = JNotificationHelper::getActions($state->get('filter.category_id'));
     $user = JFactory::getUser();
     JToolBarHelper::title(JText::_('COM_JNOTIFICATION_MANAGER_INBOX_NOTIFICATIONS'), 'jnotification');
     if ($canDo->get('core.edit')) {
         if (count($this->domains) > 0) {
             JToolBarHelper::addNew('notification.add');
         }
         JToolBarHelper::editList('notification.edit');
         JToolBarHelper::custom('inbox.display', 'inbox', 'inbox', 'Inbox', false);
         JToolBarHelper::custom('outbox.display', 'outbox', '', 'Outbox', false);
         JToolBarHelper::custom('domain.add', 'domain16', '', 'Add Domain', false);
         JToolBarHelper::custom('search.display', 'search', '', 'Search', false);
     }
     JToolBarHelper::help('JHELP_COMPONENTS_JNOTIFICATION_LINKS_EDIT', true);
 }