Banners - Version 1.3.3

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.3
Comparing to
See all releases


Code changes from version 1.3.2 to 1.3.3

app/code/local/Mage/Banners/sql/banners_setup/mysql4-install-0.1.0.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
-
5
- $installer->startSetup();
6
-
7
- $installer->run("
8
-
9
- -- DROP TABLE IF EXISTS {$this->getTable('banners')};
10
- CREATE TABLE `banners` (
11
- `banners_id` int(11) unsigned NOT NULL auto_increment,
12
- `title` varchar(255) NOT NULL default '',
13
- `bannerimage` varchar(255) NOT NULL default '',
14
- `filethumbgrid` text,
15
- `link` varchar(255) default NULL,
16
- `target` varchar(255) default NULL,
17
- `textblend` varchar(255) default NULL,
18
- `content` text NOT NULL,
19
- `status` smallint(6) NOT NULL default '0',
20
- `created_time` datetime default NULL,
21
- `update_time` datetime default NULL,
22
- PRIMARY KEY (`banners_id`)
23
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
24
-
25
- ");
26
-
27
- $installer->endSetup();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Mage/Banners/sql/banners_setup/mysql4-install-1.3.3.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+ $installer->run("
8
+
9
+ -- DROP TABLE IF EXISTS {$this->getTable('banners')};
10
+ CREATE TABLE `banners` (
11
+ `banners_id` int(11) unsigned NOT NULL auto_increment,
12
+ `title` varchar(255) NOT NULL default '',
13
+ `bannerimage` varchar(255) NOT NULL default '',
14
+ `filethumbgrid` text,
15
+ `link` varchar(255) default NULL,
16
+ `target` varchar(255) default NULL,
17
+ `textblend` varchar(255) default NULL,
18
+ `content` text NOT NULL,
19
+ `status` smallint(6) NOT NULL default '0',
20
+ `created_time` datetime default NULL,
21
+ `update_time` datetime default NULL,
22
+ PRIMARY KEY (`banners_id`)
23
+ ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
24
+
25
+ ");
26
+
27
+ $installer->setConfigData('banners/general/banner_width', '600');
28
+ $installer->setConfigData('banners/general/banner_height', '400');
29
+ $installer->setConfigData('banners/general/banner_backgroundcolor', 'FFFFFF');
30
+ $installer->setConfigData('banners/general/auto_play', 'yes');
31
+ $installer->setConfigData('banners/general/image_resize_to_fit', 'yes');
32
+ $installer->setConfigData('banners/general/image_randomize_order', 'no');
33
+
34
+ $installer->setConfigData('banners/textsettings/text_size', '12');
35
+ $installer->setConfigData('banners/textsettings/text_color', '');
36
+ $installer->setConfigData('banners/textsettings/text_area_width', '200');
37
+ $installer->setConfigData('banners/textsettings/text_line_spacing', '0');
38
+ $installer->setConfigData('banners/textsettings/text_margin_left', '12');
39
+ $installer->setConfigData('banners/textsettings/text_letter_spacing', '-0.5');
40
+ $installer->setConfigData('banners/textsettings/text_margin_bottom', '5');
41
+ $installer->setConfigData('banners/textsettings/text_background_blur', 'yes');
42
+ $installer->setConfigData('banners/textsettings/text_background_transparency', '30');
43
+ $installer->setConfigData('banners/textsettings/text_background_color', '333333');
44
+
45
+ $installer->setConfigData('banners/transition/transition_type', '5');
46
+ $installer->setConfigData('banners/transition/transition_blur', 'yes');
47
+ $installer->setConfigData('banners/transition/transition_speed', '10');
48
+ $installer->setConfigData('banners/transition/transition_delay_time_fixed', '10');
49
+ $installer->setConfigData('banners/transition/transition_random_effects', 'no');
50
+ $installer->setConfigData('banners/transition/transition_delay_time_per_word', '.5');
51
+
52
+ $installer->setConfigData('banners/showhide/show_timer_clock', 'yes');
53
+ $installer->setConfigData('banners/showhide/show_next_button', 'yes');
54
+ $installer->setConfigData('banners/showhide/show_back_button', 'yes');
55
+ $installer->setConfigData('banners/showhide/show_number_buttons', 'yes');
56
+ $installer->setConfigData('banners/showhide/show_number_buttons_always', 'no');
57
+ $installer->setConfigData('banners/showhide/show_number_buttons_horizontal', 'yes');
58
+ $installer->setConfigData('banners/showhide/show_number_buttons_ascending', 'no');
59
+ $installer->setConfigData('banners/showhide/show_play_pause_on_timer', 'yes');
60
+ $installer->setConfigData('banners/showhide/align_buttons_left', 'no');
61
+ $installer->setConfigData('banners/showhide/align_text_top', 'no');
62
+
63
+ $installer->endSetup();
app/design/frontend/default/default/template/banners/banners.phtml CHANGED
@@ -24,15 +24,15 @@
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");
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'); ?>/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'); ?>/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'); ?>/Banners/data.xml?="+<?php echo time();?>);
36
  so.addParam("menu", "false");
37
  so.addParam('allowscriptaccess','always');
38
  so.addParam("wmode", "transparent");