Floating_banner - Version 0.1.1

Version Notes

Floating Banner V 0.1.1

Download this release

Release Info

Developer Stanislav
Extension Floating_banner
Version 0.1.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.1.1

app/code/community/Stasevic/Banner/Adminhtml/Model/System/Config/Source/Linktype.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Stasevic_Banner_Adminhtml_Model_System_Config_Source_Linktype
4
+ {
5
+ public function toOptionArray()
6
+ {
7
+ return array(
8
+ array('value' => '_blank' , 'label' => Mage::helper("adminhtml")->__('Blank')),
9
+ array('value' => '_self' , 'label' => Mage::helper("adminhtml")->__('Self'))
10
+ );
11
+ }
12
+ }
13
+ ?>
app/code/community/Stasevic/Banner/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Stasevic_Banner>
5
- <version>0.1.0</version>
6
  </Stasevic_Banner>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <Stasevic_Banner>
5
+ <version>0.1.1</version>
6
  </Stasevic_Banner>
7
  </modules>
8
 
app/code/community/Stasevic/Banner/etc/system.xml CHANGED
@@ -34,6 +34,13 @@
34
  <sort_order>2</sort_order>
35
  <show_in_default>1</show_in_default>
36
  </bfloat>
 
 
 
 
 
 
 
37
  </fields>
38
  </general>
39
  <images translate="label" module="stasevic_banner">
34
  <sort_order>2</sort_order>
35
  <show_in_default>1</show_in_default>
36
  </bfloat>
37
+ <blinktarget translate="label">
38
+ <label>Link Target</label>
39
+ <frontend_type>select</frontend_type>
40
+ <source_model>Stasevic_Banner/system_config_source_linktype</source_model>
41
+ <sort_order>5</sort_order>
42
+ <show_in_default>1</show_in_default>
43
+ </blinktarget>
44
  </fields>
45
  </general>
46
  <images translate="label" module="stasevic_banner">
app/design/frontend/default/default/template/Stasevic/floatbanner.phtml CHANGED
@@ -1,8 +1,3 @@
1
- <pre>
2
- <?php //print_r(Mage::getConfig('Stasevic_banner')); ?>
3
- </pre>
4
-
5
-
6
  <?php if(Mage::getStoreConfig('stasevic_banner/general/enabled') == true){?>
7
  <?php $arr = Mage::getStoreConfig('stasevic_banner/images');?>
8
  <div class="floatmenu <?php echo Mage::getStoreConfig('stasevic_banner/general/bfloat') == 'left' ? 'fleft' : 'fright'; ?>">
@@ -10,7 +5,7 @@
10
  <?php for($i=1; $i<count($arr); $i++){?>
11
  <?php if(array_key_exists('image'. $i, $arr) && $arr['image'. $i] <> '' ){?>
12
  <?php if(array_key_exists('image'. $i .'_link', $arr) && $arr['image'. $i .'_link'] <> '' ){?>
13
- <li><a href="<?php echo $arr['image'. $i .'_link'];?>"><img src='<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'stasevic/'.$arr['image'. $i ] ; ?>'/></a></li>
14
  <?php }else{?>
15
  <li><img src='<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'stasevic/'.$arr['image'. $i ] ; ?>'/></li>
16
  <?php }?>
@@ -18,4 +13,4 @@
18
  <?php }?>
19
  </ul>
20
  </div>
21
- <?php } ?>
 
 
 
 
 
1
  <?php if(Mage::getStoreConfig('stasevic_banner/general/enabled') == true){?>
2
  <?php $arr = Mage::getStoreConfig('stasevic_banner/images');?>
3
  <div class="floatmenu <?php echo Mage::getStoreConfig('stasevic_banner/general/bfloat') == 'left' ? 'fleft' : 'fright'; ?>">
5
  <?php for($i=1; $i<count($arr); $i++){?>
6
  <?php if(array_key_exists('image'. $i, $arr) && $arr['image'. $i] <> '' ){?>
7
  <?php if(array_key_exists('image'. $i .'_link', $arr) && $arr['image'. $i .'_link'] <> '' ){?>
8
+ <li><a href="<?php echo $arr['image'. $i .'_link'];?>" target="<?php echo Mage::getStoreConfig('stasevic_banner/general/blinktarget')?>"><img src='<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'stasevic/'.$arr['image'. $i ] ; ?>'/></a></li>
9
  <?php }else{?>
10
  <li><img src='<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'stasevic/'.$arr['image'. $i ] ; ?>'/></li>
11
  <?php }?>
13
  <?php }?>
14
  </ul>
15
  </div>
16
+ <?php }?>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Floating_banner</name>
4
- <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Floating banner </summary>
10
  <description>Floating Banner is simply keeps elements in the browsers viewport when a user scrolls down a web page. It is often used to keep banners in the user's view while the scrolling down long pages.</description>
11
- <notes>Floating Banner V 0.1.0</notes>
12
  <authors><author><name>Stanislav</name><user>Stasevi4</user><email>stas19882004@gmail.com</email></author></authors>
13
- <date>2013-03-11</date>
14
- <time>18:28:01</time>
15
- <contents><target name="magecommunity"><dir name="Stasevic"><dir name="Banner"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Leftright.php" hash="65103739767437a531eece3c9c2bdebe"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="3f36e81c19ede19ab7f6533587e6d351"/></dir><dir name="etc"><file name="adminhtml.xml" hash="d80445709651d1d4a291cec51a666291"/><file name="config.xml" hash="0f6b3ad139d9640cd5d4edef43093924"/><file name="system.xml" hash="c1b6247983aa3a5f50c0a097056a9215"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="stasevi4_banner.xml" hash=""/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="stasevic_banner.xml" hash=""/></dir><dir name="template"><dir name="Stasevic"><file name="floatbanner.phtml" hash="a1377ba914d71f2cd199d23e2344d376"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="stasevic-banner.css" hash="d70de05ff087786d7023cad3a1955027"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Floating_banner</name>
4
+ <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Floating banner </summary>
10
  <description>Floating Banner is simply keeps elements in the browsers viewport when a user scrolls down a web page. It is often used to keep banners in the user's view while the scrolling down long pages.</description>
11
+ <notes>Floating Banner V 0.1.1</notes>
12
  <authors><author><name>Stanislav</name><user>Stasevi4</user><email>stas19882004@gmail.com</email></author></authors>
13
+ <date>2013-03-13</date>
14
+ <time>15:17:16</time>
15
+ <contents><target name="magecommunity"><dir name="Stasevic"><dir name="Banner"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Leftright.php" hash="65103739767437a531eece3c9c2bdebe"/><file name="Linktype.php" hash="4f110bbf22a8a4cdccc5da9b3d35e298"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="3f36e81c19ede19ab7f6533587e6d351"/></dir><dir name="etc"><file name="adminhtml.xml" hash="d80445709651d1d4a291cec51a666291"/><file name="config.xml" hash="fd4ade14672b0b6366fcff8ba8c0c97d"/><file name="system.xml" hash="95a970bfa8a1f523f3c0b3de32bc48ac"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="stasevi4_banner.xml" hash=""/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="stasevic_banner.xml" hash=""/></dir><dir name="template"><dir name="Stasevic"><file name="floatbanner.phtml" hash="7218071e95d9b7cf8866d00a47b86518"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="stasevic-banner.css" hash="d70de05ff087786d7023cad3a1955027"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>