Пример #1
0
 /**
  * Display method
  *
  * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
  *
  * @return	void
  */
 public function display($tpl = null)
 {
     // Get config parameters
     $config = JSNConfigHelper::get();
     // Set the toolbar
     JToolbarHelper::title(JText::_('JSN_EASYSLIDER_CONFIGURATION_SETTING'));
     // Add toolbar menu
     JSNEasySliderHelper::addToolbarMenu();
     // Set the submenu
     JSNEasySliderHelper::addSubmenu('maintenance');
     // Get messages
     $msgs = '';
     if (!$config->get('disable_all_messages')) {
         $msgs = JSNUtilsMessage::getList('CONFIGURATION');
         $msgs = count($msgs) ? JSNUtilsMessage::showMessages($msgs) : '';
     }
     // Assign variables for rendering
     $this->msgs = $msgs;
     if (!empty($_GET['g']) && $_GET['g'] == 'data') {
         echo JSNHtmlAsset::loadScript('jsn/data', array('language' => array('JSN_EXTFW_GENERAL_CLOSE' => JText::_('JSN_EXTFW_GENERAL_CLOSE'))), true);
     }
     // Add assets
     JSNEasySliderHelper::addAssets();
     $this->_addAssets();
     // Display the template
     parent::display($tpl);
 }
Пример #2
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.
  */
 function display($tpl = null)
 {
     // Get config parameters
     $this->_document = JFactory::getDocument();
     $this->_config = JSNConfigHelper::get();
     // Initialize toolbar
     JSNMobilizeHelper::initToolbar('JSN_MOBILIZE_PAGE_CONFIGURATION_TITLE', 'mobilize-config', false);
     // Get messages
     $msgs = '';
     if (!$this->_config->get('disable_all_messages')) {
         $msgs = JSNUtilsMessage::getList('CONFIGURATION');
         $msgs = count($msgs) ? JSNUtilsMessage::showMessages($msgs) : '';
     }
     // Assign variables for rendering
     $this->assignRef('msgs', $msgs);
     // Load the submenu.
     $input = JFactory::getApplication()->input;
     JSNMobilizeHelper::addSubmenu($input->get('view', 'configuration'));
     if (!empty($_GET['g']) && $_GET['g'] == 'data') {
         echo JSNHtmlAsset::loadScript('jsn/data', array('language' => array('JSN_EXTFW_GENERAL_CLOSE' => JText::_('JSN_EXTFW_GENERAL_CLOSE'))), true);
     }
     // Load assets
     JSNMobilizeHelper::loadAssets();
     // Display the template
     parent::display($tpl);
 }
Пример #3
0
 /**
  * Display method
  *
  * @return	void
  */
 function display($tpl = null)
 {
     // Get config parameters
     $config = JSNConfigHelper::get('com_poweradmin');
     $this->_document = JFactory::getDocument();
     // Set the toolbar
     JToolBarHelper::title(JText::_('JSN_POWERADMIN_CONFIGURATION_TITLE'), 'maintenance');
     $this->_addAssets();
     // Display the template
     parent::display($tpl);
 }
