Mediastrategi_Shadowmedia - Version 0.5.3

Version Notes

New option - Should box always be centered and positioned fixed.

Download this release

Release Info

Developer Mediastrategi
Extension Mediastrategi_Shadowmedia
Version 0.5.3
Comparing to
See all releases


Code changes from version 0.5.2 to 0.5.3

app/code/local/Mediastrategi/Shadowmedia/Block/Shadowmedia.php CHANGED
@@ -60,6 +60,14 @@ class Mediastrategi_Shadowmedia_Block_Shadowmedia
60
  );
61
  }
62
 
 
 
 
 
 
 
 
 
63
  public function getCloseBtnColor()
64
  {
65
  return Mage::getStoreConfig(
60
  );
61
  }
62
 
63
+ public function getFixed()
64
+ {
65
+ return Mage::getStoreConfig(
66
+ 'mediastrategi_shadowmedia/design/fixed'
67
+ );
68
+ }
69
+
70
+
71
  public function getCloseBtnColor()
72
  {
73
  return Mage::getStoreConfig(
app/code/local/Mediastrategi/Shadowmedia/Model/Source/Fixed.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mediastrategi_Shadowmedia_Model_Source_Fixed
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value' => 'yes', 'label' => Mage::helper('adminhtml')->__('Yes')),
8
+ array('value' => 'no', 'label' => Mage::helper('adminhtml')->__('No'))
9
+ );
10
+ }
11
+ }
app/code/local/Mediastrategi/Shadowmedia/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Mediastrategi_Shadowmedia>
5
- <version>0.5.2</version>
6
  </Mediastrategi_Shadowmedia>
7
  </modules>
8
  <global>
@@ -44,6 +44,7 @@
44
  <close>#39C</close>
45
  <max-width>600</max-width>
46
  <min-width>280</min-width>
 
47
  </design>
48
  <cookie>
49
  <timeout>30</timeout>
2
  <config>
3
  <modules>
4
  <Mediastrategi_Shadowmedia>
5
+ <version>0.5.3</version>
6
  </Mediastrategi_Shadowmedia>
7
  </modules>
8
  <global>
44
  <close>#39C</close>
45
  <max-width>600</max-width>
46
  <min-width>280</min-width>
47
+ <fixed>yes</fixed>
48
  </design>
49
  <cookie>
50
  <timeout>30</timeout>
app/code/local/Mediastrategi/Shadowmedia/etc/system.xml CHANGED
@@ -86,6 +86,20 @@
86
  Min width of the box, ex: 280
87
  ]]></comment>
88
  </min-width>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  </fields>
90
  </design>
91
  <cookie>
86
  Min width of the box, ex: 280
87
  ]]></comment>
88
  </min-width>
89
+ <fixed>
90
+ <label>Fixed</label>
91
+ <frontend_type>select</frontend_type>
92
+ <source_model>
93
+ mediastrategi_shadowmedia/source_fixed
94
+ </source_model>
95
+ <sort_order>14</sort_order>
96
+ <show_in_default>1</show_in_default>
97
+ <show_in_website>1</show_in_website>
98
+ <show_in_store>1</show_in_store>
99
+ <comment><![CDATA[
100
+ Should the box always be positioned centered on the screen?
101
+ ]]></comment>
102
+ </fixed>
103
  </fields>
104
  </design>
105
  <cookie>
app/design/frontend/base/default/template/mediastrategi_shadowmedia/shadowmedia.phtml CHANGED
@@ -20,6 +20,11 @@
20
  }
21
  }
22
  <?php } ?>
 
 
 
 
 
23
  </style>
24
  <div id="shadowmedia">
25
  <div><?php echo $this->getContent(); ?></div>
20
  }
21
  }
22
  <?php } ?>
23
+ <?php if ($this->getFixed() == "yes") : ?>
24
+ .shadowmedia-modal {
25
+ position: fixed;;
26
+ }
27
+ <?php endif; ?>
28
  </style>
29
  <div id="shadowmedia">
30
  <div><?php echo $this->getContent(); ?></div>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mediastrategi_Shadowmedia</name>
4
- <version>0.5.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.mediastrategi.se/license/">Mediastrategi EULA</license>
7
  <channel>community</channel>
@@ -18,11 +18,11 @@ Features - Lite version:&#xD;
18
  - Possible to show, text, images and movies - using the Magento text editor&#xD;
19
  - Add links and set destination url (used for banners, text etc)&#xD;
20
  - Set interval parameters for the lightbox to control when it will appear again for returning visitors</description>
21
- <notes>Bug fixes</notes>
22
  <authors><author><name>Mediastrategi</name><user>mediastrategi</user><email>support@mediastrategi.se</email></author></authors>
