public function onProfilesEdit() { parent::onEdit(); JToolBarHelper::title(JText::_('AKEEBA') . ': <small>' . JText::_('PROFILE_PAGETITLE_EDIT') . '</small>', 'akeeba'); }
public function onEmailtemplatesEdit() { if (J2Store::isPro()) { parent::onEdit(); $bar = JToolBar::getInstance('toolbar'); // Add "Export to CSV" $link = JURI::getInstance(); $query = $link->getQuery(true); $query['option'] = 'com_j2store'; $query['view'] = 'emailtemplates'; $query['task'] = 'sendtest'; $link->setQuery($query); JToolBarHelper::divider(); $icon = 'mail'; $bar->appendButton('Link', $icon, JText::_('J2STORE_EMAILTEMPLATE_SEND_TEST_EMAIL_TO_YOURSELF'), $link->toString()); } else { $this->noToolbar(); } }
public function onCouponsEdit() { if (J2Store::isPro()) { $app = JFactory::getApplication(); parent::onEdit(); JToolBarHelper::divider(); $bar = JToolBar::getInstance('toolbar'); $bar->appendButton('Link', 'list', JText::_('J2STORE_COUPON_HISTORY'), 'index.php?option=com_j2store&view=coupon&task=history&coupon_id=' . $app->input->getInt('id')); } else { $this->noToolbar(); } }
public function onEmailtemplatesEdit() { parent::onEdit(); if (!isset($this->_isNew)) { JToolBarHelper::divider(); if (version_compare(JVERSION, '3.0', 'ge')) { $options['class'] = 'envelope'; } else { $options['class'] = 'preview'; } $options['a.task'] = 'testtemplate'; $options['a.href'] = '#'; $options['text'] = JText::_('COM_AKEEBASUBS_EMAILTEMPLATES_TESTTEMPLATE'); $this->addCustomBtn('test-template', $options); } }