Banners - Version 1.3.1

Version Notes

NOTE: Please download the Latest release 1.3.1 from Releases section!

Download this release

Release Info

Developer Magento Core Team
Extension Banners
Version 1.3.1
Comparing to
See all releases


Code changes from version 1.3.0 to 1.3.1

app/code/local/Mage/Banners/Model/Status.php CHANGED
@@ -1,15 +1,15 @@
1
- <?php
2
-
3
- class Mage_Banners_Model_Status extends Varien_Object
4
- {
5
- const STATUS_ENABLED = 1;
6
- const STATUS_DISABLED = 2;
7
-
8
- static public function getOptionArray()
9
- {
10
- return array(
11
- self::STATUS_ENABLED => Mage::helper('banners')->__('Enabled'),
12
- self::STATUS_DISABLED => Mage::helper('banners')->__('Disabled')
13
- );
14
- }
15
  }
1
+ <?php
2
+
3
+ class Mage_Banners_Model_Status extends Varien_Object
4
+ {
5
+ const STATUS_ENABLED = 1;
6
+ const STATUS_DISABLED = 2;
7
+
8
+ static public function getOptionArray()
9
+ {
10
+ return array(
11
+ self::STATUS_ENABLED => Mage::helper('adminhtml')->__('Enabled'),
12
+ self::STATUS_DISABLED => Mage::helper('adminhtml')->__('Disabled')
13
+ );
14
+ }
15
  }
app/design/frontend/default/default/template/banners/banners.phtml CHANGED
@@ -24,20 +24,15 @@
24
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
  */
26
  ?>
27
- <?php
28
- if(preg_match('/index.php\/$/',$this->getBaseUrl())){
29
- $siteBaseUrl = preg_replace('/index.php\/$/','',$this->getBaseUrl());
30
- }
31
- ?>
32
- <script type="text/javascript" src="<?php echo $siteBaseUrl; ?>media/Banners/swf/swfobject.js"></script>
33
  <table width="100%" border="0" align="left" cellspacing="0" cellpadding="0">
34
  <tr>
35
  <td align="center" valign="middle">
36
  <div id="flashcontent">
37
  <script type="text/javascript">
38
  //Local
39
- var so = new SWFObject("<?php echo $siteBaseUrl; ?>media/Banners/banner.swf?="+<?php echo time();?>, "mymovie", "653", "361", "8");
40
- so.addVariable("xmlPath", "<?php echo $siteBaseUrl; ?>media/Banners/data.xml?="+<?php echo time();?>);
41
  so.addParam("menu", "false");
42
  so.addParam('allowscriptaccess','always');
43
  so.addParam("wmode", "transparent");
24
  * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
  */
26
  ?>
27
+ <script type="text/javascript" src="<?php echo Mage::getBaseUrl('media'); ?>media/Banners/swf/swfobject.js"></script>
 
 
 
 
 
28
  <table width="100%" border="0" align="left" cellspacing="0" cellpadding="0">
29
  <tr>
30
  <td align="center" valign="middle">
31
  <div id="flashcontent">
32
  <script type="text/javascript">
33
  //Local
34
+ var so = new SWFObject("<?php echo Mage::getBaseUrl('media'); ?>media/Banners/banner.swf?="+<?php echo time();?>, "mymovie", "<?php echo Mage::helper('banners')->bannerWidth(); ?>", "<?php echo Mage::helper('banners')->bannerHeight(); ?>", "<?php echo Mage::helper('banners')->transitionType(); ?>");
35
+ so.addVariable("xmlPath", "<?php echo Mage::getBaseUrl('media'); ?>media/Banners/data.xml?="+<?php echo time();?>);
36
  so.addParam("menu", "false");
37
  so.addParam('allowscriptaccess','always');
38
  so.addParam("wmode", "transparent");
media/Banners/images/Thumbs.db CHANGED
Binary file
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Banners</name>
4
- <version>1.2.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Banner is a flexible solution that allow to manage banners in the easiest way.</summary>
10
  <description>Banner is a flexible solution that allow to manage banners in the easiest way.</description>
11
- <notes>NOTE: Please download the Latest release 1.2.4 from Releases section!</notes>
12
  <authors><author><name>Kamran Rafiq Malik</name><user>auto-converted</user><email>kamran.malik@unitedsol.net</email></author></authors>
