-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmod_outsmartitcarousel.php
More file actions
49 lines (45 loc) · 1.53 KB
/
mod_outsmartitcarousel.php
File metadata and controls
49 lines (45 loc) · 1.53 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
<?php
/**
* @package Joomla.Site
* @subpackage mod_outsmartitcarousel
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::base() . '/modules/mod_outsmartitcarousel/assets/slick/slick-theme.css');
$document->addStyleSheet(JURI::base() . '/modules/mod_outsmartitcarousel/assets/slick/slick.css');
$document->addStyleSheet(JURI::base() . '/modules/mod_outsmartitcarousel/assets/outsmartitcarousel.css');
$CarouselType = $params->get('carousel_type');
$CarouselSpeed = $params->get('CarSpeed');
$CarouselItems = $params->get('nrOfItems');
$skrollItems = $params->get('scrollitems',2);
$autoplay = $params->get('autoplay');
$pause = $params->get('pauseonhover');
$centermode = $params->get('centermode');
$pagination = $params->get('pagination',1);
$caption = $params->get('mycaption',0);
$arrows = $params->get('arrows');
if ($arrows){
$arrows = 'true';
}
else{
$arrows = 'false';
}
if ($pagination){
$paginationbool = 'true';
}
else{
$paginationbool = 'false';
}
$jq = $params->get('add_jquery');
$carousel_id = "carousel-demo-" . $module->id;
$car_img = array();
for ($i = 1; $i < 11; $i++) {
$number= 'image'.$i;
$captionnr='caption'.$i;
$car_img[$number] = $params->get($number);
$car_img[$captionnr] = $params->get($captionnr);
}
require JModuleHelper::getLayoutPath('mod_outsmartitcarousel', 'default');