Version Notes
- Fixed bug with image helper file
- Increased max image width and height
Download this release
Release Info
Developer | Activated Apps |
Extension | Activated_Slider |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/Activated/Slider/Block/Slider.php +1 -3
- app/code/community/Activated/Slider/Helper/Image.php +4 -4
- app/code/community/Activated/Slider/etc/system.xml +3 -3
- app/code/community/Activated/Slider/etc/widget.xml +0 -21
- app/design/frontend/base/default/layout/activated_slider.xml +1 -7
- package.xml +6 -5
- skin/frontend/base/default/css/activated/slider/flexslider.css +2 -2
app/code/community/Activated/Slider/Block/Slider.php
CHANGED
@@ -5,8 +5,7 @@
|
|
5 |
* @author Activated
|
6 |
*/
|
7 |
|
8 |
-
class Activated_Slider_Block_Slider extends Mage_Core_Block_Template
|
9 |
-
implements Mage_Widget_Block_Interface
|
10 |
{
|
11 |
/**
|
12 |
* Slider id
|
@@ -36,7 +35,6 @@ class Activated_Slider_Block_Slider extends Mage_Core_Block_Template
|
|
36 |
if (Mage::helper('slider')->isEnabled()) {
|
37 |
$html = parent::_toHtml();
|
38 |
$this->setId($this->getSliderId());
|
39 |
-
Mage::log('To HTML hit', null, 'banner.log');
|
40 |
return $html;
|
41 |
}
|
42 |
}
|
5 |
* @author Activated
|
6 |
*/
|
7 |
|
8 |
+
class Activated_Slider_Block_Slider extends Mage_Core_Block_Template
|
|
|
9 |
{
|
10 |
/**
|
11 |
* Slider id
|
35 |
if (Mage::helper('slider')->isEnabled()) {
|
36 |
$html = parent::_toHtml();
|
37 |
$this->setId($this->getSliderId());
|
|
|
38 |
return $html;
|
39 |
}
|
40 |
}
|
app/code/community/Activated/Slider/Helper/Image.php
CHANGED
@@ -28,28 +28,28 @@ Mage_Core_Helper_Abstract
|
|
28 |
*
|
29 |
* @var int
|
30 |
*/
|
31 |
-
const MIN_HEIGHT =
|
32 |
|
33 |
/**
|
34 |
* Maximum image height in pixels
|
35 |
*
|
36 |
* @var int
|
37 |
*/
|
38 |
-
const MAX_HEIGHT =
|
39 |
|
40 |
/**
|
41 |
* Minimum image width in pixels
|
42 |
*
|
43 |
* @var int
|
44 |
*/
|
45 |
-
const MIN_WIDTH =
|
46 |
|
47 |
/**
|
48 |
* Maximum image width in pixels
|
49 |
*
|
50 |
* @var int
|
51 |
*/
|
52 |
-
const MAX_WIDTH =
|
53 |
|
54 |
/**
|
55 |
* Array of image size limitation
|
28 |
*
|
29 |
* @var int
|
30 |
*/
|
31 |
+
const MIN_HEIGHT = 1;
|
32 |
|
33 |
/**
|
34 |
* Maximum image height in pixels
|
35 |
*
|
36 |
* @var int
|
37 |
*/
|
38 |
+
const MAX_HEIGHT = 5000;
|
39 |
|
40 |
/**
|
41 |
* Minimum image width in pixels
|
42 |
*
|
43 |
* @var int
|
44 |
*/
|
45 |
+
const MIN_WIDTH = 1;
|
46 |
|
47 |
/**
|
48 |
* Maximum image width in pixels
|
49 |
*
|
50 |
* @var int
|
51 |
*/
|
52 |
+
const MAX_WIDTH = 5000;
|
53 |
|
54 |
/**
|
55 |
* Array of image size limitation
|
app/code/community/Activated/Slider/etc/system.xml
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
<?xml version="1.0" ?>
|
2 |
<config>
|
3 |
<tabs>
|
4 |
-
<
|
5 |
<label>Activated Extensions</label>
|
6 |
<sort_order>100</sort_order>
|
7 |
-
</
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
<slider>
|
11 |
<class>separator-top</class>
|
12 |
<label>Slider</label>
|
13 |
-
<tab>
|
14 |
<frontend_type>text</frontend_type>
|
15 |
<sort_order>500</sort_order>
|
16 |
<show_in_default>1</show_in_default>
|
1 |
<?xml version="1.0" ?>
|
2 |
<config>
|
3 |
<tabs>
|
4 |
+
<slider translate="label">
|
5 |
<label>Activated Extensions</label>
|
6 |
<sort_order>100</sort_order>
|
7 |
+
</slider>
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
<slider>
|
11 |
<class>separator-top</class>
|
12 |
<label>Slider</label>
|
13 |
+
<tab>slider</tab>
|
14 |
<frontend_type>text</frontend_type>
|
15 |
<sort_order>500</sort_order>
|
16 |
<show_in_default>1</show_in_default>
|
app/code/community/Activated/Slider/etc/widget.xml
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<widgets>
|
3 |
-
<slider type="slider/slider" translate="name description">
|
4 |
-
<name>Activated Slider</name>
|
5 |
-
<description>Responsive slider by Activated Apps</description>
|
6 |
-
<parameters>
|
7 |
-
<slider_id translate="label">
|
8 |
-
<visible>1</visible>
|
9 |
-
<label>Choose a slider</label>
|
10 |
-
<type>select</type>
|
11 |
-
<source_model>slider/slider</source_model>
|
12 |
-
</slider_id>
|
13 |
-
<template>
|
14 |
-
<required>1</required>
|
15 |
-
<visible>0</visible>
|
16 |
-
<value>activated/slider/banner.phtml</value>
|
17 |
-
<type>text</type>
|
18 |
-
</template>
|
19 |
-
</parameters>
|
20 |
-
</slider>
|
21 |
-
</widgets>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/layout/activated_slider.xml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?xml version="1.0" ?>
|
2 |
<layout version="1.0.0">
|
3 |
-
<
|
4 |
<reference name="head">
|
5 |
<action method="addCss">
|
6 |
<stylesheet>css/activated/slider/flexslider.css</stylesheet>
|
@@ -14,13 +14,7 @@
|
|
14 |
<action method="addJs">
|
15 |
<script>activated/slider/banner.js</script>
|
16 |
</action>
|
17 |
-
<action method="removeItem">
|
18 |
-
<type>skin_js</type>
|
19 |
-
<name>js/lib/jquery-1.10.2.min.js</name>
|
20 |
-
</action>
|
21 |
</reference>
|
22 |
-
</default>
|
23 |
-
<cms_index_index>
|
24 |
<reference name="content">
|
25 |
<block type="slider/slider" name="banner" before="-" template="activated/slider/banner.phtml">
|
26 |
<action method="setId">
|
1 |
<?xml version="1.0" ?>
|
2 |
<layout version="1.0.0">
|
3 |
+
<cms_index_index>
|
4 |
<reference name="head">
|
5 |
<action method="addCss">
|
6 |
<stylesheet>css/activated/slider/flexslider.css</stylesheet>
|
14 |
<action method="addJs">
|
15 |
<script>activated/slider/banner.js</script>
|
16 |
</action>
|
|
|
|
|
|
|
|
|
17 |
</reference>
|
|
|
|
|
18 |
<reference name="content">
|
19 |
<block type="slider/slider" name="banner" before="-" template="activated/slider/banner.phtml">
|
20 |
<action method="setId">
|
package.xml
CHANGED
@@ -1,18 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Activated_Slider</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.activatedapps.com/legal/LICENSE.pdf">EULA</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Slider manager with responsive capabilities.</summary>
|
10 |
<description>The Activated Slider gives the ability to easily manage banners on your site. Sliders are responsive out of the box. Static content is also supported by adding a single banner. Allows placement of multiple sliders on a single page. This extension is geared toward developers looking for flexible solutions to customize to fit their clients needs.</description>
|
11 |
-
<notes
|
|
|
12 |
<authors><author><name>Activated Apps</name><user>Owner</user><email>admin@activatedapps.com</email></author></authors>
|
13 |
-
<date>2014-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Activated"><dir name="Slider"><dir name="Block"><dir name="Adminhtml"><dir name="Banner"><dir name="Edit"><dir name="Form"><dir name="Element"><file name="Image.php" hash="78a03379b474bd10eb2e87691224be29"/></dir></dir><file name="Form.php" hash="0b605d65a390c6b9ff1497077a4651af"/><dir name="Tab"><file name="Content.php" hash="e799c4064ab036087a5ad05eb2eef762"/><file name="Image.php" hash="2611205adca02ddff2c4111ffdd1a503"/><file name="Main.php" hash="b949c9fcdab66b2642745c6626949c5f"/></dir><file name="Tabs.php" hash="87ad986526882c1e545cf93acbf6476d"/></dir><file name="Edit.php" hash="3fcfb12b84c747732e3a119820e13693"/><file name="Grid.php" hash="8134d6d85ac99f6cee602660c96a8d3f"/></dir><file name="Banner.php" hash="502668d0f9dbf8e436bd1e305f716a49"/><dir name="Slider"><dir name="Edit"><file name="Form.php" hash="b04a638a2e952e82d9dad07982640569"/><dir name="Tab"><file name="Banner.php" hash="acb19f8733f563b3a56ce7a3a1436655"/><file name="Main.php" hash="e169dc6e1335503248eefff375569990"/></dir><file name="Tabs.php" hash="242e2d57684ad9664f2483185f84307e"/></dir><file name="Edit.php" hash="557ac3b46ef85958a3574ad9139c886c"/><file name="Grid.php" hash="8d627475fcbd6355bb0fe9f07cbecc66"/></dir><file name="Slider.php" hash="0cbeff77711015aafd873600c0d309b3"/></dir><file name="Banner.php" hash="9e3e554f8ef5e5817b04e524b7abb0ab"/><file name="Slider.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>5.5.5</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Activated_Slider</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.activatedapps.com/legal/LICENSE.pdf">EULA</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Slider manager with responsive capabilities.</summary>
|
10 |
<description>The Activated Slider gives the ability to easily manage banners on your site. Sliders are responsive out of the box. Static content is also supported by adding a single banner. Allows placement of multiple sliders on a single page. This extension is geared toward developers looking for flexible solutions to customize to fit their clients needs.</description>
|
11 |
+
<notes>- Fixed bug with image helper file
|
12 |
+
- Increased max image width and height</notes>
|
13 |
<authors><author><name>Activated Apps</name><user>Owner</user><email>admin@activatedapps.com</email></author></authors>
|
14 |
+
<date>2014-07-18</date>
|
15 |
+
<time>17:29:12</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Activated"><dir name="Slider"><dir name="Block"><dir name="Adminhtml"><dir name="Banner"><dir name="Edit"><dir name="Form"><dir name="Element"><file name="Image.php" hash="78a03379b474bd10eb2e87691224be29"/></dir></dir><file name="Form.php" hash="0b605d65a390c6b9ff1497077a4651af"/><dir name="Tab"><file name="Content.php" hash="e799c4064ab036087a5ad05eb2eef762"/><file name="Image.php" hash="2611205adca02ddff2c4111ffdd1a503"/><file name="Main.php" hash="b949c9fcdab66b2642745c6626949c5f"/></dir><file name="Tabs.php" hash="87ad986526882c1e545cf93acbf6476d"/></dir><file name="Edit.php" hash="3fcfb12b84c747732e3a119820e13693"/><file name="Grid.php" hash="8134d6d85ac99f6cee602660c96a8d3f"/></dir><file name="Banner.php" hash="502668d0f9dbf8e436bd1e305f716a49"/><dir name="Slider"><dir name="Edit"><file name="Form.php" hash="b04a638a2e952e82d9dad07982640569"/><dir name="Tab"><file name="Banner.php" hash="acb19f8733f563b3a56ce7a3a1436655"/><file name="Main.php" hash="e169dc6e1335503248eefff375569990"/></dir><file name="Tabs.php" hash="242e2d57684ad9664f2483185f84307e"/></dir><file name="Edit.php" hash="557ac3b46ef85958a3574ad9139c886c"/><file name="Grid.php" hash="8d627475fcbd6355bb0fe9f07cbecc66"/></dir><file name="Slider.php" hash="0cbeff77711015aafd873600c0d309b3"/></dir><file name="Banner.php" hash="9e3e554f8ef5e5817b04e524b7abb0ab"/><file name="Slider.php" hash="13653da5c34ec2daf7a1a0d9ced22612"/></dir><dir name="Helper"><file name="Admin.php" hash="83bf2b0d91961a5aee2800996cab3648"/><file name="Data.php" hash="914ba85e1b5b2939d998928630b270a2"/><file name="Image.php" hash="035c74762d3a1b2c3569180f2c2d2121"/></dir><dir name="Model"><file name="Banner.php" hash="a198bc4740bfd592082ee4e2ef9a06f3"/><file name="Reference.php" hash="d9f98bce6b513d614b94108c6dff6ebf"/><dir name="Resource"><dir name="Banner"><file name="Collection.php" hash="76ffbfcf7d06c55905353163d09b9cbe"/></dir><file name="Banner.php" hash="305aa188188619c2645b69ba6d2ed9f0"/><dir name="Reference"><file name="Collection.php" hash="4330b30bb2732bcdc2306c29487c39d4"/></dir><file name="Reference.php" hash="5d6bfd5993e58b0f18e07f0bff541d45"/><file name="Setup.php" hash="26ab9e43398f1e7be0ce0e3aad01d3da"/><dir name="Slider"><file name="Collection.php" hash="5dc5236e22a4b41f9bd1a1558495e32e"/></dir><file name="Slider.php" hash="2029a0395287371d3fea18d8ccb09873"/></dir><file name="Slider.php" hash="288b8369868c77a4beec838896c200f7"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannerController.php" hash="475c3feba82143b55f052b1754fcd7db"/><file name="SliderController.php" hash="1121661b4e687a251cd5f79c2f6548d8"/></dir><file name="IndexController.php" hash="479e1b13cc169d44dfd1bf222b7fa5fd"/></dir><dir name="etc"><file name="adminhtml.xml" hash="603674d2558837cd44bfaa303f828b07"/><file name="config.xml" hash="2dd9f99c6fffaf18de0df5e721fcc434"/><file name="system.xml" hash="c73d8e4ddeb42c83e89602952d50cdc6"/></dir><dir name="sql"><dir name="slider_setup"><file name="install-1.0.0.php" hash="23ea2a26d8b19f1d21e7430197d9cf8f"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Activated_Slider.xml" hash="587768b668fb39f9583b591e8747ae2e"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="activated_slider.xml" hash="dff868303051d8c8cf0cf85c88a9feca"/></dir><dir name="template"><dir name="slider"><file name="form.phtml" hash="1d9cc10eb69eb23d385fc0b921ddb7d8"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="activated_slider.xml" hash="2fb077e3b268427626921be912ce9d0c"/></dir><dir name="template"><dir name="activated"><dir name="slider"><file name="banner.phtml" hash="a57ee3d4d1e3d10c80c77f8a9b72c447"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="activated"><dir name="slider"><file name="flexslider.css" hash="6f7dc85d174d9f4e6e18198e888513bf"/><dir name="fonts"><file name="flexslider-icon.eot" hash="9c9cb7a6055043933ba68854f521af45"/><file name="flexslider-icon.svg" hash="10e8a5455c4522c48aa975eacd4f0023"/><file name="flexslider-icon.ttf" hash="b4c9e5057989b9727a5df4e0a21af33c"/><file name="flexslider-icon.woff" hash="f8b92f66539473eea649c8514eb836a0"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="activated"><dir name="slider"><file name="banner.js" hash="ac0daf7f9f84a32e2f641570fccf3951"/><file name="jquery.flexslider-min.js" hash="850417bf7853c0623933a47243cb3a5a"/><file name="jquery.js" hash="9e0fc95e071e2914ddbcdfe0fcd76d70"/></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.3.0</min><max>5.5.5</max></php></required></dependencies>
|
19 |
</package>
|
skin/frontend/base/default/css/activated/slider/flexslider.css
CHANGED
@@ -37,7 +37,7 @@
|
|
37 |
/* FlexSlider Necessary Styles
|
38 |
*********************************/
|
39 |
.activated-banner {margin: 0; padding: 0;}
|
40 |
-
.activated-banner .activated-slides > li {
|
41 |
.activated-banner .activated-slides img {width: 100%; display: block;}
|
42 |
.activated-pauseplay span {text-transform: capitalize;}
|
43 |
|
@@ -69,7 +69,7 @@ html[xmlns] .activated-slides {display: block;}
|
|
69 |
.activated-banner:hover .activated-next { opacity: 0.7; right: 10px; }
|
70 |
.activated-banner:hover .activated-next:hover, .flexslider:hover .flex-prev:hover { opacity: 1; }
|
71 |
.activated-direction-nav .activated-disabled { opacity: 0!important; filter:alpha(opacity=0); cursor: default; }
|
72 |
-
.activated-direction-nav a:before { font-family: "flexslider-icon"; font-
|
73 |
.activated-direction-nav a.activated-next:before { content: '\f002'; }
|
74 |
|
75 |
/* Pause/Play */
|
37 |
/* FlexSlider Necessary Styles
|
38 |
*********************************/
|
39 |
.activated-banner {margin: 0; padding: 0;}
|
40 |
+
.activated-banner .activated-slides > li {display: none; -webkit-backface-visibility: hidden; position: relative; } /* Hide the slides before the JS is loaded. Avoids image jumping */
|
41 |
.activated-banner .activated-slides img {width: 100%; display: block;}
|
42 |
.activated-pauseplay span {text-transform: capitalize;}
|
43 |
|
69 |
.activated-banner:hover .activated-next { opacity: 0.7; right: 10px; }
|
70 |
.activated-banner:hover .activated-next:hover, .flexslider:hover .flex-prev:hover { opacity: 1; }
|
71 |
.activated-direction-nav .activated-disabled { opacity: 0!important; filter:alpha(opacity=0); cursor: default; }
|
72 |
+
.activated-direction-nav a:before { font-family: "flexslider-icon"; font-size: 40px; display: inline-block; content: '\f001'; }
|
73 |
.activated-direction-nav a.activated-next:before { content: '\f002'; }
|
74 |
|
75 |
/* Pause/Play */
|