Example #1
0
 /**
  * Method for display page.
  *
  * @param   boolean  $cachable   If true, the view output will be cached
  * @param   array    $urlparams  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
  *
  * @return  void
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Get config parameters
     if (class_exists('JSNConfigHelper')) {
         $config = JSNConfigHelper::get();
         // Check if JSN Mobilize is configured correctly
         if ($config->get('link_mobile') == 'm.domain.tld' or $config->get('link_tablet') == 'tablet.domain.tld') {
             // Get application object
             $app = JFactory::getApplication();
             // Set message
             $app->enqueueMessage(JText::_('JSN_MOBILIZE_CONFIG_LINKS'));
             // Mark required parameters
             JRequest::setVar('required', array('link_mobile', 'link_tablet'));
             // Set config view
             JRequest::setVar('view', 'config');
         } else {
             // Set edit view
             JRequest::setVar('view', JRequest::getCmd('view', 'profiles'));
         }
     } else {
         // Set edit view
         JRequest::setVar('view', JRequest::getCmd('view', 'profiles'));
     }
     // Call parent method
     parent::display($cachable, $urlparams);
 }
Example #2
0
 /**
  * Method for display page.
  *
  * @param   boolean  $cachable   If true, the view output will be cached
  * @param   array    $urlparams  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
  *
  * @return  void
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Get input object
     $input = JFactory::getApplication()->input;
     // Set default view if not set
     $input->set('view', $input->getCmd('view', 'sliders'));
     // Call parent method
     parent::display($cachable, $urlparams);
 }
Example #3
0
 /**
  * Typical view method for MVC based architecture
  *
  * This function is provide as a default implementation, in most cases
  * you will need to override it in your own controllers.
  *
  * @param   boolean  $cachable   If true, the view output will be cached
  * @param   array    $urlparams  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
  *
  * @return  JController  A JController object to support chaining.
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Get input object
     $input = JFactory::getApplication()->input;
     // Set default view
     $input->set('view', $input->get('view', 'form'));
     parent::display();
     return $this;
 }
Example #4
0
 /**
  * Constructor
  *
  * @param   array  $config  An optional associative array of configuration settings.
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Load language manually
     $lang = JFactory::getLanguage();
     $lang->load('jsn_installer', JPATH_COMPONENT_ADMINISTRATOR . '/libraries/joomlashine/installer');
     // Get input object
     $this->input = JFactory::getApplication()->input;
     // Get model object
     $this->model = $this->getModel($this->input->getCmd('controller', $this->input->getCmd('view')));
 }
Example #5
0
 /**
  * Method for display page.
  *
  * @param   boolean  $cachable   If true, the view output will be cached
  * @param   array    $urlparams  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
  *
  * @return  void
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Get config parameters
     $config = JSNConfigHelper::get();
     // Check if JSN Mobilize is configured correctly
     if ($config->get('link_mobile') == 'm.domain.tld' or $config->get('link_tablet') == 'tablet.domain.tld') {
         // Redirect to configuration page
         return JFactory::getApplication()->redirect(JRoute::_('index.php?option=' . JFactory::getApplication()->input->getCmd('option')));
     } else {
         // Call parent method
         parent::display($cachable, $urlparams);
     }
 }
Example #6
0
 /**
  * Typical view method for MVC based architecture
  *
  * This function is provide as a default implementation, in most cases
  * you will need to override it in your own controllers.
  *
  * @param   boolean  $cachable   If true, the view output will be cached
  * @param   array    $urlparams  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
  *
  * @return  JController  A JController object to support chaining.
  *
  * @since   11.1
  */
 function display($cachable = false, $urlparams = false)
 {
     // Get input object
     $input = JFactory::getApplication()->input;
     // Set default view if not set
     $input->set('view', $input->getCmd('view', 'about'));
     $vName = $input->getCmd('view', 'about');
     //Add submenus
     if (JRequest::getVar('tmpl') != 'component' && JRequest::getVar('tmpl') != 'ajax' && !JRequest::getVar('ajax') && $vName != 'installer') {
         JSNMenuHelper::addEntry('pb-submenu-manager', 'COM_PAGEBUILDER_PAGE_MANAGER', 'index.php?option=' . JRequest::getCmd('option', 'com_pagebuilder') . '&view=manager', $vName == 'manager', 'administrator/components/com_pagebuilder/assets/images/icons-16/icon-monitor.png', 'pb-submenu');
         JSNMenuHelper::addEntry('pb-submenu-configuration', 'COM_PAGEBUILDER_CONFIGURATION', 'index.php?option=' . JRequest::getCmd('option', 'com_pagebuilder') . '&view=configuration', $vName == 'configuration', 'administrator/components/com_pagebuilder/assets/images/icons-16/icon-cog.png', 'pb-submenu');
         JSNMenuHelper::addEntry('pb-submenu-about', 'COM_PAGEBUILDER_ABOUT', 'index.php?option=' . JRequest::getCmd('option', 'com_pagebuilder') . '&view=about', $vName == 'about', 'administrator/components/com_pagebuilder/assets/images/icons-16/icon-star.png', 'pb-submenu');
         // Render menu
         JSNMenuHelper::render('pb-submenu');
     }
     // Call parent method
     parent::display($cachable, $urlparams);
 }