Пример #4
0
 /**
  * Display method
  *
  * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
  *
  * @return	void
  */
 public function display($tpl = null)
 {
     // Get config parameters
     $config = JSNConfigHelper::get();
     $this->_document = JFactory::getDocument();
     JHtmlBehavior::framework();
     // Set the toolbar
     JToolBarHelper::title(JText::_('JSN_IMAGESHOW') . ': ' . JText::_('MAINTENANCE_CONFIGURATION_AND_MAINTENANCE'), 'maintenance');
     // Get messages
     $msgs = '';
     if (!$config->get('disable_all_messages')) {
         $msgs = JSNUtilsMessage::getList('CONFIGURATION_AND_MAINTENANCE');
         $msgs = count($msgs) ? JSNUtilsMessage::showMessages($msgs) : '';
     }
     // Assign variables for rendering
     $this->assignRef('msgs', $msgs);
     $this->_addAssets();
     $this->addToolbar();
     // Type of screen
     $type = JRequest::getWord('type', 'backup');
     $themeName = JRequest::getWord('theme_name');
     $sourceType = JRequest::getString('source_type');
     switch ($type) {
         case 'themeparameters':
             $this->addTemplatePath(JPATH_PLUGINS . DS . 'jsnimageshow' . DS . $themeName . DS . 'views' . DS . 'maintenance' . DS . 'tmpl');
             echo $this->loadTemplate('theme_config');
             break;
         case 'profileparameters':
             $this->addTemplatePath(JPATH_PLUGINS . DS . 'jsnimageshow' . DS . $sourceType . DS . 'views' . DS . 'maintenance' . DS . 'tmpl');
             echo $this->loadTemplate('source_config');
             break;
         case 'editprofile':
             $sourceID = JRequest::getInt('external_source_id');
             $countShowlist = JRequest::getInt('count_showlist');
             $imageSource = JSNISFactory::getSource($sourceType, 'external');
             $imageSource->_source['sourceTable']->load($sourceID);
             $this->assignRef('sourceInfo', $imageSource->_source['sourceTable']);
             $this->assignRef('countShowlist', $countShowlist);
             $this->addTemplatePath(JPATH_PLUGINS . DS . 'jsnimageshow' . DS . 'source' . $sourceType . DS . 'views' . DS . 'maintenance' . DS . 'tmpl');
             echo $this->loadTemplate('edit_source_profile');
             break;
         default:
             // Display the template
             parent::display($tpl);
             break;
     }
 }
Пример #5
0
 /**
  * Display method
  *
  * @param   string $tpl The name of the template file to parse; automatically searches through the template paths.
  *
  * @return    void
  */
 function display($tpl = null)
 {
     // Get config parameters
     $config = JSNConfigHelper::get();
     // Set the toolbar
     JToolbarHelper::title(JText::_('JSN_PAGEBUILDER_BUILDER_SETTING_TITLE'));
     // Assign variables for rendering
     $this->assignRef('msgs', $msgs);
     JSNHtmlAsset::addStyle(JSNPB_PLG_SYSTEM_ASSETS_URL . '/css/pagebuilder.css');
     JSNHtmlAsset::addStyle(JSNPB_ADMIN_URL . '/assets/css/configurations.css');
     JSNHtmlAsset::addScript(JSNPB_FRAMEWORK_ASSETS . '/3rd-party/jquery/jquery.min.js');
     JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . '3rd-party/jquery-ui/js/jquery-ui-1.10.3.custom.js');
     JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . '3rd-party/jquery-livequery/jquery.livequery.min.js');
     JSNHtmlAsset::addScript(JSNPB_PLG_SYSTEM_ASSETS_URL . 'js/joomlashine.noconflict.js');
     JSNHtmlAsset::addScript(JSNPB_ASSETS_URL . 'js/config.js');
     // Display the template
     parent::display($tpl);
 }
Пример #6
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.
  */
 function display($tpl = null)
 {
     // Get config parameters
     $this->_document = JFactory::getDocument();
     $this->_config = JSNConfigHelper::get();
     // Initialize toolbar
     JSNUniformHelper::initToolbar('JSN_UNIFORM_CONFIGURATION_MANAGER', 'uniform-config');
     // Get messages
     $msgs = '';
     if (!$this->_config->get('disable_all_messages')) {
         $msgs = JSNUtilsMessage::getList('CONFIGURATION');
         $msgs = count($msgs) ? JSNUtilsMessage::showMessages($msgs) : '';
     }
     // Load the submenu.
     $input = JFactory::getApplication()->input;
     JSNUniformHelper::addSubmenu($input->get('view', 'configuration'));
     // Assign variables for rendering
     $this->assignRef('msgs', $msgs);
     // Display the template
     parent::display($tpl);
     // Load assets
     JSNUniformHelper::addAssets();
     $this->_addAssets();
 }