Version Notes
Bug Fixes for layout reference and width of popup
Download this release
Release Info
Developer | Vsourz Digital |
Extension | Exit_Screen_Pop_Up |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/community/Vsourz/Exitscreen/Helper/Data.php
CHANGED
@@ -32,7 +32,7 @@ class Vsourz_Exitscreen_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
32 |
}
|
33 |
public function getHeight(){
|
34 |
$height = Mage::getStoreConfig('exitscreen/settings/height');
|
35 |
-
if($height
|
36 |
return $height;
|
37 |
}
|
38 |
else{
|
@@ -41,6 +41,11 @@ class Vsourz_Exitscreen_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
41 |
}
|
42 |
public function getWidth(){
|
43 |
$width = Mage::getStoreConfig('exitscreen/settings/width');
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
}
|
32 |
}
|
33 |
public function getHeight(){
|
34 |
$height = Mage::getStoreConfig('exitscreen/settings/height');
|
35 |
+
if($height == "auto"){
|
36 |
return $height;
|
37 |
}
|
38 |
else{
|
41 |
}
|
42 |
public function getWidth(){
|
43 |
$width = Mage::getStoreConfig('exitscreen/settings/width');
|
44 |
+
if($width == "auto"){
|
45 |
+
return $width;
|
46 |
+
}
|
47 |
+
else{
|
48 |
+
return $width."px";
|
49 |
+
}
|
50 |
}
|
51 |
}
|
app/code/community/Vsourz/Exitscreen/etc/system.xml
CHANGED
@@ -83,7 +83,7 @@
|
|
83 |
</delay>
|
84 |
<width translate="label">
|
85 |
<label>Pop-Up Width</label>
|
86 |
-
<comment><![CDATA[Width of POP-UP window in px]]></comment>
|
87 |
<frontend_type>text</frontend_type>
|
88 |
<sort_order>60</sort_order>
|
89 |
<show_in_default>1</show_in_default>
|
83 |
</delay>
|
84 |
<width translate="label">
|
85 |
<label>Pop-Up Width</label>
|
86 |
+
<comment><![CDATA[Width of POP-UP window in px. Enter <strong>auto</strong> for automatic width]]></comment>
|
87 |
<frontend_type>text</frontend_type>
|
88 |
<sort_order>60</sort_order>
|
89 |
<show_in_default>1</show_in_default>
|
app/design/frontend/base/default/layout/vsourz/exitscreen.xml
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
<action method="addItem" ifconfig="exitscreen/settings/enable_extension"><type>skin_js</type><name>js/exitscreen/exitpopup.js</name></action>
|
7 |
<action method="addItem" ifconfig="exitscreen/settings/enable_extension"><type>skin_css</type><name>css/exitscreen/exitpopup.css</name></action>
|
8 |
</reference>
|
9 |
-
<reference name="
|
10 |
<block type="exitscreen/exitscreen" name="exitscreen">
|
11 |
<action method="setTemplate" ifconfig="exitscreen/settings/enable_extension"><template>vsourz/exitscreen.phtml</template>
|
12 |
</action>
|
6 |
<action method="addItem" ifconfig="exitscreen/settings/enable_extension"><type>skin_js</type><name>js/exitscreen/exitpopup.js</name></action>
|
7 |
<action method="addItem" ifconfig="exitscreen/settings/enable_extension"><type>skin_css</type><name>css/exitscreen/exitpopup.css</name></action>
|
8 |
</reference>
|
9 |
+
<reference name="head">
|
10 |
<block type="exitscreen/exitscreen" name="exitscreen">
|
11 |
<action method="setTemplate" ifconfig="exitscreen/settings/enable_extension"><template>vsourz/exitscreen.phtml</template>
|
12 |
</action>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Exit_Screen_Pop_Up</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/MIT">Massachusetts Institute of Technology License (MITL)</license>
|
7 |
<channel>community</channel>
|
@@ -41,11 +41,11 @@ How to use?
|
|
41 |
7. Cookie Interval : Total time (In Hours) until cookie expires. This will enable admin to control the time until which next Pop-up shouldn't appear.
|
42 |
8. Delay Pop-up : Total time (In Minutes) after which Pop-up should appear
|
43 |
9. Pop-up Width and Height : Enter width or height in pixel</description>
|
44 |
-
<notes>
|
45 |
<authors><author><name>Vsourz Digital</name><user>MAG002979323</user><email>mehul@vsourz.com</email></author></authors>
|
46 |
-
<date>2015-
|
47 |
-
<time>
|
48 |
-
<contents><target name="magecommunity"><dir name="Vsourz"><dir name="Exitscreen"><dir name="Block"><file name="Exitscreen.php" hash="ac6fac27feca2283e85a9cc617145e2e"/></dir><dir name="Helper"><file name="Data.php" hash="
|
49 |
<compatible/>
|
50 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
51 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Exit_Screen_Pop_Up</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/MIT">Massachusetts Institute of Technology License (MITL)</license>
|
7 |
<channel>community</channel>
|
41 |
7. Cookie Interval : Total time (In Hours) until cookie expires. This will enable admin to control the time until which next Pop-up shouldn't appear.
|
42 |
8. Delay Pop-up : Total time (In Minutes) after which Pop-up should appear
|
43 |
9. Pop-up Width and Height : Enter width or height in pixel</description>
|
44 |
+
<notes>Bug Fixes for layout reference and width of popup</notes>
|
45 |
<authors><author><name>Vsourz Digital</name><user>MAG002979323</user><email>mehul@vsourz.com</email></author></authors>
|
46 |
+
<date>2015-08-03</date>
|
47 |
+
<time>05:52:15</time>
|
48 |
+
<contents><target name="magecommunity"><dir name="Vsourz"><dir name="Exitscreen"><dir name="Block"><file name="Exitscreen.php" hash="ac6fac27feca2283e85a9cc617145e2e"/></dir><dir name="Helper"><file name="Data.php" hash="c715b899d4a3638742ed9da729d93c1c"/></dir><dir name="Model"><dir name="Source"><file name="Page.php" hash="73f8108405de6f8b9f8151a9e7612340"/><file name="Staticblock.php" hash="5a16c5041a793dd8c4fe6f9c0d2da437"/><file name="Truefalse.php" hash="e81f8d418ce09a31de8f97b779b56516"/></dir></dir><dir name="data"><dir name="exitscreen_setup"><file name="data-install-0.1.0.php" hash="c90adfc903da6cef3d229130909ea599"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="0d34d694b85cfdd9404222fa19a1562c"/><file name="config.xml" hash="3135feaa79eccd12da23382b70da7403"/><file name="system.xml" hash="4dc71c4926a1747b38e0069fa1630c66"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vsourz_Exitscreen.xml" hash="c04d7aedee84d179226f7c69c1ff6d28"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="vsourz"><file name="exitscreen.xml" hash="7fc1a83481816e3b602d7e9aec1d6748"/></dir></dir><dir name="template"><dir name="vsourz"><file name="exitscreen.phtml" hash="3f410c1b21f609216687ec2a37052406"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="exitscreen"><file name="exitpopup.css" hash="fbb1a559c25dab0094bac16fbf863ea7"/></dir></dir><dir name="js"><dir name="exitscreen"><file name="exitpopup.js" hash="12fcd894301965a86fd825291969d32a"/><file name="jquery-1.10.2.min.js" hash="628072e7212db1e8cdacb22b21752cda"/></dir></dir></dir></dir></dir></target></contents>
|
49 |
<compatible/>
|
50 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
51 |
</package>
|
skin/frontend/base/default/css/exitscreen/exitpopup.css
CHANGED
@@ -85,6 +85,7 @@
|
|
85 |
text-align:right;
|
86 |
font-size:10px;
|
87 |
}
|
88 |
-
|
|
|
89 |
.outer-bg,.pop-up{display:none !important;}
|
90 |
-
}
|
85 |
text-align:right;
|
86 |
font-size:10px;
|
87 |
}
|
88 |
+
@media (max-width: 767px)
|
89 |
+
{
|
90 |
.outer-bg,.pop-up{display:none !important;}
|
91 |
+
}
|