Version Notes
If there is jQuery problem by another module what implement jquery, please uncomment the jquery.js line in layout.xml.
Download this release
Release Info
Developer | David Belicza |
Extension | Youama_Slider |
Version | 2.2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.2.0
- app/code/community/Youama/Slider/Block/Slider.php +246 -0
- app/code/community/Youama/Slider/Helper/Config.php +3 -0
- app/code/community/Youama/Slider/etc/config.xml +1 -1
- app/design/frontend/base/default/layout/youama_slider.xml +5 -0
- app/design/frontend/base/default/template/youama/slider/slider.phtml +5 -34
- app/design/frontend/base/default/template/youama/slider/style.phtml +57 -0
- package.xml +4 -4
app/code/community/Youama/Slider/Block/Slider.php
CHANGED
@@ -28,9 +28,255 @@
|
|
28 |
|
29 |
class Youama_Slider_Block_Slider extends Mage_Core_Block_Template
|
30 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
public function _construct()
|
32 |
{
|
|
|
|
|
|
|
|
|
|
|
33 |
parent::_construct();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
}
|
36 |
|
28 |
|
29 |
class Youama_Slider_Block_Slider extends Mage_Core_Block_Template
|
30 |
{
|
31 |
+
private $_configs;
|
32 |
+
private $_sliders;
|
33 |
+
private $_design;
|
34 |
+
private $_animation;
|
35 |
+
private $_event;
|
36 |
+
private $_media;
|
37 |
+
|
38 |
public function _construct()
|
39 |
{
|
40 |
+
$this->addData(array(
|
41 |
+
'cache_lifetime' => 99999,
|
42 |
+
'cache_tags' => array('YOUAMASLIDER_CHACHE')
|
43 |
+
));
|
44 |
+
|
45 |
parent::_construct();
|
46 |
+
|
47 |
+
$this->_configs = Mage::getStoreConfig('youamaslider');
|
48 |
+
$this->_media = Mage::getBaseUrl('media') . 'youama/slider/';
|
49 |
+
|
50 |
+
$this->setSliders();
|
51 |
+
$this->setDesign();
|
52 |
+
$this->setAnimation();
|
53 |
+
$this->setEvent();
|
54 |
+
}
|
55 |
+
|
56 |
+
private function setSliders()
|
57 |
+
{
|
58 |
+
$sliderItems = array();
|
59 |
+
|
60 |
+
$item = 0;
|
61 |
+
for ($i = 0; $i < 6; $i++)
|
62 |
+
{
|
63 |
+
if (isset($this->_configs["slideritem$i"]['image']))
|
64 |
+
{
|
65 |
+
if ($this->_configs["slideritem$i"]['image'] != null && $this->_configs["slideritem$i"]['image'] != '')
|
66 |
+
{
|
67 |
+
$sliderItems[$item]['image'] = $this->_media . $this->_configs["slideritem$i"]['image'];
|
68 |
+
$sliderItems[$item]['title'] = $this->_configs["slideritem$i"]['title'];
|
69 |
+
$sliderItems[$item]['link'] = $this->_configs["slideritem$i"]['link'];
|
70 |
+
$item++;
|
71 |
+
}
|
72 |
+
}
|
73 |
+
}
|
74 |
+
|
75 |
+
if (!isset($sliderItems[0]))
|
76 |
+
{
|
77 |
+
$sliderItems[0]['image'] = $this->_media . '111.jpg';
|
78 |
+
$sliderItems[0]['title'] = '20 animation types!';
|
79 |
+
$sliderItems[0]['link'] = 'http://www.youama.com/items';
|
80 |
+
|
81 |
+
$sliderItems[1]['image'] = $this->_media . '222.jpg';
|
82 |
+
$sliderItems[1]['title'] = 'The most popular jQuery slider!';
|
83 |
+
$sliderItems[1]['link'] = 'http://www.youama.com/items';
|
84 |
+
|
85 |
+
$sliderItems[2]['image'] = $this->_media . '333.jpg';
|
86 |
+
$sliderItems[2]['title'] = 'From Magento Connect by Youama.com';
|
87 |
+
$sliderItems[2]['link'] = 'http://www.youama.com/items';
|
88 |
+
|
89 |
+
$sliderItems[3]['image'] = $this->_media . '444.jpg';
|
90 |
+
$sliderItems[3]['title'] = '- Easy admin management<br />- Design via admin page<br />- It\'s all free!';
|
91 |
+
$sliderItems[3]['link'] = 'http://www.youama.com/items';
|
92 |
+
}
|
93 |
+
|
94 |
+
$this->_sliders = $sliderItems;
|
95 |
+
}
|
96 |
+
|
97 |
+
public function getSliders()
|
98 |
+
{
|
99 |
+
return $this->_sliders;
|
100 |
+
}
|
101 |
+
|
102 |
+
private function setDesign()
|
103 |
+
{
|
104 |
+
$this->_configs['design']['width'] = ((int)$this->_configs['design']['width'] != '') ? 'width:' . (int)$this->_configs['design']['width'] . 'px;' : '';
|
105 |
+
$this->_configs['design']['height'] = ((int)$this->_configs['design']['height'] != '') ? 'height:' . (int)$this->_configs['design']['height'] . 'px;' : '';
|
106 |
+
|
107 |
+
$this->_configs['design']['textscolor'] = (ctype_xdigit($this->_configs['design']['textscolor']) == true && strlen($this->_configs['design']['textscolor']) == 6) ? 'color:#' . $this->_configs['design']['textscolor'] . ';' : '';
|
108 |
+
$this->_configs['design']['bgscolor'] = (ctype_xdigit($this->_configs['design']['bgscolor']) && strlen($this->_configs['design']['bgscolor']) == 6) ? 'background-color:#' . $this->_configs['design']['bgscolor'] . ';' : '';
|
109 |
+
|
110 |
+
if ($this->_configs['design']['textopacity'] != '')
|
111 |
+
{
|
112 |
+
$opc = $this->_configs['design']['textopacity'];
|
113 |
+
$this->_configs['design']['textopacity'] = 'opacity:' . $opc . ';-moz-opacity:' . $opc . ';filter:alpha(opacity=' . (10*$opc) . ');';
|
114 |
+
}
|
115 |
+
else
|
116 |
+
{
|
117 |
+
$this->_configs['design']['textopacity'] = '';
|
118 |
+
}
|
119 |
+
|
120 |
+
if ($this->_configs['design']['textpos'] == 'top')
|
121 |
+
{
|
122 |
+
$this->_configs['design']['textpos'] = 'left:0;top:0;width:100%;';
|
123 |
+
}
|
124 |
+
elseif ($this->_configs['design']['textpos'] == 'bottom')
|
125 |
+
{
|
126 |
+
$this->_configs['design']['textpos'] = 'left:0;bottom:0;width:100%;';
|
127 |
+
}
|
128 |
+
elseif ($this->_configs['design']['textpos'] == 'lefttop')
|
129 |
+
{
|
130 |
+
$this->_configs['design']['textpos'] = 'left:0;top:10%;';
|
131 |
+
}
|
132 |
+
elseif ($this->_configs['design']['textpos'] == 'righttop')
|
133 |
+
{
|
134 |
+
$this->_configs['design']['textpos'] = 'right:0;top:10%;';
|
135 |
+
}
|
136 |
+
elseif ($this->_configs['design']['textpos'] == 'leftbottom')
|
137 |
+
{
|
138 |
+
$this->_configs['design']['textpos'] = 'left:0;bottom:10%;';
|
139 |
+
}
|
140 |
+
elseif ($this->_configs['design']['textpos'] == 'rightbottom')
|
141 |
+
{
|
142 |
+
$this->_configs['design']['textpos'] = 'right:0;bottom:10%;';
|
143 |
+
}
|
144 |
+
|
145 |
+
if ($this->_configs['design']['buttonen'] == 1)
|
146 |
+
{
|
147 |
+
$this->_configs['design']['buttonen'] = 'true';
|
148 |
+
}
|
149 |
+
else
|
150 |
+
{
|
151 |
+
$this->_configs['design']['buttonen'] = 'false';
|
152 |
+
}
|
153 |
+
|
154 |
+
if ($this->_configs['design']['buttonscolor'] != '')
|
155 |
+
{
|
156 |
+
$color1 = '#' . $this->_configs['design']['buttonscolor'];
|
157 |
+
$color2 = '#' . $this->_configs['design']['buttonscolorup'];
|
158 |
+
|
159 |
+
$colors = 'background-color:' . $color1 . ';';
|
160 |
+
$colors .= 'background-image:linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
161 |
+
$colors .= 'background-image:-o-linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
162 |
+
$colors .= 'background-image:-moz-linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
163 |
+
$colors .= 'background-image:-webkit-linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
164 |
+
$colors .= 'background-image:-ms-linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
165 |
+
$colors .= "filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='" . $color1 . "', endColorstr='" . $color2 . "',GradientType=0 );";
|
166 |
+
|
167 |
+
$this->_configs['design']['buttonscolor'] = $colors;
|
168 |
+
|
169 |
+
$colorshover = 'background-color:' . $color2 . ';';
|
170 |
+
$colorshover .= 'background-image:linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
171 |
+
$colorshover .= 'background-image:-o-linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
172 |
+
$colorshover .= 'background-image:-moz-linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
173 |
+
$colorshover .= 'background-image:-webkit-linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
174 |
+
$colorshover .= 'background-image:-ms-linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
175 |
+
$colorshover .= "filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='" . $color2 . "', endColorstr='" . $color1 . "',GradientType=0 );";
|
176 |
+
|
177 |
+
$this->_configs['design']['buttonscolorhover'] = $colorshover;
|
178 |
+
}
|
179 |
+
else
|
180 |
+
{
|
181 |
+
$this->_configs['design']['buttonscolorhover'] = '';
|
182 |
+
}
|
183 |
+
|
184 |
+
if ($this->_configs['design']['buttonpos'] == 'top')
|
185 |
+
{
|
186 |
+
$this->_configs['design']['buttonpos'] = 'left:0;right:0;top:0;';
|
187 |
+
}
|
188 |
+
elseif ($this->_configs['design']['buttonpos'] == 'bottom')
|
189 |
+
{
|
190 |
+
$this->_configs['design']['buttonpos'] = 'left:0;right:0;bottom:0;';
|
191 |
+
}
|
192 |
+
elseif ($this->_configs['design']['buttonpos'] == 'lefttop')
|
193 |
+
{
|
194 |
+
$this->_configs['design']['buttonpos'] = 'left:10px;top:0;';
|
195 |
+
}
|
196 |
+
elseif ($this->_configs['design']['buttonpos'] == 'righttop')
|
197 |
+
{
|
198 |
+
$this->_configs['design']['buttonpos'] = 'right:10px;top:0';
|
199 |
+
}
|
200 |
+
elseif ($this->_configs['design']['buttonpos'] == 'leftbottom')
|
201 |
+
{
|
202 |
+
$this->_configs['design']['buttonpos'] = 'left:10px;bottom:0';
|
203 |
+
}
|
204 |
+
elseif ($this->_configs['design']['buttonpos'] == 'rightbottom')
|
205 |
+
{
|
206 |
+
$this->_configs['design']['buttonpos'] = 'right:10px;bottom:0;';
|
207 |
+
}
|
208 |
+
|
209 |
+
if ($this->_configs['design']['nextpreven'] == 1)
|
210 |
+
{
|
211 |
+
$this->_configs['design']['nextpreven'] = 'true';
|
212 |
+
}
|
213 |
+
else
|
214 |
+
{
|
215 |
+
$this->_configs['design']['nextpreven'] = 'false';
|
216 |
+
}
|
217 |
+
|
218 |
+
if (isset($this->_configs['design']['nextimage']))
|
219 |
+
{
|
220 |
+
if ($this->_configs['design']['nextimage'] != '' && $this->_configs['design']['nextimage'] != null)
|
221 |
+
{
|
222 |
+
$this->_configs['design']['nextimage'] = "background-image:url('" . $this->_media . '/nextprev/' . $this->_configs['design']['nextimage'] . "')";
|
223 |
+
}
|
224 |
+
}
|
225 |
+
else
|
226 |
+
{
|
227 |
+
$this->_configs['design']['nextimage'] = '';
|
228 |
+
}
|
229 |
+
|
230 |
+
if (isset($this->_configs['design']['previmage']))
|
231 |
+
{
|
232 |
+
if ($this->_configs['design']['previmage'] != '' && $this->_configs['design']['previmage'] != null)
|
233 |
+
{
|
234 |
+
$this->_configs['design']['previmage'] = "background-image:url('" . $this->_media . '/nextprev/' . $this->_configs['design']['previmage'] . "')";
|
235 |
+
}
|
236 |
+
}
|
237 |
+
else
|
238 |
+
{
|
239 |
+
$this->_configs['design']['previmage'] = '';
|
240 |
+
}
|
241 |
+
|
242 |
+
$fontsize = ((int)$this->_configs['design']['textsize'] >= 6 && (int)$this->_configs['design']['textsize'] <= 62) ? (int)$this->_configs['design']['textsize'] : '18';
|
243 |
+
$this->_configs['design']['textsize'] = 'font-size:' . $fontsize . 'px;';
|
244 |
+
|
245 |
+
$this->_design = $this->_configs['design'];
|
246 |
+
}
|
247 |
+
|
248 |
+
public function getDesign()
|
249 |
+
{
|
250 |
+
return $this->_design;
|
251 |
+
}
|
252 |
+
|
253 |
+
private function setAnimation()
|
254 |
+
{
|
255 |
+
if ($this->_configs['animations']['hover'] == 1)
|
256 |
+
{
|
257 |
+
$this->_configs['animations']['hover'] = 'true';
|
258 |
+
}
|
259 |
+
else
|
260 |
+
{
|
261 |
+
$this->_configs['animations']['hover'] = 'false';
|
262 |
+
}
|
263 |
+
|
264 |
+
$this->_animation = $this->_configs['animations'];
|
265 |
+
}
|
266 |
+
|
267 |
+
public function getAnimation()
|
268 |
+
{
|
269 |
+
return $this->_animation;
|
270 |
+
}
|
271 |
+
|
272 |
+
private function setEvent()
|
273 |
+
{
|
274 |
+
$this->_event = $this->_configs['events'];
|
275 |
+
}
|
276 |
+
|
277 |
+
public function getEvent()
|
278 |
+
{
|
279 |
+
return $this->_event;
|
280 |
}
|
281 |
}
|
282 |
|
app/code/community/Youama/Slider/Helper/Config.php
CHANGED
@@ -26,6 +26,9 @@
|
|
26 |
* @license http://youama.com/freemodule-license.txt
|
27 |
*/
|
28 |
|
|
|
|
|
|
|
29 |
class Youama_Slider_Helper_Config extends Mage_Core_Helper_Abstract
|
30 |
{
|
31 |
private $_configs;
|
26 |
* @license http://youama.com/freemodule-license.txt
|
27 |
*/
|
28 |
|
29 |
+
/**
|
30 |
+
* Deprecated from Youama_Slider 2.1.1
|
31 |
+
*/
|
32 |
class Youama_Slider_Helper_Config extends Mage_Core_Helper_Abstract
|
33 |
{
|
34 |
private $_configs;
|
app/code/community/Youama/Slider/etc/config.xml
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
<config>
|
31 |
<modules>
|
32 |
<Youama_Slider>
|
33 |
-
<version>2.
|
34 |
</Youama_Slider>
|
35 |
</modules>
|
36 |
<global>
|
30 |
<config>
|
31 |
<modules>
|
32 |
<Youama_Slider>
|
33 |
+
<version>2.2.0</version>
|
34 |
</Youama_Slider>
|
35 |
</modules>
|
36 |
<global>
|
app/design/frontend/base/default/layout/youama_slider.xml
CHANGED
@@ -34,6 +34,11 @@
|
|
34 |
<action ifconfig="youamaslider/mainoptions/jquery" method="addJs"><script>youama/jquery-1-7-1.js</script></action>
|
35 |
<action ifconfig="youamaslider/mainoptions/jquery_ui" method="addJs"><script>youama/slider/jquery-1-10-3-ui.js</script></action>
|
36 |
<action method="addJs"><script>youama/slider/slider.js</script></action>
|
|
|
|
|
|
|
|
|
|
|
37 |
</reference>
|
38 |
<reference name="content">
|
39 |
<!--<block type="youama_slider/slider" name="youamaslider" as="youamaslider">
|
34 |
<action ifconfig="youamaslider/mainoptions/jquery" method="addJs"><script>youama/jquery-1-7-1.js</script></action>
|
35 |
<action ifconfig="youamaslider/mainoptions/jquery_ui" method="addJs"><script>youama/slider/jquery-1-10-3-ui.js</script></action>
|
36 |
<action method="addJs"><script>youama/slider/slider.js</script></action>
|
37 |
+
<block type="youama_slider/slider" name="youamaslider" as="youamaslider">
|
38 |
+
<action method="setTemplate">
|
39 |
+
<template>youama/slider/style.phtml</template>
|
40 |
+
</action>
|
41 |
+
</block>
|
42 |
</reference>
|
43 |
<reference name="content">
|
44 |
<!--<block type="youama_slider/slider" name="youamaslider" as="youamaslider">
|
app/design/frontend/base/default/template/youama/slider/slider.phtml
CHANGED
@@ -26,16 +26,15 @@
|
|
26 |
* @license http://youama.com/freemodule-license.txt
|
27 |
*/
|
28 |
?>
|
29 |
-
<?php $
|
30 |
-
<?php $
|
31 |
-
<?php $
|
32 |
-
<?php $event = $youama->getEvent(); ?>
|
33 |
|
34 |
<div class="youama-slider-block">
|
35 |
<div class="slider-wrapper" style="<?php echo $design['width'] . $design['height'] ?>px;">
|
36 |
<div id="slider" class="nivoSlider" style="<?php echo $design['height'] ?>" >
|
37 |
<?php $_counter = 0 ?>
|
38 |
-
<?php foreach ($
|
39 |
<a href="<?php echo $_slider['link'] ?>">
|
40 |
<img src="<?php echo $_slider['image'] ?>" <?php if ($design['texten'] == 1) : ?>title="#youama-elem<?php echo $_counter ?>"<?php endif; ?> />
|
41 |
</a>
|
@@ -45,7 +44,7 @@
|
|
45 |
</div>
|
46 |
|
47 |
<?php $_counter = 0 ?>
|
48 |
-
<?php foreach ($
|
49 |
<div id="youama-elem<?php echo $_counter ?>" class="nivo-html-caption">
|
50 |
<?php echo $_slider['title'] ?>
|
51 |
</div>
|
@@ -53,34 +52,6 @@
|
|
53 |
<?php endforeach; ?>
|
54 |
</div>
|
55 |
|
56 |
-
<style>
|
57 |
-
.nivo-caption, .nivo-caption *{
|
58 |
-
<?php echo $design['textscolor']; ?>
|
59 |
-
}
|
60 |
-
.nivo-caption{
|
61 |
-
<?php echo $design['bgscolor']; ?>
|
62 |
-
<?php echo $design['textopacity']; ?>
|
63 |
-
<?php echo $design['textpos']; ?>
|
64 |
-
<?php echo $design['textsize']; ?>
|
65 |
-
}
|
66 |
-
|
67 |
-
.nivo-controlNav a{
|
68 |
-
<?php echo $design['buttonscolor']; ?>
|
69 |
-
}
|
70 |
-
.nivo-controlNav a.active, .nivo-controlNav a:hover{
|
71 |
-
<?php echo $design['buttonscolorhover']; ?>
|
72 |
-
}
|
73 |
-
.nivo-controlNav{
|
74 |
-
<?php echo $design['buttonpos']; ?>
|
75 |
-
}
|
76 |
-
.nivo-nextNav{
|
77 |
-
<?php echo $design['nextimage']; ?>
|
78 |
-
}
|
79 |
-
.nivo-prevNav{
|
80 |
-
<?php echo $design['previmage']; ?>
|
81 |
-
}
|
82 |
-
</style>
|
83 |
-
|
84 |
<script type="text/javascript">
|
85 |
jQuery(document).ready(function() {
|
86 |
jQuery('#slider').nivoSlider({
|
26 |
* @license http://youama.com/freemodule-license.txt
|
27 |
*/
|
28 |
?>
|
29 |
+
<?php $design = $this->getDesign(); ?>
|
30 |
+
<?php $animation = $this->getAnimation(); ?>
|
31 |
+
<?php $event = $this->getEvent(); ?>
|
|
|
32 |
|
33 |
<div class="youama-slider-block">
|
34 |
<div class="slider-wrapper" style="<?php echo $design['width'] . $design['height'] ?>px;">
|
35 |
<div id="slider" class="nivoSlider" style="<?php echo $design['height'] ?>" >
|
36 |
<?php $_counter = 0 ?>
|
37 |
+
<?php foreach ($this->getSliders() as $_slider) : ?>
|
38 |
<a href="<?php echo $_slider['link'] ?>">
|
39 |
<img src="<?php echo $_slider['image'] ?>" <?php if ($design['texten'] == 1) : ?>title="#youama-elem<?php echo $_counter ?>"<?php endif; ?> />
|
40 |
</a>
|
44 |
</div>
|
45 |
|
46 |
<?php $_counter = 0 ?>
|
47 |
+
<?php foreach ($this->getSliders() as $_slider) : ?>
|
48 |
<div id="youama-elem<?php echo $_counter ?>" class="nivo-html-caption">
|
49 |
<?php echo $_slider['title'] ?>
|
50 |
</div>
|
52 |
<?php endforeach; ?>
|
53 |
</div>
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
<script type="text/javascript">
|
56 |
jQuery(document).ready(function() {
|
57 |
jQuery('#slider').nivoSlider({
|
app/design/frontend/base/default/template/youama/slider/style.phtml
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* YouAMA.com
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the EULA that is bundled with this package
|
8 |
+
* in the file license.txt.
|
9 |
+
*
|
10 |
+
/****************************************************************************
|
11 |
+
* MAGENTO EDITION USAGE NOTICE *
|
12 |
+
****************************************************************************/
|
13 |
+
/* This package designed for Magento Community edition YouAMA.com does not
|
14 |
+
* guarantee correct work of this extension on any other Magento edition
|
15 |
+
* except Magento Community edition. YouAMA.com does not provide extension
|
16 |
+
* support in case of incorrect edition usage.
|
17 |
+
/****************************************************************************
|
18 |
+
* DISCLAIMER *
|
19 |
+
****************************************************************************/
|
20 |
+
/* Do not edit or add to this file if you wish to upgrade Magento to newer
|
21 |
+
* versions in the future.
|
22 |
+
*****************************************************
|
23 |
+
* @category Youama
|
24 |
+
* @package Youama_Slider
|
25 |
+
* @copyright Copyright (c) 2012 YouAMA.com (http://www.youama.com/)
|
26 |
+
* @license http://youama.com/freemodule-license.txt
|
27 |
+
*/
|
28 |
+
?>
|
29 |
+
<?php $design = $this->getDesign(); ?>
|
30 |
+
|
31 |
+
<style>
|
32 |
+
.nivo-caption, .nivo-caption *{
|
33 |
+
<?php echo $design['textscolor']; ?>
|
34 |
+
}
|
35 |
+
.nivo-caption{
|
36 |
+
<?php echo $design['bgscolor']; ?>
|
37 |
+
<?php echo $design['textopacity']; ?>
|
38 |
+
<?php echo $design['textpos']; ?>
|
39 |
+
<?php echo $design['textsize']; ?>
|
40 |
+
}
|
41 |
+
|
42 |
+
.nivo-controlNav a{
|
43 |
+
<?php echo $design['buttonscolor']; ?>
|
44 |
+
}
|
45 |
+
.nivo-controlNav a.active, .nivo-controlNav a:hover{
|
46 |
+
<?php echo $design['buttonscolorhover']; ?>
|
47 |
+
}
|
48 |
+
.nivo-controlNav{
|
49 |
+
<?php echo $design['buttonpos']; ?>
|
50 |
+
}
|
51 |
+
.nivo-nextNav{
|
52 |
+
<?php echo $design['nextimage']; ?>
|
53 |
+
}
|
54 |
+
.nivo-prevNav{
|
55 |
+
<?php echo $design['previmage']; ?>
|
56 |
+
}
|
57 |
+
</style>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Youama_Slider</name>
|
4 |
-
<version>2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/copyleft/gpl.html">GNU General Public License (GPL) </license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>This Module implement jQuery both to frontend and admin interface.</description>
|
11 |
<notes>If there is jQuery problem by another module what implement jquery, please uncomment the jquery.js line in layout.xml.</notes>
|
12 |
<authors><author><name>David Belicza</name><user>DoveID</user><email>87.bdavid@gmail.com</email></author></authors>
|
13 |
-
<date>2013-07-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Youama"><dir name="Slider"><dir name="Block"><file name="Slider.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>5.4.11</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Youama_Slider</name>
|
4 |
+
<version>2.2.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/copyleft/gpl.html">GNU General Public License (GPL) </license>
|
7 |
<channel>community</channel>
|
10 |
<description>This Module implement jQuery both to frontend and admin interface.</description>
|
11 |
<notes>If there is jQuery problem by another module what implement jquery, please uncomment the jquery.js line in layout.xml.</notes>
|
12 |
<authors><author><name>David Belicza</name><user>DoveID</user><email>87.bdavid@gmail.com</email></author></authors>
|
13 |
+
<date>2013-07-21</date>
|
14 |
+
<time>09:06:20</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Youama"><dir name="Slider"><dir name="Block"><file name="Slider.php" hash="03764b2c576eefd51df55ff36c7d0cef"/></dir><dir name="Helper"><file name="Config.php" hash="ff4eed011670429ddc1c49eca4ef21d0"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Animations.php" hash="4115dc982e9d4e06d633c4bdf6bb85ef"/><file name="Pieces.php" hash="18f091391db896029f6db9c9984bf0ab"/><file name="Position.php" hash="11533669e0f19185a25795ae64e8d17f"/><file name="Speed.php" hash="961a8eaf7c65ffcc026b82c20dd15f24"/><file name="Times.php" hash="a56423c2ef35a3490554b4891800ffa0"/></dir></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3871d42a687ba82295950916568b9746"/><file name="config.xml" hash="a686efe89e9d1e0a1d7f142c301573ac"/><file name="system.xml" hash="8c10b9d1d3452442a72bf9ed4a64b3ab"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="youama_slider_admin.xml" hash="d64a4ae1a085a6d13ed4cc9ebeee4569"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="youama_slider.xml" hash="9c53b0a9b7b9a93e98e06a66def83e32"/></dir><dir name="template"><dir name="youama"><dir name="slider"><file name="slider.phtml" hash="32988cd58a74c5997ffdd4e45c16ddb7"/><file name="style.phtml" hash="87feadf95253fdaeb5282109d42aaff5"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Youama_Slider.xml" hash="b71fee454f49320853b30d96fcaf0573"/></dir></target><target name="mage"><dir name="js"><dir name="youama"><file name="jquery-1-7-1.js" hash="2c57990a020cc3a35c4a603413d67a28"/><dir name="slider"><file name="slider.js" hash="8bc5e7fa2a59e13ee6937355ce244104"/><file name="jquery-1-10-3-ui.js" hash="fd255415839568e52a48da5de5af244c"/></dir></dir></dir></target><target name="magemedia"><dir name="youama"><dir name="slider"><file name="111.jpg" hash="a0175eebabb32db6da9d861133984e6b"/><file name="222.jpg" hash="09574952fd157b5fdb9e593db8d8cc5a"/><file name="333.jpg" hash="1b19c6450093ba965f5e54d8b82eba6a"/><file name="444.jpg" hash="101f9006d6cfc06a26179de6f055c1c1"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="youama"><dir name="colorpicker"><dir name="css"><file name="colorpicker.css" hash="5591e5f7b2567b4fa3af61ff99cd70b8"/><file name="layout.css" hash="d0de239577392aba1d349a11d1833126"/></dir><dir name="images"><file name="Thumbs.db" hash="45dc3eb768213c86b48dc15b55e9897e"/><file name="blank.gif" hash="56398e76be6355ad5999b262208a17c9"/><file name="colorpicker_background.png" hash="a79f1a2a81bfe3ed1c2ca4c41b8e1fbf"/><file name="colorpicker_hex.png" hash="16d6870c36e379c06fb26ebd2e16bf44"/><file name="colorpicker_hsb_b.png" hash="2be4e81b4a5c98674abe6fc60b447e9a"/><file name="colorpicker_hsb_h.png" hash="d47409a203bedc76b26dc60b71a69f6b"/><file name="colorpicker_hsb_s.png" hash="5ff5e43ab6b7b41b6123bfab692a9b19"/><file name="colorpicker_indic.gif" hash="f485d07540a89502e36dc1a55cec05d0"/><file name="colorpicker_overlay.png" hash="c7a33805ffda0d32bd2a9904c8b02750"/><file name="colorpicker_rgb_b.png" hash="2be4e81b4a5c98674abe6fc60b447e9a"/><file name="colorpicker_rgb_g.png" hash="dc17f953a6febbe174e92b54690586c3"/><file name="colorpicker_rgb_r.png" hash="87eeb205d093b713b68a341771f4ee27"/><file name="colorpicker_select.gif" hash="cec464162af0cce10348e7bb7701ef86"/><file name="colorpicker_submit.png" hash="12d1746e6b52e007f1b78d772d9248ba"/><file name="custom_background.png" hash="06c91f7ae1561ccd8f1c79119529600d"/><file name="custom_hex.png" hash="e27aaa92b15d9392d909f8b94e797524"/><file name="custom_hsb_b.png" hash="b45588ca2fe9ba46673862300fcd3083"/><file name="custom_hsb_h.png" hash="4a1afa5636421aae4c44471d2273496d"/><file name="custom_hsb_s.png" hash="83aa97407fb76615a7db5ed721681148"/><file name="custom_indic.gif" hash="04660eb352eb259581a36a0fe8da2d4d"/><file name="custom_rgb_b.png" hash="f6e50cd567bd3059742d45ab224a413b"/><file name="custom_rgb_g.png" hash="b1e286e06692b3640862a3d07f636a80"/><file name="custom_rgb_r.png" hash="8ae4b3ef109ee66ec1022632470ddd0f"/><file name="custom_submit.png" hash="35423f0f2538e507dec193b52f8d0327"/><file name="select.png" hash="7b086953a8c62d2685a65644979d5d04"/><file name="select2.png" hash="c8d194d92dbad98615b2a9140b34ab48"/><file name="slider.png" hash="3a50b8078dea50b9811603a85ecef836"/></dir><dir name="js"><file name="colorpicker.js" hash="96e6db8dd2c341f8aee73603eccea3b9"/><file name="eye.js" hash="a7305a07fc5f1123097487e9de66abb1"/><file name="jquery.js" hash="92d4f1412222f2dc12627ab42b66fc1c"/><file name="layout.js" hash="8f7952de2801fc097579a5913f15f18c"/><file name="utils.js" hash="eecc5c66710f5e6956de9d17b4cc0b00"/></dir><file name="start.js" hash="7b629b21d44510510f50d631d01ffa12"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="youama"><dir name="slider"><file name="slider.css" hash="7e07aca641a1989f7350c5751c0d236a"/></dir></dir></dir><dir name="images"><dir name="youama"><dir name="slider"><file name="slider-left.png" hash="521e512a9a3ba998e4194bdb1436f859"/><file name="slider.png" hash="6f1f7dd995b4287fb02fbfb322dd59e0"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>5.4.11</max></php></required></dependencies>
|
18 |
</package>
|