Esempio n. 1
0
 /**
  * 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_UPGRADE_PRODUCT'));
     // Add assets
     JSNEasySliderHelper::addAssets();
     // Display the template
     parent::display($tpl);
 }
Esempio n. 2
0
 public function display($tpl = null)
 {
     // Set the toolbar
     JToolbarHelper::title(JText::_('JSN_SAMPLE_UPGRADE_PRODUCT'));
     JSNHtmlAsset::addStyle(JSNPB_FRAMEWORK_ASSETS . '/joomlashine/css/jsn-gui.css');
     // Add assets
     $this->_document = JFactory::getDocument();
     $this->addToolbar();
     // Display the template
     parent::display($tpl);
 }
Esempio n. 3
0
 /**
  * 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_UPGRADE_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);
 }
Esempio n. 4
0
 /**
  * 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_UPGRADE_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);
 }
Esempio n. 5
0
 /**
  * Display method
  *
  * @return	void
  */
 function display($tpl = null)
 {
     // Get config parameters
     $config = JSNConfigHelper::get();
     // Set the toolbar
     JToolBarHelper::title(JText::_('JSN_SAMPLE_UPDATE_PRODUCT'));
     // 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) : '';
     }
     $this->assignRef('msgs', $msgs);
     $this->_addAssets();
     $this->addToolbar();
     // Display the template
     parent::display($tpl);
 }