Version Description
Download this release
Release Info
Developer | richardashby |
Plugin | Cookie Law / GDPR Info |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- admin/cli-admin-page.php +12 -7
- admin/cli-admin.php +1 -1
- cookie-law-info.php +4 -3
- css/cli-tables.css +1 -1
- js/cookielawinfo.js +0 -4
- php/custom-post-types.php +1 -1
- php/functions.php +1 -1
- php/shortcodes.php +10 -2
- readme.txt +26 -55
admin/cli-admin-page.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
===============================================================================
|
4 |
|
5 |
-
Copyright 2012 Richard Ashby (email :
|
6 |
|
7 |
This program is free software; you can redistribute it and/or modify
|
8 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -566,17 +566,22 @@ function cookielawinfo_print_admin_page() {
|
|
566 |
<p>If you want to go back to the previous version you can always download it again from <a href="http://www.cookielawinfo.com">CookieLawInfo.com.</a></p>
|
567 |
</div>
|
568 |
|
|
|
|
|
|
|
|
|
569 |
<h3>Help</h3>
|
570 |
<ul>
|
571 |
-
<li><a href="http://
|
572 |
-
<li><a href="http://
|
573 |
<li><a href="http://wordpress.org/support/plugin/cookie-law-info/">Report a Bug</a></li>
|
574 |
-
<li><a href="http://
|
575 |
-
<li><a href="http://
|
576 |
</ul>
|
577 |
-
|
578 |
-
<br />
|
579 |
<br />
|
|
|
|
|
|
|
580 |
<br />
|
581 |
|
582 |
<div>
|
2 |
/*
|
3 |
===============================================================================
|
4 |
|
5 |
+
Copyright 2012 Richard Ashby (email : wordpress@mediacreek.com)
|
6 |
|
7 |
This program is free software; you can redistribute it and/or modify
|
8 |
it under the terms of the GNU General Public License, version 2, as
|
566 |
<p>If you want to go back to the previous version you can always download it again from <a href="http://www.cookielawinfo.com">CookieLawInfo.com.</a></p>
|
567 |
</div>
|
568 |
|
569 |
+
<h3>Coming Soon: Cookie Law Info 2.0</h3>
|
570 |
+
<p>It's time for a completely new version! Cookie Law Info will always be free but there will also be a PRO version for those who want a bit more. You can <a href="http://cookielawinfo.com/cookie-law-info-2-0/">read about it here</a>. For both versions, you can sign up to the BETA version and be the first to try it out. It's completely free of charge and you could even win a free PRO version!</p>
|
571 |
+
<br />
|
572 |
+
|
573 |
<h3>Help</h3>
|
574 |
<ul>
|
575 |
+
<li><a href="http://cookielawinfo.com/wordpress-plugin/">Plugin Homepage</a></li>
|
576 |
+
<li><a href="http://cookielawinfo.com/support/">Help and Support</a></li>
|
577 |
<li><a href="http://wordpress.org/support/plugin/cookie-law-info/">Report a Bug</a></li>
|
578 |
+
<li><a href="http://cookielawinfo.com/contact/">Suggest a Feature</a></li>
|
579 |
+
<li><a href="http://cookielawinfo.com">About the law</a></li>
|
580 |
</ul>
|
|
|
|
|
581 |
<br />
|
582 |
+
|
583 |
+
<h3>Like this plugin?</h3>
|
584 |
+
<p>If you find this plugin useful please show your support and rate it <a href="http://wordpress.org/support/view/plugin-reviews/cookie-law-info?filter=5" target="_blank">★★★★★</a> on <a href="http://wordpress.org/support/view/plugin-reviews/cookie-law-info?filter=5" target="_blank">WordPress.org</a> - much appreciated! :)</p>
|
585 |
<br />
|
586 |
|
587 |
<div>
|
admin/cli-admin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
===============================================================================
|
4 |
|
5 |
-
Copyright 2012 Richard Ashby (email :
|
6 |
|
7 |
This program is free software; you can redistribute it and/or modify
|
8 |
it under the terms of the GNU General Public License, version 2, as
|
2 |
/*
|
3 |
===============================================================================
|
4 |
|
5 |
+
Copyright 2012 Richard Ashby (email : wordpress@mediacreek.com)
|
6 |
|
7 |
This program is free software; you can redistribute it and/or modify
|
8 |
it under the terms of the GNU General Public License, version 2, as
|
cookie-law-info.php
CHANGED
@@ -4,13 +4,13 @@ Plugin Name: Cookie Law Info
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/cookie-law-info/description/
|
5 |
Description: A simple way of 'implied consent' to show your website complies with the EU Cookie Law, which came into force on 26 May 2012.
|
6 |
Author: Richard Ashby
|
7 |
-
Author URI: http://
|
8 |
-
Version: 1.2.
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
12 |
/*
|
13 |
-
Copyright 2012 Richard Ashby (email :
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -97,6 +97,7 @@ add_action( 'manage_posts_custom_column', 'cookielawinfo_custom_columns' );
|
|
97 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'cookielawinfo_plugin_action_links' );
|
98 |
function cookielawinfo_plugin_action_links( $links ) {
|
99 |
$links[] = '<a href="'. get_admin_url(null, 'edit.php?post_type=cookielawinfo&page=cookie-law-info') .'">Settings</a>';
|
|
|
100 |
return $links;
|
101 |
}
|
102 |
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/cookie-law-info/description/
|
5 |
Description: A simple way of 'implied consent' to show your website complies with the EU Cookie Law, which came into force on 26 May 2012.
|
6 |
Author: Richard Ashby
|
7 |
+
Author URI: http://cookielawinfo.com/
|
8 |
+
Version: 1.2.2
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
12 |
/*
|
13 |
+
Copyright 2012 Richard Ashby (email : wordpress@mediacreek.com)
|
14 |
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License, version 2, as
|
97 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'cookielawinfo_plugin_action_links' );
|
98 |
function cookielawinfo_plugin_action_links( $links ) {
|
99 |
$links[] = '<a href="'. get_admin_url(null, 'edit.php?post_type=cookielawinfo&page=cookie-law-info') .'">Settings</a>';
|
100 |
+
$links[] = '<a href="http://cookielawinfo.com/cookie-law-info-2-0/" target="_blank">Beta 2.0</a>';
|
101 |
return $links;
|
102 |
}
|
103 |
|
css/cli-tables.css
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
.cookielawinfo-column-1 {width: 25%;}
|
11 |
.cookielawinfo-column-2 {width: 10%;}
|
12 |
.cookielawinfo-column-3 {width: 15%;}
|
13 |
-
.cookielawinfo-column-4 {width: 50%;}
|
14 |
|
15 |
/** Simple style */
|
16 |
.cookielawinfo-simple thead {width: 100%;}
|
10 |
.cookielawinfo-column-1 {width: 25%;}
|
11 |
.cookielawinfo-column-2 {width: 10%;}
|
12 |
.cookielawinfo-column-3 {width: 15%;}
|
13 |
+
.cookielawinfo-column-4 {width: 50%;}
|
14 |
|
15 |
/** Simple style */
|
16 |
.cookielawinfo-simple thead {width: 100%;}
|
js/cookielawinfo.js
CHANGED
@@ -37,10 +37,6 @@ function cli_show_cookiebar(p) {
|
|
37 |
html = p.html,
|
38 |
json_payload = p.settings;
|
39 |
|
40 |
-
// Edit 09/05:
|
41 |
-
// Replaced eval with JSON.parse. See http://caniuse.com/json for support (sorry IE7 users but you're dinosaurs these days...)
|
42 |
-
//var settings = eval('(' + json_payload +')');
|
43 |
-
|
44 |
if (typeof JSON.parse !== "function") {
|
45 |
console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");
|
46 |
return;
|
37 |
html = p.html,
|
38 |
json_payload = p.settings;
|
39 |
|
|
|
|
|
|
|
|
|
40 |
if (typeof JSON.parse !== "function") {
|
41 |
console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it");
|
42 |
return;
|
php/custom-post-types.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
===============================================================================
|
4 |
|
5 |
-
Copyright 2012 Richard Ashby (email :
|
6 |
|
7 |
This program is free software; you can redistribute it and/or modify
|
8 |
it under the terms of the GNU General Public License, version 2, as
|
2 |
/*
|
3 |
===============================================================================
|
4 |
|
5 |
+
Copyright 2012 Richard Ashby (email : wordpress@mediacreek.com)
|
6 |
|
7 |
This program is free software; you can redistribute it and/or modify
|
8 |
it under the terms of the GNU General Public License, version 2, as
|
php/functions.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
Copyright 2012 Richard Ashby (email :
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License, version 2, as
|
1 |
<?php
|
2 |
/*
|
3 |
+
Copyright 2012 Richard Ashby (email : wordpress@mediacreek.com)
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License, version 2, as
|
php/shortcodes.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
===============================================================================
|
4 |
|
5 |
-
Copyright 2012 Richard Ashby (email :
|
6 |
|
7 |
This program is free software; you can redistribute it and/or modify
|
8 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -114,7 +114,15 @@ function cookielawinfo_shortcode_accept_button( $atts ) {
|
|
114 |
extract( shortcode_atts( array(
|
115 |
'colour' => 'green'
|
116 |
), $atts ) );
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
}
|
119 |
|
120 |
|
2 |
/*
|
3 |
===============================================================================
|
4 |
|
5 |
+
Copyright 2012 Richard Ashby (email : wordpress@mediacreek.com)
|
6 |
|
7 |
This program is free software; you can redistribute it and/or modify
|
8 |
it under the terms of the GNU General Public License, version 2, as
|
114 |
extract( shortcode_atts( array(
|
115 |
'colour' => 'green'
|
116 |
), $atts ) );
|
117 |
+
|
118 |
+
// Fixing button translate text bug
|
119 |
+
// 18/05/2015 by RA
|
120 |
+
$defaults = array(
|
121 |
+
'button_1_text' => 'Accept'
|
122 |
+
);
|
123 |
+
$settings = wp_parse_args( cookielawinfo_get_admin_settings(), $defaults );
|
124 |
+
|
125 |
+
return '<a href="#" id="cookie_action_close_header" class="medium cli-plugin-button ' . $colour . '">' . $settings['button_1_text'] . '</a>';
|
126 |
}
|
127 |
|
128 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: richardashby
|
3 |
-
Donate link: http://
|
4 |
Tags: eu cookie law, cookie law, eu privacy directive, privacy directive, cookies, privacy, compliance
|
5 |
Requires at least: 3.3.1
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -26,12 +26,7 @@ It also has a Cookie Audit module so you can easily show what cookies your site
|
|
26 |
|
27 |
Inline with official ICO guidelines and current industry best practice, this plugin uses 'implied consent' to aid you in showing your compliance status. This is a deliberate design choice that does not proactively block cookies: it doesn't make your visitors take action before they can use your website, and will not interfere with blog comments and [Google] Analytics. This approach is aimed at reducing website visitor dropout and maintaining your vital analytics data.
|
28 |
|
29 |
-
|
30 |
-
[Read the ICO's guidelines on implied consent](http://www.ico.gov.uk/news/blog/2012/updated-ico-advice-guidance-e-privacy-directive-eu-cookie-law.aspx "Read the ICO's guidelines on implied consent")
|
31 |
-
|
32 |
-
Note: the EU Cookie Law is officially called the 'EU ePrivacy Directive'.
|
33 |
-
|
34 |
-
For a demo, [check out the EU Cookie Law website](http://www.cookielawinfo.com/ "Demo the EU Cookie Law plugin"), including the table of cookies on the Privacy Policy page.
|
35 |
|
36 |
|
37 |
Features:
|
@@ -44,7 +39,7 @@ Features:
|
|
44 |
* "Cookie Audit" shortcode to construct a nicely-styled 'Privacy & Cookie Policy'
|
45 |
|
46 |
|
47 |
-
[Read more about the EU Cookie Law](http://
|
48 |
|
49 |
|
50 |
== Installation ==
|
@@ -86,17 +81,30 @@ Delete header cookie usage:
|
|
86 |
|
87 |
== Frequently Asked Questions ==
|
88 |
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
-
|
94 |
-
See www.cookielawinfo.com for more information.
|
95 |
|
96 |
= What does this plugin do? =
|
97 |
This plugin will:
|
98 |
|
99 |
-
1. Add a banner to the top of all pages on your website, notifying the visitor that you have a clearly defined privacy and cookie policy.
|
100 |
2. Allow you to record which cookies your site uses, and:
|
101 |
3. Neatly display a list of these cookies (via a shortcode). You can put this list on your Privacy & Cookie Policy page, for example.
|
102 |
|
@@ -105,23 +113,8 @@ No, and neither does any other WordPress plugin - be aware that despite what you
|
|
105 |
A more realistic approach for WordPress website owners is to use what is called "implied consent". This should not be a message buried on your website rather something more prominent that is clear to your visitors. This plugin can be used to highlight your compliance status and use of cookies in this way.
|
106 |
|
107 |
|
108 |
-
= I'm not a UK/EU citizen, how can this law apply to me? =
|
109 |
-
If you have a significant proportion of visitors from the EU then this law also applies to you.
|
110 |
-
See www.cookielawinfo.com for more information.
|
111 |
-
|
112 |
-
= My website is not hosted in the UK/EU, am I exempt? =
|
113 |
-
No. The law is about protecting the privacy of EU citizens, so if your website has a significant proportion of visitors from the EU then this law also applies to you.
|
114 |
-
See www.cookielawinfo.com for more information.
|
115 |
-
|
116 |
= Do visitors now have to accept/refuse cookies in order to use websites? =
|
117 |
-
In short, no, although there is a great deal of ambiguity
|
118 |
-
|
119 |
-
Online Marketing experts Econsultancy provide their perspective on this interpretation. This plugin follows the same approach.
|
120 |
-
|
121 |
-
Further reading:
|
122 |
-
|
123 |
-
1. [UK Cabinet Office approach](http://digital.cabinetoffice.gov.uk/2012/03/19/its-not-about-cookies-its-about-privacy/ "UK Government approach to the EU Cookie Law")
|
124 |
-
2. [Econsultancy's solution](http://econsultancy.com/us/blog/9453-econsultancy-s-solution-to-eu-e-privacy-directive-compliance/ "Econsultancy's solution")
|
125 |
|
126 |
= Does this plugin stop cookies from being stored? =
|
127 |
No. Quite intentionally, this plugin will not do that. 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. If you do want blocking/deleting cookie functionality then (for now *) this is not the right plugin for you.
|
@@ -131,30 +124,8 @@ No. Quite intentionally, this plugin will not do that. We have no way of knowing
|
|
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
|
135 |
-
|
136 |
-
= The cookie law doesn't make much sense. How can we stop it? =
|
137 |
-
Many people agree with you. However it is here, it is law, and according to the Information Commissioner's Office (AKA 'the ICO') it will be enforced. We think it's best to take action to comply as well as petition. However there's no point just ignoring it, it is already here.
|
138 |
-
|
139 |
-
= How do I comply with the EU e-Privacy Directive (AKA 'the EU Cookie Law')? =
|
140 |
-
There are various interpretations of the law within the industry, and as such there is no simple answer. But the main way to ensure you are not penalised is to make some attempt at complying- reviewing your cookie use then using a plugin like this one is a good first step.
|
141 |
-
See www.cookielawinfo.com for more information.
|
142 |
-
|
143 |
-
= The cookie header isn't displaying =
|
144 |
-
First check you have installed the plugin and have activated it in the plugins panel.
|
145 |
-
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'.
|
146 |
-
|
147 |
-
= It would be great if your plugin also did XYZ =
|
148 |
-
Please email me and I'll consider adding that feature. It would be great to hear suggestions on how to improve it.
|
149 |
-
|
150 |
-
= The header doesn't work on my browser =
|
151 |
-
Please report a bug on the support forum. Be sure to include the following information:
|
152 |
-
|
153 |
-
* WordPress version e.g. 3.3.2 (found in bottom right hand corner of dashboard)
|
154 |
-
* Browser name and version e.g. FireFox 4.1
|
155 |
-
* Describe the problem
|
156 |
|
157 |
-
The more information you give, the quicker I can respond.
|
158 |
|
159 |
== Screenshots ==
|
160 |
|
1 |
=== Plugin Name ===
|
2 |
Contributors: richardashby
|
3 |
+
Donate link: http://cookielawinfo.com/donate
|
4 |
Tags: eu cookie law, cookie law, eu privacy directive, privacy directive, cookies, privacy, compliance
|
5 |
Requires at least: 3.3.1
|
6 |
+
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.2.2
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
26 |
|
27 |
Inline with official ICO guidelines and current industry best practice, this plugin uses 'implied consent' to aid you in showing your compliance status. This is a deliberate design choice that does not proactively block cookies: it doesn't make your visitors take action before they can use your website, and will not interfere with blog comments and [Google] Analytics. This approach is aimed at reducing website visitor dropout and maintaining your vital analytics data.
|
28 |
|
29 |
+
For a demo, [check out the EU Cookie Law website](http://cookielawinfo.com/ "Demo the EU Cookie Law plugin"), including the table of cookies on the Privacy Policy page.
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
|
32 |
Features:
|
39 |
* "Cookie Audit" shortcode to construct a nicely-styled 'Privacy & Cookie Policy'
|
40 |
|
41 |
|
42 |
+
[Read more about the EU Cookie Law](http://cookielawinfo.com/ "More information about the EU Cookie Law")
|
43 |
|
44 |
|
45 |
== Installation ==
|
81 |
|
82 |
== Frequently Asked Questions ==
|
83 |
|
84 |
+
There's a lot of help available on the main plugin website. See:
|
85 |
+
|
86 |
+
http://cookielawinfo.com/faq
|
87 |
+
http://cookielawinfo.com/user-guide
|
88 |
+
http://cookielawinfo.com/support
|
89 |
+
|
90 |
+
= The cookie header isn't displaying =
|
91 |
+
First check you have installed the plugin and have activated it in the plugins panel.
|
92 |
+
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'.
|
93 |
+
|
94 |
+
= The header doesn't work on my browser =
|
95 |
+
Please report a bug on the support forum. Be sure to include the following information:
|
96 |
+
|
97 |
+
* Your URL (I will need this in order to help you!)
|
98 |
+
* WordPress version e.g. 4.2.2 (found in bottom right hand corner of dashboard)
|
99 |
+
* Browser e.g. FireFox, Chrome, IE
|
100 |
+
* Describe the problem
|
101 |
|
102 |
+
The more information you give, the quicker I can respond.
|
|
|
103 |
|
104 |
= What does this plugin do? =
|
105 |
This plugin will:
|
106 |
|
107 |
+
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.
|
108 |
2. Allow you to record which cookies your site uses, and:
|
109 |
3. Neatly display a list of these cookies (via a shortcode). You can put this list on your Privacy & Cookie Policy page, for example.
|
110 |
|
113 |
A more realistic approach for WordPress website owners is to use what is called "implied consent". This should not be a message buried on your website rather something more prominent that is clear to your visitors. This plugin can be used to highlight your compliance status and use of cookies in this way.
|
114 |
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
= Do visitors now have to accept/refuse cookies in order to use websites? =
|
117 |
+
In short, no, although there is a great deal of ambiguity around this law. What the law really gets at is privacy, not just cookies. The UK government, Google and many other major websites use "implied consent" on their own websites, which is the same technique used by this plugin. Further reading: http://cookielawinfo.com/cookie-law-101/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
= Does this plugin stop cookies from being stored? =
|
120 |
No. Quite intentionally, this plugin will not do that. 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. If you do want blocking/deleting cookie functionality then (for now *) this is not the right plugin for you.
|
124 |
= Does this plugin guarantee that I comply with this law? =
|
125 |
No.
|
126 |
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.
|
127 |
+
See http://cookielawinfo.com for more information on what is required.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
|
|
129 |
|
130 |
== Screenshots ==
|
131 |
|