/** * Method for display page. * * @param boolean $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise an Exception object. */ function display($tpl = null) { // Set the toolbar JToolBarHelper::title(JText::_('JSN_EASYSLIDER_UPDATE_PRODUCT')); // Add assets JSNEasySliderHelper::addAssets(); // Display the template parent::display($tpl); }
public function display($tpl = null) { // Get config parameters $config = JSNConfigHelper::get(); // Set the toolbar JToolBarHelper::title(JText::_('JSN_PAGEBUILDER_BUILDER_UPDATE_TITLE')); // Add assets JSNHtmlAsset::addStyle(JSN_URL_ASSETS . '/joomlashine/css/jsn-gui.css'); $redirAfterFinish = 'index.php?option=com_pagebuilder&view=about'; $this->assign('redirAfterFinish', $redirAfterFinish); // Display the template parent::display($tpl); }
public function display($tpl = null) { // Get config parameters $config = JSNConfigHelper::get(); // Set the toolbar JToolBarHelper::title(JText::_('JSN_POWERADMIN_UPDATE_TITLE')); // Add assets $document = JFactory::getDocument(); JSNHtmlAsset::addStyle(PoweradminHelper::makeUrlWithSuffix(JSN_URL_ASSETS . '/joomlashine/css/jsn-gui.css')); $redirAfterFinish = 'index.php?option=com_poweradmin&view=about'; $this->assign('redirAfterFinish', $redirAfterFinish); // Display the template parent::display($tpl); }
/** * Method for display page. * * @param boolean $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. */ public function display($tpl = null) { // Get config parameters $config = JSNConfigHelper::get(); // Set toolbar title JToolBarHelper::title(JText::_('JSN_MOBILIZE_PAGE_UPDATE_TITLE')); // Load assets JSNMobilizeHelper::loadAssets(); // Get messages $msgs = $config->get('disable_all_messages') ? '' : (count($msgs = JSNUtilsMessage::getList('EDIT')) ? JSNUtilsMessage::showMessages($msgs) : ''); // Assign variables for rendering $this->assignRef('msgs', $msgs); // Display the template parent::display($tpl); }
/** * Display method * * @return void */ function display($tpl = null) { // Get config parameters $config = JSNConfigHelper::get(); // Add assets $this->_document = JFactory::getDocument(); // Get messages $msgs = ''; if (!$config->get('disable_all_messages')) { $msgs = JSNUtilsMessage::getList('CONFIGURATION'); $msgs = count($msgs) ? JSNUtilsMessage::showMessages($msgs) : ''; } // Assign variables for rendering $this->assignRef('msgs', $msgs); $this->_addAssets(); $this->addToolbar(); // Display the template parent::display($tpl); }
/** * Execute and display a template script. * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @see fetch() * @since 11.1 */ function display($tpl = null) { // Get config parameters $config = JSNConfigHelper::get(); // Set the toolbar JToolBarHelper::title(JText::_('JSN_UNIFORM_UPDATE_PRODUCT')); // Load assets JSNUniformHelper::addAssets(); // Get messages $msgs = ''; if (!$config->get('disable_all_messages')) { $msgs = JSNUtilsMessage::getList('CONFIGURATION'); $msgs = count($msgs) ? JSNUtilsMessage::showMessages($msgs) : ''; } // Assign variables for rendering $this->assignRef('msgs', $msgs); // Display the template parent::display($tpl); }
/** * Method for display page. * * @param boolean $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise an Exception object. */ function display($tpl = null) { try { $this->state = $this->get('State'); $this->slider = $this->get('Item'); $this->form = $this->get('Form'); } catch (Exception $e) { throw $e; } $config = JSNConfigHelper::get(); // Get input object $input = JFactory::getApplication()->input; if (empty($this->slider->slider_id)) { $objJSNEasySliderSliders = new JSNEasySliderSliders(); $totalSliders = $objJSNEasySliderSliders->countSilderItems(); /*Check if it is FREE edition then show warning message to alert that FREE edition only allows create maximum of 3 sliders*/ $edition = defined('JSN_EASYSLIDER_EDITION') ? JSN_EASYSLIDER_EDITION : "free"; if (strtolower($edition) == 'free') { if ($totalSliders !== false && $totalSliders >= 3) { JFactory::getApplication()->redirect('index.php?option=com_easyslider&view=sliders'); return false; } } } // Setup toolbar $input->set('hidemainmenu', true); // Get messages $msgs = ''; if (!$config->get('disable_all_messages')) { $msgs = JSNUtilsMessage::getList('SLIDER'); $msgs = count($msgs) ? JSNUtilsMessage::showMessages($msgs) : ''; } // Assign variables for rendering $this->assignRef('msgs', $msgs); // Set the toolbar JToolBarHelper::title(JText::_('JSN_EASYSLIDER_EDIT_PRODUCT')); // Add assets JSNEasySliderHelper::addAssets(); $this->objUtils = new JSNEasySliderUtils(); // Display the template parent::display($tpl); }