Version Description
- [Bug fix] Warning fixes
Download this release
Release Info
Developer | webtoffee |
Plugin | Cookie Law / GDPR Info |
Version | 1.8.0 |
Comparing to | |
See all releases |
Code changes from version 1.7.9 to 1.8.0
- admin/class-cookie-law-info-admin.php +2 -1
- admin/css/cookie-law-info-admin.css +2 -0
- admin/partials/cookie-law-info-privacy_overview.php +2 -3
- admin/views/admin_necessary_cookie.php +4 -1
- admin/views/admin_non_necessary_cookie.php +12 -5
- cookie-law-info.php +2 -2
- includes/class-cookie-law-info.php +1 -1
- public/class-cookie-law-info-public.php +20 -14
- public/js/cookie-law-info-public.js +4 -0
- public/views/cookie-law-info_popup_content.php +7 -6
- readme.txt +7 -34
admin/class-cookie-law-info-admin.php
CHANGED
@@ -198,7 +198,8 @@ class Cookie_Law_Info_Admin {
|
|
198 |
* @since 1.7.7
|
199 |
*/
|
200 |
public function privacy_overview_page()
|
201 |
-
{
|
|
|
202 |
require_once plugin_dir_path( __FILE__ ).'partials/cookie-law-info-privacy_overview.php';
|
203 |
}
|
204 |
public function plugin_action_links( $links )
|
198 |
* @since 1.7.7
|
199 |
*/
|
200 |
public function privacy_overview_page()
|
201 |
+
{
|
202 |
+
wp_enqueue_style($this->plugin_name);
|
203 |
require_once plugin_dir_path( __FILE__ ).'partials/cookie-law-info-privacy_overview.php';
|
204 |
}
|
205 |
public function plugin_action_links( $links )
|
admin/css/cookie-law-info-admin.css
CHANGED
@@ -282,6 +282,8 @@ table.wc_emails .wc-email-settings-table-status .tips,table.cli_script_items .wc
|
|
282 |
.cli_non_necessary_form .cli_form_help{ color: #aaa; font-style: italic; font-weight:250; font-size: 12px; }
|
283 |
.cli_settings_left{ width:63%;float: left; margin-bottom: 25px; }
|
284 |
.cli_settings_right{ width:33%; float: left; padding-left:25px;}
|
|
|
|
|
285 |
.cli_form_help{ color: #aaa; font-style: italic; font-weight:250; font-size: 12px; display: inline-block; width: 100%; }
|
286 |
.cli_form_er{ color:red; font-style: italic; font-weight:300; font-size: 12px; display: inline-block; width: 100%;}
|
287 |
.cli_scroll_accept_er{ display: none; }
|
282 |
.cli_non_necessary_form .cli_form_help{ color: #aaa; font-style: italic; font-weight:250; font-size: 12px; }
|
283 |
.cli_settings_left{ width:63%;float: left; margin-bottom: 25px; }
|
284 |
.cli_settings_right{ width:33%; float: left; padding-left:25px;}
|
285 |
+
.cli_privacy_overview_form label{ width:100%; display: inline-block; font-weight: bold; margin-bottom: 10px; margin-top: 15px; }
|
286 |
+
.cli_privacy_overview_form .cli_form_help{ color: #aaa; font-style: italic; font-weight:250; font-size: 12px; }
|
287 |
.cli_form_help{ color: #aaa; font-style: italic; font-weight:250; font-size: 12px; display: inline-block; width: 100%; }
|
288 |
.cli_form_er{ color:red; font-style: italic; font-weight:300; font-size: 12px; display: inline-block; width: 100%;}
|
289 |
.cli_scroll_accept_er{ display: none; }
|
admin/partials/cookie-law-info-privacy_overview.php
CHANGED
@@ -32,9 +32,8 @@ if (isset($_POST['update_privacy_overview_content_settings_form'])) {
|
|
32 |
$stored_options = get_option('cookielawinfo_privacy_overview_content_settings', array(
|
33 |
'privacy_overview_content' => '','privacy_overview_title' => '',
|
34 |
));
|
35 |
-
$privacy_title = $stored_options['privacy_overview_title'];
|
36 |
-
$privacy_content = $stored_options['privacy_overview_content'];
|
37 |
-
|
38 |
?>
|
39 |
<style>
|
40 |
.vvv_textbox{
|
32 |
$stored_options = get_option('cookielawinfo_privacy_overview_content_settings', array(
|
33 |
'privacy_overview_content' => '','privacy_overview_title' => '',
|
34 |
));
|
35 |
+
$privacy_title = isset($stored_options['privacy_overview_title']) ? $stored_options['privacy_overview_title'] : '';
|
36 |
+
$privacy_content = isset($stored_options['privacy_overview_content']) ? $stored_options['privacy_overview_content'] : '';
|
|
|
37 |
?>
|
38 |
<style>
|
39 |
.vvv_textbox{
|
admin/views/admin_necessary_cookie.php
CHANGED
@@ -4,6 +4,9 @@ if ( ! defined( 'WPINC' ) ) {
|
|
4 |
die;
|
5 |
}
|
6 |
?>
|
|
|
|
|
|
|
7 |
<style>
|
8 |
.vvv_textbox{
|
9 |
height: 150px;
|
@@ -26,7 +29,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
26 |
<td>
|
27 |
<label for="necessary_description"><?php echo __('Description','cookie-law-info');?></label>
|
28 |
<textarea name="necessary_description" class="vvv_textbox"><?php
|
29 |
-
echo apply_filters('format_to_edit', stripslashes($
|
30 |
?></textarea>
|
31 |
</td>
|
32 |
</tr>
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
+
<?php
|
8 |
+
$wt_cli_necessary_description = isset($stored_options['necessary_description']) ? $stored_options['necessary_description'] : '';
|
9 |
+
?>
|
10 |
<style>
|
11 |
.vvv_textbox{
|
12 |
height: 150px;
|
29 |
<td>
|
30 |
<label for="necessary_description"><?php echo __('Description','cookie-law-info');?></label>
|
31 |
<textarea name="necessary_description" class="vvv_textbox"><?php
|
32 |
+
echo apply_filters('format_to_edit', stripslashes($wt_cli_necessary_description));
|
33 |
?></textarea>
|
34 |
</td>
|
35 |
</tr>
|
admin/views/admin_non_necessary_cookie.php
CHANGED
@@ -4,6 +4,13 @@ if ( ! defined( 'WPINC' ) ) {
|
|
4 |
die;
|
5 |
}
|
6 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
<style>
|
8 |
.vvv_textbox{
|
9 |
height: 150px;
|
@@ -25,15 +32,15 @@ if ( ! defined( 'WPINC' ) ) {
|
|
25 |
<tr>
|
26 |
<td>
|
27 |
<label for="thirdparty_on_field"><?php echo __('Enable Non-necessary Cookie','cookie-law-info'); ?></label>
|
28 |
-
<input type="radio" id="thirdparty_on_field_yes" name="thirdparty_on_field" class="styled" value="true" <?php echo ( filter_var($
|
29 |
-
<input type="radio" id="thirdparty_on_field_no" name="thirdparty_on_field" class="styled" value="false" <?php echo ( filter_var($
|
30 |
</td>
|
31 |
</tr>
|
32 |
<tr>
|
33 |
<td>
|
34 |
<label for="thirdparty_description"><?php echo __('Description','cookie-law-info');?></label>
|
35 |
<textarea name="thirdparty_description" class="vvv_textbox"><?php
|
36 |
-
echo apply_filters('format_to_edit', stripslashes($
|
37 |
?></textarea>
|
38 |
</td>
|
39 |
</tr>
|
@@ -41,7 +48,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
41 |
<td>
|
42 |
<label for="thirdparty_head_section"><?php echo __('This script will be added to the page HEAD section if the above settings is enabled and user has give consent.','cookie-law-info');?></label>
|
43 |
<textarea name="thirdparty_head_section" class="vvv_textbox"><?php
|
44 |
-
echo apply_filters('format_to_edit', stripslashes($
|
45 |
?></textarea>
|
46 |
<span class="cli_form_help">
|
47 |
<?php echo __('Print scripts in the head tag on the front end if above cookie settings is enabled and user has given consent.','cookie-law-info'); ?> <br />
|
@@ -52,7 +59,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
52 |
<tr>
|
53 |
<td>
|
54 |
<label for="thirdparty_body_section"><?php echo __('This script will be added right after the BODY section if the above settings is enabled and user has given consent.','cookie-law-info'); ?></label>
|
55 |
-
<textarea name="thirdparty_body_section" class="vvv_textbox"><?php echo apply_filters('format_to_edit', stripslashes($
|
56 |
<span class="cli_form_help">
|
57 |
<?php echo __('Print scripts before the closing body tag on the front end if above cookie settings is enabled and user has given consent.','cookie-law-info'); ?> <br />eg:- <script>console.log("body script");</script>
|
58 |
</span>
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
+
<?php
|
8 |
+
|
9 |
+
$wt_cli_non_necessary_description = isset($stored_options['thirdparty_description']) ? $stored_options['thirdparty_description'] : '';
|
10 |
+
$wt_cli_non_necessary_head_scripts = isset($stored_options['thirdparty_head_section']) ? $stored_options['thirdparty_head_section'] : '';
|
11 |
+
$wt_cli_non_necessary_body_scripts = isset($stored_options['thirdparty_body_section']) ? $stored_options['thirdparty_body_section'] : '';
|
12 |
+
$wt_cli_non_necessary_enabled = isset($stored_options['thirdparty_on_field']) ? $stored_options['thirdparty_on_field'] : false;
|
13 |
+
?>
|
14 |
<style>
|
15 |
.vvv_textbox{
|
16 |
height: 150px;
|
32 |
<tr>
|
33 |
<td>
|
34 |
<label for="thirdparty_on_field"><?php echo __('Enable Non-necessary Cookie','cookie-law-info'); ?></label>
|
35 |
+
<input type="radio" id="thirdparty_on_field_yes" name="thirdparty_on_field" class="styled" value="true" <?php echo ( filter_var($wt_cli_non_necessary_enabled, FILTER_VALIDATE_BOOLEAN) == true ) ? ' checked="checked" ' : ' '; ?> /><?php echo __('Yes','cookie-law-info');?>
|
36 |
+
<input type="radio" id="thirdparty_on_field_no" name="thirdparty_on_field" class="styled" value="false" <?php echo ( filter_var($wt_cli_non_necessary_enabled, FILTER_VALIDATE_BOOLEAN) == false ) ? ' checked="checked" ' : ''; ?> /><?php echo __('No','cookie-law-info');?>
|
37 |
</td>
|
38 |
</tr>
|
39 |
<tr>
|
40 |
<td>
|
41 |
<label for="thirdparty_description"><?php echo __('Description','cookie-law-info');?></label>
|
42 |
<textarea name="thirdparty_description" class="vvv_textbox"><?php
|
43 |
+
echo apply_filters('format_to_edit', stripslashes($wt_cli_non_necessary_description));
|
44 |
?></textarea>
|
45 |
</td>
|
46 |
</tr>
|
48 |
<td>
|
49 |
<label for="thirdparty_head_section"><?php echo __('This script will be added to the page HEAD section if the above settings is enabled and user has give consent.','cookie-law-info');?></label>
|
50 |
<textarea name="thirdparty_head_section" class="vvv_textbox"><?php
|
51 |
+
echo apply_filters('format_to_edit', stripslashes($wt_cli_non_necessary_head_scripts));
|
52 |
?></textarea>
|
53 |
<span class="cli_form_help">
|
54 |
<?php echo __('Print scripts in the head tag on the front end if above cookie settings is enabled and user has given consent.','cookie-law-info'); ?> <br />
|
59 |
<tr>
|
60 |
<td>
|
61 |
<label for="thirdparty_body_section"><?php echo __('This script will be added right after the BODY section if the above settings is enabled and user has given consent.','cookie-law-info'); ?></label>
|
62 |
+
<textarea name="thirdparty_body_section" class="vvv_textbox"><?php echo apply_filters('format_to_edit', stripslashes($wt_cli_non_necessary_body_scripts));?></textarea>
|
63 |
<span class="cli_form_help">
|
64 |
<?php echo __('Print scripts before the closing body tag on the front end if above cookie settings is enabled and user has given consent.','cookie-law-info'); ?> <br />eg:- <script>console.log("body script");</script>
|
65 |
</span>
|
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.
|
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.
|
67 |
|
68 |
|
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.0
|
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.0' );
|
67 |
|
68 |
|
69 |
/**
|
includes/class-cookie-law-info.php
CHANGED
@@ -76,7 +76,7 @@ class Cookie_Law_Info {
|
|
76 |
}
|
77 |
else
|
78 |
{
|
79 |
-
$this->version = '1.
|
80 |
}
|
81 |
$this->plugin_name = 'cookie-law-info';
|
82 |
|
76 |
}
|
77 |
else
|
78 |
{
|
79 |
+
$this->version = '1.8.0';
|
80 |
}
|
81 |
$this->plugin_name = 'cookie-law-info';
|
82 |
|
public/class-cookie-law-info-public.php
CHANGED
@@ -87,7 +87,7 @@ class Cookie_Law_Info_Public {
|
|
87 |
$necessary_settings = get_option('cookielawinfo_necessary_settings');
|
88 |
$thirdparty_settings = get_option('cookielawinfo_thirdparty_settings');
|
89 |
$privacy_defaults = array(
|
90 |
-
'privacy_overview_content' => 'This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are
|
91 |
);
|
92 |
$thirdparty_defaults = array(
|
93 |
'thirdparty_on_field' => true,
|
@@ -123,10 +123,14 @@ class Cookie_Law_Info_Public {
|
|
123 |
*/
|
124 |
public function cli_set_category_cookies()
|
125 |
{
|
|
|
|
|
126 |
$cookie_categories = self::get_cookie_categories();
|
127 |
$the_options = Cookie_Law_Info::get_settings();
|
128 |
-
$
|
129 |
-
$
|
|
|
|
|
130 |
if ( $the_options['is_on'] == true )
|
131 |
{
|
132 |
|
@@ -349,16 +353,17 @@ class Cookie_Law_Info_Public {
|
|
349 |
if($the_options['is_on'] == true && !is_admin())
|
350 |
{
|
351 |
$third_party_cookie_options=get_option('cookielawinfo_thirdparty_settings');
|
352 |
-
$wt_cli_is_thirdparty_enabled = Cookie_Law_Info::sanitise_settings('thirdparty_on_field',$third_party_cookie_options['thirdparty_on_field']);
|
353 |
if(!empty($third_party_cookie_options))
|
354 |
-
{
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
|
|
|
|
362 |
}
|
363 |
}
|
364 |
}
|
@@ -370,14 +375,15 @@ class Cookie_Law_Info_Public {
|
|
370 |
if($the_options['is_on'] == true && !is_admin())
|
371 |
{
|
372 |
$third_party_cookie_options=get_option('cookielawinfo_thirdparty_settings');
|
373 |
-
$wt_cli_is_thirdparty_enabled = Cookie_Law_Info::sanitise_settings('thirdparty_on_field',$third_party_cookie_options['thirdparty_on_field']);
|
374 |
if(!empty($third_party_cookie_options))
|
375 |
{
|
|
|
|
|
376 |
if($wt_cli_is_thirdparty_enabled == true && isset($_COOKIE['viewed_cookie_policy']))
|
377 |
{
|
378 |
if($_COOKIE['viewed_cookie_policy'] == 'yes' && $_COOKIE["cookielawinfo-checkbox-non-necessary"] =='yes')
|
379 |
{
|
380 |
-
|
381 |
}
|
382 |
}
|
383 |
}
|
87 |
$necessary_settings = get_option('cookielawinfo_necessary_settings');
|
88 |
$thirdparty_settings = get_option('cookielawinfo_thirdparty_settings');
|
89 |
$privacy_defaults = array(
|
90 |
+
'privacy_overview_content' => 'This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.','privacy_overview_title' => 'Privacy Overview'
|
91 |
);
|
92 |
$thirdparty_defaults = array(
|
93 |
'thirdparty_on_field' => true,
|
123 |
*/
|
124 |
public function cli_set_category_cookies()
|
125 |
{
|
126 |
+
$temp = array();
|
127 |
+
|
128 |
$cookie_categories = self::get_cookie_categories();
|
129 |
$the_options = Cookie_Law_Info::get_settings();
|
130 |
+
$thirdparty_on_field = false;
|
131 |
+
$third_party_cookie_options = get_option('cookielawinfo_thirdparty_settings');
|
132 |
+
$thirdparty_on_field = isset($third_party_cookie_options['thirdparty_on_field']) ? $third_party_cookie_options['thirdparty_on_field'] : false;
|
133 |
+
$wt_cli_is_thirdparty_enabled = Cookie_Law_Info::sanitise_settings('thirdparty_on_field',$thirdparty_on_field);
|
134 |
if ( $the_options['is_on'] == true )
|
135 |
{
|
136 |
|
353 |
if($the_options['is_on'] == true && !is_admin())
|
354 |
{
|
355 |
$third_party_cookie_options=get_option('cookielawinfo_thirdparty_settings');
|
|
|
356 |
if(!empty($third_party_cookie_options))
|
357 |
+
{
|
358 |
+
$thirdparty_on_field = isset($third_party_cookie_options['thirdparty_on_field']) ? $third_party_cookie_options['thirdparty_on_field'] : false;
|
359 |
+
$wt_cli_is_thirdparty_enabled = Cookie_Law_Info::sanitise_settings('thirdparty_on_field',$thirdparty_on_field);
|
360 |
+
if($wt_cli_is_thirdparty_enabled == true && isset($_COOKIE['viewed_cookie_policy']))
|
361 |
+
{
|
362 |
+
if($_COOKIE['viewed_cookie_policy']=='yes' && $_COOKIE["cookielawinfo-checkbox-non-necessary"] =='yes')
|
363 |
+
{
|
364 |
+
echo (isset($third_party_cookie_options['thirdparty_head_section'])) ? $third_party_cookie_options['thirdparty_head_section'] : '';
|
365 |
+
}
|
366 |
+
}
|
367 |
}
|
368 |
}
|
369 |
}
|
375 |
if($the_options['is_on'] == true && !is_admin())
|
376 |
{
|
377 |
$third_party_cookie_options=get_option('cookielawinfo_thirdparty_settings');
|
|
|
378 |
if(!empty($third_party_cookie_options))
|
379 |
{
|
380 |
+
$thirdparty_on_field = isset($third_party_cookie_options['thirdparty_on_field']) ? $third_party_cookie_options['thirdparty_on_field'] : false;
|
381 |
+
$wt_cli_is_thirdparty_enabled = Cookie_Law_Info::sanitise_settings('thirdparty_on_field',$thirdparty_on_field);
|
382 |
if($wt_cli_is_thirdparty_enabled == true && isset($_COOKIE['viewed_cookie_policy']))
|
383 |
{
|
384 |
if($_COOKIE['viewed_cookie_policy'] == 'yes' && $_COOKIE["cookielawinfo-checkbox-non-necessary"] =='yes')
|
385 |
{
|
386 |
+
echo (isset($third_party_cookie_options['thirdparty_body_section'])) ? $third_party_cookie_options['thirdparty_body_section'] : '';
|
387 |
}
|
388 |
}
|
389 |
}
|
public/js/cookie-law-info-public.js
CHANGED
@@ -240,6 +240,10 @@ var CLI=
|
|
240 |
{
|
241 |
jQuery('.cli-privacy-readmore').show();
|
242 |
}
|
|
|
|
|
|
|
|
|
243 |
},
|
244 |
truncateText : function( textBlock ) {
|
245 |
while (textBlock.text().length > 250 )
|
240 |
{
|
241 |
jQuery('.cli-privacy-readmore').show();
|
242 |
}
|
243 |
+
else
|
244 |
+
{
|
245 |
+
jQuery('.cli-privacy-readmore').hide();
|
246 |
+
}
|
247 |
},
|
248 |
truncateText : function( textBlock ) {
|
249 |
while (textBlock.text().length > 250 )
|
public/views/cookie-law-info_popup_content.php
CHANGED
@@ -13,9 +13,9 @@ $necessary_cookie_options=get_option('cookielawinfo_necessary_settings');
|
|
13 |
<div class="cli-col-12 cli-align-items-stretch cli-px-0">
|
14 |
<div class="cli-privacy-overview">
|
15 |
<?php
|
16 |
-
$overview_title
|
17 |
-
$privacy_overview_content = $overview['privacy_overview_content'] ;
|
18 |
-
$privacy_overview_content=nl2br($privacy_overview_content);
|
19 |
$privacy_overview_content = do_shortcode(stripslashes($privacy_overview_content));
|
20 |
$content_length=strlen(strip_tags($privacy_overview_content));
|
21 |
$overview_title = trim($overview_title);
|
@@ -63,7 +63,7 @@ $necessary_cookie_options=get_option('cookielawinfo_necessary_settings');
|
|
63 |
{
|
64 |
$cli_switch='
|
65 |
<span class="cli-necessary-caption">'.$cli_always_enable_text.'</span> ';
|
66 |
-
$cli_cat_content
|
67 |
}
|
68 |
else
|
69 |
{
|
@@ -72,12 +72,13 @@ $necessary_cookie_options=get_option('cookielawinfo_necessary_settings');
|
|
72 |
<input type="checkbox" id="checkbox-'.$key.'" class="cli-user-preference-checkbox" data-id="checkbox-'.$key.'" '.$cli_checked.' />
|
73 |
<label for="checkbox-'.$key.'" class="cli-slider" data-cli-enable="'.$cli_enable_text.'" data-cli-disable="'.$cli_disable_text.'">'.$value.'</label>
|
74 |
</div>';
|
75 |
-
$cli_cat_content
|
76 |
}
|
77 |
?>
|
78 |
|
79 |
<?php
|
80 |
-
$
|
|
|
81 |
if($key === "non-necessary" && $wt_cli_is_thirdparty_enabled == false)
|
82 |
{
|
83 |
echo '';
|
13 |
<div class="cli-col-12 cli-align-items-stretch cli-px-0">
|
14 |
<div class="cli-privacy-overview">
|
15 |
<?php
|
16 |
+
$overview_title=isset($overview['privacy_overview_title']) ? $overview['privacy_overview_title'] : '';
|
17 |
+
$privacy_overview_content = isset($overview['privacy_overview_content']) ? $overview['privacy_overview_content'] : '';
|
18 |
+
$privacy_overview_content = nl2br($privacy_overview_content);
|
19 |
$privacy_overview_content = do_shortcode(stripslashes($privacy_overview_content));
|
20 |
$content_length=strlen(strip_tags($privacy_overview_content));
|
21 |
$overview_title = trim($overview_title);
|
63 |
{
|
64 |
$cli_switch='
|
65 |
<span class="cli-necessary-caption">'.$cli_always_enable_text.'</span> ';
|
66 |
+
$cli_cat_content=isset($necessary_cookie_options['necessary_description']) ? $necessary_cookie_options['necessary_description'] : '';
|
67 |
}
|
68 |
else
|
69 |
{
|
72 |
<input type="checkbox" id="checkbox-'.$key.'" class="cli-user-preference-checkbox" data-id="checkbox-'.$key.'" '.$cli_checked.' />
|
73 |
<label for="checkbox-'.$key.'" class="cli-slider" data-cli-enable="'.$cli_enable_text.'" data-cli-disable="'.$cli_disable_text.'">'.$value.'</label>
|
74 |
</div>';
|
75 |
+
$cli_cat_content=isset($third_party_cookie_options['thirdparty_description']) ? $third_party_cookie_options['thirdparty_description'] : '';
|
76 |
}
|
77 |
?>
|
78 |
|
79 |
<?php
|
80 |
+
$thirdparty_on_field=isset($third_party_cookie_options['thirdparty_on_field']) ? $third_party_cookie_options['thirdparty_on_field'] : false;
|
81 |
+
$wt_cli_is_thirdparty_enabled = Cookie_Law_Info::sanitise_settings('thirdparty_on_field',$thirdparty_on_field);
|
82 |
if($key === "non-necessary" && $wt_cli_is_thirdparty_enabled == false)
|
83 |
{
|
84 |
echo '';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.2
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -86,35 +86,6 @@ This section describes how to install the plugin and get it working.
|
|
86 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
87 |
3. Go to "Cookie Law Info / Cookie Law Settings" to configure the banner with your own text, colours and styles
|
88 |
|
89 |
-
To set up your Privacy & Cookie Policy Page:
|
90 |
-
|
91 |
-
1. Add descriptions of the cookies your site uses. Go to "Cookie Law Info / Add New".
|
92 |
-
2. Add a new page called e.g. Privacy and Cookie Policy
|
93 |
-
3. Add the [cookie_audit] shortcode to your Privacy & Cookie Policy Page
|
94 |
-
|
95 |
-
Cookie table shortcode usage:
|
96 |
-
|
97 |
-
[cookie_audit]
|
98 |
-
[cookie_audit style="winter"]
|
99 |
-
[cookie_audit not_shown_message="No records found"]
|
100 |
-
[cookie_audit style="winter" not_shown_message="Not found"]
|
101 |
-
|
102 |
-
Parameters:
|
103 |
-
|
104 |
-
style (optional) - choose one of several table styles included with the plugin. Styles included: simple, classic, modern, rounded, elegant, winter (styles are cAsE sensitive). Default style applied: classic.
|
105 |
-
not_shown_message (optional) - if no cookie records are found, display this text. Default is blank (i.e. no message shown).
|
106 |
-
|
107 |
-
|
108 |
-
Delete header cookie usage:
|
109 |
-
|
110 |
-
[delete_cookies]
|
111 |
-
[delete_cookies linktext="delete cookies"]
|
112 |
-
|
113 |
-
Parameters:
|
114 |
-
|
115 |
-
linktext (optional) - the text shown in the link. Default is "Delete Cookies".
|
116 |
-
|
117 |
-
|
118 |
== Frequently Asked Questions ==
|
119 |
|
120 |
There's a lot of help available on the main plugin website. See:
|
@@ -172,6 +143,10 @@ See http://cookielawinfo.com for more information on what is required.
|
|
172 |
|
173 |
== Changelog ==
|
174 |
|
|
|
|
|
|
|
|
|
175 |
= 1.7.9 =
|
176 |
|
177 |
* Fixed W3C Validation issues
|
@@ -395,8 +370,6 @@ See http://cookielawinfo.com for more information on what is required.
|
|
395 |
|
396 |
== Upgrade Notice ==
|
397 |
|
398 |
-
= 1.
|
399 |
|
400 |
-
*
|
401 |
-
* [Bug fix] Hide non-necessary category on cookie settings popup if it is not enabled
|
402 |
-
* [Bug fix] Translation issue with category cookies
|
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.2
|
7 |
+
Stable tag: 1.8.0
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
86 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
87 |
3. Go to "Cookie Law Info / Cookie Law Settings" to configure the banner with your own text, colours and styles
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
== Frequently Asked Questions ==
|
90 |
|
91 |
There's a lot of help available on the main plugin website. See:
|
143 |
|
144 |
== Changelog ==
|
145 |
|
146 |
+
= 1.8.0 =
|
147 |
+
|
148 |
+
* [Bug fix] Warning fixes
|
149 |
+
|
150 |
= 1.7.9 =
|
151 |
|
152 |
* Fixed W3C Validation issues
|
370 |
|
371 |
== Upgrade Notice ==
|
372 |
|
373 |
+
= 1.8.0 =
|
374 |
|
375 |
+
* [Bug fix] Warning fixes
|
|
|
|