Version Notes
MultiBanner with Multiple Effects for Images and Html (Slideshow, TextFade, Square Transition, Play Pause, Numbered banners, Horizontal Slider, Vertical Slider and Many more custom effects)
Download this release
Release Info
Developer | Magento Core Team |
Extension | MultiBanner_Module |
Version | 0.2.0 |
Comparing to | |
See all releases |
Code changes from version 0.1.2 to 0.2.0
- app/code/community/Uni/Banner/Block/Adminhtml/Bannergroup/Edit/Tab/Banner.php +21 -0
- app/code/community/Uni/Banner/etc/config.xml +10 -1
- app/code/community/Uni/Banner/sql/banner_setup/{mysql4-upgrade-0.1.0-0.1.1.php → mysql4-upgrade-0.1.0-0.2.0.php} +0 -0
- app/code/community/Uni/Banner/sql/banner_setup/mysql4-upgrade-0.1.1-0.1.2.php +0 -13
- package.xml +3 -3
app/code/community/Uni/Banner/Block/Adminhtml/Bannergroup/Edit/Tab/Banner.php
CHANGED
@@ -26,6 +26,27 @@ class Uni_Banner_Block_Adminhtml_Bannergroup_Edit_Tab_Banner extends Uni_Banner_
|
|
26 |
return parent::_prepareCollection();
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
protected function _prepareColumns() {
|
30 |
$this->addColumn('banner_triggers', array(
|
31 |
'header_css_class' => 'a-center',
|
26 |
return parent::_prepareCollection();
|
27 |
}
|
28 |
|
29 |
+
protected function _addColumnFilterToCollection($column) {
|
30 |
+
if ($this->getCollection()) {
|
31 |
+
if ($column->getId() == 'banner_triggers') {
|
32 |
+
$bannerIds = $this->_getSelectedBanners();
|
33 |
+
if (empty($bannerIds)) {
|
34 |
+
$bannerIds = 0;
|
35 |
+
}
|
36 |
+
if ($column->getFilter()->getValue()) {
|
37 |
+
$this->getCollection()->addFieldToFilter('banner_id', array('in' => $bannerIds));
|
38 |
+
} else {
|
39 |
+
if ($bannerIds) {
|
40 |
+
$this->getCollection()->addFieldToFilter('banner_id', array('nin' => $bannerIds));
|
41 |
+
}
|
42 |
+
}
|
43 |
+
} else {
|
44 |
+
parent::_addColumnFilterToCollection($column);
|
45 |
+
}
|
46 |
+
}
|
47 |
+
return $this;;
|
48 |
+
}
|
49 |
+
|
50 |
protected function _prepareColumns() {
|
51 |
$this->addColumn('banner_triggers', array(
|
52 |
'header_css_class' => 'a-center',
|
app/code/community/Uni/Banner/etc/config.xml
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
<config>
|
12 |
<modules>
|
13 |
<Uni_Banner>
|
14 |
-
<version>0.
|
15 |
</Uni_Banner>
|
16 |
</modules>
|
17 |
<frontend>
|
@@ -31,6 +31,15 @@
|
|
31 |
</banner>
|
32 |
</updates>
|
33 |
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
</frontend>
|
35 |
|
36 |
<admin>
|
11 |
<config>
|
12 |
<modules>
|
13 |
<Uni_Banner>
|
14 |
+
<version>0.2.0</version>
|
15 |
</Uni_Banner>
|
16 |
</modules>
|
17 |
<frontend>
|
31 |
</banner>
|
32 |
</updates>
|
33 |
</layout>
|
34 |
+
<translate>
|
35 |
+
<modules>
|
36 |
+
<Uni_Banner>
|
37 |
+
<files>
|
38 |
+
<default>Uni_Banner.csv</default>
|
39 |
+
</files>
|
40 |
+
</Uni_Banner>
|
41 |
+
</modules>
|
42 |
+
</translate>
|
43 |
</frontend>
|
44 |
|
45 |
<admin>
|
app/code/community/Uni/Banner/sql/banner_setup/{mysql4-upgrade-0.1.0-0.1.1.php → mysql4-upgrade-0.1.0-0.2.0.php}
RENAMED
File without changes
|
app/code/community/Uni/Banner/sql/banner_setup/mysql4-upgrade-0.1.1-0.1.2.php
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Unicode Systems
|
5 |
-
* @category Uni
|
6 |
-
* @package Uni_Banner
|
7 |
-
* @copyright Copyright (c) 2010-2011 Unicode Systems. (http://www.unicodesystems.in)
|
8 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
9 |
-
*/
|
10 |
-
|
11 |
-
$installer = $this;
|
12 |
-
$installer->startSetup();
|
13 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MultiBanner_Module</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -11,8 +11,8 @@
|
|
11 |
<notes>MultiBanner with Multiple Effects for Images and Html (Slideshow, TextFade, Square Transition, Play Pause, Numbered banners, Horizontal Slider, Vertical Slider and Many more custom effects)</notes>
|
12 |
<authors><author><name>Unicode Systems</name><user>auto-converted</user><email>magento@unicodesystems.in</email></author></authors>
|
13 |
<date>2011-03-29</date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Uni"><dir name="Banner"><dir name="Block"><dir name="Adminhtml"><dir name="Banner"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="9a5c5e5a7cb369d0a38f9aa540dd22d3"/></dir><file name="Form.php" hash="38b2452ae924dc909fc868ce0472152b"/><file name="Tabs.php" hash="0bb21d21185c9bb37ad77ac412b2d0b0"/></dir><file name="Edit.php" hash="42ae82bd53c72a23cf2a8bce7e34904c"/><file name="Grid.php" hash="a6d01468a7f7d822dda36172f0437afc"/></dir><dir name="Bannergroup"><dir name="Edit"><dir name="Tab"><file name="Banner.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MultiBanner_Module</name>
|
4 |
+
<version>0.2.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
11 |
<notes>MultiBanner with Multiple Effects for Images and Html (Slideshow, TextFade, Square Transition, Play Pause, Numbered banners, Horizontal Slider, Vertical Slider and Many more custom effects)</notes>
|
12 |
<authors><author><name>Unicode Systems</name><user>auto-converted</user><email>magento@unicodesystems.in</email></author></authors>
|
13 |
<date>2011-03-29</date>
|
14 |
+
<time>09:30:00</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Uni"><dir name="Banner"><dir name="Block"><dir name="Adminhtml"><dir name="Banner"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="9a5c5e5a7cb369d0a38f9aa540dd22d3"/></dir><file name="Form.php" hash="38b2452ae924dc909fc868ce0472152b"/><file name="Tabs.php" hash="0bb21d21185c9bb37ad77ac412b2d0b0"/></dir><file name="Edit.php" hash="42ae82bd53c72a23cf2a8bce7e34904c"/><file name="Grid.php" hash="a6d01468a7f7d822dda36172f0437afc"/></dir><dir name="Bannergroup"><dir name="Edit"><dir name="Tab"><file name="Banner.php" hash="b9cf21a8c9669d795dbd5ca81a5e22e9"/><file name="Form.php" hash="10bf17d806a2a7ac40225591926c1d0a"/><file name="Gridbanner.php" hash="dcce73bb370d8a8408ec632b041ba1e7"/></dir><file name="Form.php" hash="ebff6e0a1b34cc3a804051e42c096195"/><file name="Tabs.php" hash="0995e31427f190134672cd6f1742f491"/></dir><file name="Edit.php" hash="24eb10494857b4e1bcbca9e610a6c9c9"/><file name="Grid.php" hash="d95f657091c73c5f54719f26be57107f"/></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Filter"><file name="Banner.php" hash="c1ed92c651694719259a53b226b6047d"/></dir><dir name="Renderer"><file name="Banner.php" hash="07748d8acbda1c615e9876dbc6ae1c67"/></dir></dir><file name="Column.php" hash="b041f265db1f8b5b29e026481beca2c9"/></dir><file name="Grid.php" hash="3aa37205f8628e2359b281ce28bd2df0"/></dir><file name="Banner.php" hash="0bbadbe6e27115c88dd020039b330544"/><file name="Bannergroup.php" hash="b8a5f39315a1167516a50c97e34bec73"/></dir><file name="Banner.php" hash="b9860becdebe13854f57608562654133"/></dir><dir name="Helper"><file name="Data.php" hash="12d0bb9eb35061bde449c5e14bcb4170"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Banner"><file name="Collection.php" hash="dcb31efab496c62f2ca41b52d0626582"/></dir><dir name="Bannergroup"><file name="Collection.php" hash="85aa604e2ad4f650d74eaaec83e5e051"/></dir><file name="Banner.php" hash="f61362105f685f9af1b415c48b9dfe20"/><file name="Bannergroup.php" hash="15b618d32df18e0109ffd0c9a10c3e1c"/></dir><dir name="Wysiwyg"><file name="Config.php" hash="e68bc1d442eb96fb42970d6717207df1"/></dir><file name="Banner.php" hash="2b6d1158a348f431428d66c78e83b897"/><file name="Bannergroup.php" hash="c52253efaec0899b6c401c50a7b71879"/><file name="Bannerresize.php" hash="f21a1b4869a47e31696e98ffd7278d59"/><file name="Status.php" hash="303c3ceb1045506f3101442c53a757ef"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannerController.php" hash="a848e54cc6bb133f8635e89e96114a82"/><file name="BannergroupController.php" hash="117895605c01f54a6c3d540062110818"/></dir><file name="IndexController.php" hash="1e4174335f518ad77d77da41b9b9033a"/></dir><dir name="etc"><file name="config.xml" hash="48c2ce923970442d518ce1fec84d7ea3"/><file name="system.xml" hash="a81c1b50fa0671f85404729195d7ee93"/></dir><dir name="sql"><dir name="banner_setup"><file name="mysql4-install-0.1.0.php" hash="c27554185f8a8588da9913c310f7127f"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="1d5c871770d33e312a1c34f710dc5ee8"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Uni_Banner.xml" hash="b87b3141a03cb0bb958ccb79efddae16"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Uni_Banner.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="magemedia"><dir name="custom"><dir name="banners"><dir name="resize"><dir name="home_banner"><file name="File-1300256573.jpg" hash="2839ae13352ee22c8feab6fdb0302b68"/><file name="File-1300256584.jpg" hash="73ee800f4a7432add9de7f048823245a"/><file name="File-1300256596.jpg" hash="354ea638044668783b279536e486cf29"/><file name="File-1300256608.jpg" hash="e3934877cfce389ddafed8580c5755b8"/></dir><dir name="left_banner"><file name="File-1300256584.jpg" hash="be9deb97102d41f43c6acd289cae9384"/><file name="File-1300256596.jpg" hash="f43e279cabef79beed4c7d0d30581720"/><file name="File-1300256608.jpg" hash="91a4caca0022551d57ef37f0b204073b"/></dir></dir><file name="File-1300256573.jpg" hash="6fb2a38dc107eacb41cf1656e899cf70"/><file name="File-1300256584.jpg" hash="1bc5b77f3e50b7fbe12c792ee438da45"/><file name="File-1300256596.jpg" hash="070cf6787aa56fbdaa1b2fd98708c34c"/><file name="File-1300256608.jpg" hash="b44a59383b3123a747d139bd0e71d2df"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="unibanner"><dir name="css"><dir name="images"><file name="down.gif" hash="d698c4f511816268545a63c77d6ce0fd"/><file name="next.gif" hash="5fc5d48d907ddac9863b9b0bc85d745e"/><file name="next.png" hash="59726e7ca92e062bcc90029094787e02"/><file name="next1.gif" hash="d2af7472a66cfda1c8d7ba2ebda0368a"/><file name="next1.png" hash="db3c55bb0b783c19f59066b7e4939cd7"/><file name="play.gif" hash="9819ff371d7e15eef8ff79795e4585e5"/><file name="play.png" hash="e73837c01109bdb234ac8e1e8076a637"/><file name="prev.gif" hash="7f9a78a60372aa33ebbc72f53157c48b"/><file name="prev.png" hash="9f878dcd6b60c471136f31724e0e10ed"/><file name="stop.gif" hash="e3eccc001802f253a39ef050d1716aff"/><file name="stop.png" hash="8dcb2264b104a25098d3cd2528aac712"/><file name="top.gif" hash="7090dab68f24cb227a897ef77741e9fb"/></dir><file name="carousel.css" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="custom.css" hash="e3b6e91906b016c4a4670a589332be41"/><file name="glider.css" hash="d28ead2c96afee6d2f0eb4aea9167661"/><file name="noieopacity.css" hash="14d8b9192f25abeb406caeb733b90c4e"/><file name="opacityother.css" hash="6ccce3a136027b9077d90a88623e2c63"/><file name="protoFlow.css" hash="3b885897663d1bb12351165a6aff5d23"/><file name="stylesban.css" hash="827917e0440350b696d97229c9569281"/></dir><dir name="js"><file name="ajaxtabs.js" hash="2131471ffe269a8feeb0cfff90c4c64e"/><file name="carousel.js" hash="35fc7ec591e4a1a8ecb3a664276e9f55"/><file name="crossfade.js" hash="ee37e8f8c9177e1ec6bf40b61e972d03"/><file name="custom.js" hash="37d46c9ccd5af57af1cd5b0f647ddb5b"/><file name="glider.js" hash="e8e1e39b6b6cb3dc7a3896bffad3e4d3"/><file name="numbered.js" hash="db1ca9b5de07bc6bbf7db70fd53b9b7b"/><file name="prettify.js" hash="947de7ec867cc555f04387f3d602bb20"/><file name="protoFlow.js" hash="fc0aea31d5605d96ef0d09be6ec96929"/><file name="protofade.js" hash="809e245be83bfea72409264ce7904b0f"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="unibanner.xml" hash="4270f8e8589231fc8c3b77a467c03da4"/></dir><dir name="template"><dir name="unibanner"><file name="banners.phtml" hash="471181ee55f34624a798aaf818c08aa6"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="unibanner.xml" hash="b60c7daa417fcc4b4fd5093d1ca0bafb"/></dir><dir name="template"><dir name="unibanner"><dir name="effects"><file name="custom.phtml" hash="4c033807a86f911a03d05fe582bf1607"/><file name="horslider.phtml" hash="ed9c892f9c1830fb2775daff7725738a"/><file name="numbered.phtml" hash="9a451afbe80cae9d9b3163d85a16c793"/><file name="playpause.phtml" hash="4a663af1b50541e9a8a011377a460fbf"/><file name="slideshow.phtml" hash="f5d375d75dd141310b6e75609d20f84e"/><file name="springslider.phtml" hash="d4302f2b9adbce074b516b3853fb8f67"/><file name="strans.phtml" hash="62b04dffc9e6cb23080a657757fdb718"/><file name="textfade.phtml" hash="096c8ad4e08e8310f76721dba90f4049"/><file name="verslider.phtml" hash="63228992237861761671560d8dccad85"/></dir><file name="banner.phtml" hash="f2fe0e221e936e611fd82aa79074b593"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|