slider.php
1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
class N2SmartSlider extends N2SmartSliderAbstract
{
public $_module;
public function __construct($sliderId, $parameters) {
parent::__construct($sliderId, $parameters);
/*
if (is_object($parameters)) $parameters = intval($parameters->id);
$sliderid = 0;
if (is_numeric($parameters)) {
$this->_module = new stdClass();
$sliderid = $parameters;
$this->_module->id = $sliderid;
} elseif (is_array($parameters)) {
$module = $parameters[0];
$params = $parameters[1];
$this->_data = new NextendData();
$config = $params->toArray();
$this->_data->loadArray(version_compare(JVERSION, '1.6.0', 'l') || !isset($config['config']) ? $config : $config['config']);
$this->setDevices();
$this->_module = $module;
$sliderid = $this->_data->get('slider');
}
$this->sliderId = intval($sliderid);
*/
}
public function initType($type) {
parent::initType($type);
}
public function parseSlider($slider) {
return $slider;
}
public static function addCMSFunctions($text) {
return JHTML::_('content.prepare', '<div>'.$text.'</div>', null, 'mod_smartslider');
}
}