Version Description
Download this release
Release Info
Developer | Milmor |
Plugin | EU Cookie Law |
Version | 3.0.4 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.4
- class-frontend.php +5 -5
- eu-cookie-law.php +1 -1
- js/scripts.js +2 -2
- readme.txt +9 -3
class-frontend.php
CHANGED
@@ -6,7 +6,7 @@ add_action('wp_head', function() {
|
|
6 |
|
7 |
global $euCookieSet;
|
8 |
global $deleteCookieUrlCheck;
|
9 |
-
|
10 |
if ( ecl_isSearchEngine() ) {
|
11 |
$euCookieSet = 1;
|
12 |
}
|
@@ -15,7 +15,7 @@ add_action('wp_head', function() {
|
|
15 |
wp_enqueue_style ('basecss');
|
16 |
|
17 |
$eclData = array(
|
18 |
-
'euCookieSet' => $euCookieSet,
|
19 |
'autoBlock' => eucookie_option('autoblock'),
|
20 |
'expireTimer' => get_expire_timer(),
|
21 |
'scrollConsent' => eucookie_option('scrollconsent'),
|
@@ -28,7 +28,7 @@ add_action('wp_head', function() {
|
|
28 |
'eucookielaw-scripts',
|
29 |
plugins_url('js/scripts.js', __FILE__),
|
30 |
array( 'jquery' ),
|
31 |
-
'',
|
32 |
true
|
33 |
);
|
34 |
wp_localize_script('eucookielaw-scripts','eucookielaw_data',$eclData);
|
@@ -80,7 +80,7 @@ function cookie_accepted() {
|
|
80 |
|
81 |
if ( ! eucookie_option('enabled') ) { return true; }
|
82 |
|
83 |
-
if (
|
84 |
return true;
|
85 |
} else {
|
86 |
return false;
|
@@ -237,7 +237,7 @@ add_shortcode( 'cookie-control', function ( $atts ) {
|
|
237 |
return '
|
238 |
<div class="pea_cook_control" style="color:'.ecl_frontstyle('fontcolor').'; background-color: rgba('.ecl_frontstyle('backgroundcolor').',0.9);">
|
239 |
<b>'.eucookie_option('cc-cookieenabled').'</b><br>
|
240 |
-
<button id="eu_revoke_cookies" class="eu_control_btn" style="color:'.ecl_frontstyle('backgroundcolor').'; background-color: '.ecl_frontstyle('fontcolor').';">'.eucookie_option('cc-disablecookie').'</button>
|
241 |
</div>';
|
242 |
} else {
|
243 |
return '
|
6 |
|
7 |
global $euCookieSet;
|
8 |
global $deleteCookieUrlCheck;
|
9 |
+
|
10 |
if ( ecl_isSearchEngine() ) {
|
11 |
$euCookieSet = 1;
|
12 |
}
|
15 |
wp_enqueue_style ('basecss');
|
16 |
|
17 |
$eclData = array(
|
18 |
+
'euCookieSet' => ( $euCookieSet || cookie_accepted() ),
|
19 |
'autoBlock' => eucookie_option('autoblock'),
|
20 |
'expireTimer' => get_expire_timer(),
|
21 |
'scrollConsent' => eucookie_option('scrollconsent'),
|
28 |
'eucookielaw-scripts',
|
29 |
plugins_url('js/scripts.js', __FILE__),
|
30 |
array( 'jquery' ),
|
31 |
+
get_option('ecl_version_number'),
|
32 |
true
|
33 |
);
|
34 |
wp_localize_script('eucookielaw-scripts','eucookielaw_data',$eclData);
|
80 |
|
81 |
if ( ! eucookie_option('enabled') ) { return true; }
|
82 |
|
83 |
+
if ( isset( $_COOKIE['euCookie'] ) || $euCookieSet ) {
|
84 |
return true;
|
85 |
} else {
|
86 |
return false;
|
237 |
return '
|
238 |
<div class="pea_cook_control" style="color:'.ecl_frontstyle('fontcolor').'; background-color: rgba('.ecl_frontstyle('backgroundcolor').',0.9);">
|
239 |
<b>'.eucookie_option('cc-cookieenabled').'</b><br>
|
240 |
+
<button id="eu_revoke_cookies" class="eu_control_btn" style="color:rgba('.ecl_frontstyle('backgroundcolor').'); background-color: '.ecl_frontstyle('fontcolor').';">'.eucookie_option('cc-disablecookie').'</button>
|
241 |
</div>';
|
242 |
} else {
|
243 |
return '
|
eu-cookie-law.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: EU Cookie Law
|
4 |
Plugin URI: https://wordpress.org/plugins/eu-cookie-law/
|
5 |
Description: EU Cookie Law informs users that your site uses cookies, with option to lock scripts before consent. Light + Customizable style.
|
6 |
-
Version: 3.0.
|
7 |
Author: Alex Moss, Marco Milesi, Peadig, Shane Jones
|
8 |
Author URI: https://wordpress.org/plugins/eu-cookie-law/
|
9 |
Contributors: alexmoss, Milmor, peer, ShaneJones
|
3 |
Plugin Name: EU Cookie Law
|
4 |
Plugin URI: https://wordpress.org/plugins/eu-cookie-law/
|
5 |
Description: EU Cookie Law informs users that your site uses cookies, with option to lock scripts before consent. Light + Customizable style.
|
6 |
+
Version: 3.0.4
|
7 |
Author: Alex Moss, Marco Milesi, Peadig, Shane Jones
|
8 |
Author URI: https://wordpress.org/plugins/eu-cookie-law/
|
9 |
Contributors: alexmoss, Milmor, peer, ShaneJones
|
js/scripts.js
CHANGED
@@ -26,12 +26,12 @@ jQuery(document).ready(function($){
|
|
26 |
});
|
27 |
|
28 |
// Accept Button
|
29 |
-
$('#pea_cook_btn, .eucookie').
|
30 |
euCookieConsent();
|
31 |
});
|
32 |
|
33 |
if ( getCookie('euCookie') == "set" ) {
|
34 |
-
|
35 |
}
|
36 |
|
37 |
if ( euCookieSet == 1 ) {
|
26 |
});
|
27 |
|
28 |
// Accept Button
|
29 |
+
$('#pea_cook_btn, .eucookie').click(function() {
|
30 |
euCookieConsent();
|
31 |
});
|
32 |
|
33 |
if ( getCookie('euCookie') == "set" ) {
|
34 |
+
$(".pea_cook_wrapper").fadeOut("fast");
|
35 |
}
|
36 |
|
37 |
if ( euCookieSet == 1 ) {
|
readme.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
=== EU Cookie Law ===
|
2 |
Contributors: alexmoss, Milmor, pleer, ShaneJones
|
3 |
-
Version: 3.0.
|
4 |
Stable tag: trunk
|
5 |
Author: Alex Moss, Marco Milesi, Peadig, Shane Jones
|
6 |
Author URI: https://profiles.wordpress.org/milmor/
|
@@ -163,10 +163,16 @@ Click on the translations link to open the translation editor and adjust the str
|
|
163 |
|
164 |
== Changelog ==
|
165 |
|
166 |
-
= 3.0.
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
* **Fixed** critical bug with some browsers (for example Internet Explorer) that killed "Accept" button
|
168 |
|
169 |
-
= 3.0 24.05.
|
170 |
Hello! This is our first GDPR release and hope you'll like it. Some functions have changed, so report bugs in our support forum to discuss them.
|
171 |
Also, if you don't use technical cookies only, we suggest to turn AutoBlock function ON.
|
172 |
|
1 |
=== EU Cookie Law ===
|
2 |
Contributors: alexmoss, Milmor, pleer, ShaneJones
|
3 |
+
Version: 3.0.4
|
4 |
Stable tag: trunk
|
5 |
Author: Alex Moss, Marco Milesi, Peadig, Shane Jones
|
6 |
Author URI: https://profiles.wordpress.org/milmor/
|
163 |
|
164 |
== Changelog ==
|
165 |
|
166 |
+
= 3.0.2 09.06.2018 =
|
167 |
+
* **Improved** caching compatibility by adding plugin version as "?123" parameter on scripts.js enqueue
|
168 |
+
* **Added** another layer to check if cookies are accepted, so that the banner should disappear - it didn't in some configurations (provide feedback, thanks)
|
169 |
+
* **Better** .click detection on banner click - By @pelzi
|
170 |
+
* **Added** version 2.13 in tags, so that in case of v3.x conflicts you can rollback
|
171 |
+
|
172 |
+
= 3.0.1 26.05.2018 =
|
173 |
* **Fixed** critical bug with some browsers (for example Internet Explorer) that killed "Accept" button
|
174 |
|
175 |
+
= 3.0 24.05.2018 - First GDPR release =
|
176 |
Hello! This is our first GDPR release and hope you'll like it. Some functions have changed, so report bugs in our support forum to discuss them.
|
177 |
Also, if you don't use technical cookies only, we suggest to turn AutoBlock function ON.
|
178 |
|