Italy Cookie Choices (for EU Cookie Law) - Version 1.2.2

Version Description

Release Date: May 29th, 2015

Dev time: 1h

  • Fixed cookie setting path to root
Download this release

Release Info

Developer overclokk
Plugin Icon Italy Cookie Choices (for EU Cookie Law)
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

italy-cookie-choices.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Italy Cookie Choices
4
  * Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
5
  * Description: Minimal code to make sure your website repect the Italian coockie law
6
- * Version: 1.2.1
7
  * Author: Enea Overclokk
8
  * Author URI: https://plus.google.com/u/0/communities/109254048492234113886
9
  * Text Domain: italy-cookie-choices
3
  * Plugin Name: Italy Cookie Choices
4
  * Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
5
  * Description: Minimal code to make sure your website repect the Italian coockie law
6
+ * Version: 1.2.2
7
  * Author: Enea Overclokk
8
  * Author URI: https://plus.google.com/u/0/communities/109254048492234113886
9
  * Text Domain: italy-cookie-choices
js/cookiechoices.js CHANGED
@@ -164,7 +164,7 @@
164
  var expiryDate = new Date();
165
  expiryDate.setFullYear(expiryDate.getFullYear() + 1);
166
  // document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
167
- document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString();
168
  }
169
 
170
  function _shouldDisplayConsent() {
164
  var expiryDate = new Date();
165
  expiryDate.setFullYear(expiryDate.getFullYear() + 1);
166
  // document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
167
+ document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
168
  }
169
 
170
  function _shouldDisplayConsent() {
js/cookiechoices.php CHANGED
@@ -1 +1 @@
1
- !function(a){if(a.cookieChoices)return a.cookieChoices;var b=a.document,c=b.documentElement,d="textContent"in b.body,e=function(){function a(a,d,e,f){htmlM&&(c.className+=" icc");var j="position:"+elPos+";width:100%;background-color:#eee;margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:center;",k=b.createElement("div");return k.id=r,k.style.cssText=j,k.appendChild(g(a)),e&&f&&k.appendChild(i(e,f)),k.appendChild(h(d)),k}function e(a,c,d,e){var f="position:fixed;width:100%;height:100%;z-index:999;top:0;left:0;opacity:0.5;filter:alpha(opacity=50);background-color:#ccc;",j="z-index:1000;position:fixed;left:50%;top:50%",k="position:relative;left:-50%;margin-top:-25%;background-color:#fff;padding:20px;box-shadow:4px 4px 25px #888;",l=b.createElement("div");l.id=r;var m=b.createElement("div");m.style.cssText=f;var n=b.createElement("div");n.style.cssText=k;var o=b.createElement("div");o.style.cssText=j;var p=h(c);return p.style.display="block",p.style.textAlign="right",p.style.marginTop="8px",n.appendChild(g(a)),d&&e&&n.appendChild(i(d,e)),n.appendChild(p),o.appendChild(n),l.appendChild(m),l.appendChild(o),l}function f(a,b){d?a.textContent=b:a.innerText=b}function g(a){var c=b.createElement("span");return f(c,a),c}function h(a){var c=b.createElement("a");return f(c,a),c.id=s,c.className=closeClass,c.href="#",c.style.marginLeft="24px",c}function i(a,c){var d=b.createElement("a");return f(d,a),d.className=infoClass,d.href=c,d.target="_blank",d.style.marginLeft="8px",d}function j(){return htmlM&&c.classList.remove("icc"),o(),n(),rel&&b.location.reload(),!1}function k(c,d,f,g,h){if(p()){n();var i=h?e(c,d,f,g):a(c,d,f,g),k=b.createDocumentFragment();k.appendChild(i),b.body.appendChild(k.cloneNode(!0)),b.getElementById(s).onclick=j,scroll&&(b.onscroll=j)}}function l(a,b,c,d){k(a,b,c,d,!1)}function m(a,b,c,d){k(a,b,c,d,!0)}function n(){var a=b.getElementById(r);null!==a&&a.parentNode.removeChild(a)}function o(){var a=new Date;a.setFullYear(a.getFullYear()+1),b.cookie=q+"="+coVA+"; expires="+a.toGMTString()}function p(){return!b.cookie.match(new RegExp(q+"=([^;]+)"))}var q=coNA,r="cookieChoiceInfo",s="cookieChoiceDismiss",t={};return t.showCookieConsentBar=l,t.showCookieConsentDialog=m,t}();return a.cookieChoices=e,e}(this);
1
+ !function(a){if(a.cookieChoices)return a.cookieChoices;var b=a.document,c=b.documentElement,d="textContent"in b.body,e=function(){function a(a,d,e,f){htmlM&&(c.className+=" icc");var j="position:"+elPos+";width:100%;background-color:#eee;margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:center;",k=b.createElement("div");return k.id=r,k.style.cssText=j,k.appendChild(g(a)),e&&f&&k.appendChild(i(e,f)),k.appendChild(h(d)),k}function e(a,c,d,e){var f="position:fixed;width:100%;height:100%;z-index:999;top:0;left:0;opacity:0.5;filter:alpha(opacity=50);background-color:#ccc;",j="z-index:1000;position:fixed;left:50%;top:50%",k="position:relative;left:-50%;margin-top:-25%;background-color:#fff;padding:20px;box-shadow:4px 4px 25px #888;",l=b.createElement("div");l.id=r;var m=b.createElement("div");m.style.cssText=f;var n=b.createElement("div");n.style.cssText=k;var o=b.createElement("div");o.style.cssText=j;var p=h(c);return p.style.display="block",p.style.textAlign="right",p.style.marginTop="8px",n.appendChild(g(a)),d&&e&&n.appendChild(i(d,e)),n.appendChild(p),o.appendChild(n),l.appendChild(m),l.appendChild(o),l}function f(a,b){d?a.textContent=b:a.innerText=b}function g(a){var c=b.createElement("span");return f(c,a),c}function h(a){var c=b.createElement("a");return f(c,a),c.id=s,c.className=closeClass,c.href="#",c.style.marginLeft="24px",c}function i(a,c){var d=b.createElement("a");return f(d,a),d.className=infoClass,d.href=c,d.target="_blank",d.style.marginLeft="8px",d}function j(){return htmlM&&c.classList.remove("icc"),o(),n(),rel&&b.location.reload(),!1}function k(c,d,f,g,h){if(p()){n();var i=h?e(c,d,f,g):a(c,d,f,g),k=b.createDocumentFragment();k.appendChild(i),b.body.appendChild(k.cloneNode(!0)),b.getElementById(s).onclick=j,scroll&&(b.onscroll=j)}}function l(a,b,c,d){k(a,b,c,d,!1)}function m(a,b,c,d){k(a,b,c,d,!0)}function n(){var a=b.getElementById(r);null!==a&&a.parentNode.removeChild(a)}function o(){var a=new Date;a.setFullYear(a.getFullYear()+1),b.cookie=q+"="+coVA+"; expires="+a.toGMTString()+";path=/"}function p(){return!b.cookie.match(new RegExp(q+"=([^;]+)"))}var q=coNA,r="cookieChoiceInfo",s="cookieChoiceDismiss",t={};return t.showCookieConsentBar=l,t.showCookieConsentDialog=m,t}();return a.cookieChoices=e,e}(this);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: compliance, cookie law, cookies, eu cookie law, eu law, eu privacy directive, privacy, privacy directive, notification, privacy law, cookie law banner, implied consent
5
  Requires at least: 4.1
6
  Tested up to: 4.3.0
7
- Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -59,6 +59,13 @@ You have to uncheck the `Detect <script> tags in wp_footer` in Async JS and CSS
59
 
60
  == Changelog ==
61
 
 
 
 
 
 
 
 
62
  = 1.2.1 =
63
  Release Date: May 28th, 2015
64
 
4
  Tags: compliance, cookie law, cookies, eu cookie law, eu law, eu privacy directive, privacy, privacy directive, notification, privacy law, cookie law banner, implied consent
5
  Requires at least: 4.1
6
  Tested up to: 4.3.0
7
+ Stable tag: 1.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
59
 
60
  == Changelog ==
61
 
62
+ = 1.2.2 =
63
+ Release Date: May 29th, 2015
64
+
65
+ Dev time: 1h
66
+
67
+ * [Fixed cookie setting path to root](https://github.com/overclokk/italy-cookie-choices/issues/20)
68
+
69
  = 1.2.1 =
70
  Release Date: May 28th, 2015
71