Version Description
- Updates to settings page
Download this release
Release Info
Developer | Catapult |
Plugin | Cookie Consent |
Version | 1.7 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.7
- readme.txt +23 -20
- uk-cookie-consent.php +86 -22
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: cookies, eu, cookie law, implied consent, uk cookie consent
|
5 |
Requires at least: 3.5.0
|
6 |
Tested up to: 3.7.1
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -48,50 +48,53 @@ You will find more details of the regulations on the [Information Commissioner's
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
51 |
= 1.6 =
|
52 |
-
Moved JS to footer (thanks to Andreas Larsen for the suggestion)
|
53 |
|
54 |
= 1.5 =
|
55 |
-
Switched the logic so that the bar is initially hidden on the page and only displays if user has not previously dismissed it.
|
56 |
-
Gives a slightly better performance.
|
57 |
-
Thanks to chrisHe for the suggestion.
|
58 |
|
59 |
= 1.4.2. =
|
60 |
-
Policy page created on register_activation_hook now
|
61 |
|
62 |
= 1.4.1 =
|
63 |
-
Tweak to ensure jQuery is a dependency
|
64 |
|
65 |
= 1.4 =
|
66 |
-
This plug-in now uses JavaScript to test whether the user has dismissed the front-end notification in order to solve issues with caching plug-ins.
|
67 |
-
Added configuration options for colour and position of bar.
|
68 |
-
Set notification button and link to first element in tab list.
|
69 |
-
Thanks to husobj for contributions and suggestions including localisation and enqueueing scripts and stylesheets
|
70 |
|
71 |
= 1.3 =
|
72 |
-
Reinstated user-defined permalink field
|
73 |
|
74 |
= 1.25 =
|
75 |
-
Minor admin update
|
76 |
|
77 |
= 1.24 =
|
78 |
-
Fixed text alignment issue with Thesis framework (thanks to cavnit for pointing this one out)
|
79 |
|
80 |
= 1.23 =
|
81 |
-
Minor admin update
|
82 |
|
83 |
= 1.22 =
|
84 |
-
Minor admin update
|
85 |
|
86 |
= 1.21 =
|
87 |
-
Added resources to Settings page
|
88 |
|
89 |
= 1.2 =
|
90 |
-
Change title of Cookies page to Cookie Policy and removed option to change title
|
91 |
-
Added trailing slash to Cookie Policy url (thanks to mikeotgaar for spotting this)
|
92 |
|
93 |
= 1.1 =
|
94 |
-
Added default text to messages
|
95 |
|
96 |
== Upgrade Notice ==
|
97 |
|
4 |
Tags: cookies, eu, cookie law, implied consent, uk cookie consent
|
5 |
Requires at least: 3.5.0
|
6 |
Tested up to: 3.7.1
|
7 |
+
Stable tag: 1.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
+
= 1.7 =
|
52 |
+
* Updates to settings page
|
53 |
+
|
54 |
= 1.6 =
|
55 |
+
* Moved JS to footer (thanks to Andreas Larsen for the suggestion)
|
56 |
|
57 |
= 1.5 =
|
58 |
+
* Switched the logic so that the bar is initially hidden on the page and only displays if user has not previously dismissed it.
|
59 |
+
* Gives a slightly better performance.
|
60 |
+
* Thanks to chrisHe for the suggestion.
|
61 |
|
62 |
= 1.4.2. =
|
63 |
+
* Policy page created on register_activation_hook now
|
64 |
|
65 |
= 1.4.1 =
|
66 |
+
* Tweak to ensure jQuery is a dependency
|
67 |
|
68 |
= 1.4 =
|
69 |
+
* This plug-in now uses JavaScript to test whether the user has dismissed the front-end notification in order to solve issues with caching plug-ins.
|
70 |
+
* Added configuration options for colour and position of bar.
|
71 |
+
* Set notification button and link to first element in tab list.
|
72 |
+
* Thanks to husobj for contributions and suggestions including localisation and enqueueing scripts and stylesheets
|
73 |
|
74 |
= 1.3 =
|
75 |
+
* Reinstated user-defined permalink field
|
76 |
|
77 |
= 1.25 =
|
78 |
+
* Minor admin update
|
79 |
|
80 |
= 1.24 =
|
81 |
+
* Fixed text alignment issue with Thesis framework (thanks to cavnit for pointing this one out)
|
82 |
|
83 |
= 1.23 =
|
84 |
+
* Minor admin update
|
85 |
|
86 |
= 1.22 =
|
87 |
+
* Minor admin update
|
88 |
|
89 |
= 1.21 =
|
90 |
+
* Added resources to Settings page
|
91 |
|
92 |
= 1.2 =
|
93 |
+
* Change title of Cookies page to Cookie Policy and removed option to change title
|
94 |
+
* Added trailing slash to Cookie Policy url (thanks to mikeotgaar for spotting this)
|
95 |
|
96 |
= 1.1 =
|
97 |
+
* Added default text to messages
|
98 |
|
99 |
== Upgrade Notice ==
|
100 |
|
uk-cookie-consent.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: UK Cookie Consent
|
|
4 |
Plugin URI: http://catapultdesign.co.uk/plugin/uk-cookie-consent/
|
5 |
Description: Simple plug-in to help compliance with the UK interpretation of the EU regulations regarding usage of website cookies. A user to your site is presented with a clear yet unobtrusive notification that the site is using cookies and may then acknowledge and dismiss the notification or click to find out more. The plug-in does not disable cookies on your site or prevent the user from continuing to browse the site - it comes with standard wording on what cookies are and advice on how to disable them in the browser. The plug-in follows the notion of "implied consent" as described by the UK's Information Commissioner and makes the assumption that most users who choose not to accept cookies will do so for all websites.
|
6 |
Author: Catapult
|
7 |
-
Version: 1.
|
8 |
Author URI: http://catapultdesign.co.uk/
|
9 |
*/
|
10 |
|
@@ -19,36 +19,99 @@ function catapult_cookie_plugin_menu() {
|
|
19 |
|
20 |
function catapult_cookie_options_page() { ?>
|
21 |
<div class="wrap">
|
|
|
22 |
<h2><?php _e( 'UK Cookie Consent', 'uk-cookie-consent' ); ?></h2>
|
23 |
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
24 |
-
<div
|
25 |
-
<div class="
|
26 |
-
<
|
27 |
-
|
28 |
-
<
|
29 |
-
|
30 |
-
|
31 |
-
<
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
<div class="inside">
|
46 |
<p><a href="http://www.ico.gov.uk/for_organisations/privacy_and_electronic_communications/the_guide/cookies.aspx"><?php _e( 'Information Commissioner\'s Office Guidance on Cookies', 'uk-cookie-consent' ); ?></a></p>
|
47 |
<p><a href="http://www.aboutcookies.org/default.aspx">AboutCookies.org</a></p>
|
48 |
<p><a href="http://catapultdesign.co.uk/uk-cookie-consent/"><?php _e( 'Our interpretation of the guidance', 'uk-cookie-consent' ); ?></a></p>
|
49 |
</div>
|
50 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
</div><!-- poststuff -->
|
53 |
</div>
|
54 |
<?php }
|
@@ -189,6 +252,7 @@ function catapult_cookie_options_validate($input) {
|
|
189 |
function catapult_color_picker() {
|
190 |
wp_enqueue_style( 'wp-color-picker' );
|
191 |
wp_enqueue_script( 'uk-cookie-consent-colour-picker', plugins_url ( 'js/colour-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
|
|
192 |
}
|
193 |
add_action( 'admin_enqueue_scripts', 'catapult_color_picker' );
|
194 |
|
4 |
Plugin URI: http://catapultdesign.co.uk/plugin/uk-cookie-consent/
|
5 |
Description: Simple plug-in to help compliance with the UK interpretation of the EU regulations regarding usage of website cookies. A user to your site is presented with a clear yet unobtrusive notification that the site is using cookies and may then acknowledge and dismiss the notification or click to find out more. The plug-in does not disable cookies on your site or prevent the user from continuing to browse the site - it comes with standard wording on what cookies are and advice on how to disable them in the browser. The plug-in follows the notion of "implied consent" as described by the UK's Information Commissioner and makes the assumption that most users who choose not to accept cookies will do so for all websites.
|
6 |
Author: Catapult
|
7 |
+
Version: 1.7
|
8 |
Author URI: http://catapultdesign.co.uk/
|
9 |
*/
|
10 |
|
19 |
|
20 |
function catapult_cookie_options_page() { ?>
|
21 |
<div class="wrap">
|
22 |
+
<?php screen_icon(); ?>
|
23 |
<h2><?php _e( 'UK Cookie Consent', 'uk-cookie-consent' ); ?></h2>
|
24 |
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
25 |
+
<div id="side-info-column" class="inner-sidebar">
|
26 |
+
<div id="side-sortables" class="meta-box-sortables ui-sortable">
|
27 |
+
<div class="postbox like-postbox">
|
28 |
+
<div class="handlediv" title="Click to toggle"><br></div>
|
29 |
+
<h3 class="hndle"><span>Did this plugin help you?</span></h3>
|
30 |
+
<div class="inside">
|
31 |
+
<div class="like-widget">
|
32 |
+
<p>If this plugin helped you out in your project, please show your support:</p>
|
33 |
+
<ul>
|
34 |
+
<li><a target="_blank" href="http://wordpress.org/plugins/uk-cookie-consent/">Rate it</a></li>
|
35 |
+
<li><a target="_blank" href="http://twitter.com/share?url=&text=Check out the UK Cookie Consent plugin for WordPress from @_catapult_ - it's sweet: http://bit.ly/190GGXN">Tweet it</a></li>
|
36 |
+
</ul>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
</div><!-- .postbox -->
|
40 |
+
|
41 |
+
<div class="postbox like-postbox">
|
42 |
+
<div class="handlediv" title="Click to toggle"><br></div>
|
43 |
+
<h3 class="hndle"><span>Other plugins you might like</span></h3>
|
44 |
+
<div class="inside">
|
45 |
+
<div class="like-widget">
|
46 |
+
<p>If you liked this plugin, you may care to try the following:</p>
|
47 |
+
<ul>
|
48 |
+
<li><a target="_blank" href="http://wordpress.org/plugins/wp-slide-out-tab/">Slide out tab</a>
|
49 |
+
<p>Display a sliding tab for marketing, promotional or other content.</p>
|
50 |
+
</li>
|
51 |
+
</ul>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
</div><!-- .postbox -->
|
55 |
+
|
56 |
+
<div class="postbox rss-postbox">
|
57 |
+
<div class="handlediv" title="Click to toggle"><br></div>
|
58 |
+
<h3 class="hndle"><span>Cookie resources</span></h3>
|
59 |
<div class="inside">
|
60 |
<p><a href="http://www.ico.gov.uk/for_organisations/privacy_and_electronic_communications/the_guide/cookies.aspx"><?php _e( 'Information Commissioner\'s Office Guidance on Cookies', 'uk-cookie-consent' ); ?></a></p>
|
61 |
<p><a href="http://www.aboutcookies.org/default.aspx">AboutCookies.org</a></p>
|
62 |
<p><a href="http://catapultdesign.co.uk/uk-cookie-consent/"><?php _e( 'Our interpretation of the guidance', 'uk-cookie-consent' ); ?></a></p>
|
63 |
</div>
|
64 |
</div>
|
65 |
+
|
66 |
+
<div class="postbox rss-postbox">
|
67 |
+
<div class="handlediv" title="Click to toggle"><br></div>
|
68 |
+
<h3 class="hndle"><span>Support</span></h3>
|
69 |
+
<div class="inside">
|
70 |
+
<div class="rss-widget">
|
71 |
+
<?php
|
72 |
+
wp_widget_rss_output(array(
|
73 |
+
'url' => 'http://wordpress.org/support/rss/plugin/uk-cookie-consent',
|
74 |
+
'title' => 'Latest from the support forum',
|
75 |
+
'items' => 3,
|
76 |
+
'show_summary' => 1,
|
77 |
+
'show_author' => 0,
|
78 |
+
'show_date' => 1,
|
79 |
+
));
|
80 |
+
?>
|
81 |
+
<ul>
|
82 |
+
</ul>
|
83 |
+
</div>
|
84 |
+
<p><a href="http://wordpress.org/support/plugin/wp-slide-out-tab" title="Forum">Check out the forum</a></p>
|
85 |
+
</div>
|
86 |
+
</div><!-- .postbox -->
|
87 |
+
|
88 |
</div>
|
89 |
+
</div><!-- #side-info-column -->
|
90 |
+
|
91 |
+
<div id="post-body">
|
92 |
+
<div id="post-body-content">
|
93 |
+
<div class="meta-box-sortables">
|
94 |
+
<div class="postbox">
|
95 |
+
<h3 class="hndle"><?php _e( 'Your settings', 'uk-cookie-consent' ); ?></h3>
|
96 |
+
<div class="inside">
|
97 |
+
<form action="options.php" method="post">
|
98 |
+
<?php settings_fields('catapult_cookie_options'); ?>
|
99 |
+
<?php do_settings_sections('catapult_cookie'); ?>
|
100 |
+
<input name="cat_submit" type="submit" id="submit" class="button-primary" style="margin-top:30px;" value="<?php esc_attr_e( __( 'Save Changes', 'uk-cookie-consent' ) ); ?>" />
|
101 |
+
<?php $options = get_option('catapult_cookie_options');
|
102 |
+
$value = htmlentities ( $options['catapult_cookie_link_settings'], ENT_QUOTES );
|
103 |
+
if ( !$value ) {
|
104 |
+
$value = 'cookie-policy';
|
105 |
+
} ?>
|
106 |
+
<p><?php echo sprintf( __( 'Your Cookies Policy page is <a href="%s">here</a>. You may wish to create a menu item or other link on your site to this page.', 'uk-cookie-consent' ), home_url( $value ) ); ?></p>
|
107 |
+
</form>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
|
112 |
+
|
113 |
+
</div>
|
114 |
+
</div>
|
115 |
</div><!-- poststuff -->
|
116 |
</div>
|
117 |
<?php }
|
252 |
function catapult_color_picker() {
|
253 |
wp_enqueue_style( 'wp-color-picker' );
|
254 |
wp_enqueue_script( 'uk-cookie-consent-colour-picker', plugins_url ( 'js/colour-picker.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
255 |
+
// wp_enqueue_script( 'dashboard' );
|
256 |
}
|
257 |
add_action( 'admin_enqueue_scripts', 'catapult_color_picker' );
|
258 |
|