Version Description
- Issue with reject button colour fixed.
Download this release
Release Info
Developer | webtoffee |
Plugin | Cookie Law / GDPR Info |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- cookie-law-info.php +1 -1
- js/cookielawinfo.js +26 -6
- php/functions.php +2 -1
- php/shortcodes.php +4 -4
- readme.txt +7 -3
cookie-law-info.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wordpress.org/plugins/cookie-law-info/
|
|
5 |
Description: A simple way of to show your website complies with the EU Cookie Law / GDPR.
|
6 |
Author: webtoffee
|
7 |
Author URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
|
8 |
-
Version: 1.6.
|
9 |
License: GPL2
|
10 |
Text Domain: cookie-law-info
|
11 |
*/
|
5 |
Description: A simple way of to show your website complies with the EU Cookie Law / GDPR.
|
6 |
Author: webtoffee
|
7 |
Author URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
|
8 |
+
Version: 1.6.2
|
9 |
License: GPL2
|
10 |
Text Domain: cookie-law-info
|
11 |
*/
|
js/cookielawinfo.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
function cli_show_cookiebar(p) {
|
2 |
-
/* plugin version 1.6.
|
3 |
var Cookie = {
|
4 |
set: function(name,value,days) {
|
5 |
if (days) {
|
@@ -118,10 +118,11 @@ function cli_show_cookiebar(p) {
|
|
118 |
hideHeader();
|
119 |
}
|
120 |
|
121 |
-
|
122 |
-
main_button.css( 'color', settings.button_1_link_colour );
|
123 |
|
124 |
if ( settings.button_1_as_button ) {
|
|
|
|
|
125 |
main_button.css('background-color', settings.button_1_button_colour);
|
126 |
|
127 |
main_button.hover(function() {
|
@@ -131,6 +132,20 @@ function cli_show_cookiebar(p) {
|
|
131 |
jQuery(this).css('background-color', settings.button_1_button_colour);
|
132 |
});
|
133 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
var main_link = jQuery('.cli-plugin-main-link');
|
135 |
main_link.css( 'color', settings.button_2_link_colour );
|
136 |
|
@@ -144,10 +159,14 @@ function cli_show_cookiebar(p) {
|
|
144 |
jQuery(this).css('background-color', settings.button_2_button_colour);
|
145 |
});
|
146 |
}
|
147 |
-
|
|
|
|
|
|
|
|
|
148 |
|
149 |
var main_link = jQuery('#cookie_action_close_header_reject');
|
150 |
-
main_link.css( 'color', settings.button_3_link_colour );
|
151 |
|
152 |
if ( settings.button_3_as_button ) {
|
153 |
main_link.css('background-color', settings.button_3_button_colour);
|
@@ -199,10 +218,11 @@ function cli_show_cookiebar(p) {
|
|
199 |
function accept_close() {
|
200 |
|
201 |
Cookie.set(ACCEPT_COOKIE_NAME, 'yes', ACCEPT_COOKIE_EXPIRE);
|
202 |
-
|
203 |
if (settings.notify_animate_hide) {
|
204 |
|
205 |
cached_header.slideUp(settings.animate_speed_hide);
|
|
|
206 |
}
|
207 |
else {
|
208 |
cached_header.hide();
|
1 |
function cli_show_cookiebar(p) {
|
2 |
+
/* plugin version 1.6.2 */
|
3 |
var Cookie = {
|
4 |
set: function(name,value,days) {
|
5 |
if (days) {
|
118 |
hideHeader();
|
119 |
}
|
120 |
|
121 |
+
///////
|
|
|
122 |
|
123 |
if ( settings.button_1_as_button ) {
|
124 |
+
var main_button = jQuery('.cli-plugin-main-button');
|
125 |
+
main_button.css( 'color', settings.button_1_link_colour );
|
126 |
main_button.css('background-color', settings.button_1_button_colour);
|
127 |
|
128 |
main_button.hover(function() {
|
132 |
jQuery(this).css('background-color', settings.button_1_button_colour);
|
133 |
});
|
134 |
}
|
135 |
+
if ( settings.button_3_as_button ) {
|
136 |
+
var main_button = jQuery('.cli-plugin-main-button-reject');
|
137 |
+
|
138 |
+
main_button.css('background-color', settings.button_3_button_colour);
|
139 |
+
|
140 |
+
main_button.hover(function() {
|
141 |
+
jQuery(this).css('background-color', settings.button_3_button_hover);
|
142 |
+
},
|
143 |
+
function() {
|
144 |
+
jQuery(this).css('background-color', settings.button_3_button_colour);
|
145 |
+
});
|
146 |
+
}
|
147 |
+
/////////
|
148 |
+
|
149 |
var main_link = jQuery('.cli-plugin-main-link');
|
150 |
main_link.css( 'color', settings.button_2_link_colour );
|
151 |
|
159 |
jQuery(this).css('background-color', settings.button_2_button_colour);
|
160 |
});
|
161 |
}
|
162 |
+
////////////////
|
163 |
+
var main_link_accept = jQuery('.cli-plugin-main-button');
|
164 |
+
main_link_accept.css( 'color', settings.button_1_link_colour );
|
165 |
+
var main_link_reject = jQuery('.cli-plugin-main-button-reject');
|
166 |
+
main_link_reject.css( 'color', settings.button_3_link_colour );
|
167 |
|
168 |
var main_link = jQuery('#cookie_action_close_header_reject');
|
169 |
+
// main_link.css( 'color', settings.button_3_link_colour );
|
170 |
|
171 |
if ( settings.button_3_as_button ) {
|
172 |
main_link.css('background-color', settings.button_3_button_colour);
|
218 |
function accept_close() {
|
219 |
|
220 |
Cookie.set(ACCEPT_COOKIE_NAME, 'yes', ACCEPT_COOKIE_EXPIRE);
|
221 |
+
|
222 |
if (settings.notify_animate_hide) {
|
223 |
|
224 |
cached_header.slideUp(settings.animate_speed_hide);
|
225 |
+
|
226 |
}
|
227 |
else {
|
228 |
cached_header.hide();
|
php/functions.php
CHANGED
@@ -132,12 +132,13 @@ function cookielawinfo_inject_cli_script() {
|
|
132 |
*/
|
133 |
function cookielawinfo_enqueue_frontend_scripts() {
|
134 |
$the_options = cookielawinfo_get_admin_settings();
|
|
|
135 |
if ( $the_options['is_on'] == true ) {
|
136 |
|
137 |
/**
|
138 |
* Force reload
|
139 |
*/
|
140 |
-
|
141 |
|
142 |
wp_register_style( 'cookielawinfo-style', CLI_PLUGIN_URL . 'css/cli-style.css', null, $version );
|
143 |
wp_enqueue_style( 'cookielawinfo-style' );
|
132 |
*/
|
133 |
function cookielawinfo_enqueue_frontend_scripts() {
|
134 |
$the_options = cookielawinfo_get_admin_settings();
|
135 |
+
$version = '1.6.2';
|
136 |
if ( $the_options['is_on'] == true ) {
|
137 |
|
138 |
/**
|
139 |
* Force reload
|
140 |
*/
|
141 |
+
|
142 |
|
143 |
wp_register_style( 'cookielawinfo-style', CLI_PLUGIN_URL . 'css/cli-style.css', null, $version );
|
144 |
wp_enqueue_style( 'cookielawinfo-style' );
|
php/shortcodes.php
CHANGED
@@ -166,10 +166,10 @@ function cookielawinfo_shortcode_reject_button( $atts ) {
|
|
166 |
|
167 |
$classr = '';
|
168 |
if ( $settings['button_3_as_button'] ) {
|
169 |
-
$classr .= ' class="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . ' ' . $settings['button_3_button_size'] . ' cli-plugin-button cli-plugin-main-button"';
|
170 |
}
|
171 |
else {
|
172 |
-
$classr .= ' class="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . ' cli-plugin-main-button" ' ;
|
173 |
}
|
174 |
|
175 |
$url_reject = ( $settings['button_3_action'] == "cookie_action_open_url_reject" ) ? $settings['button_3_url'] : "#";
|
@@ -234,10 +234,10 @@ function cookielawinfo_shortcode_main_button( $atts ) {
|
|
234 |
|
235 |
$classr = '';
|
236 |
if ( $settings['button_3_as_button'] ) {
|
237 |
-
$classr .= ' class="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . ' ' . $settings['button_3_button_size'] . ' cli-plugin-button cli-plugin-main-button"';
|
238 |
}
|
239 |
else {
|
240 |
-
$classr .= ' class="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . ' cli-plugin-main-button" ' ;
|
241 |
}
|
242 |
|
243 |
$url_reject = ( $settings['button_3_action'] == "cookie_action_open_url_reject" ) ? $settings['button_3_url'] : "#";
|
166 |
|
167 |
$classr = '';
|
168 |
if ( $settings['button_3_as_button'] ) {
|
169 |
+
$classr .= ' class="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . ' ' . $settings['button_3_button_size'] . ' cli-plugin-button cli-plugin-main-button-reject"';
|
170 |
}
|
171 |
else {
|
172 |
+
$classr .= ' class="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . ' cli-plugin-main-button-reject" ' ;
|
173 |
}
|
174 |
|
175 |
$url_reject = ( $settings['button_3_action'] == "cookie_action_open_url_reject" ) ? $settings['button_3_url'] : "#";
|
234 |
|
235 |
$classr = '';
|
236 |
if ( $settings['button_3_as_button'] ) {
|
237 |
+
$classr .= ' class="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . ' ' . $settings['button_3_button_size'] . ' cli-plugin-button cli-plugin-main-button-reject"';
|
238 |
}
|
239 |
else {
|
240 |
+
$classr .= ' class="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . ' cli-plugin-main-button-reject" ' ;
|
241 |
}
|
242 |
|
243 |
$url_reject = ( $settings['button_3_action'] == "cookie_action_open_url_reject" ) ? $settings['button_3_url'] : "#";
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: eu cookie law, GDPR, cookie law, cookie consent, eu privacy directive, privacy directive, cookies, privacy, compliance
|
5 |
Requires at least: 3.3.1
|
6 |
Tested up to: 4.9.7
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -166,6 +166,10 @@ See http://cookielawinfo.com for more information on what is required.
|
|
166 |
|
167 |
== Changelog ==
|
168 |
|
|
|
|
|
|
|
|
|
169 |
= 1.6.1 =
|
170 |
|
171 |
* Filter to display cookie bar only on selected pages.
|
@@ -281,8 +285,8 @@ See http://cookielawinfo.com for more information on what is required.
|
|
281 |
|
282 |
== Upgrade Notice ==
|
283 |
|
284 |
-
= 1.6.
|
285 |
|
286 |
-
*
|
287 |
|
288 |
|
4 |
Tags: eu cookie law, GDPR, cookie law, cookie consent, eu privacy directive, privacy directive, cookies, privacy, compliance
|
5 |
Requires at least: 3.3.1
|
6 |
Tested up to: 4.9.7
|
7 |
+
Stable tag: 1.6.2
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
166 |
|
167 |
== Changelog ==
|
168 |
|
169 |
+
= 1.6.2 =
|
170 |
+
|
171 |
+
* Issue with reject button colour fixed.
|
172 |
+
|
173 |
= 1.6.1 =
|
174 |
|
175 |
* Filter to display cookie bar only on selected pages.
|
285 |
|
286 |
== Upgrade Notice ==
|
287 |
|
288 |
+
= 1.6.2 =
|
289 |
|
290 |
+
* Issue with reject button colour fixed.
|
291 |
|
292 |
|