require_once dirname(__FILE__) . '/libraries/joomlashine/base/view.php';
require_once dirname(__FILE__) . '/libraries/joomlashine/base/controller.php';
// Import joomla controller library
jimport('joomla.application.component.controller');
// Get application object
$app = JFactory::getApplication();
$input = $app->input;
$tmpl = $input->getCmd('tmpl');
$task = $input->getCmd('task');
$isControllerExecutable = true;
if (!($tmpl === 'component' || $task)) {
    // Check if all dependency is installed
    require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
    // Require helper file
    JLoader::register('PowerAdminHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/poweradmin.php');
    !(class_exists('JSNUtilsLanguage') && method_exists(new JSNUtilsLanguage(), 'loadDefault'));
    if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible('3.')) {
        $isControllerExecutable = true;
    } else {
        $isControllerExecutable = false;
    }
}
if ($isControllerExecutable) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('Poweradmin');
    $controller = new $controller();
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}
Example #8
0
 /**
  * Method to get a model object, loading it if required.
  *
  * @param   string  $name    The model name. Optional.
  * @param   string  $prefix  The class prefix. Optional.
  * @param   array   $config  Configuration array for model. Optional.
  *
  * @return  object  The model.
  *
  * @since   1.6
  */
 public function getModel($name = '', $prefix = '', $config = array('ignore_request' => true))
 {
     return parent::getModel($name, $prefix, array('ignore_request' => false));
 }
Example #9
0
 * @subpackage  Uniform
 * @author      JoomlaShine Team <*****@*****.**>
 * @copyright   Copyright (C) 2015 JoomlaShine.com. All Rights Reserved.
 * @license     GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
defined('_JEXEC') or die('Restricted access');
// Get application object
$app = JFactory::getApplication();
// Get input object
$input = $app->input;
// Access check
if (!JFactory::getUser()->authorise('core.manage', $input->getCmd('option'))) {
    return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
// Initialize common assets
require_once JPATH_COMPONENT_ADMINISTRATOR . '/bootstrap.php';
// Check if all dependency is installed
require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
// Register include path for class that working with database table
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables');
if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible('3.')) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('JSNUniform');
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}
Example #10
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }
Example #11
0
 * @author      JoomlaShine Team <*****@*****.**>
 * @copyright   Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
 * @license     GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
defined('_JEXEC') or die('Restricted access');
// Get application object
$app = JFactory::getApplication();
// Get input object
$input = $app->input;
// Access check
if (!JFactory::getUser()->authorise('core.manage', $input->getCmd('option'))) {
    return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
// Initialize common assets
require_once JPATH_COMPONENT_ADMINISTRATOR . '/bootstrap.php';
JLoader::register('JSNMobilizeHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/mobilize.php');
// Check if all dependency is installed
require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
// Register include path for class that working with database table
JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/tables');
if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible('3.')) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('JSNMobilize');
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}
Example #12
0
 public function __construct($config = array())
 {
     // Get input object
     $this->input = JFactory::getApplication()->input;
     parent::__construct($config);
 }
Example #13
0
require_once dirname(__FILE__) . '/libraries/joomlashine/base/controller.php';
// Initialize common assets
require_once JPATH_COMPONENT_ADMINISTRATOR . '/bootstrap.php';
// Check if all dependency is installed
require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
// Require base shorcode element
// TODO: under included files will be packed in a loader class
require_once dirname(__FILE__) . '/libraries/innotheme/shortcode/element.php';
require_once dirname(__FILE__) . '/libraries/innotheme/shortcode/parent.php';
require_once dirname(__FILE__) . '/libraries/innotheme/shortcode/child.php';
// Check if JoomlaShine extension framework is exists?
if ($framework->extension_id) {
    // Autoload all helper classes.
    JSN_Loader::register(dirname(__FILE__), 'JSNPagebuilder');
    // Autoload all shortcode
    JSN_Loader::register(dirname(__FILE__) . '/helpers/shortcode', 'JSNPBShortcode');
    //JSN_Loader::register(JPATH_ROOT . '/plugins/pagebuilder/' , 'JSNPBShortcode');
    //JSN_Loader::register(JPATH_ROOT . '/administrator/components/com_pagebuilder/elements/' , 'JSNPBShortcode');
    JSN_Loader::register(JPATH_ROOT . '/plugins/jsnpagebuilder/defaultelements/', 'JSNPBShortcode');
    // Store all PageBuilder's shortcode into an object.
    global $JSNPbElements;
    $JSNPbElements = new JSNPagebuilderHelpersElements();
}
if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible(JSN_PAGEBUILDER_REQUIRED_JOOMLA_VER)) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('JSNPagebuilder');
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// Get application object
$app = JFactory::getApplication();
// Get input object
$input = $app->input;
// Access check
if (!JFactory::getUser()->authorise('core.manage', $input->getCmd('option'))) {
    return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
// Initialize common assets
require_once JPATH_COMPONENT_ADMINISTRATOR . '/bootstrap.php';
// Check if all dependency is installed
require_once JPATH_COMPONENT_ADMINISTRATOR . '/dependency.php';
//load Utils class
require_once JPATH_ROOT . '/administrator/components/com_easyslider/classes/jsn.easyslider.utils.php';
// Register helper class
JLoader::register('JSNEasySliderHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/easyslider.php');
if (strpos('installer + update + upgrade', $input->getCmd('view')) !== false or JSNVersion::isJoomlaCompatible(JSN_EASYSLIDER_REQUIRED_JOOMLA_VER)) {
    // Get the appropriate controller
    $controller = JSNBaseController::getInstance('JSNEasySlider');
    // Perform the request task
    $controller->execute($input->getCmd('task'));
    // Redirect if set by the controller
    $controller->redirect();
}
Example #15
0
 /**
  * Display the page
  *
  * @param   boolean  $cachable   If true, the view output will be cached.
  * @param   array    $urlparams  An array of safe url parameters and their variable types.
  *
  * @return  void
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Set default view
     $this->input->set('view', $this->input->getCmd('view', 'forms'));
     parent::display($cachable, $urlparams);
 }