13
- <date>2010-04-19</date>
14
- <time>10:26:12</time>
15
- <contents><target name="mage"><dir name="media"><dir name="Banners"><dir name="images"><file name="logo.png" hash="e33c86d89150a2d02f293f99aad7c062"/><file name="Thumbs.db" hash="6def31a249c514a04bb90a964a8d8412"/></dir><dir name="swf"><file name="banner.fla" hash="6c9b61429a2cf82af339e0dfe7b89911"/><file name="banner.swf" hash="3aa22fdf4e195134e9da0c781a5c6670"/><file name="swfobject.js" hash="b687734407abd950392ae2344b283b2c"/></dir><file name="banner.swf" hash="3aa22fdf4e195134e9da0c781a5c6670"/><file name="data.xml" hash="4ba9feb2b21520789678d4f95ebfe65e"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="banners.xml" hash="f614af3a90e6ecadc2fea0a7bd1966a9"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="banners.xml" hash="eaeb8086698ff4465edebcd738ecda25"/></dir><dir name="template"><dir name="banners"><file name="banners.phtml" hash="1c513dc4115653293812e4103784d881"/></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Mage"><dir name="Banners"><dir name="Block"><dir name="Adminhtml"><dir name="Banners"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="e09386ac043a9d6fe402a3f8ff0bca25"/></dir><file name="Form.php" hash="5d28449951793e81ddbe3c5be99fad57"/><file name="Tabs.php" hash="f2bf342dfb322366e4d509a35aafd8d5"/></dir><file name="Edit.php" hash="4b31a335d0cce9c08c83033effd2ecd1"/><file name="Grid.php" hash="899bb9d583533515949c0ac2daea7c37"/></dir><file name="Banners.php" hash="f2445f14f813ce3276ddb6968112c0cc"/></dir><file name="Banners.php" hash="5cec22181d5bd36e46db16a37a53c2fe"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersController.php" hash="e5b325df277c81e64c26ba7127512eae"/></dir><file name="IndexController.php" hash="9ca1c7010326b5ce868c5158eef39411"/></dir><dir name="etc"><file name="config.xml" hash="c04d625b5ebb66928dd9b309a3c9b8fc"/><file name="system.xml" hash="9a264a9c392206ef61ed5e17139f9386"/></dir><dir name="Helper"><file name="Data.php" hash="987b8f60662e4122192f78288b632f2a"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Banners"><file name="Collection.php" hash="3ba445eb7573d27e26f010b1eeadb043"/></dir><file name="Banners.php" hash="527016301edf177b1604dbe98c722756"/></dir><file name="Banners.php" hash="07374201a9f0549c2986f42ece034a8b"/><file name="Status.php" hash="3c3c447dadb5cd5e12308e5cf435d70c"/></dir><dir name="sql"><dir name="banners_setup"><file name="mysql4-install-0.1.0.php" hash="599bf22c4fd8376ee08358763b1f9052"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Banners.xml" hash="00231c699a70c089c808243400500e5e"/></dir></target><target name="magelib"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Thumbnail.php" hash="8909f9c5df2188e6eefc3f6509cafa76"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Banners</name>
4
+ <version>1.3.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Banner is a flexible solution that allow to manage banners in the easiest way.</summary>
10
  <description>Banner is a flexible solution that allow to manage banners in the easiest way.</description>
11
+ <notes>NOTE: Please download the Latest release 1.3.1 from Releases section!</notes>
12
  <authors><author><name>Kamran Rafiq Malik</name><user>auto-converted</user><email>kamran.malik@unitedsol.net</email></author></authors>
13
+ <date>2010-04-24</date>
14
+ <time>05:16:36</time>
15
+ <contents><target name="mage"><dir name="media"><dir name="Banners"><dir name="images"><file name="logo.png" hash="e33c86d89150a2d02f293f99aad7c062"/><file name="Thumbs.db" hash="781c1965d599b24e5d6e4ed58653ade3"/></dir><dir name="swf"><file name="banner.fla" hash="6c9b61429a2cf82af339e0dfe7b89911"/><file name="banner.swf" hash="3aa22fdf4e195134e9da0c781a5c6670"/><file name="swfobject.js" hash="b687734407abd950392ae2344b283b2c"/></dir><file name="banner.swf" hash="3aa22fdf4e195134e9da0c781a5c6670"/><file name="data.xml" hash="33e8b0ce39d2d7e50683cd6f938172b6"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="banners.xml" hash="f614af3a90e6ecadc2fea0a7bd1966a9"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="banners.xml" hash="eaeb8086698ff4465edebcd738ecda25"/></dir><dir name="template"><dir name="banners"><file name="banners.phtml" hash="5a12a07172b445fe84f675245b537f07"/></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Mage"><dir name="Banners"><dir name="Block"><dir name="Adminhtml"><dir name="Banners"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="e09386ac043a9d6fe402a3f8ff0bca25"/></dir><file name="Form.php" hash="5d28449951793e81ddbe3c5be99fad57"/><file name="Tabs.php" hash="f2bf342dfb322366e4d509a35aafd8d5"/></dir><file name="Edit.php" hash="4b31a335d0cce9c08c83033effd2ecd1"/><file name="Grid.php" hash="899bb9d583533515949c0ac2daea7c37"/></dir><file name="Banners.php" hash="f2445f14f813ce3276ddb6968112c0cc"/></dir><file name="Banners.php" hash="3bdaf9b98b564cca8056547f916d0f79"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersController.php" hash="e5b325df277c81e64c26ba7127512eae"/></dir><file name="IndexController.php" hash="a78df40c48b7ae16740ce79d047a7102"/></dir><dir name="etc"><file name="config.xml" hash="c04d625b5ebb66928dd9b309a3c9b8fc"/><file name="system.xml" hash="9a264a9c392206ef61ed5e17139f9386"/></dir><dir name="Helper"><file name="Data.php" hash="987b8f60662e4122192f78288b632f2a"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Banners"><file name="Collection.php" hash="3ba445eb7573d27e26f010b1eeadb043"/></dir><file name="Banners.php" hash="527016301edf177b1604dbe98c722756"/></dir><file name="Banners.php" hash="07374201a9f0549c2986f42ece034a8b"/><file name="Status.php" hash="0cf9313a923b991e71949ff8c993156c"/></dir><dir name="sql"><dir name="banners_setup"><file name="mysql4-install-0.1.0.php" hash="599bf22c4fd8376ee08358763b1f9052"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Banners.xml" hash="00231c699a70c089c808243400500e5e"/></dir></target><target name="magelib"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Thumbnail.php" hash="8909f9c5df2188e6eefc3f6509cafa76"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>