Version Notes
The alert does not wait all the page to load to show up.
Download this release
Release Info
Developer | Pere Garcia |
Extension | Vhaldecode_CookieLaw |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/community/Vhaldecode/CookieLaw/etc/system.xml
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
* Vhaldecode
|
5 |
-
*
|
6 |
-
* NOTICE OF LICENSE
|
7 |
-
*
|
8 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
-
* that is bundled with this package in the file LICENSE.txt.
|
10 |
-
* It is also available through the world-wide-web at this URL:
|
11 |
-
* http://opensource.org/licenses/osl-3.0.php
|
12 |
-
*/
|
13 |
-->
|
14 |
<config>
|
15 |
<sections>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* Vhaldecode
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
*/
|
13 |
-->
|
14 |
<config>
|
15 |
<sections>
|
app/design/frontend/base/default/template/cookielaw/top.phtml
CHANGED
@@ -18,4 +18,9 @@
|
|
18 |
</div>
|
19 |
<a href="javascript:cookieLaw.cookieLawAccept(<?php echo Mage::getStoreConfig('cookielaw/cookielaw/behaviour') ?>);" class="v-close"><?php echo $this->__("Accept") ?></a>
|
20 |
</div>
|
|
|
|
|
|
|
|
|
|
|
21 |
<?php endif; ?>
|
18 |
</div>
|
19 |
<a href="javascript:cookieLaw.cookieLawAccept(<?php echo Mage::getStoreConfig('cookielaw/cookielaw/behaviour') ?>);" class="v-close"><?php echo $this->__("Accept") ?></a>
|
20 |
</div>
|
21 |
+
<script type="text/javascript">
|
22 |
+
if (!cookieLaw.getCookie('cookielaw')) {
|
23 |
+
document.getElementById('v-cookielaw').style.display = 'block';
|
24 |
+
}
|
25 |
+
</script>
|
26 |
<?php endif; ?>
|
js/vhaldecode/cookielaw/cookielaw.js
CHANGED
@@ -48,12 +48,3 @@ var cookieLaw = {
|
|
48 |
}
|
49 |
}
|
50 |
}
|
51 |
-
|
52 |
-
/**
|
53 |
-
* This will make appear the notice if the cookie law has not been accepted.
|
54 |
-
*/
|
55 |
-
window.onload = function(){
|
56 |
-
if (!cookieLaw.getCookie('cookielaw')) {
|
57 |
-
document.getElementById('v-cookielaw').style.display = 'block';
|
58 |
-
}
|
59 |
-
}
|
48 |
}
|
49 |
}
|
50 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Vhaldecode_CookieLaw</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Make sure your website complies with the EU Cookie Law with this customizable extension.</summary>
|
10 |
<description>Another EU Cookie Law Compliance extension. This extension adds a notice telling your visitors that the site uses cookies. The notice shows up when a visitor enters for the first time to the site, and remains there until it's closed.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Pere Garcia</name><user>vhalde</user><email>vhalde@mailhaven.com</email></author></authors>
|
13 |
-
<date>2014-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Vhaldecode"><dir name="CookieLaw"><dir><dir name="Helper"><file name="Data.php" hash="eb55aa32e6ae5b43d11686926da98b5c"/></dir><dir name="Model"><dir name="Config"><file name="Behaviour.php" hash="c1b7411d2bd9636f793bfe4357e7de62"/><file name="Position.php" hash="4edf13fb588e678b5b396d52a099004e"/><file name="Skin.php" hash="34d06761d078239046108f8d492606f7"/></dir></dir><dir name="etc"><file name="config.xml" hash="d92fbea929523cf884c1ee016b814184"/><file name="system.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Vhaldecode_CookieLaw</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Make sure your website complies with the EU Cookie Law with this customizable extension.</summary>
|
10 |
<description>Another EU Cookie Law Compliance extension. This extension adds a notice telling your visitors that the site uses cookies. The notice shows up when a visitor enters for the first time to the site, and remains there until it's closed.</description>
|
11 |
+
<notes>The alert does not wait all the page to load to show up.</notes>
|
12 |
<authors><author><name>Pere Garcia</name><user>vhalde</user><email>vhalde@mailhaven.com</email></author></authors>
|
13 |
+
<date>2014-04-03</date>
|
14 |
+
<time>13:21:45</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Vhaldecode"><dir name="CookieLaw"><dir><dir name="Helper"><file name="Data.php" hash="eb55aa32e6ae5b43d11686926da98b5c"/></dir><dir name="Model"><dir name="Config"><file name="Behaviour.php" hash="c1b7411d2bd9636f793bfe4357e7de62"/><file name="Position.php" hash="4edf13fb588e678b5b396d52a099004e"/><file name="Skin.php" hash="34d06761d078239046108f8d492606f7"/></dir></dir><dir name="etc"><file name="config.xml" hash="d92fbea929523cf884c1ee016b814184"/><file name="system.xml" hash="5b00806e0fbc8b7d93e97bdf64af5e2d"/></dir></dir><file name="LICENSE.txt" hash="59563e7be45096d0833dade102989042"/><file name="LICENSE_AFL.txt" hash="45a399f2095030865fb962263ccd7506"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="cookielaw.xml" hash="3baca7b4040a825cba256c494a160361"/></dir><dir name="template"><dir name="cookielaw"><file name="top.phtml" hash="7011b3994d90ff67dcd40d513e0edd77"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vhaldecode_CookieLaw.xml" hash="a395efd0bf02c2f4c7ef0c1d7541d2fb"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Vhaldecode_CookieLaw.csv" hash="80e15a928af1ee5e2ec153d5267b788d"/></dir><dir name="es_ES"><file name="Vhaldecode_CookieLaw.csv" hash="6ef904f740433596a3f4eac7b5e3bf00"/></dir><dir name="en_US"><file name="Vhaldecode_CookieLaw.csv" hash="ca98da9cf3c59851db2766fc3c8f4dd0"/></dir><dir name="fr_FR"><file name="Vhaldecode_CookieLaw.csv" hash="2c6a6358d31671c4be9dbd2d202fa15e"/></dir><dir name="hu_HU"><file name="Vhaldecode_CookieLaw.csv" hash="31be3e7d14d2cd5df253afab014ae530"/></dir><dir name="nl_NL"><file name="Vhaldecode_CookieLaw.csv" hash="8dad0acf10c360f1bc6e2d0d2af8e7b3"/></dir><dir name="ro_RO"><file name="Vhaldecode_CookieLaw.csv" hash="c75a72df0de79d5aeaf0757d4445bdea"/></dir></target><target name="mageweb"><dir name="js"><dir name="vhaldecode"><dir name="cookielaw"><file name="cookielaw.js" hash="3541488340dc139f5f942d4141d9b0be"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="vhaldecode"><dir name="cookielaw"><dir name="css"><file name="cookielaw.css" hash="2a47893cc279cfde79e5856e33f8997e"/></dir><dir name="images"><file name="close.png" hash="eff8ee822d3011bd1f992cf4b7f81f9b"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|