23
- <date>2015-02-13</date>
24
- <time>08:16:56</time>
25
- <contents><target name="magelocal"><dir name="Mediastrategi"><dir name="Shadowmedia"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Editor.php" hash="7bcbaaa0d041f2d83b7da33e0a5cfe90"/></dir></dir></dir><file name="Shadowmedia.php" hash="0793b18520511a4cf1a21c30b5061682"/></dir><dir name="Model"><dir name="Source"><file name="Effects.php" hash="ddaed5d721806280230a83d4a541562a"/><file name="Units.php" hash="927b4c0ed8fdfaca32526e860a6f0537"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="06ce8a89fff0363f612c1f61ff172cd7"/><file name="config.xml" hash="4edf5c244ae7b4037f9ce53af202aee9"/><file name="system.xml" hash="938b01da21afac4628c46a12e2c72069"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mediastrategi_Shadowmedia.xml" hash="13b51e1e41f4456e4de03147c28849f1"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mediastrategi_shadowmedia.xml" hash="9483ee317d8ccdec6b6b77869aabbfa4"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="mediastrategi_shadowmedia.xml" hash="55e74af26a614922237ef2ff12382e5f"/></dir><dir name="template"><dir name="mediastrategi_shadowmedia"><file name="shadowmedia.phtml" hash="d804fb32ff2f52d2d30bb7c08d2564de"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="mediastrategi_shadowmedia.css" hash="82e2c29716fa79b357cb2c4e8d7beb84"/></dir><dir name="js"><file name="mediastrategi_shadowmedia.js" hash="8fa6991ee3969fc4ce4d4a3f19b1fe6a"/><file name="jquery.fitvids.js" hash="8d641f726c1938c3fc006484939efc1e"/></dir><dir name="images"><dir name="mediastrategi_shadowmedia"><file name="close.png" hash="8539b3d9600fd90dbcf4b6138292593a"/></dir></dir></dir></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mediastrategi_Shadowmedia</name>
4
+ <version>0.5.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.mediastrategi.se/license/">Mediastrategi EULA</license>
7
  <channel>community</channel>
18
  - Possible to show, text, images and movies - using the Magento text editor&#xD;
19
  - Add links and set destination url (used for banners, text etc)&#xD;
20
  - Set interval parameters for the lightbox to control when it will appear again for returning visitors</description>
21
+ <notes>New option - Should box always be centered and positioned fixed.</notes>
22
  <authors><author><name>Mediastrategi</name><user>mediastrategi</user><email>support@mediastrategi.se</email></author></authors>
23
+ <date>2015-04-07</date>
24
+ <time>14:25:29</time>
25
+ <contents><target name="magelocal"><dir name="Mediastrategi"><dir name="Shadowmedia"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Editor.php" hash="7bcbaaa0d041f2d83b7da33e0a5cfe90"/></dir></dir></dir><file name="Shadowmedia.php" hash="ff062bde4bd084e9594b025874f15fdd"/></dir><dir name="Model"><dir name="Source"><file name="Effects.php" hash="ddaed5d721806280230a83d4a541562a"/><file name="Fixed.php" hash="6c0f74cbd5b4f0b834a915e152b6cb8a"/><file name="Units.php" hash="927b4c0ed8fdfaca32526e860a6f0537"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="06ce8a89fff0363f612c1f61ff172cd7"/><file name="config.xml" hash="abcc9af63ede2feec508a654b4c784ce"/><file name="system.xml" hash="f18f4fae10797c8edfe55ec162d6f6db"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mediastrategi_Shadowmedia.xml" hash="13b51e1e41f4456e4de03147c28849f1"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mediastrategi_shadowmedia.xml" hash="9483ee317d8ccdec6b6b77869aabbfa4"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="mediastrategi_shadowmedia.xml" hash="55e74af26a614922237ef2ff12382e5f"/></dir><dir name="template"><dir name="mediastrategi_shadowmedia"><file name="shadowmedia.phtml" hash="f22b8c3183625797320f145a550f2c82"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="mediastrategi_shadowmedia.css" hash="82e2c29716fa79b357cb2c4e8d7beb84"/></dir><dir name="js"><file name="mediastrategi_shadowmedia.js" hash="8fa6991ee3969fc4ce4d4a3f19b1fe6a"/><file name="jquery.fitvids.js" hash="8d641f726c1938c3fc006484939efc1e"/></dir><dir name="images"><dir name="mediastrategi_shadowmedia"><file name="close.png" hash="8539b3d9600fd90dbcf4b6138292593a"/></dir></dir></dir></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>