Banners - Version 1.3.0

Version Notes

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

Download this release

Release Info

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


Code changes from version 1.2.4 to 1.3.0

app/code/local/Mage/Banners/Block/Banners.php CHANGED
@@ -3,6 +3,7 @@ class Mage_Banners_Block_Banners extends Mage_Core_Block_Template
3
  {
4
  public function _prepareLayout()
5
  {
 
6
  return parent::_prepareLayout();
7
  }
8
 
3
  {
4
  public function _prepareLayout()
5
  {
6
+ Mage::helper('banners')->generateXML();
7
  return parent::_prepareLayout();
8
  }
9
 
app/code/local/Mage/Banners/controllers/IndexController.php CHANGED
@@ -2,46 +2,8 @@
2
  class Mage_Banners_IndexController extends Mage_Core_Controller_Front_Action
3
  {
4
  public function indexAction()
5
- {
6
-
7
- /*
8
- * Load an object by id
9
- * Request looking like:
10
- * http://site.com/banners?id=15
11
- * or
12
- * http://site.com/banners/id/15
13
- */
14
- /*
15
- $banners_id = $this->getRequest()->getParam('id');
16
-
17
- if($banners_id != null && $banners_id != '') {
18
- $banners = Mage::getModel('banners/banners')->load($banners_id)->getData();
19
- } else {
20
- $banners = null;
21
- }
22
- */
23
-
24
- /*
25
- * If no param we load a the last created item
26
- */
27
- /*
28
- if($banners == null) {
29
- $resource = Mage::getSingleton('core/resource');
30
- $read= $resource->getConnection('core_read');
31
- $bannersTable = $resource->getTableName('banners');
32
-
33
- $select = $read->select()
34
- ->from($bannersTable,array('banners_id','title','content','status'))
35
- ->where('status',1)
36
- ->order('created_time DESC') ;
37
-
38
- $banners = $read->fetchRow($select);
39
- }
40
- Mage::register('banners', $banners);
41
- */
42
-
43
-
44
- $this->loadLayout();
45
  $this->renderLayout();
46
  }
47
  }
2
  class Mage_Banners_IndexController extends Mage_Core_Controller_Front_Action
3
  {
4
  public function indexAction()
5
+ {
6
+ $this->loadLayout();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  $this->renderLayout();
8
  }
9
  }
media/Banners/data.xml CHANGED
@@ -1 +1 @@
1
- <?xml version="1.0" encoding="utf-8" ?><Banner bannerWidth="564" bannerHeight="345" bannerBackgroundColor="FFFFFF" autoPlay="yes" imageResizeToFit="yes" imageRandomizeOrder="no" textSize="12" textColor="" textAreaWidth="200" textLineSpacing="0" textLetterSpacing="-0.5" textMarginLeft="12" textMarginBottom="5" textBackgroundBlur="yes" textBackgroundColor="333333" textBackgroundTransparency="30" transitionType="7" transitionRandomEffects="no" transitionDelayTimeFixed="10" transitionDelayTimePerWord=".5" transitionSpeed="10" transitionBlur="yes" showTimerClock="no" showNextButton="no" showBackButton="no" showNumberButtons="no" showNumberButtonsAlways="no" showNumberButtonsHorizontal="yes" showNumberButtonsAscending="yes" showPlayPauseOnTimer="yes" alignButtonsLeft="no" alignTextTop="no" > <item buttonLabel="" image="http://10.10.10.102/kamran/ethnicselection/media/Banners/images/banner_image.jpg" link="/" target="_self" delay="" textBlend="yes"> <![CDATA[Claritas est etiam]]> </item> <item buttonLabel="" image="http://10.10.10.102/kamran/ethnicselection/media/Banners/images/dwelledition-bedding.jpg" link="http://www.google.com" target="_blank" delay="" textBlend="yes"> <![CDATA[Before You Buy Bed]]> </item> <item buttonLabel="" image="http://10.10.10.102/kamran/ethnicselection/media/Banners/images/modernsilkquilt_86559.jpg" link="http://www.google.com" target="_blank" delay="" textBlend="yes"> <![CDATA[Fabric / Bed Linen]]> </item> </Banner>
1
+ <?xml version="1.0" encoding="utf-8" ?><Banner bannerWidth="564" bannerHeight="345" bannerBackgroundColor="FFFFFF" autoPlay="yes" imageResizeToFit="yes" imageRandomizeOrder="no" textSize="12" textColor="" textAreaWidth="200" textLineSpacing="0" textLetterSpacing="-0.5" textMarginLeft="12" textMarginBottom="5" textBackgroundBlur="yes" textBackgroundColor="333333" textBackgroundTransparency="30" transitionType="4" transitionRandomEffects="no" transitionDelayTimeFixed="10" transitionDelayTimePerWord=".5" transitionSpeed="10" transitionBlur="yes" showTimerClock="no" showNextButton="no" showBackButton="no" showNumberButtons="no" showNumberButtonsAlways="no" showNumberButtonsHorizontal="yes" showNumberButtonsAscending="yes" showPlayPauseOnTimer="yes" alignButtonsLeft="no" alignTextTop="no" > <item buttonLabel="" image="http://10.10.10.102/kamran/ethnicselection/media/Banners/images/banner_image.jpg" link="/" target="_self" delay="" textBlend="yes"> <![CDATA[Claritas est etiam]]> </item> <item buttonLabel="" image="http://10.10.10.102/kamran/ethnicselection/media/Banners/images/dwelledition-bedding.jpg" link="http://www.google.com" target="_blank" delay="" textBlend="yes"> <![CDATA[Before You Buy Bed]]> </item> <item buttonLabel="" image="http://10.10.10.102/kamran/ethnicselection/media/Banners/images/modernsilkquilt_86559.jpg" link="http://www.google.com" target="_blank" delay="" textBlend="yes"> <![CDATA[Fabric / Bed Linen]]> </item> </Banner>