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.0.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 2.0.0
app/code/community/Youama/Slider/Helper/Config.php
CHANGED
@@ -54,12 +54,15 @@ class Youama_Slider_Helper_Config extends Mage_Core_Helper_Abstract
|
|
54 |
$item = 0;
|
55 |
for ($i = 0; $i < 6; $i++)
|
56 |
{
|
57 |
-
if ($this->_configs["slideritem$i"]['image']
|
58 |
{
|
59 |
-
$
|
60 |
-
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
63 |
}
|
64 |
}
|
65 |
|
@@ -139,7 +142,7 @@ class Youama_Slider_Helper_Config extends Mage_Core_Helper_Abstract
|
|
139 |
$color1 = '#' . $this->_configs['design']['buttonscolor'];
|
140 |
$color2 = '#' . $this->_configs['design']['buttonscolorup'];
|
141 |
|
142 |
-
$colors
|
143 |
$colors .= 'background-image:linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
144 |
$colors .= 'background-image:-o-linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
145 |
$colors .= 'background-image:-moz-linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
@@ -149,7 +152,7 @@ class Youama_Slider_Helper_Config extends Mage_Core_Helper_Abstract
|
|
149 |
|
150 |
$this->_configs['design']['buttonscolor'] = $colors;
|
151 |
|
152 |
-
$colorshover
|
153 |
$colorshover .= 'background-image:linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
154 |
$colorshover .= 'background-image:-o-linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
155 |
$colorshover .= 'background-image:-moz-linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
@@ -198,13 +201,28 @@ class Youama_Slider_Helper_Config extends Mage_Core_Helper_Abstract
|
|
198 |
$this->_configs['design']['nextpreven'] = 'false';
|
199 |
}
|
200 |
|
201 |
-
if ($this->_configs['design']['nextimage']
|
202 |
{
|
203 |
-
$this->_configs['design']['nextimage']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
}
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
{
|
207 |
-
$this->_configs['design']['previmage'] =
|
208 |
}
|
209 |
|
210 |
$fontsize = ((int)$this->_configs['design']['textsize'] >= 6 && (int)$this->_configs['design']['textsize'] <= 62) ? (int)$this->_configs['design']['textsize'] : '18';
|
54 |
$item = 0;
|
55 |
for ($i = 0; $i < 6; $i++)
|
56 |
{
|
57 |
+
if (isset($this->_configs["slideritem$i"]['image']))
|
58 |
{
|
59 |
+
if ($this->_configs["slideritem$i"]['image'] != null && $this->_configs["slideritem$i"]['image'] != '')
|
60 |
+
{
|
61 |
+
$sliderItems[$item]['image'] = $this->_media . $this->_configs["slideritem$i"]['image'];
|
62 |
+
$sliderItems[$item]['title'] = $this->_configs["slideritem$i"]['title'];
|
63 |
+
$sliderItems[$item]['link'] = $this->_configs["slideritem$i"]['link'];
|
64 |
+
$item++;
|
65 |
+
}
|
66 |
}
|
67 |
}
|
68 |
|
142 |
$color1 = '#' . $this->_configs['design']['buttonscolor'];
|
143 |
$color2 = '#' . $this->_configs['design']['buttonscolorup'];
|
144 |
|
145 |
+
$colors = 'background-color:' . $color1 . ';';
|
146 |
$colors .= 'background-image:linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
147 |
$colors .= 'background-image:-o-linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
148 |
$colors .= 'background-image:-moz-linear-gradient(bottom, ' . $color1 . ' 1%, ' . $color2 . ' 100%);';
|
152 |
|
153 |
$this->_configs['design']['buttonscolor'] = $colors;
|
154 |
|
155 |
+
$colorshover = 'background-color:' . $color2 . ';';
|
156 |
$colorshover .= 'background-image:linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
157 |
$colorshover .= 'background-image:-o-linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
158 |
$colorshover .= 'background-image:-moz-linear-gradient(bottom, ' . $color2 . ' 1%, ' . $color1 . ' 100%);';
|
201 |
$this->_configs['design']['nextpreven'] = 'false';
|
202 |
}
|
203 |
|
204 |
+
if (isset($this->_configs['design']['nextimage']))
|
205 |
{
|
206 |
+
if ($this->_configs['design']['nextimage'] != '' && $this->_configs['design']['nextimage'] != null)
|
207 |
+
{
|
208 |
+
$this->_configs['design']['nextimage'] = "background-image:url('" . $this->_media . DS . 'nextprev' . DS . $this->_configs['design']['nextimage'] . "')";
|
209 |
+
}
|
210 |
+
}
|
211 |
+
else
|
212 |
+
{
|
213 |
+
$this->_configs['design']['nextimage'] = '';
|
214 |
}
|
215 |
+
|
216 |
+
if (isset($this->_configs['design']['previmage']))
|
217 |
+
{
|
218 |
+
if ($this->_configs['design']['previmage'] != '' && $this->_configs['design']['previmage'] != null)
|
219 |
+
{
|
220 |
+
$this->_configs['design']['previmage'] = "background-image:url('" . $this->_media . DS . 'nextprev' . DS . $this->_configs['design']['previmage'] . "')";
|
221 |
+
}
|
222 |
+
}
|
223 |
+
else
|
224 |
{
|
225 |
+
$this->_configs['design']['previmage'] = '';
|
226 |
}
|
227 |
|
228 |
$fontsize = ((int)$this->_configs['design']['textsize'] >= 6 && (int)$this->_configs['design']['textsize'] <= 62) ? (int)$this->_configs['design']['textsize'] : '18';
|
app/code/community/Youama/Slider/etc/config.xml
CHANGED
@@ -71,6 +71,9 @@
|
|
71 |
|
72 |
<default>
|
73 |
<youamaslider>
|
|
|
|
|
|
|
74 |
<slideritem1>
|
75 |
<link>#</link>
|
76 |
<title>You installed the sweet Youama Slider</title>
|
71 |
|
72 |
<default>
|
73 |
<youamaslider>
|
74 |
+
<mainoptions>
|
75 |
+
<jquery>1</jquery>
|
76 |
+
</mainoptions>
|
77 |
<slideritem1>
|
78 |
<link>#</link>
|
79 |
<title>You installed the sweet Youama Slider</title>
|
app/code/community/Youama/Slider/etc/system.xml
CHANGED
@@ -45,10 +45,33 @@
|
|
45 |
<show_in_store>1</show_in_store>
|
46 |
|
47 |
<groups>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
<readme translate="label">
|
49 |
<label>Information about Youama Slider</label>
|
50 |
<frontend_type>text</frontend_type>
|
51 |
-
<sort_order
|
52 |
<show_in_default>1</show_in_default>
|
53 |
<show_in_website>1</show_in_website>
|
54 |
<show_in_store>1</show_in_store>
|
45 |
<show_in_store>1</show_in_store>
|
46 |
|
47 |
<groups>
|
48 |
+
<mainoptions translate="label">
|
49 |
+
<label>Main Options</label>
|
50 |
+
<frontend_type>text</frontend_type>
|
51 |
+
<sort_order>0</sort_order>
|
52 |
+
<show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>1</show_in_website>
|
54 |
+
<show_in_store>1</show_in_store>
|
55 |
+
|
56 |
+
<fields>
|
57 |
+
<jquery>
|
58 |
+
<label>jQuery</label>
|
59 |
+
<comment>
|
60 |
+
<![CDATA[Include jQuery library if your Magento has not yet]]>
|
61 |
+
</comment>
|
62 |
+
<frontend_type>select</frontend_type>
|
63 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
64 |
+
<sort_order>1</sort_order>
|
65 |
+
<show_in_default>1</show_in_default>
|
66 |
+
<show_in_website>1</show_in_website>
|
67 |
+
<show_in_store>1</show_in_store>
|
68 |
+
</jquery>
|
69 |
+
</fields>
|
70 |
+
</mainoptions>
|
71 |
<readme translate="label">
|
72 |
<label>Information about Youama Slider</label>
|
73 |
<frontend_type>text</frontend_type>
|
74 |
+
<sort_order>-1</sort_order>
|
75 |
<show_in_default>1</show_in_default>
|
76 |
<show_in_website>1</show_in_website>
|
77 |
<show_in_store>1</show_in_store>
|
app/design/frontend/base/default/layout/youama_slider.xml
CHANGED
@@ -31,8 +31,7 @@
|
|
31 |
<default>
|
32 |
<reference name="head">
|
33 |
<action method="addItem"><type>skin_css</type><name>css/youama/slider/slider.css</name></action>
|
34 |
-
|
35 |
-
<action method="addJs"><script>youama/jquery-1-7-1.js</script></action>
|
36 |
<action method="addJs"><script>youama/slider/slider.js</script></action>
|
37 |
</reference>
|
38 |
<reference name="content">
|
31 |
<default>
|
32 |
<reference name="head">
|
33 |
<action method="addItem"><type>skin_css</type><name>css/youama/slider/slider.css</name></action>
|
34 |
+
<action ifconfig="youamaslider/mainoptions/jquery" method="addJs"><script>youama/jquery-1-7-1.js</script></action>
|
|
|
35 |
<action method="addJs"><script>youama/slider/slider.js</script></action>
|
36 |
</reference>
|
37 |
<reference name="content">
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Youama_Slider</name>
|
4 |
-
<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,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>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Youama"><dir name="Slider"><dir name="Block"><file name="Slider.php" hash="c539f4efb5bc3ff6dc097e84bcb1f639"/></dir><dir name="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.1.0</min><max>5.4.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Youama_Slider</name>
|
4 |
+
<version>2.0.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-01-23</date>
|
14 |
+
<time>20:12:07</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Youama"><dir name="Slider"><dir name="Block"><file name="Slider.php" hash="c539f4efb5bc3ff6dc097e84bcb1f639"/></dir><dir name="Helper"><file name="Config.php" hash="3f0d5d9471ae14ee59829deed0b2ff1a"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Animations.php" hash="f27fb53bebe34ed18d6c7cb8e0e68bb7"/><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="bad217e8d23d6c37cfe8867c9a49f3e6"/><file name="system.xml" hash="93a78f503b27d973e6350e0b45246207"/></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="e2f1664b8424bb0eb90c0d3810a7ed8f"/></dir><dir name="template"><dir name="youama"><dir name="slider"><file name="slider.phtml" hash="0fb5dd59f70b48adedf10379b28e5fbf"/></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="61401ea88703b86f871f28e776aceb18"/></dir></dir></dir></target><target name="magemedia"><dir name="youama"><dir name="slider"><file name="default1.jpg" hash="7507e7ea64a2abd7837c1f2735486c41"/><file name="default2.jpg" hash="8c249d367cc0246c6b59c936a24dfdf0"/></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>
|