Beispiel #1
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  * @since	1.0
  */
 protected function addToolbar()
 {
     $bar = JToolBar::getInstance('sender');
     $bar->appendButton('Link', 'export', 'COM_NEWSLETTER_NEWSLETTER_SEND', '#');
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }
Beispiel #2
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  * @since	1.0
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_NEWSLETTER_BOUNCEDS_TITLE'), 'article.png');
     $bar = JToolBar::getInstance('bounceds');
     $bar->appendButton('Standard', 'process', 'JTOOLBAR_PROCESS', 'bounceds.process', false);
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }
Beispiel #3
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  * @since	1.0
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_NEWSLETTER_LOG_TITLE'), 'article.png');
     $bar = JToolBar::getInstance('logs');
     $bar->appendButton('Standard', 'trash', 'JTOOLBAR_DELETE', 'logs.delete', false);
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }
Beispiel #4
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  * @since	1.0
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_NEWSLETTER_AUTOMAILINGS_TITLE'), 'article.png');
     $bar = JToolBar::getInstance('automailings');
     $bar->appendButton('Popup', 'new', 'JTOOLBAR_NEW', 'index.php?option=com_newsletter&view=automailing&tmpl=component', 350, 175, 0, 0);
     $bar->appendButton('Link', 'edit', 'JTOOLBAR_EDIT', 'automailing.edit', false);
     $bar->appendButton('Standard', 'trash', 'JTOOLBAR_DELETE', 'automailings.delete', false);
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }
Beispiel #5
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.0
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_NEWSLETTER_CONFIGURATION_TITLE'), 'article.png');
     $bar = JToolBar::getInstance('toolbar');
     if (AclHelper::canConfigureComponent()) {
         $bar->appendButton('Standard', 'apply', 'JTOOLBAR_APPLY', 'configuration.apply', false);
     }
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }
Beispiel #6
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  * @since	1.0
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_NEWSLETTER_CONFLICT_TITLE'), 'article.png');
     $bar = JToolBar::getInstance();
     // delete all/selected;
     $bar->appendButton('Standard', 'trash', 'COM_NEWSLETTER_DELETE_SUBS', 'conflicts.deletesubs', false);
     // merge selected. preserve J! user's data
     $bar->appendButton('Standard', 'trash', 'COM_NEWSLETTER_MERGE_USERS', 'conflicts.mergeusers', false);
     // merge selected. preserve J! subscriber's data
     $bar->appendButton('Standard', 'trash', 'COM_NEWSLETTER_MERGE_SUBS', 'conflicts.mergesubs', false);
     // TODO merge history (yes/no)
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }
Beispiel #7
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  * @since	1.0
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_NEWSLETTER_QUEUE_TITLE'), 'article.png');
     $bar = JToolBar::getInstance();
     $bar->appendButton('Custom', '', 'preloader', '');
     $bar->appendButton('Link', 'messaging', 'COM_NEWSLETTER_PROCESS_QUEUE', '#');
     $bar->appendButton('Link', 'alert', 'COM_NEWSLETTER_PROCESS_BOUNCES', '#');
     $bar->appendButton('Separator', null, '30');
     $bar->appendButton('Standard', 'trash', 'JTOOLBAR_DELETE', 'queues.delete', false);
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }
Beispiel #8
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  * @since	1.0
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_NEWSLETTER_DASHBOARD_TITLE'), 'article.png');
     $bar = JToolBar::getInstance();
     $bar->appendButton('Link', 'alert', 'COM_NEWSLETTER_NOTIFICATIONS', 'index.php?option=com_newsletter&view=logs');
     JToolBarHelper::custom('', 'progress', '', '', false);
     $bar = MigurToolBar::getInstance('newsletters-toolbar');
     $bar->appendButton('Link', 'new', 'COM_NEWSLETTER_NEWSLETTER_CREATE', 'index.php?option=com_newsletter&view=newsletter');
     $bar->appendButton('Popup', 'export', 'COM_NEWSLETTER_NEWSLETTER_SEND', 'index.php?option=com_newsletter&view=sender&tmpl=component', 920, 450, 0, 0);
     $bar = MigurToolBar::getInstance('subscribers-toolbar');
     $bar->appendButton('Popup', 'new', 'COM_NEWSLETTER_SUBSCRIBER_CREATE', 'index.php?option=com_newsletter&view=subscriber&tmpl=component', 400, 220, 0, 0);
     $bar->appendButton('Popup', 'new', 'COM_NEWSLETTER_LIST_CREATE', 'index.php?option=com_newsletter&view=list&tmpl=component', 1000, 600, 0, 0);
     $bar = MigurToolBar::getInstance('config-toolbar');
     $bar->appendButton('Popup', 'export', 'COM_NEWSLETTER_EXTENSIONS_INSTALL', 'index.php?option=com_newsletter&view=extension&layout=install&tmpl=component', 350, 150, 0, 0);
     $bar->appendButton('Link', 'options', 'COM_NEWSLETTER_CONFIGURATION', 'index.php?option=com_newsletter&view=configuration');
     $bar = MigurToolBar::getInstance('help-toolbar');
     $bar->appendButton('Popup', 'publish', 'COM_NEWSLETTER_ABOUT', 'http://migur.com/products/newsletter', 800, 600, 0, 0);
     $bar->appendButton('MigurHelp', 'help', 'COM_NEWSLETTER_HELP', 'http://migur.com/support/documentation/newsletter');
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }
Beispiel #9
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  * @since	1.0
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_NEWSLETTER_NEWSLETTERS_TITLE'), 'article.png');
     $bar = JToolBar::getInstance('newsletters');
     $bar->appendButton('Link', 'default', 'COM_NEWSLETTER_SHOW_STATISTICS', 'index.php?option=com_newsletter&view=statistic&tmpl=component');
     if (AclHelper::actionIsAllowed('newsletter.add')) {
         $bar->appendButton('Standard', 'new', 'JTOOLBAR_NEW', 'newsletter.add', false);
         $bar->appendButton('Standard', 'copy', 'JTOOLBAR_SAVE_AS_COPY', 'newsletter.save2copy', false);
     }
     $bar->appendButton('Standard', 'trash', 'JTOOLBAR_DELETE', 'newsletters.delete', false);
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }
Beispiel #10
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  * @since	1.0
  */
 protected function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_NEWSLETTER_SUBSCRIBERS_TITLE'), 'article.png');
     $bar = MigurToolBar::getInstance('subscribers', null, '');
     if (AclHelper::actionIsAllowed('list.edit')) {
         $bar->appendButton('Link', 'cancel', 'COM_NEWSLETTER_REMOVE_FROM_LIST', 'list.unbindgroup', false);
         $bar->appendButton('Link', 'copy', 'COM_NEWSLETTER_ASSIGN_TO_LIST', 'list.assigngroup', false);
     }
     $bar->appendButton('Popup', 'new', 'JTOOLBAR_NEW', 'index.php?option=com_newsletter&task=subscriber.add&tmpl=component', 400, 220, 0, 0);
     $bar->appendButton('Standard', 'trash', 'JTOOLBAR_DELETE', 'subscribers.delete', false);
     $bar->appendButton('Standard', 'unpublish', 'JTOOLBAR_DISABLE', 'subscribers.unpublish', false);
     $bar->appendButton('Standard', 'publish', 'JTOOLBAR_ENABLE', 'subscribers.publish', false);
     $bar->appendButton('MigurHelp', 'help', 'COM_NEWSLETTER_HELP', 'http://migur.com/support/documentation/newsletter');
     $bar = MigurToolBar::getInstance('lists');
     if (AclHelper::actionIsAllowed('list.add')) {
         $bar->appendButton('Popup', 'new', 'JTOOLBAR_NEW', 'index.php?option=com_newsletter&view=list&tmpl=component', 1000, 600, 0, 0);
     }
     $bar->appendButton('Standard', 'trash', 'JTOOLBAR_DELETE', 'lists.delete', false);
     if (AclHelper::actionIsAllowed('list.edit')) {
         $bar->appendButton('Standard', 'unpublish', 'JTOOLBAR_DISABLE', 'lists.unpublish', false);
         $bar->appendButton('Standard', 'publish', 'JTOOLBAR_ENABLE', 'lists.publish', false);
     }
     $bar->appendButton('MigurHelp', 'help', 'COM_NEWSLETTER_HELP', 'http://migur.com/support/documentation/newsletter');
     // Load the submenu.
     NewsletterHelper::addSubmenu(JRequest::getVar('view'));
 }