Version Description
- Tested ok with WP 5.3
Download this release
Release Info
Developer | webtoffee |
Plugin | Cookie Law / GDPR Info |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- admin/class-cookie-law-info-admin.php +1 -1
- admin/modules/cli-policy-generator/classes/class-policy-generator-ajax.php +3 -5
- admin/modules/cli-policy-generator/classes/class-preview-page.php +6 -8
- admin/modules/cli-policy-generator/cli-policy-generator.php +9 -11
- cookie-law-info.php +2 -2
- includes/class-cookie-law-info.php +3 -3
- public/class-cookie-law-info-public.php +2 -1
- public/modules/shortcode/shortcode.php +8 -12
- readme.txt +60 -66
admin/class-cookie-law-info-admin.php
CHANGED
@@ -579,7 +579,7 @@ class Cookie_Law_Info_Admin {
|
|
579 |
|
580 |
/** Returns true if user is on latest version of plugin */
|
581 |
public function has_migrated() {
|
582 |
-
//
|
583 |
$old_settings = get_option( CLI_ADMIN_OPTIONS_NAME );
|
584 |
if ( empty( $old_settings ) ) {
|
585 |
return true;
|
579 |
|
580 |
/** Returns true if user is on latest version of plugin */
|
581 |
public function has_migrated() {
|
582 |
+
// print_combobox_options
|
583 |
$old_settings = get_option( CLI_ADMIN_OPTIONS_NAME );
|
584 |
if ( empty( $old_settings ) ) {
|
585 |
return true;
|
admin/modules/cli-policy-generator/classes/class-policy-generator-ajax.php
CHANGED
@@ -52,7 +52,8 @@ class Cookie_Law_Info_Policy_Generator_Ajax extends Cookie_Law_Info_Cli_Policy_G
|
|
52 |
if($policy_page_status && $policy_page_status!='trash')
|
53 |
{
|
54 |
|
55 |
-
}
|
|
|
56 |
{
|
57 |
$page_id=0;
|
58 |
}
|
@@ -75,7 +76,7 @@ class Cookie_Law_Info_Policy_Generator_Ajax extends Cookie_Law_Info_Cli_Policy_G
|
|
75 |
$content_data=isset($_POST['content_data']) ? $_POST['content_data'] : array();
|
76 |
$page_id=(int) isset($_POST['page_id']) ? $_POST['page_id']*1 : 0;
|
77 |
$enable_webtofee_powered_by=(int) isset($_POST['enable_webtofee_powered_by']) ? $_POST['enable_webtofee_powered_by']*1 : 0;
|
78 |
-
$id=wp_insert_post(
|
79 |
array(
|
80 |
'ID'=>$page_id, //if ID is zero it will create new page otherwise update
|
81 |
'post_title'=>'Cookie Policy',
|
@@ -98,9 +99,6 @@ class Cookie_Law_Info_Policy_Generator_Ajax extends Cookie_Law_Info_Cli_Policy_G
|
|
98 |
}
|
99 |
return $out;
|
100 |
}
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
/*
|
105 |
* @since 1.7.4
|
106 |
* Autosave Current content to session (Ajax-main)
|
52 |
if($policy_page_status && $policy_page_status!='trash')
|
53 |
{
|
54 |
|
55 |
+
}
|
56 |
+
else
|
57 |
{
|
58 |
$page_id=0;
|
59 |
}
|
76 |
$content_data=isset($_POST['content_data']) ? $_POST['content_data'] : array();
|
77 |
$page_id=(int) isset($_POST['page_id']) ? $_POST['page_id']*1 : 0;
|
78 |
$enable_webtofee_powered_by=(int) isset($_POST['enable_webtofee_powered_by']) ? $_POST['enable_webtofee_powered_by']*1 : 0;
|
79 |
+
$id = wp_insert_post(
|
80 |
array(
|
81 |
'ID'=>$page_id, //if ID is zero it will create new page otherwise update
|
82 |
'post_title'=>'Cookie Policy',
|
99 |
}
|
100 |
return $out;
|
101 |
}
|
|
|
|
|
|
|
102 |
/*
|
103 |
* @since 1.7.4
|
104 |
* Autosave Current content to session (Ajax-main)
|
admin/modules/cli-policy-generator/classes/class-preview-page.php
CHANGED
@@ -29,7 +29,6 @@ class Cli_PreviewPage
|
|
29 |
);
|
30 |
return $out;
|
31 |
}
|
32 |
-
|
33 |
/**
|
34 |
*
|
35 |
* @since 1.7.4
|
@@ -39,22 +38,22 @@ class Cli_PreviewPage
|
|
39 |
public function preview_page($posts)
|
40 |
{
|
41 |
global $wp,$wp_query;
|
42 |
-
|
43 |
-
$preview_pages=self::get_preview_page();
|
44 |
$preview_pages_slugs = array();
|
45 |
foreach($preview_pages as $slug=>$v)
|
46 |
{
|
47 |
$preview_pages_slugs[]=$slug;
|
48 |
}
|
49 |
if(in_array(strtolower($wp->request),$preview_pages_slugs) ||
|
50 |
-
(isset($wp->query_vars['page_id']) && in_array(strtolower($wp->query_vars['page_id']),$preview_pages_slugs)))
|
51 |
{
|
52 |
if(in_array(strtolower($wp->request),$preview_pages_slugs))
|
53 |
{
|
54 |
-
$preview_page=strtolower($wp->request);
|
55 |
-
}
|
|
|
56 |
{
|
57 |
-
$preview_page=strtolower($wp->query_vars['page_id']);
|
58 |
}
|
59 |
|
60 |
$posts = null;
|
@@ -69,7 +68,6 @@ class Cli_PreviewPage
|
|
69 |
unset( $wp_query->query["error"] );
|
70 |
$wp_query->query_vars["error"] = "";
|
71 |
$wp_query->is_404 = false;
|
72 |
-
|
73 |
add_action('admin_bar_menu',array($this,'add_admin_bar_menu'),100);
|
74 |
add_action('wp_footer',array($this,'reg_preview_auto_btn'),100);
|
75 |
}
|
29 |
);
|
30 |
return $out;
|
31 |
}
|
|
|
32 |
/**
|
33 |
*
|
34 |
* @since 1.7.4
|
38 |
public function preview_page($posts)
|
39 |
{
|
40 |
global $wp,$wp_query;
|
41 |
+
$preview_pages = self::get_preview_page();
|
|
|
42 |
$preview_pages_slugs = array();
|
43 |
foreach($preview_pages as $slug=>$v)
|
44 |
{
|
45 |
$preview_pages_slugs[]=$slug;
|
46 |
}
|
47 |
if(in_array(strtolower($wp->request),$preview_pages_slugs) ||
|
48 |
+
(isset( $wp->query_vars['page_id'] ) && in_array(strtolower($wp->query_vars['page_id']),$preview_pages_slugs)))
|
49 |
{
|
50 |
if(in_array(strtolower($wp->request),$preview_pages_slugs))
|
51 |
{
|
52 |
+
$preview_page = strtolower($wp->request);
|
53 |
+
}
|
54 |
+
else
|
55 |
{
|
56 |
+
$preview_page = strtolower($wp->query_vars['page_id']);
|
57 |
}
|
58 |
|
59 |
$posts = null;
|
68 |
unset( $wp_query->query["error"] );
|
69 |
$wp_query->query_vars["error"] = "";
|
70 |
$wp_query->is_404 = false;
|
|
|
71 |
add_action('admin_bar_menu',array($this,'add_admin_bar_menu'),100);
|
72 |
add_action('wp_footer',array($this,'reg_preview_auto_btn'),100);
|
73 |
}
|
admin/modules/cli-policy-generator/cli-policy-generator.php
CHANGED
@@ -14,12 +14,12 @@ include( plugin_dir_path( __FILE__ ).'classes/class-preview-page.php');
|
|
14 |
class Cookie_Law_Info_Cli_Policy_Generator
|
15 |
{
|
16 |
public static $policy_pageid='cli_pg_policy_page_id';
|
|
|
17 |
public function __construct()
|
18 |
{
|
19 |
add_action('admin_menu',array($this,'add_admin_pages'));
|
20 |
add_filter('display_post_states',array($this,'add_display_post_states'),10,2);
|
21 |
}
|
22 |
-
|
23 |
/**
|
24 |
* Add a post display state for Cookie Policy page in the page list table.
|
25 |
*
|
@@ -33,7 +33,6 @@ class Cookie_Law_Info_Cli_Policy_Generator
|
|
33 |
}
|
34 |
return $post_states;
|
35 |
}
|
36 |
-
|
37 |
private static function gen_page_html($content_data_arr=array(),$render_shortcode=1)
|
38 |
{
|
39 |
$html='';
|
@@ -44,27 +43,25 @@ class Cookie_Law_Info_Cli_Policy_Generator
|
|
44 |
}
|
45 |
return $html;
|
46 |
}
|
47 |
-
|
48 |
public static function get_page_content()
|
49 |
{
|
50 |
-
$contant_val=get_option('cli_pg_content_data');
|
51 |
-
$html=isset($contant_val) ? $contant_val : '';
|
52 |
return $html;
|
53 |
}
|
54 |
-
|
55 |
/**
|
56 |
* Generating content for page from session/post
|
57 |
* @since 1.7.4
|
58 |
* @return string
|
59 |
*/
|
60 |
-
public static function generate_page_content($powered_by
|
61 |
{
|
62 |
$html='<div class="cli_pg_page_contaner">';
|
63 |
-
$html.=self::gen_page_html($content_data_post_arr,$render_shortcode);
|
64 |
$html.=($powered_by==1 ? '[webtoffee_powered_by]' : '').'</div>';
|
65 |
return $html;
|
66 |
-
|
67 |
-
|
68 |
/**
|
69 |
* Get policy page id from option table
|
70 |
* @since 1.7.4
|
@@ -76,7 +73,8 @@ class Cookie_Law_Info_Cli_Policy_Generator
|
|
76 |
if($pageid===false)
|
77 |
{
|
78 |
return 0;
|
79 |
-
}
|
|
|
80 |
{
|
81 |
return $pageid;
|
82 |
}
|
14 |
class Cookie_Law_Info_Cli_Policy_Generator
|
15 |
{
|
16 |
public static $policy_pageid='cli_pg_policy_page_id';
|
17 |
+
|
18 |
public function __construct()
|
19 |
{
|
20 |
add_action('admin_menu',array($this,'add_admin_pages'));
|
21 |
add_filter('display_post_states',array($this,'add_display_post_states'),10,2);
|
22 |
}
|
|
|
23 |
/**
|
24 |
* Add a post display state for Cookie Policy page in the page list table.
|
25 |
*
|
33 |
}
|
34 |
return $post_states;
|
35 |
}
|
|
|
36 |
private static function gen_page_html($content_data_arr=array(),$render_shortcode=1)
|
37 |
{
|
38 |
$html='';
|
43 |
}
|
44 |
return $html;
|
45 |
}
|
|
|
46 |
public static function get_page_content()
|
47 |
{
|
48 |
+
$contant_val = get_option('cli_pg_content_data');
|
49 |
+
$html = isset($contant_val) ? $contant_val : '';
|
50 |
return $html;
|
51 |
}
|
|
|
52 |
/**
|
53 |
* Generating content for page from session/post
|
54 |
* @since 1.7.4
|
55 |
* @return string
|
56 |
*/
|
57 |
+
public static function generate_page_content( $powered_by, $content_data_post_arr=array(), $render_shortcode=1 )
|
58 |
{
|
59 |
$html='<div class="cli_pg_page_contaner">';
|
60 |
+
$html.= self::gen_page_html($content_data_post_arr,$render_shortcode);
|
61 |
$html.=($powered_by==1 ? '[webtoffee_powered_by]' : '').'</div>';
|
62 |
return $html;
|
63 |
+
}
|
64 |
+
|
65 |
/**
|
66 |
* Get policy page id from option table
|
67 |
* @since 1.7.4
|
73 |
if($pageid===false)
|
74 |
{
|
75 |
return 0;
|
76 |
+
}
|
77 |
+
else
|
78 |
{
|
79 |
return $pageid;
|
80 |
}
|
cookie-law-info.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: GDPR Cookie Consent
|
17 |
* Plugin URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
|
18 |
* Description: A simple way to show your website complies with the EU Cookie Law / GDPR.
|
19 |
-
* Version: 1.8.
|
20 |
* Author: WebToffee
|
21 |
* Author URI: http://cookielawinfo.com/
|
22 |
* License: GPLv3
|
@@ -63,7 +63,7 @@ define ( 'CLI_POST_TYPE','cookielawinfo');
|
|
63 |
* Currently plugin version.
|
64 |
* Rename this for your plugin and update it as you release new versions.
|
65 |
*/
|
66 |
-
define( 'CLI_VERSION', '1.8.
|
67 |
|
68 |
function wt_cookie_law_info_update_message( $data, $response )
|
69 |
{
|
16 |
* Plugin Name: GDPR Cookie Consent
|
17 |
* Plugin URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
|
18 |
* Description: A simple way to show your website complies with the EU Cookie Law / GDPR.
|
19 |
+
* Version: 1.8.2
|
20 |
* Author: WebToffee
|
21 |
* Author URI: http://cookielawinfo.com/
|
22 |
* License: GPLv3
|
63 |
* Currently plugin version.
|
64 |
* Rename this for your plugin and update it as you release new versions.
|
65 |
*/
|
66 |
+
define( 'CLI_VERSION', '1.8.2' );
|
67 |
|
68 |
function wt_cookie_law_info_update_message( $data, $response )
|
69 |
{
|
includes/class-cookie-law-info.php
CHANGED
@@ -76,7 +76,7 @@ class Cookie_Law_Info {
|
|
76 |
}
|
77 |
else
|
78 |
{
|
79 |
-
$this->version = '1.8.
|
80 |
}
|
81 |
$this->plugin_name = 'cookie-law-info';
|
82 |
|
@@ -517,7 +517,7 @@ class Cookie_Law_Info {
|
|
517 |
|
518 |
/**
|
519 |
Returns sanitised content based on field-specific rules defined here
|
520 |
-
|
521 |
*/
|
522 |
public static function sanitise_settings($key, $value)
|
523 |
{
|
@@ -874,7 +874,7 @@ class Cookie_Law_Info {
|
|
874 |
|
875 |
|
876 |
//========reject button missing issue=========@since 1.6.7
|
877 |
-
$message_bar_text
|
878 |
//user turned on the reject button with his previous settings
|
879 |
if(isset($options['is_reject_on']) && $options['is_reject_on']==true)
|
880 |
{
|
76 |
}
|
77 |
else
|
78 |
{
|
79 |
+
$this->version = '1.8.2';
|
80 |
}
|
81 |
$this->plugin_name = 'cookie-law-info';
|
82 |
|
517 |
|
518 |
/**
|
519 |
Returns sanitised content based on field-specific rules defined here
|
520 |
+
Used for both read AND write operations
|
521 |
*/
|
522 |
public static function sanitise_settings($key, $value)
|
523 |
{
|
874 |
|
875 |
|
876 |
//========reject button missing issue=========@since 1.6.7
|
877 |
+
$message_bar_text = $options['notify_message'];
|
878 |
//user turned on the reject button with his previous settings
|
879 |
if(isset($options['is_reject_on']) && $options['is_reject_on']==true)
|
880 |
{
|
public/class-cookie-law-info-public.php
CHANGED
@@ -499,7 +499,8 @@ class Cookie_Law_Info_Public {
|
|
499 |
if(isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'],'deleteCache'))
|
500 |
{
|
501 |
$cli_flush_cache=1;
|
502 |
-
|
|
|
503 |
?>
|
504 |
<script type="text/javascript">
|
505 |
var cli_flush_cache=<?php echo $cli_flush_cache; ?>;
|
499 |
if(isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'],'deleteCache'))
|
500 |
{
|
501 |
$cli_flush_cache=1;
|
502 |
+
}
|
503 |
+
|
504 |
?>
|
505 |
<script type="text/javascript">
|
506 |
var cli_flush_cache=<?php echo $cli_flush_cache; ?>;
|
public/modules/shortcode/shortcode.php
CHANGED
@@ -174,15 +174,14 @@ class Cookie_Law_Info_Shortcode {
|
|
174 |
/** RICHARDASHBY EDIT: only add CSS if table is being used */
|
175 |
wp_enqueue_style($this->plugin_name.'-table');
|
176 |
/** END EDIT */
|
177 |
-
|
178 |
extract( shortcode_atts( array(
|
179 |
'style' => 'classic',
|
180 |
'not_shown_message' => __('No records found','cookie-law-info'),
|
181 |
'columns' =>'cookie,type,duration,description',
|
182 |
'heading' =>'',
|
183 |
), $atts ) );
|
|
|
184 |
$columns=explode(",",$columns);
|
185 |
-
|
186 |
$args = array(
|
187 |
'post_type' => CLI_POST_TYPE,
|
188 |
/** 28/05/2013: Changing from 10 to 50 to allow longer tables of cookie data */
|
@@ -193,7 +192,7 @@ class Cookie_Law_Info_Shortcode {
|
|
193 |
global $sitepress;
|
194 |
if(function_exists('icl_object_id') && $sitepress) //wpml enabled
|
195 |
{
|
196 |
-
$args['suppress_filters']=false;
|
197 |
}
|
198 |
$posts = get_posts($args);
|
199 |
$ret = '<table class="cookielawinfo-row-cat-table cookielawinfo-' . $style . '"><thead><tr>';
|
@@ -279,12 +278,8 @@ class Cookie_Law_Info_Shortcode {
|
|
279 |
$ret .= '</tr>';
|
280 |
return $ret;
|
281 |
}
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
/**
|
287 |
-
* Returns HTML for a standard (green, medium sized) 'Accept' button
|
288 |
*/
|
289 |
public function cookielawinfo_shortcode_accept_button( $atts )
|
290 |
{
|
@@ -292,7 +287,7 @@ class Cookie_Law_Info_Shortcode {
|
|
292 |
'colour' => 'green',
|
293 |
'margin' => '',
|
294 |
), $atts ));
|
295 |
-
$defaults =Cookie_Law_Info::get_default_settings('button_1_text');
|
296 |
$settings = wp_parse_args(Cookie_Law_Info::get_settings(),$defaults);
|
297 |
$button_1_text=__($settings['button_1_text'],'cookie-law-info');
|
298 |
$margin_style=$margin!="" ? ' style="margin:'.$margin.';" ' : '';
|
@@ -442,10 +437,10 @@ class Cookie_Law_Info_Shortcode {
|
|
442 |
* @since 1.7.4
|
443 |
* Checks if user enabled minify bar in the current page
|
444 |
*/
|
445 |
-
if($arr['button_2_hidebar']===true)
|
446 |
{
|
447 |
global $wp;
|
448 |
-
$current_url=home_url(add_query_arg(array(),$wp->request));
|
449 |
$btn2_url=$current_url[strlen($current_url)-1]=='/' ? substr($current_url,0,-1) : $current_url;
|
450 |
$btn2_url=$arr['button_2_url'][strlen($arr['button_2_url'])-1]=='/' ? substr($arr['button_2_url'],0,-1) : $arr['button_2_url'];
|
451 |
if(strpos($btn2_url,$current_url)!==false)
|
@@ -464,7 +459,8 @@ class Cookie_Law_Info_Shortcode {
|
|
464 |
}
|
465 |
}
|
466 |
}
|
467 |
-
}
|
|
|
468 |
{
|
469 |
$privacy_page_exists=0;
|
470 |
if($arr['button_2_page']>0) //page choosed
|
174 |
/** RICHARDASHBY EDIT: only add CSS if table is being used */
|
175 |
wp_enqueue_style($this->plugin_name.'-table');
|
176 |
/** END EDIT */
|
|
|
177 |
extract( shortcode_atts( array(
|
178 |
'style' => 'classic',
|
179 |
'not_shown_message' => __('No records found','cookie-law-info'),
|
180 |
'columns' =>'cookie,type,duration,description',
|
181 |
'heading' =>'',
|
182 |
), $atts ) );
|
183 |
+
|
184 |
$columns=explode(",",$columns);
|
|
|
185 |
$args = array(
|
186 |
'post_type' => CLI_POST_TYPE,
|
187 |
/** 28/05/2013: Changing from 10 to 50 to allow longer tables of cookie data */
|
192 |
global $sitepress;
|
193 |
if(function_exists('icl_object_id') && $sitepress) //wpml enabled
|
194 |
{
|
195 |
+
$args['suppress_filters'] = false;
|
196 |
}
|
197 |
$posts = get_posts($args);
|
198 |
$ret = '<table class="cookielawinfo-row-cat-table cookielawinfo-' . $style . '"><thead><tr>';
|
278 |
$ret .= '</tr>';
|
279 |
return $ret;
|
280 |
}
|
|
|
|
|
|
|
|
|
281 |
/**
|
282 |
+
* Returns HTML for a standard (green, medium sized) 'Accept' button
|
283 |
*/
|
284 |
public function cookielawinfo_shortcode_accept_button( $atts )
|
285 |
{
|
287 |
'colour' => 'green',
|
288 |
'margin' => '',
|
289 |
), $atts ));
|
290 |
+
$defaults = Cookie_Law_Info::get_default_settings('button_1_text');
|
291 |
$settings = wp_parse_args(Cookie_Law_Info::get_settings(),$defaults);
|
292 |
$button_1_text=__($settings['button_1_text'],'cookie-law-info');
|
293 |
$margin_style=$margin!="" ? ' style="margin:'.$margin.';" ' : '';
|
437 |
* @since 1.7.4
|
438 |
* Checks if user enabled minify bar in the current page
|
439 |
*/
|
440 |
+
if($arr['button_2_hidebar'] === true)
|
441 |
{
|
442 |
global $wp;
|
443 |
+
$current_url = home_url(add_query_arg(array(),$wp->request));
|
444 |
$btn2_url=$current_url[strlen($current_url)-1]=='/' ? substr($current_url,0,-1) : $current_url;
|
445 |
$btn2_url=$arr['button_2_url'][strlen($arr['button_2_url'])-1]=='/' ? substr($arr['button_2_url'],0,-1) : $arr['button_2_url'];
|
446 |
if(strpos($btn2_url,$current_url)!==false)
|
459 |
}
|
460 |
}
|
461 |
}
|
462 |
+
}
|
463 |
+
else
|
464 |
{
|
465 |
$privacy_page_exists=0;
|
466 |
if($arr['button_2_page']>0) //page choosed
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== GDPR Cookie Consent ===
|
2 |
-
Contributors: webtoffee
|
3 |
Donate link: https://www.webtoffee.com/plugins/
|
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: 5.
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -12,46 +12,42 @@ A simple way to get GDPR Cookie Consent as per EU GDPR/Cookie Law regulations. S
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
18 |
|
19 |
-
-
|
20 |
|
21 |
-
- Admin can
|
22 |
|
|
|
23 |
|
24 |
-
|
25 |
|
|
|
26 |
|
27 |
-
|
28 |
|
29 |
|
30 |
-
|
31 |
|
|
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
The plugin uses the following cookies.
|
37 |
-
|
38 |
-
- viewed_cookie_policy - Is the primary cookie that records the user consent for the usage of the cookies upon accept and reject. It doesn’t track any personal data and is set only upon user action(accept/reject).
|
39 |
-
|
40 |
-
- cookielawinfo-checkbox-necessary/cookielawinfo-checkbox-non-necessary - Records the default button state of the corresponding category. It works only in coordination with the primary cookie.
|
41 |
|
42 |
|
43 |
This plugin supports WPML and qTranslate so your translation needs are covered.
|
44 |
|
45 |
|
46 |
-
Features
|
47 |
|
48 |
-
* Fully customisable to look just like your own website
|
49 |
* Put the cookie bar in either the header or the footer
|
50 |
* (Optional) accept cookie policy if the user scrolls
|
51 |
-
* (Optional) automatically close the cookie bar after a delay (delay is configurable)
|
52 |
-
* (Optional) cookie
|
53 |
-
* (Optional)
|
54 |
-
*
|
55 |
* WPML compatible
|
56 |
* qTranslate support
|
57 |
|
@@ -59,71 +55,68 @@ Features:
|
|
59 |
|
60 |
<blockquote>
|
61 |
|
62 |
-
= GDPR
|
63 |
-
✅ Manage list of cookies ( Name, CookieID, Description, Duration, Type, Category, Header Script, Footer Script).
|
64 |
-
✅ Manage Cookie Categories.
|
65 |
-
✅ Scan and auto block scripts
|
66 |
-
✅ Location based exclusion of cookie notice for EU countries.
|
67 |
-
✅ Provide the users with the granular control over the cookies/
|
68 |
-
✅
|
69 |
-
✅
|
70 |
-
✅
|
71 |
-
✅
|
72 |
-
✅
|
73 |
-
✅
|
74 |
-
✅
|
75 |
-
✅
|
76 |
-
✅
|
77 |
-
✅
|
78 |
-
✅
|
79 |
-
✅ (Optional)
|
80 |
-
✅
|
81 |
-
✅
|
82 |
-
✅
|
|
|
|
|
83 |
|
84 |
For complete list of features and details, Please visit <a rel="nofollow" href="https://www.webtoffee.com/product/gdpr-cookie-consent/">GDPR Cookie Consent Premium Plugin</a> for more details
|
85 |
|
86 |
</blockquote>
|
87 |
|
88 |
-
== Installation ==
|
89 |
-
|
90 |
-
This section describes how to install the plugin and get it working.
|
91 |
|
92 |
-
|
93 |
-
2. Activate the plugin through the 'Plugins' menu in WordPress
|
94 |
-
3. Go to "Cookie Law Info / Cookie Law Settings" to configure the banner with your own text, colours and styles
|
95 |
|
96 |
== Frequently Asked Questions ==
|
97 |
|
98 |
-
There
|
99 |
|
100 |
https://cookielawinfo.com/faq
|
101 |
https://cookielawinfo.com/user-guide
|
102 |
https://cookielawinfo.com/support
|
103 |
|
104 |
-
= The cookie header isn
|
105 |
First check you have installed the plugin and have activated it in the plugins panel.
|
106 |
-
To check if it is switched on or not, go to
|
107 |
|
108 |
-
= The header doesn
|
109 |
Please report a bug on the support forum. Be sure to include the following information:
|
110 |
|
111 |
* Your URL (I will need this in order to help you!)
|
112 |
-
* WordPress version e.g. 4.2.2 (found in bottom right hand corner of dashboard)
|
113 |
* Browser e.g. FireFox, Chrome, IE
|
114 |
* Describe the problem
|
115 |
|
116 |
-
The more information you give, the quicker
|
117 |
|
118 |
= What does this plugin do? =
|
119 |
This plugin will:
|
120 |
|
121 |
-
1. Add a banner to the top/bottom of all pages on your website, notifying the visitor that you have a clearly defined privacy and cookie policy.
|
122 |
2. Allow you to record which cookies your site uses, and:
|
123 |
3. Neatly display a list of these cookies (via a shortcode). You can put this list on your Privacy & Cookie Policy page, for example.
|
124 |
|
125 |
= Does this plugin block all cookies? =
|
126 |
-
No. This plugin restricts cookies by optionally loading the scripts. For this you have to add all cookies using the add cookie feature. It is not currently technically possible to completely block all cookies on your WordPress website without first updating all plugins that use cookies in some way. That is beyond the scope of any single plugin.
|
127 |
A more realistic approach for WordPress website owners is to move the scripts that place cookies( for eg Google Analytics tracking code) to the GDPR Cookie Consent plugin and then allow visitors to control it by giving consent.
|
128 |
|
129 |
|
@@ -131,13 +124,13 @@ A more realistic approach for WordPress website owners is to move the scripts th
|
|
131 |
No. Only the 'necessary' cookies will be loaded till the user gives consent.
|
132 |
|
133 |
= Does this plugin stop cookies from being stored? =
|
134 |
-
We provide you the facility to add cookies and the corresponding scripts (This works if the cookies are placed when a script is added to the site header or footer as in the case of Google analytics, Hotjar etc..). In our premium version, visitors can reject the category of cookies they don't want to get installed. In such cases all cookies in that category will be blocked for the user. In the free version you can still block the scripts but doesn't have category level granularity.
|
135 |
|
136 |
But if another plugin adds scripts or places a cookie then we do not have any control. We have no way of knowing what plugins you use or how they work, so blocking/deleting cookies on a WordPress website/blog would possibly/probably break your site. Larger websites with huge budgets may well invest in such technology, but this plugin aims to help you provide a certain level of compliance without taking drastic action.
|
137 |
|
138 |
= Does this plugin guarantee that I comply with this law? =
|
139 |
No.
|
140 |
-
As a generic plugin there's no way we can know anything about your specific circumstances. It can be used as part of an overall plan of action to comply, but just installing it and doing nothing more does nothing to help you. In all cases, you need to assess your own website's use of cookies and decide an appropriate course of action. If you are looking for specialist legal advice relating to your website you should always consult a lawyer.
|
141 |
See http://cookielawinfo.com for more information on what is required.
|
142 |
|
143 |
|
@@ -150,6 +143,10 @@ See http://cookielawinfo.com for more information on what is required.
|
|
150 |
|
151 |
== Changelog ==
|
152 |
|
|
|
|
|
|
|
|
|
153 |
= 1.8.1 =
|
154 |
|
155 |
* Added option in admin to modify the default button state of the non-necessary cookie category
|
@@ -384,9 +381,6 @@ See http://cookielawinfo.com for more information on what is required.
|
|
384 |
|
385 |
== Upgrade Notice ==
|
386 |
|
387 |
-
= 1.8.
|
388 |
|
389 |
-
*
|
390 |
-
* [Bug fix] Show more / show less issue when custom text editor is used in the privacy overview content.
|
391 |
-
* Updated translations
|
392 |
-
* Read me updates
|
1 |
=== GDPR Cookie Consent ===
|
2 |
+
Contributors: webtoffee
|
3 |
Donate link: https://www.webtoffee.com/plugins/
|
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: 5.3
|
7 |
+
Stable tag: 1.8.2
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
The GDPR Cookie Consent plugin will assist you in making your website GDPR compliant. It comes with a host of features some of which are listed below.
|
16 |
|
17 |
+
= Key Features =
|
18 |
|
19 |
+
- The plugin will enable a notice with Accept and Reject options. The cookies are not rendered by default and only upon user consent. (The cookie value will be set to ‘null’ by default; it takes a value 'yes' when the user clicks ‘Accept’ and ‘no’ upon 'Reject'. Your developer can check this value to set a cookie accordingly.)
|
20 |
|
21 |
+
- Admin can configure cookie details and their description from the backend. The list of cookies can be displayed in your cookie policy page by using a shortcode.
|
22 |
|
23 |
+
- This plugin adds a subtle cookie banner to your website either in the header or footer so you can show your compliance status regarding the new GDPR law.
|
24 |
|
25 |
+
- You can fully customise the cookie notice style so it blends with your existing website: change the colours, fonts, styles, the position on the page and even how it behaves when you click “Accept”.
|
26 |
|
27 |
+
- You can choose to make the cookie notice bar disappear after a few seconds (completely configurable) or to accept on scroll (an option available under Italian law).
|
28 |
|
29 |
+
- It also has a Cookie Audit module so you can easily show what cookies your site uses and display them neatly in a table on your Privacy & Cookies Policy page.
|
30 |
|
31 |
|
32 |
+
= The plugin uses the following cookies =
|
33 |
|
34 |
+
- viewed_cookie_policy – Is the primary cookie that records the user consent for the usage of the cookies upon accept and reject. It doesn’t track any personal data and is set only upon user action(accept/reject).
|
35 |
|
36 |
+
- cookielawinfo-checkbox-necessary/cookielawinfo-checkbox-non-necessary – Records the default button state of the corresponding category. It works only in coordination with the primary cookie.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
|
39 |
This plugin supports WPML and qTranslate so your translation needs are covered.
|
40 |
|
41 |
|
42 |
+
= Features =
|
43 |
|
44 |
+
* Fully customisable to look just like your own website’s style: customise the colours, styles and fonts
|
45 |
* Put the cookie bar in either the header or the footer
|
46 |
* (Optional) accept cookie policy if the user scrolls
|
47 |
+
* (Optional) automatically close the cookie notice bar after a delay (delay is configurable)
|
48 |
+
* (Optional) cookie banner can be permanently dismissed or accessible through a “show again” tab
|
49 |
+
* (Optional) “show again” tab is fully customisable including position shown on page and styles
|
50 |
+
* “Cookie Audit” shortcode to construct a nicely-styled ‘Privacy & Cookie Policy’
|
51 |
* WPML compatible
|
52 |
* qTranslate support
|
53 |
|
55 |
|
56 |
<blockquote>
|
57 |
|
58 |
+
= GDPR COOKIE CONSENT PREMIUM VERSION FEATURES =
|
59 |
+
✅ Manage list of cookies ( Name, CookieID, Description, Duration, Type, Category, Header Script, Footer Script).
|
60 |
+
✅ Manage Cookie Categories.
|
61 |
+
✅ Scan and auto block scripts – Google Analytics, FB Pixel, Google tag manager, Hotjar, Instagram, etc.
|
62 |
+
✅ Location based exclusion of cookie notice for EU countries.
|
63 |
+
✅ Provide the users with the granular control over the cookies/scripts used by the website.
|
64 |
+
✅ Option to renew consents when there is a change in policy.
|
65 |
+
✅ Optionally log users’ consent and export into a CSV file.
|
66 |
+
✅ Customize the privacy overview in the cookie banner settings popup.
|
67 |
+
✅ Export/import cookies and related information via CSV file.
|
68 |
+
✅ Scan and import/export the cookies
|
69 |
+
✅ Allow to display cookie notice settings popup where site visitors can opt-in or give consent to cookie categories.
|
70 |
+
✅ Customisable to look just like your own website’s style: customise the colours, styles and fonts.
|
71 |
+
✅ Put the cookie banner in either the header or the footer.
|
72 |
+
✅ Compatibility with major caching servers and plugins.
|
73 |
+
✅ Cookie policy generator
|
74 |
+
✅ Cookie banner preview in admin settings
|
75 |
+
✅ (Optional) accept cookie notice if the user scrolls.
|
76 |
+
✅ (Optional) automatically close the cookie bar after a delay (delay is configurable).
|
77 |
+
✅ (Optional) cookie banner can be permanently dismissed or accessible through a “show again” tab.
|
78 |
+
✅ (Optional) “show again” tab is fully customisable including position shown on page and styles.
|
79 |
+
✅ “Cookie Audit” shortcode to construct a nicely-styled ‘Privacy & Cookie Policy’.
|
80 |
+
✅ WPML,qTranslate,Polylang compatible
|
81 |
|
82 |
For complete list of features and details, Please visit <a rel="nofollow" href="https://www.webtoffee.com/product/gdpr-cookie-consent/">GDPR Cookie Consent Premium Plugin</a> for more details
|
83 |
|
84 |
</blockquote>
|
85 |
|
|
|
|
|
|
|
86 |
|
87 |
+
= NOTE: INSTALLING THIS PLUGIN ALONE DOES NOT MAKE YOUR SITE GDPR COMPLIANT. SINCE EACH SITE USES DIFFERENT COOKIES, YOU NEED TO ENSURE YOU HAVE THE NECESSARY CONFIGURATIONS IN PLACE WITH A SUPPORTING COOKIE NOTICE. =
|
|
|
|
|
88 |
|
89 |
== Frequently Asked Questions ==
|
90 |
|
91 |
+
There’s a lot of help available on the main plugin website. See:
|
92 |
|
93 |
https://cookielawinfo.com/faq
|
94 |
https://cookielawinfo.com/user-guide
|
95 |
https://cookielawinfo.com/support
|
96 |
|
97 |
+
= The cookie notice header isn’t displaying ? =
|
98 |
First check you have installed the plugin and have activated it in the plugins panel.
|
99 |
+
To check if it is switched on or not, go to ‘Settings / Cookie Law Info’ and then enable the header by setting ‘Display cookie bar?’ to ‘yes’.
|
100 |
|
101 |
+
= The cookie notice header doesn’t work on my browser ? =
|
102 |
Please report a bug on the support forum. Be sure to include the following information:
|
103 |
|
104 |
* Your URL (I will need this in order to help you!)
|
105 |
+
* WordPress version e.g. 4.2.2 (found in bottom right hand corner of the dashboard)
|
106 |
* Browser e.g. FireFox, Chrome, IE
|
107 |
* Describe the problem
|
108 |
|
109 |
+
The more information you give, the quicker we can respond.
|
110 |
|
111 |
= What does this plugin do? =
|
112 |
This plugin will:
|
113 |
|
114 |
+
1. Add a cookie banner to the top/bottom of all pages on your website, notifying the visitor that you have a clearly defined privacy and cookie policy.
|
115 |
2. Allow you to record which cookies your site uses, and:
|
116 |
3. Neatly display a list of these cookies (via a shortcode). You can put this list on your Privacy & Cookie Policy page, for example.
|
117 |
|
118 |
= Does this plugin block all cookies? =
|
119 |
+
No. This plugin restricts cookies by optionally loading the scripts. For this, you have to add all cookies using the add cookie feature. It is not currently technically possible to completely block all cookies on your WordPress website without first updating all plugins that use cookies in some way. That is beyond the scope of any single plugin.
|
120 |
A more realistic approach for WordPress website owners is to move the scripts that place cookies( for eg Google Analytics tracking code) to the GDPR Cookie Consent plugin and then allow visitors to control it by giving consent.
|
121 |
|
122 |
|
124 |
No. Only the 'necessary' cookies will be loaded till the user gives consent.
|
125 |
|
126 |
= Does this plugin stop cookies from being stored? =
|
127 |
+
We provide you the facility to add cookies and the corresponding scripts (This works if the cookies are placed when a script is added to the site header or footer as in the case of Google analytics, Hotjar etc..). In our premium version, visitors can reject the category of cookies they don't want to get installed. In such cases, all cookies in that category will be blocked for the user. In the free version, you can still block the scripts but doesn't have category level granularity.
|
128 |
|
129 |
But if another plugin adds scripts or places a cookie then we do not have any control. We have no way of knowing what plugins you use or how they work, so blocking/deleting cookies on a WordPress website/blog would possibly/probably break your site. Larger websites with huge budgets may well invest in such technology, but this plugin aims to help you provide a certain level of compliance without taking drastic action.
|
130 |
|
131 |
= Does this plugin guarantee that I comply with this law? =
|
132 |
No.
|
133 |
+
As a generic plugin, there's no way we can know anything about your specific circumstances. It can be used as part of an overall plan of action to comply, but just installing it and doing nothing more does nothing to help you. In all cases, you need to assess your own website's use of cookies and decide an appropriate course of action. If you are looking for specialist legal advice relating to your website you should always consult a lawyer.
|
134 |
See http://cookielawinfo.com for more information on what is required.
|
135 |
|
136 |
|
143 |
|
144 |
== Changelog ==
|
145 |
|
146 |
+
= 1.8.2 =
|
147 |
+
|
148 |
+
* Tested ok with WP 5.3
|
149 |
+
|
150 |
= 1.8.1 =
|
151 |
|
152 |
* Added option in admin to modify the default button state of the non-necessary cookie category
|
381 |
|
382 |
== Upgrade Notice ==
|
383 |
|
384 |
+
= 1.8.2 =
|
385 |
|
386 |
+
* Tested ok with WP 5.3
|
|
|
|
|
|