-
Notifications
You must be signed in to change notification settings - Fork 19
/
mod_carousel.php
44 lines (37 loc) · 1.57 KB
/
mod_carousel.php
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
<?php
/**
* @version 1.1
* @package mod_carousel
* @copyright Copyright (C) 2013. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @author Brad Traversy <support@joomdigi.com> - http://www.joomdigi.com
*/
//No Direct Access
defined('_JEXEC') or die;
/* Params */
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
//store params as object that we can loop through in tmpl/default.php
$slideritems = new stdClass;
<<<<<<< HEAD
for ($i=1; $i <= 3; $i++) {
$slideritems->$i = new stdClass;
=======
for ($i=1; $i <= 6; $i++) {
>>>>>>> 6248772a906d6369fc6cafe301b56bd883689c50
$slideritems->$i->heading = $params->get("slide".$i."_heading");
$slideritems->$i->text = $params->get("slide".$i."_text");
$slideritems->$i->background_image = $params->get("slide".$i."_background_image");
$slideritems->$i->main_image = $params->get("slide".$i."_main_image");
$slideritems->$i->button_text = $params->get("slide".$i."_button_text");
$slideritems->$i->button_link = $params->get("slide".$i."_button_link");
$slideritems->$i->show_read_more = $params->get("slide".$i."_show_read_more");
}
//more options
$custom_style = $params->get('custom_style');
$slide1_caption_class = $params->get('slide1_caption_class');
$slide2_caption_class = $params->get('slide2_caption_class');
$slide3_caption_class = $params->get('slide3_caption_class');
// Include the syndicate functions only once
require_once dirname(__FILE__).'/helper.php';
require JModuleHelper::getLayoutPath('mod_carousel', $params->get('layout', 'default'));
?>