Skip to content

Instantly share code, notes, and snippets.

@vstorm83
Created April 3, 2016 18:35
Show Gist options
  • Save vstorm83/d2d12cfd22bfcedba8a60d964aabe5bc to your computer and use it in GitHub Desktop.
Save vstorm83/d2d12cfd22bfcedba8a60d964aabe5bc to your computer and use it in GitHub Desktop.
commit da15d2b3d5b3c76f82f76da06af9c19a07784e0e
Author: vstorm83 <vstorm83@gmail.com>
Date: Mon Apr 4 01:30:19 2016 +0700
add fixed banner positions
diff --git a/app/code/community/Magestore/Bannerslider/Helper/Data.php b/app/code/community/Magestore/Bannerslider/Helper/Data.php
index 0860708..37f607e 100755
--- a/app/code/community/Magestore/Bannerslider/Helper/Data.php
+++ b/app/code/community/Magestore/Bannerslider/Helper/Data.php
@@ -51,6 +51,8 @@ class Magestore_Bannerslider_Helper_Data extends Mage_Core_Helper_Abstract {
array('value' => 'sidebar-right-bottom', 'label' => $this->__('Sidebar-Bottom-Right')),
array('value' => 'sidebar-left-top', 'label' => $this->__('Sidebar-Top-Left')),
array('value' => 'sidebar-left-bottom', 'label' => $this->__('Sidebar-Bottom-Left')),
+ array('value' => 'sidebar-fixed-left', 'label' => $this->__('Sidebar-Fixed-Left')),
+ array('value' => 'sidebar-fixed-right', 'label' => $this->__('Sidebar-Fixed-Right')),
array('value' => 'content-top', 'label' => $this->__('Content-Top')),
array('value' => 'menu-top', 'label' => $this->__('Menu-Top')),
array('value' => 'menu-bottom', 'label' => $this->__('Menu-Bottom')),
diff --git a/app/design/frontend/ausport/default/layout/local.xml b/app/design/frontend/ausport/default/layout/local.xml
index adf3d6b..e38b57f 100644
--- a/app/design/frontend/ausport/default/layout/local.xml
+++ b/app/design/frontend/ausport/default/layout/local.xml
@@ -70,6 +70,7 @@
</block>
</reference>
+ <!--
<reference name="beforeContent">
<block type="cms/block" name="banner-left">
<action method="setBlockId">
@@ -85,7 +86,23 @@
</action>
</block>
</reference>
+ -->
+ <reference name="beforeContent">
+ <block type="bannerslider/bannerslider" name="sidebarLeft" before="-">
+ <action method="setBlockPosition">
+ <block_position>sidebar-fixed-left</block_position>
+ </action>
+ </block>
+ </reference>
+ <reference name="afterContent">
+ <block type="bannerslider/bannerslider" name="sidebarRight" before="-">
+ <action method="setBlockPosition">
+ <block_position>sidebar-fixed-right</block_position>
+ </action>
+ </block>
+ </reference>
+
<reference name="left">
<block type="cms/block" name="special_deal">
<action method="setBlockId">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment