Ginger – EU Cookie Law - Version 2.0.2

Version Description

  • Fix analytics addon
Download this release

Release Info

Developer manafactory
Plugin Icon 128x128 Ginger – EU Cookie Law
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

addon/adsense/index.php CHANGED
@@ -16,7 +16,11 @@ function ginger_adsense_activation_page()
16
  <thead>
17
  <tr>
18
  <td colspan="2">
19
- <h3><?php _e("Google AdSense", "ginger"); ?></h3>
 
 
 
 
20
  <small><?php _e("This add-on blocks cookies and ads created by Google AdSense, until user's acceptation.", "ginger"); ?></small>
21
  <p>
22
 
16
  <thead>
17
  <tr>
18
  <td colspan="2">
19
+ <h3><?php _e("Google AdSense", "ginger"); ?>
20
+ <?php
21
+ $appname = "adsense";
22
+ ginger_app_price($appname);
23
+ ?></h3>
24
  <small><?php _e("This add-on blocks cookies and ads created by Google AdSense, until user's acceptation.", "ginger"); ?></small>
25
  <p>
26
 
addon/analytics/ginger.analytics.php CHANGED
@@ -131,29 +131,11 @@ function ginger_analytics(){
131
 
132
  <?php }
133
 
134
- add_action('wp_footer', 'ginger_analytics_code');
135
- function ginger_analytics_code(){ ?>
136
- <?php if(isset($_GET) && isset($_GET['analytics']) && $_GET['analytics'] == 'check') return; ?>
137
- <?php $option = get_option('gingeranalytics_option');?>
138
- <?php if(isset($option['enable_ginger_analytics']) && $option['enable_ginger_analytics'] == 1): ?>
139
- <!-- Ginger Analytics code -->
140
- <script>
141
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
142
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
143
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
144
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
145
-
146
-
147
- </script>
148
- <!-- End Ginger Analytics code -->
149
- <?php endif; ?>
150
- <?php }
151
-
152
 
153
  add_action( 'wp_head', 'ginger_anyltics_script_anonymize');
154
  function ginger_anyltics_script_anonymize(){ ?>
155
  <?php $option = get_option('gingeranalytics_option');?>
156
- <script>var ginger_anyltics_add_on = 1; var ginger_analytics_code = "<?php if(isset($option['ginger_analytics_code']) && $option['ginger_analytics_code'] != '' ): echo $option['ginger_analytics_code']; endif;?>"</script>
157
  <?php }
158
 
159
  // Registro script per il controllo dello script Analytics
131
 
132
  <?php }
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
  add_action( 'wp_head', 'ginger_anyltics_script_anonymize');
136
  function ginger_anyltics_script_anonymize(){ ?>
137
  <?php $option = get_option('gingeranalytics_option');?>
138
+ <script>gingeranalytics('<?php if(isset($option['ginger_analytics_code']) && $option['ginger_analytics_code'] != '' ): echo $option['ginger_analytics_code']; endif;?>')</script>
139
  <?php }
140
 
141
  // Registro script per il controllo dello script Analytics
addon/analytics/gingeranalytics.min.js CHANGED
@@ -1 +1 @@
1
- function getCookie(e){for(var n=e+"=",t=document.cookie.split(";"),o=0;o<t.length;o++){for(var a=t[o];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(n))return a.substring(n.length,a.length)}return""}window.onload=function(){if("undefined"!=typeof ginger_analytics_code)var e=ginger_analytics_code;else var e="UA-XXXX-Y";if(console.log(getCookie("ginger-cookie")),"Y"==getCookie("ginger-cookie"))var n="ga('create', '"+e+"', 'auto'); ga('send', 'pageview');";else var n="ga('create', '"+e+"', 'auto'); ga('set', 'anonymizeIP', true); ga('send', 'pageview');";var t=document.createElement("script");t.type="text/javascript",t.innerHTML=n,console.log(t),document.getElementsByTagName("head")[0].appendChild(t)};
1
+ function gingeranalytics(e){if(console.log(e),console.log(getCookie("ginger-cookie")),"Y"==getCookie("ginger-cookie"))var t="ga('create', '"+e+"', 'auto'); ga('send', 'pageview');";else var t="ga('create', '"+e+"', 'auto'); ga('set', 'anonymizeIP', true); ga('send', 'pageview');";var n=document.createElement("script");n.type="text/javascript",n.innerHTML="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');"+t,console.log(n),document.getElementsByTagName("head")[0].appendChild(n)}function getCookie(e){for(var t=e+"=",n=document.cookie.split(";"),a=0;a<n.length;a++){for(var o=n[a];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}
addon/analytics/index.php CHANGED
@@ -16,8 +16,13 @@ function ginger_analytics_activation_page()
16
  <thead>
17
  <tr>
18
  <td colspan="2">
19
- <h3><?php _e("Google Analytics", "ginger"); ?></h3>
 
 
 
 
20
  <small><?php _e("Google Analytics Add-on will add analytics tracking code to your site, switching automatically between anonymized/not anonymized mode based on user cookies acceptance.", "ginger"); ?></small>
 
21
  <p>
22
  <b style="color:#F99A30"><?php _e("Get activation code here:", "ginger"); ?> <a href="http://www.ginger-cookielaw.com/prodotto/google-analytics" target="_BLANK">http://www.ginger-cookielaw.com/prodotto/google-analytics/</a></b>
23
  </p>
16
  <thead>
17
  <tr>
18
  <td colspan="2">
19
+ <h3><?php _e("Google Analytics", "ginger"); ?>
20
+ <?php
21
+ $appname = "google-analytics";
22
+ ginger_app_price($appname);
23
+ ?></h3>
24
  <small><?php _e("Google Analytics Add-on will add analytics tracking code to your site, switching automatically between anonymized/not anonymized mode based on user cookies acceptance.", "ginger"); ?></small>
25
+
26
  <p>
27
  <b style="color:#F99A30"><?php _e("Get activation code here:", "ginger"); ?> <a href="http://www.ginger-cookielaw.com/prodotto/google-analytics" target="_BLANK">http://www.ginger-cookielaw.com/prodotto/google-analytics/</a></b>
28
  </p>
addon/ginger.addon.utils.php CHANGED
@@ -180,4 +180,4 @@ if ( $request == 'deactivation' && $activationcode != '' && $activationemail !=
180
  <?php
181
  }
182
 
183
- require_once('ginger.addoncheck.php');
180
  <?php
181
  }
182
 
183
+ require_once('ginger.addoncheck.php');
addon/ginger.addoncheck.php CHANGED
@@ -28,4 +28,4 @@ function ginger_check_function() {
28
  endif;
29
  endif;
30
  endforeach;
31
- }
28
  endif;
29
  endif;
30
  endforeach;
31
+ }
addon/wpml/index.php CHANGED
@@ -104,14 +104,16 @@ add_action("ginger_addon_activation_page", "ginger_wpml_activation_page");
104
 
105
  function ginger_wpml_activation_page()
106
  {
107
-
108
-
109
  ?>
110
  <table class="form-table striped">
111
  <thead>
112
  <tr>
113
  <td colspan="2">
114
- <h3><?php _e("WPML", "ginger"); ?></h3>
 
 
 
 
115
  <small><?php _e("WPML add-on will adapt Ginger for WPML multilanguage websites .", "ginger"); ?></small>
116
  <p>
117
  <b style="color:#F99A30"><?php _e("Get activation code here:", "ginger"); ?> <a href="http://www.ginger-cookielaw.com/prodotto/wpml/" target="_BLANK">http://www.ginger-cookielaw.com/prodotto/wpml/</a></b>
104
 
105
  function ginger_wpml_activation_page()
106
  {
 
 
107
  ?>
108
  <table class="form-table striped">
109
  <thead>
110
  <tr>
111
  <td colspan="2">
112
+ <h3><?php _e("WPML", "ginger"); ?>
113
+ <?php
114
+ $appname = "wpml";
115
+ ginger_app_price($appname);
116
+ ?></h3>
117
  <small><?php _e("WPML add-on will adapt Ginger for WPML multilanguage websites .", "ginger"); ?></small>
118
  <p>
119
  <b style="color:#F99A30"><?php _e("Get activation code here:", "ginger"); ?> <a href="http://www.ginger-cookielaw.com/prodotto/wpml/" target="_BLANK">http://www.ginger-cookielaw.com/prodotto/wpml/</a></b>
admin/ginger.utils.php CHANGED
@@ -88,4 +88,23 @@ function ginger_plugin_activate() {
88
  }
89
  }
90
 
 
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  }
89
  }
90
 
91
+ function ginger_app_price($appname){
92
 
93
+ $url = "http://www.ginger-cookielaw.com/api/?pname=".$appname;
94
+ $response = wp_remote_get($url);
95
+ if($response) {
96
+ $array = json_decode($response["body"], true);
97
+ $price = $array[$appname]["price"];
98
+ if($price == "0"){
99
+ echo '<small style="color: green">(';
100
+ _e("Free", "ginger");
101
+ echo ')</small>';
102
+ }else{
103
+ echo '<small style="color: green">(';
104
+ _e("price: ", "ginger");
105
+ echo $price;
106
+ echo '&euro;)</small>';
107
+ }
108
+
109
+ }
110
+ }
admin/js/ginger.js CHANGED
@@ -63,4 +63,4 @@ function en_dis_able_add_on(id,id_img,id_text){
63
  document.getElementById(id_img).src='../wp-content/plugins/ginger/img/xx.png';
64
  }
65
 
66
- }
63
  document.getElementById(id_img).src='../wp-content/plugins/ginger/img/xx.png';
64
  }
65
 
66
+ }
admin/partial/banner.php CHANGED
@@ -226,4 +226,4 @@
226
  {selectedLine: 1}
227
  );
228
  });
229
- </script>
226
  {selectedLine: 1}
227
  );
228
  });
229
+ </script>
admin/partial/policy.php CHANGED
@@ -105,4 +105,4 @@
105
  </td>
106
  </tr>
107
  </tbody>
108
- </table>
105
  </td>
106
  </tr>
107
  </tbody>
108
+ </table>
front/css/cookies-enabler.css CHANGED
@@ -363,4 +363,4 @@
363
  -o-animation-duration: 0.8s;
364
  -webkit-animation-name: slideUp;
365
  animation-name: slideUp
366
- }
363
  -o-animation-duration: 0.8s;
364
  -webkit-animation-name: slideUp;
365
  animation-name: slideUp
366
+ }
front/gingerfront.core.php CHANGED
@@ -81,6 +81,7 @@ function ginger_run(){
81
  if($option_ginger_general['ginger_cache'] == 'no') return;
82
  endif;
83
  if($option_ginger_general['ginger_opt'] == 'in'):
 
84
  ob_start();
85
  add_action('shutdown', '__shutdown', 0);
86
  add_filter('final_output', 'ginger_parse_dom');
81
  if($option_ginger_general['ginger_cache'] == 'no') return;
82
  endif;
83
  if($option_ginger_general['ginger_opt'] == 'in'):
84
+
85
  ob_start();
86
  add_action('shutdown', '__shutdown', 0);
87
  add_filter('final_output', 'ginger_parse_dom');
front/js/cookies-enabler.min.js CHANGED
@@ -1 +1 @@
1
- function strpos(e,n,t){var s=(e+"").indexOf(n,t||0);return-1===s?!1:s}window.COOKIES_ENABLER=window.COOKIES_ENABLER||function(){"use strict";function e(){var e,n;for(e=1;e<arguments.length;e++)for(n in arguments[e])arguments[e].hasOwnProperty(n)&&(arguments[0][n]=arguments[e][n]);return arguments[0]}function n(e,n,t){var s;return function(){var a=this,i=arguments,r=function(){s=null,t||e.apply(a,i)},o=t&&!s;clearTimeout(s),s=setTimeout(r,n),o&&e.apply(a,i)}}function t(e,n){do if(s(e,n))return e;while(e=e.parentNode);return null}function s(e,n){return(" "+e.className+" ").indexOf(" "+n+" ")>-1}var a,i,r,o={scriptClass:"ce-script",iframeClass:"ce-iframe",acceptClass:"ce-accept",disableClass:"ce-disable",dismissClass:"ce-dismiss",bannerClass:"ce-banner",bannerHTML:null!==document.getElementById("ce-banner-html")?document.getElementById("ce-banner-html").innerHTML:'<p>This website uses cookies. <a href="#" class="ce-accept">Enable Cookies</a></p>',eventScroll:!1,scrollOffset:200,clickOutside:!1,cookieName:"ce-cookie",cookieDuration:"365",forceBannerClass:"ginger-banner bottom dialog dark force",forceEnable:!1,forceEnableText:'<div class="ginger-button-wrapper"><div class="ginger-button"><a href="#" class="ginger-accept">Enable Cookie</a></div></div>',iframesPlaceholder:!0,iframesPlaceholderHTML:null!==document.getElementById("ce-iframePlaceholder-html")?document.getElementById("ce-iframePlaceholder-html").innerHTML:'<p>To view this content you need to<a href="#" class="ce-accept">Enable Cookies</a></p>',iframesPlaceholderClass:"ce-iframe-placeholder",onEnable:"",onDismiss:"",onDisable:"",forceReload:!1},c=function(){Math.abs(window.pageYOffset-r)>a.scrollOffset&&"N"!=p.get()&&u()},l=function(){i={accept:document.getElementsByClassName(a.acceptClass),disable:document.getElementsByClassName(a.disableClass),banner:document.getElementsByClassName(a.bannerClass),bannerForce:document.getElementsByClassName(a.forceBannerClass),dismiss:document.getElementsByClassName(a.dismissClass)};var e,n=i.accept,s=n.length,o=i.disable,l=o.length,d=i.dismiss,g=d.length;for(a.eventScroll&&window.addEventListener("load",function(){r=window.pageYOffset,window.addEventListener("scroll",c)}),a.clickOutside&&document.addEventListener("click",function(e){var n=e.target;return t(n,a.iframesPlaceholderClass)||t(n,a.disableClass)||t(n,a.bannerClass)||t(n,a.dismissClass)||t(n,a.disableClass)?!1:void("N"!=p.get()&&u())}),e=0;s>e;e++)n[e].addEventListener("click",function(e){e.preventDefault(),u(e)});for(e=0;l>e;e++)o[e].addEventListener("click",function(e){e.preventDefault(),f(e)});for(e=0;g>e;e++)d[e].addEventListener("click",function(e){e.preventDefault(),m.dismiss()})},d=function(n){if(a=e({},o,n),"Y"==p.get())"function"==typeof a.onEnable&&a.onEnable(),y.get_async(),b.get(),g.get();else if("N"==p.get()){var t=document.getElementById("disqus_thread");null!=t&&(t.style.display="none"),0!=a.forceEnable&&m.forceAccept(),"function"==typeof a.onDisable&&a.onDisable(),g.hide(),l()}else{var t=document.getElementById("disqus_thread");null!=t&&(t.style.display="none"),m.create(),g.hide(),l()}},u=n(function(e){if("undefined"!=typeof e&&"click"===e.type&&e.preventDefault(),"Y"!=p.get()){y.get_async(),p.set(),b.get(),g.get(),g.removePlaceholders(),m.dismiss();var n=document.getElementById("disqus_thread");null!=n&&(n.style.display="block"),window.removeEventListener("scroll",c),"function"==typeof a.onEnable&&a.onEnable(),1==a.forceReload&&location.reload()}},250,!1),f=function(e){"undefined"!=typeof e&&"click"===e.type&&e.preventDefault(),"N"!=p.get()&&(p.set("N"),m.dismiss(),window.removeEventListener("scroll",c),"function"==typeof a.onDisable&&a.onDisable())},m=function(){function e(){var e='<div class="'+a.bannerClass+'">'+a.bannerHTML+"</div>";document.body.insertAdjacentHTML("beforeend",e)}function n(){var e='<div class="'+a.forceBannerClass+'">'+a.forceEnableText+"</div>";document.body.insertAdjacentHTML("beforeend",e)}function t(){i.bannerForce[0]&&(i.bannerForce[0].style.display="none"),i.banner[0]&&(i.banner[0].style.display="none"),"function"==typeof a.onDismiss&&a.onDismiss()}return{create:e,dismiss:t,forceAccept:n}}(),p=function(){function e(e){var n,t,s="undefined"!=typeof e?e:"Y";a.cookieDuration?(n=new Date,n.setTime(n.getTime()+24*a.cookieDuration*60*60*1e3),t="; expires="+n.toGMTString()):t="",document.cookie=a.cookieName+"="+s+t+"; path=/"}function n(){var e,n,t,s=document.cookie.split(";"),i=s.length;for(e=0;i>e;e++)if(n=s[e].substr(0,s[e].indexOf("=")),t=s[e].substr(s[e].indexOf("=")+1),n=n.replace(/^\s+|\s+$/g,""),n==a.cookieName)return unescape(t)}return{set:e,get:n}}(),g=function(){function e(e){var n=document.createElement("div");n.className=a.iframesPlaceholderClass,n.innerHTML=a.iframesPlaceholderHTML,e.parentNode.insertBefore(n,e)}function n(){var e,n=document.getElementsByClassName(a.iframesPlaceholderClass),t=n.length;for(e=t-1;e>=0;e--)n[e].remove()}function t(){var n,t,s=document.getElementsByClassName(a.iframeClass),i=s.length;for(t=0;i>t;t++)n=s[t],n.style.display="none",a.iframesPlaceholder&&e(n)}function s(){var e,n,t,s=document.getElementsByClassName(a.iframeClass),i=s.length;for(t=0;i>t;t++)n=s[t],e=n.attributes["data-ce-src"].value,n.src=e,n.style.display="block"}return{hide:t,get:s,removePlaceholders:n}}(),b=function(){function e(){var e,n,t,s,i=document.getElementsByClassName(a.scriptClass),r=i.length,o=document.createDocumentFragment();for(e=0;r>e;e++)if(i[e].hasAttribute("data-ce-src"))"undefined"==typeof postscribe&&postscribe(i[e].parentNode,'<script src="'+i[e].getAttribute("data-ce-src")+'"></script>');else{for(t=document.createElement("script"),t.type="text/javascript",n=0;n<i[e].attributes.length;n++)s=i[e].attributes[n],s.specified&&"type"!=s.name&&"class"!=s.name&&t.setAttribute(s.name,s.value);t.innerHTML=i[e].innerHTML,o.appendChild(t)}document.body.appendChild(o)}function n(){"undefined"!=typeof async_ginger_script}return{get:e,get_async:n}}(),y=function(){function e(){if("undefined"!=typeof async_ginger_script){var e,n=async_ginger_script;for(e=0;e<n.length;++e){var t=document.createElement("script");t.type="text/javascript",t.src=n[e],document.getElementsByTagName("head")[0].appendChild(t)}}}return{get_async:e}}();return{init:d,enableCookies:u,dismissBanner:m.dismiss}}();
1
+ function strpos(e,n,t){var s=(e+"").indexOf(n,t||0);return-1===s?!1:s}window.COOKIES_ENABLER=window.COOKIES_ENABLER||function(){"use strict";function e(){var e,n;for(e=1;e<arguments.length;e++)for(n in arguments[e])arguments[e].hasOwnProperty(n)&&(arguments[0][n]=arguments[e][n]);return arguments[0]}function n(e,n,t){var s;return function(){var a=this,i=arguments,r=function(){s=null,t||e.apply(a,i)},o=t&&!s;clearTimeout(s),s=setTimeout(r,n),o&&e.apply(a,i)}}function t(e,n){do if(s(e,n))return e;while(e=e.parentNode);return null}function s(e,n){return(" "+e.className+" ").indexOf(" "+n+" ")>-1}var a,i,r,o={scriptClass:"ce-script",iframeClass:"ce-iframe",acceptClass:"ce-accept",disableClass:"ce-disable",dismissClass:"ce-dismiss",bannerClass:"ce-banner",bannerHTML:null!==document.getElementById("ce-banner-html")?document.getElementById("ce-banner-html").innerHTML:'<p>This website uses cookies. <a href="#" class="ce-accept">Enable Cookies</a></p>',eventScroll:!1,scrollOffset:200,clickOutside:!1,cookieName:"ce-cookie",cookieDuration:"365",forceBannerClass:"ginger-banner bottom dialog dark force",forceEnable:!1,forceEnableText:'<div class="ginger-button-wrapper"><div class="ginger-button"><a href="#" class="ginger-accept">Enable Cookie</a></div></div>',iframesPlaceholder:!0,iframesPlaceholderHTML:null!==document.getElementById("ce-iframePlaceholder-html")?document.getElementById("ce-iframePlaceholder-html").innerHTML:'<p>To view this content you need to<a href="#" class="ce-accept">Enable Cookies</a></p>',iframesPlaceholderClass:"ce-iframe-placeholder",onEnable:"",onDismiss:"",onDisable:"",forceReload:!1},c=function(){Math.abs(window.pageYOffset-r)>a.scrollOffset&&"N"!=p.get()&&u()},l=function(){i={accept:document.getElementsByClassName(a.acceptClass),disable:document.getElementsByClassName(a.disableClass),banner:document.getElementsByClassName(a.bannerClass),bannerForce:document.getElementsByClassName(a.forceBannerClass),dismiss:document.getElementsByClassName(a.dismissClass)};var e,n=i.accept,s=n.length,o=i.disable,l=o.length,d=i.dismiss,g=d.length;for(a.eventScroll&&window.addEventListener("load",function(){r=window.pageYOffset,window.addEventListener("scroll",c)}),a.clickOutside&&document.addEventListener("click",function(e){var n=e.target;return t(n,a.iframesPlaceholderClass)||t(n,a.disableClass)||t(n,a.bannerClass)||t(n,a.dismissClass)||t(n,a.disableClass)?!1:void("N"!=p.get()&&u())}),e=0;s>e;e++)n[e].addEventListener("click",function(e){e.preventDefault(),u(e)});for(e=0;l>e;e++)o[e].addEventListener("click",function(e){e.preventDefault(),f(e)});for(e=0;g>e;e++)d[e].addEventListener("click",function(e){e.preventDefault(),m.dismiss()})},d=function(n){if(a=e({},o,n),"Y"==p.get())"function"==typeof a.onEnable&&a.onEnable(),y.get_async(),b.get(),g.get();else if("N"==p.get()){var t=document.getElementById("disqus_thread");null!=t&&(t.style.display="none"),0!=a.forceEnable&&m.forceAccept(),"function"==typeof a.onDisable&&a.onDisable(),g.hide(),l()}else{var t=document.getElementById("disqus_thread");null!=t&&(t.style.display="none"),m.create(),g.hide(),l()}},u=n(function(e){if("undefined"!=typeof e&&"click"===e.type&&e.preventDefault(),"Y"!=p.get()){y.get_async(),p.set(),b.get(),g.get(),g.removePlaceholders(),m.dismiss();var n=document.getElementById("disqus_thread");null!=n&&(n.style.display="block"),window.removeEventListener("scroll",c),"function"==typeof a.onEnable&&a.onEnable(),1==a.forceReload&&location.reload()}},250,!1),f=function(e){"undefined"!=typeof e&&"click"===e.type&&e.preventDefault(),"N"!=p.get()&&(p.set("N"),m.dismiss(),window.removeEventListener("scroll",c),"function"==typeof a.onDisable&&a.onDisable())},m=function(){function e(){var e='<div class="'+a.bannerClass+'">'+a.bannerHTML+"</div>";document.body.insertAdjacentHTML("beforeend",e)}function n(){var e='<div class="'+a.forceBannerClass+'">'+a.forceEnableText+"</div>";document.body.insertAdjacentHTML("beforeend",e)}function t(){i.bannerForce[0]&&(i.bannerForce[0].style.display="none"),i.banner[0]&&(i.banner[0].style.display="none"),"function"==typeof a.onDismiss&&a.onDismiss()}return{create:e,dismiss:t,forceAccept:n}}(),p=function(){function e(e){var n,t,s="undefined"!=typeof e?e:"Y";a.cookieDuration?(n=new Date,n.setTime(n.getTime()+24*a.cookieDuration*60*60*1e3),t="; expires="+n.toGMTString()):t="",document.cookie=a.cookieName+"="+s+t+"; path=/"}function n(){var e,n,t,s=document.cookie.split(";"),i=s.length;for(e=0;i>e;e++)if(n=s[e].substr(0,s[e].indexOf("=")),t=s[e].substr(s[e].indexOf("=")+1),n=n.replace(/^\s+|\s+$/g,""),n==a.cookieName)return unescape(t)}return{set:e,get:n}}(),g=function(){function e(e){var n=document.createElement("div");n.className=a.iframesPlaceholderClass,n.innerHTML=a.iframesPlaceholderHTML,e.parentNode.insertBefore(n,e)}function n(){var e,n=document.getElementsByClassName(a.iframesPlaceholderClass),t=n.length;for(e=t-1;e>=0;e--)n[e].remove()}function t(){var n,t,s=document.getElementsByClassName(a.iframeClass),i=s.length;for(t=0;i>t;t++)n=s[t],n.style.display="none",a.iframesPlaceholder&&e(n)}function s(){var e,n,t,s=document.getElementsByClassName(a.iframeClass),i=s.length;for(t=0;i>t;t++)n=s[t],e=n.attributes["data-ce-src"].value,n.src=e,n.style.display="block"}return{hide:t,get:s,removePlaceholders:n}}(),b=function(){function e(){var e,n,t,s,i=document.getElementsByClassName(a.scriptClass),r=i.length,o=document.createDocumentFragment();for(e=0;r>e;e++)if(i[e].hasAttribute("data-ce-src"))"undefined"==typeof postscribe&&postscribe(i[e].parentNode,'<script src="'+i[e].getAttribute("data-ce-src")+'"></script>');else{for(t=document.createElement("script"),t.type="text/javascript",n=0;n<i[e].attributes.length;n++)s=i[e].attributes[n],s.specified&&"type"!=s.name&&"class"!=s.name&&t.setAttribute(s.name,s.value);t.innerHTML=i[e].innerHTML,o.appendChild(t)}document.body.appendChild(o)}function n(){"undefined"!=typeof async_ginger_script}return{get:e,get_async:n}}(),y=function(){function e(){if("undefined"!=typeof async_ginger_script){var e,n=async_ginger_script;for(e=0;e<n.length;++e){var t=document.createElement("script");t.type="text/javascript",t.src=n[e],document.getElementsByTagName("head")[0].appendChild(t)}}}return{get_async:e}}();return{init:d,enableCookies:u,dismissBanner:m.dismiss}}();
ginger-eu-cookie-law.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://manafactory.it/
5
  Description: Make your website compliant with EU Cookie Policy.
6
- Version: 2.0.1
7
  Author: Manafactory
8
  Author URI: http://manafactory.it/
9
  License: GPLv2 or later
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://manafactory.it/
5
  Description: Make your website compliant with EU Cookie Policy.
6
+ Version: 2.0.2
7
  Author: Manafactory
8
  Author URI: http://manafactory.it/
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: manafactory, webgrafia, matteobarale
3
  Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia
4
  Requires at least: 3.0.1
5
  Tested up to: 4.2.2
6
- Stable tag: 2.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -33,6 +33,7 @@ The aim of Ginger is to be a **complete plug'n play solution** that make your we
33
  * Disqus
34
  * ShareThis
35
  * Adsense
 
36
 
37
  = Coming soon: =
38
  * **Privacy Policy** Generator
@@ -74,6 +75,9 @@ No, you can be safe from plugins conflict. It's been developed using Cookies Ena
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 2.0.1 =
78
  * BugFix
79
 
3
  Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia
4
  Requires at least: 3.0.1
5
  Tested up to: 4.2.2
6
+ Stable tag: 2.0.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
33
  * Disqus
34
  * ShareThis
35
  * Adsense
36
+ * WPML
37
 
38
  = Coming soon: =
39
  * **Privacy Policy** Generator
75
 
76
  == Changelog ==
77
 
78
+ = 2.0.2 =
79
+ * Fix analytics addon
80
+
81
  = 2.0.1 =
82
  * BugFix
83