Zero1_Cookiealert - Version 1.0.2

Version Notes

Resolved a bug that caused the cookie to expire after ten minutes.

Download this release

Release Info

Developer Arron Moss
Extension Zero1_Cookiealert
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/design/frontend/base/default/template/cookiealert/cookiealert.phtml CHANGED
@@ -2,20 +2,22 @@
2
  if(Mage::getStoreConfig('cookiealert/options/enabled'))
3
  {
4
  ?>
5
- <div id="cookiealert" class="cookiealert" style="display:none;">
6
- <div class="message">
7
- <h1><?php echo $this->__('Cookie Policy');?></h1>
8
- <p>
9
  <?php echo $this->__('This website uses cookies to ensure proper functionality of the shopping cart and checkout progress. By continuing to browse the site you are agreeing to the use of cookies.');?>
10
  <a href="<?php echo $this->getCmsPageUrl(); ?>"><?php echo $this->__('Click here to learn about cookie settings.'); ?></a>
11
- </p>
12
- <p class="close"><a href="javascript:closeCookieAlert();"><?php echo $this->__('Close');?></a></p>
13
- </div>
 
 
14
  </div>
15
  <script type="text/javascript">
16
  function closeCookieAlert()
17
  {
18
- Mage.Cookies.set('cookieAlertClosedFlag', 1, new Date(new Date().getTime() + 60 * 1000));
19
  document.getElementById('cookiealert').style.display = 'none';
20
  }
21
 
2
  if(Mage::getStoreConfig('cookiealert/options/enabled'))
3
  {
4
  ?>
5
+ <div id="cookiealert" class="cookiealert" style="display: none;">
6
+ <div class="message">
7
+ <h1><?php echo $this->__('Cookie Policy');?></h1>
8
+ <p>
9
  <?php echo $this->__('This website uses cookies to ensure proper functionality of the shopping cart and checkout progress. By continuing to browse the site you are agreeing to the use of cookies.');?>
10
  <a href="<?php echo $this->getCmsPageUrl(); ?>"><?php echo $this->__('Click here to learn about cookie settings.'); ?></a>
11
+ </p>
12
+ <p class="close">
13
+ <a href="javascript:closeCookieAlert();"><?php echo $this->__('Close');?></a>
14
+ </p>
15
+ </div>
16
  </div>
17
  <script type="text/javascript">
18
  function closeCookieAlert()
19
  {
20
+ Mage.Cookies.set('cookieAlertClosedFlag', 1, new Date(new Date().getTime() + (1000 * 60 * 60 * 24 * 364)));
21
  document.getElementById('cookiealert').style.display = 'none';
22
  }
23
 
package.xml CHANGED
@@ -1,18 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Zero1_Cookiealert</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://shop.zero1.co.uk/LICENSE.txt">Commercial</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>EU Cookie Alert module</summary>
10
  <description>EU Cookie Alert module</description>
11
- <notes>Supports the Full Page Caching Enterprise Module.</notes>
12
- <authors><author><name>Arron Moss</name><user>auto-converted</user><email>arron.moss@zero1.co.uk</email></author></authors>
13
- <date>2012-10-05</date>
14
- <time>10:57:30</time>
15
- <contents><target name="magecommunity"><dir name="Zero1"><dir name="Cookiealert"><dir name="Block"><file name="Cookiealert.php" hash="edcbd90a12d4907c751f610fb987425c"/></dir><dir name="Helper"><file name="Data.php" hash="59f4cb7c7f7cd5285a3db55153eff583"/></dir><dir name="Model"><file name="Cookiealert.php" hash="116acbd3add322d389e95316420c56d4"/></dir><dir name="controllers"><file name="IndexController.php" hash="02d15b278a410e1c73df8a38bf62bb92"/></dir><dir name="etc"><file name="adminhtml.xml" hash="3f063b5e621c2c314b17496df733ae96"/><file name="config.xml" hash="80a1d6073fe29d04f5472236de59a95d"/><file name="system.xml" hash="f429aaf2dddaf9506ba365398bf3ba49"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Zero1_Cookiealert.xml" hash="36f0e58b1db5291f4dd7c6f8d5a54ca3"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cookiealert.xml" hash="3e34e14891cd0c607f3d8e175a303c23"/></dir><dir name="template"><dir name="cookiealert"><file name="cookiealert.phtml" hash="8e1dc90815f6cb60b6e8fb28827a9580"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="cookiealert"><dir name="css"><file name="cookiealert.css" hash="60df3238e59d8cbb36b4b43a04873197"/></dir></dir></dir></dir></dir></target></contents>
 
16
  <compatible/>
17
- <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Zero1_Cookiealert</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://shop.zero1.co.uk/LICENSE.txt">Commercial</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>EU Cookie Alert module</summary>
10
  <description>EU Cookie Alert module</description>
11
+ <notes>Resolved a bug that caused the cookie to expire after ten minutes.&#xD;
12
+ </notes>
13
+ <authors><author><name>Arron Moss</name><user>zero1limited</user><email>arron.moss@zero1.co.uk</email></author></authors>
14
+ <date>2012-11-09</date>
15
+ <time>15:01:30</time>
16
+ <contents><target name="magecommunity"><dir name="Zero1"><dir name="Cookiealert"><dir name="Block"><file name="Cookiealert.php" hash="edcbd90a12d4907c751f610fb987425c"/></dir><dir name="Helper"><file name="Data.php" hash="59f4cb7c7f7cd5285a3db55153eff583"/></dir><dir name="Model"><file name="Cookiealert.php" hash="116acbd3add322d389e95316420c56d4"/></dir><dir name="controllers"><file name="IndexController.php" hash="02d15b278a410e1c73df8a38bf62bb92"/></dir><dir name="etc"><file name="adminhtml.xml" hash="3f063b5e621c2c314b17496df733ae96"/><file name="config.xml" hash="80a1d6073fe29d04f5472236de59a95d"/><file name="system.xml" hash="f429aaf2dddaf9506ba365398bf3ba49"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Zero1_Cookiealert.xml" hash="36f0e58b1db5291f4dd7c6f8d5a54ca3"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cookiealert.xml" hash="3e34e14891cd0c607f3d8e175a303c23"/></dir><dir name="template"><dir name="cookiealert"><file name="cookiealert.phtml" hash="4df858eaf2907658e5e3f07aa9112ead"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="cookiealert"><dir name="css"><file name="cookiealert.css" hash="60df3238e59d8cbb36b4b43a04873197"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>