-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_hot_image_slider.php
55 lines (47 loc) · 1.86 KB
/
mod_hot_image_slider.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
45
46
47
48
49
50
51
52
53
54
55
<?php
/*------------------------------------------------------------------------
# Hot Image Slider - Free Joomla module
# Copyright (C) 2013 HotThemes. All Rights Reserved.
# License: http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3 only
# Author: HotThemes
# Website: https://www.hotjoomlatemplates.com
-------------------------------------------------------------------------*/
//no direct access
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// Path assignments
$mosConfig_absolute_path = JPATH_SITE;
$mosConfig_live_site = JURI :: base();
if(substr($mosConfig_live_site, -1)=="/") { $mosConfig_live_site = substr($mosConfig_live_site, 0, -1); }
// get parameters from the module's configuration
$borderWidth = $params->get('borderWidth','20');
$maxWidth = $params->get('maxWidth','960');
$backgroundColor = $params->get('backgroundColor','#000000');
$nameColor = '#ffffff';
$nameSize = '14';
$descColor = '#ffffff';
$descSize = '10';
$textShadow = '1';
$showButtons = 1;
$showNames = $params->get('showNames','1');
$showDesc = $params->get('showDesc','1');
$showLink = $params->get('showLink','1');
$linkNewWindow = $params->get('linkNewWindow','0');
$buttonColor = '#acc48c';
$buttonColorHover = '#111111';
$buttonTextColor = '#ffffff';
$buttonTextColorHover = '#ffffff';
$animation = $params->get('animation','slide');
$fadeSpeed = $params->get('fadeSpeed','600');
for ($loop = 1; $loop <= 30; $loop += 1) {
$imageArray[$loop] = $params->get('image'.$loop,'');
}
for ($loop = 1; $loop <= 30; $loop += 1) {
$imageTitleArray[$loop] = $params->get('image'.$loop.'title','');
}
for ($loop = 1; $loop <= 30; $loop += 1) {
$imageDescArray[$loop] = $params->get('image'.$loop.'desc','');
}
for ($loop = 1; $loop <= 30; $loop += 1) {
$imageLinkArray[$loop] = $params->get('image'.$loop.'link','');
}
require(JModuleHelper::getLayoutPath('mod_hot_image_slider'));