Version Notes
Added auto JS/CSS includes for any page that has a iBanners block
Download this release
Release Info
Developer | fishpig |
Extension | Fishpigs_iBanners |
Version | 1.1.0.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.1.0.0
app/code/community/Fishpig/IBanners/Block/View.php
CHANGED
@@ -8,6 +8,9 @@
|
|
8 |
|
9 |
class Fishpig_iBanners_Block_View extends Mage_Core_Block_Template
|
10 |
{
|
|
|
|
|
|
|
11 |
/**
|
12 |
* Determine whether a valid group is set
|
13 |
*
|
@@ -134,4 +137,19 @@ class Fishpig_iBanners_Block_View extends Mage_Core_Block_Template
|
|
134 |
|
135 |
return $this;
|
136 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
}
|
8 |
|
9 |
class Fishpig_iBanners_Block_View extends Mage_Core_Block_Template
|
10 |
{
|
11 |
+
const HEAD_ITEM_KEY_JS = 'js/fishpig/carousel.min.js';
|
12 |
+
const HEAD_ITEM_KEY_CSS = 'skin_css/css/ibanners.css';
|
13 |
+
|
14 |
/**
|
15 |
* Determine whether a valid group is set
|
16 |
*
|
137 |
|
138 |
return $this;
|
139 |
}
|
140 |
+
|
141 |
+
/**
|
142 |
+
* Ensure the JS and CSS have been included
|
143 |
+
*
|
144 |
+
* @return $this
|
145 |
+
*/
|
146 |
+
protected function _prepareLayout()
|
147 |
+
{
|
148 |
+
if (($headBlock = $this->getLayout()->getBlock('head')) !== false) {
|
149 |
+
$headBlock->addJs('fishpig/carousel.min.js');
|
150 |
+
$headBlock->addCss('css/ibanners.css');
|
151 |
+
}
|
152 |
+
|
153 |
+
return parent::_prepareLayout();
|
154 |
+
}
|
155 |
}
|
app/code/community/Fishpig/IBanners/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fishpig_iBanners>
|
5 |
-
<version>1.0.
|
6 |
</Fishpig_iBanners>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Fishpig_iBanners>
|
5 |
+
<version>1.1.0.0</version>
|
6 |
</Fishpig_iBanners>
|
7 |
</modules>
|
8 |
<global>
|
app/code/community/Fishpig/IBanners/notes.txt
CHANGED
@@ -10,6 +10,9 @@
|
|
10 |
TODO
|
11 |
- Convert animation and control values to serialized single columns
|
12 |
|
|
|
|
|
|
|
13 |
14/08/2012 - 1.0.7
|
14 |
- Added dynamic controls that can be activated via the group
|
15 |
- Removed group animation settings from config
|
10 |
TODO
|
11 |
- Convert animation and control values to serialized single columns
|
12 |
|
13 |
+
23/03/2013 - 1.1.0.0
|
14 |
+
- Added auto JS/CSS includes for any page that has a iBanners block
|
15 |
+
|
16 |
14/08/2012 - 1.0.7
|
17 |
- Added dynamic controls that can be activated via the group
|
18 |
- Removed group animation settings from config
|
app/design/frontend/base/default/layout/ibanners.xml
CHANGED
@@ -1,22 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<layout>
|
3 |
-
|
4 |
-
<!--
|
5 |
-
/**
|
6 |
-
* Use this handle to include the CSS and JavaScript files needed to display the banner group
|
7 |
-
* To include these on a page, add the following to your XML
|
8 |
-
*
|
9 |
-
* <update handle="ibanners_default" />
|
10 |
-
*
|
11 |
-
*/
|
12 |
-
-->
|
13 |
-
<ibanners_default>
|
14 |
-
<reference name="head">
|
15 |
-
<action method="addJs"><script>fishpig/carousel.min.js</script></action>
|
16 |
-
<action method="addCss"><stylesheet>css/ibanners.css</stylesheet></action>
|
17 |
-
</reference>
|
18 |
-
</ibanners_default>
|
19 |
-
|
20 |
<!--
|
21 |
/**
|
22 |
* The cms_index_index block below injects the banner group with the code 'home'
|
@@ -28,7 +11,6 @@
|
|
28 |
*/
|
29 |
-->
|
30 |
<cms_index_index>
|
31 |
-
<update handle="ibanners_default" />
|
32 |
<reference name="content">
|
33 |
<block type="ibanners/view" name="ibanners.homepage" before="-">
|
34 |
<action method="setGroupCode"><group_code>home</group_code></action>
|
@@ -36,5 +18,4 @@
|
|
36 |
</block>
|
37 |
</reference>
|
38 |
</cms_index_index>
|
39 |
-
|
40 |
</layout>
|
1 |
<?xml version="1.0"?>
|
2 |
<layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
<!--
|
4 |
/**
|
5 |
* The cms_index_index block below injects the banner group with the code 'home'
|
11 |
*/
|
12 |
-->
|
13 |
<cms_index_index>
|
|
|
14 |
<reference name="content">
|
15 |
<block type="ibanners/view" name="ibanners.homepage" before="-">
|
16 |
<action method="setGroupCode"><group_code>home</group_code></action>
|
18 |
</block>
|
19 |
</reference>
|
20 |
</cms_index_index>
|
|
|
21 |
</layout>
|
package.xml
CHANGED
@@ -1,19 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fishpigs_iBanners</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://fishpig.co.uk/license.txt">FishPig EULA</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Create multiple banner slideshows for your site.</summary>
|
10 |
<description>Create multiple banner slideshows for your site.</description>
|
11 |
-
<notes>Added
|
12 |
-
Removed group animation settings from config</notes>
|
13 |
<authors><author><name>fishpig</name><user>fishpig</user><email>ben@fishpig.co.uk</email></author></authors>
|
14 |
-
<date>
|
15 |
-
<time>
|
16 |
-
<contents><target name="magecommunity"><dir name="Fishpig"><dir name="IBanners"><dir name="Block"><dir name="Adminhtml"><dir name="Banner"><dir name="Edit"><file name="Form.php" hash="e9cd0d7436d36048706bc474704d2b82"/><dir name="Tab"><file name="Form.php" hash="a6ab04d3bb183e32935e3e285fbdabd5"/></dir><file name="Tabs.php" hash="60a82a390e8580594885bceb19a13460"/></dir><file name="Edit.php" hash="93807e5b677fd064e49c547551507202"/><file name="Grid.php" hash="59ca8a1c3822e37f1e82f464589f6525"/><dir name="Helper"><file name="Image.php" hash="da1821e82b38af686705efb53f5a1ca9"/></dir></dir><file name="Banner.php" hash="181c9778d624e104ab3f8e729c58b3f7"/><dir name="Form"><dir name="Renderer"><file name="Useconfig.php" hash="df579ff6a4a783ed17d6c5bc6118e171"/></dir></dir><dir name="Group"><dir name="Edit"><file name="Form.php" hash="5b8f4f8649e974f80ea21de7f323788e"/><dir name="Tab"><file name="Banners.php" hash="f13f72d714e73ba5481fe488b369c879"/><file name="Form.php" hash="67ab47bbe207e41b7542cddc15401590"/></dir><file name="Tabs.php" hash="d57a68d75dde73b39127dc8a932b858e"/></dir><file name="Edit.php" hash="1f3ca94777f0eb8a3363d245d9c5bc9d"/><file name="Grid.php" hash="2d86e326cb6825c8e7738e5c73abaf67"/></dir><file name="Group.php" hash="6a6ea8ad3f9e1e25dcf0411fa5347b9c"/></dir><file name="View.php" hash="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fishpigs_iBanners</name>
|
4 |
+
<version>1.1.0.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://fishpig.co.uk/license.txt">FishPig EULA</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Create multiple banner slideshows for your site.</summary>
|
10 |
<description>Create multiple banner slideshows for your site.</description>
|
11 |
+
<notes>Added auto JS/CSS includes for any page that has a iBanners block</notes>
|
|
|
12 |
<authors><author><name>fishpig</name><user>fishpig</user><email>ben@fishpig.co.uk</email></author></authors>
|
13 |
+
<date>2013-03-25</date>
|
14 |
+
<time>15:11:34</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Fishpig"><dir name="IBanners"><dir name="Block"><dir name="Adminhtml"><dir name="Banner"><dir name="Edit"><file name="Form.php" hash="e9cd0d7436d36048706bc474704d2b82"/><dir name="Tab"><file name="Form.php" hash="a6ab04d3bb183e32935e3e285fbdabd5"/></dir><file name="Tabs.php" hash="60a82a390e8580594885bceb19a13460"/></dir><file name="Edit.php" hash="93807e5b677fd064e49c547551507202"/><file name="Grid.php" hash="59ca8a1c3822e37f1e82f464589f6525"/><dir name="Helper"><file name="Image.php" hash="da1821e82b38af686705efb53f5a1ca9"/></dir></dir><file name="Banner.php" hash="181c9778d624e104ab3f8e729c58b3f7"/><dir name="Form"><dir name="Renderer"><file name="Useconfig.php" hash="df579ff6a4a783ed17d6c5bc6118e171"/></dir></dir><dir name="Group"><dir name="Edit"><file name="Form.php" hash="5b8f4f8649e974f80ea21de7f323788e"/><dir name="Tab"><file name="Banners.php" hash="f13f72d714e73ba5481fe488b369c879"/><file name="Form.php" hash="67ab47bbe207e41b7542cddc15401590"/></dir><file name="Tabs.php" hash="d57a68d75dde73b39127dc8a932b858e"/></dir><file name="Edit.php" hash="1f3ca94777f0eb8a3363d245d9c5bc9d"/><file name="Grid.php" hash="2d86e326cb6825c8e7738e5c73abaf67"/></dir><file name="Group.php" hash="6a6ea8ad3f9e1e25dcf0411fa5347b9c"/></dir><file name="View.php" hash="5dd113d04a13f11f4d267916313dc473"/></dir><dir name="Helper"><file name="Data.php" hash="aeaa36a9c56477944b190b63442fc89d"/><file name="Image.php" hash="92a06beda3aefa58577dd91556001115"/></dir><dir name="Model"><file name="Banner.php" hash="e734cbb06eb312cb64022f286c0b1898"/><file name="Group.php" hash="095c22eb1f93aafb57effca8709f5338"/><dir name="Mysql4"><dir name="Banner"><file name="Collection.php" hash="511a3aceff96f430a5fa44a3a7ff2b05"/></dir><file name="Banner.php" hash="81752a0ab34bde996d9472ac67272472"/><dir name="Group"><file name="Collection.php" hash="ab6a49e01708c118052a696a0e09184c"/></dir><file name="Group.php" hash="65169f143695653cafa08a3aeca28904"/></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Carousel"><file name="Effect.php" hash="b615ef28aa59aed914dd95a0242cfc9e"/><file name="Transition.php" hash="290f6abe41d0d44f72f8188a77f8e475"/></dir><dir name="Controls"><file name="Position.php" hash="fe9d0c6845fd0fc28603baee7b053c32"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannerController.php" hash="e0dcd98984c1d4d41d755410dfc2fcc0"/><file name="GroupController.php" hash="f388ecef8eef636305fdb1dd3f069815"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3c83bfafc6ce3e5306ebae43dec8dccf"/><file name="config.xml" hash="15b3255054961d858adb5b27f6d0b8c7"/><file name="system.xml" hash="bacc23106d758a0c541ee1c1cadfd610"/></dir><file name="license.txt" hash="257eae92a36bdaaf9584fbf8ba76d1c6"/><file name="notes.txt" hash="51eb0d7a6d6b6773ac4e60d8d9d5208f"/><dir name="sql"><dir name="ibanners_setup"><file name="mysql4-install-0.1.0.php" hash="62e4961272f2d697595002b006e72731"/><file name="mysql4-upgrade-0.5.2-0.5.3.php" hash="2e85887fb121d988357a45785d9f06df"/><file name="mysql4-upgrade-0.5.4-0.5.5.php" hash="a16fd4c674ed65eed1c7cee851960d28"/><file name="mysql4-upgrade-0.5.5-0.5.6.php" hash="a002305ec4b958c7213309d874b349f8"/><file name="mysql4-upgrade-0.9.0-0.9.1.php" hash="b970018526e15b6fc938b1866c5bfd81"/><file name="mysql4-upgrade-0.9.1-0.9.2.php" hash="07ba18c243e573655e43c64ee1a0d876"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="7f1cb0ec0dca8a5a4cd07ea3e9444cf7"/><file name="mysql4-upgrade-1.0.5-1.0.6.php" hash="2a430094f423b90adead0fcc6defc26e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ibanners.xml" hash="a2370cef3c8a48af13801a5844218fb7"/></dir><dir name="template"><dir name="ibanners"><file name="getcode.phtml" hash="79cd6c31a32d21071fa5c7645f629053"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ibanners.xml" hash="a68d69986eef07a540f3313cee0a0e7d"/></dir><dir name="template"><dir name="ibanners"><file name="default.phtml" hash="677f081bb8e40f62771abec88aac857c"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="fishpig"><file name="carousel.min.js" hash="cfd7a8d08a6dca87e4211a400877716e"/></dir></dir><dir name="app"><dir name="etc"><dir name="modules"><file name="Fishpig_iBanners.xml" hash="d3476db8a3f950a7bf249b5382b5c42e"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="ibanners.css" hash="f39554b3dcdaad686da4093e59b4efef"/></dir><dir name="images"><dir name="ibanners"><file name="arrow-left.png" hash="a587a6ef8ed482ce83b468b2f8b90008"/><file name="arrow-right.png" hash="001286015205ecf53766877a1d92a784"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><file name="ibanners.css" hash="328b9e66068670364e620f6e5b194ce5"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|