Exemple #1
0
 function NextendSliderJoomla(&$module, &$params, $path, $backend = false)
 {
     parent::NextendSlider($path, $backend);
     $sliderid = 0;
     if (is_numeric($params)) {
         $this->_module = new stdClass();
         $sliderid = $params;
         $this->_module->id = $sliderid;
     } else {
         $this->_data = new NextendData();
         $config = $params->toArray();
         $this->_data->loadArray(version_compare(JVERSION, '1.6.0', 'l') || !isset($config['config']) ? $config : $config['config']);
         nextendimport('nextend.externals.mobiledetect');
         $detect = new Mobile_Detect();
         $tablet = $detect->isTablet();
         $mobile = !$tablet && $detect->isMobile();
         if (intval($this->_data->get('showmobile', 1)) == 0) {
             if ($mobile) {
                 $this->_norender = true;
                 return;
             }
         }
         $custommobile = NextendParse::parse($this->_data->get('showcustommobile', '0|*|'));
         if ($custommobile[0] == 1) {
             if ($mobile) {
                 $this->_data->set('slider', $custommobile[1]);
             }
         }
         if (intval($this->_data->get('showtablet', 1)) == 0) {
             if ($tablet) {
                 $this->_norender = true;
                 return;
             }
         }
         $customtablet = NextendParse::parse($this->_data->get('showcustomtablet', '0|*|'));
         if ($customtablet[0] == 1) {
             if ($tablet) {
                 $this->_data->set('slider', $customtablet[1]);
             }
         }
         $this->_module = $module;
         $sliderid = $this->_data->get('slider');
     }
     $this->_sliderid = $sliderid;
 }
Exemple #2
0
 function NextendSliderMagento($sliderid, &$params, $path, $backend = false)
 {
     parent::NextendSlider($path, $backend);
     $this->_sliderid = $sliderid;
 }