Cookie Consent - Version 1.8

Version Description

= * Move HTML down to accommodate notification bar rather than obscuring content * Enqueues JS in footer * Improved translation support

Download this release

Release Info

Developer Catapult
Plugin Icon 128x128 Cookie Consent
Version 1.8
Comparing to
See all releases

Code changes from version 1.7.1 to 1.8

Files changed (2) hide show
  1. readme.txt +7 -2
  2. uk-cookie-consent.php +6 -6
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: catapult, husobj
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=M2FLCU6Z4A2LA
4
  Tags: cookies, eu, cookie law, implied consent, uk cookie consent
5
  Requires at least: 3.5.0
6
- Tested up to: 3.8
7
- Stable tag: 1.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,6 +48,11 @@ You will find more details of the regulations on the [Information Commissioner's
48
 
49
  == Changelog ==
50
 
 
 
 
 
 
51
  = 1.7.1 =
52
  * Ready for WP 3.8
53
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=M2FLCU6Z4A2LA
4
  Tags: cookies, eu, cookie law, implied consent, uk cookie consent
5
  Requires at least: 3.5.0
6
+ Tested up to: 3.9.1
7
+ Stable tag: 1.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
 
49
  == Changelog ==
50
 
51
+ = 1.8 ==
52
+ * Move HTML down to accommodate notification bar rather than obscuring content
53
+ * Enqueues JS in footer
54
+ * Improved translation support
55
+
56
  = 1.7.1 =
57
  * Ready for WP 3.8
58
 
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.7.1
8
  Author URI: http://catapultdesign.co.uk/
9
  */
10
 
@@ -260,7 +260,7 @@ add_action( 'admin_enqueue_scripts', 'catapult_color_picker' );
260
  //Enqueue jquery
261
  function catapult_cookie_jquery() {
262
  wp_enqueue_script( 'jquery' );
263
- wp_enqueue_script( 'uk-cookie-consent-js', plugins_url ( 'js/uk-cookie-consent-js.js', __FILE__ ), array ( 'jquery' ) );
264
  }
265
  add_action('wp_enqueue_scripts', 'catapult_cookie_jquery');
266
 
@@ -334,7 +334,7 @@ function catapult_add_cookie_js() { ?>
334
  jQuery(document).ready(function(){
335
  if(!catapultReadCookie("catAccCookies")){//If the cookie has not been set
336
  jQuery("#catapult-cookie-bar").show();
337
- jQuery("html").css("margin-top","0");
338
  }
339
  });
340
  </script>
@@ -347,17 +347,17 @@ function catapult_add_cookie_bar() {
347
  if ( $options['catapult_cookie_text_settings'] ) {
348
  $current_text = $options['catapult_cookie_text_settings'];
349
  } else {
350
- $current_text = "This site uses cookies";
351
  }
352
  if ( $options['catapult_cookie_accept_settings'] ) {
353
  $accept_text = $options['catapult_cookie_accept_settings'];
354
  } else {
355
- $accept_text = "Okay, thanks";
356
  }
357
  if ( $options['catapult_cookie_more_settings'] ) {
358
  $more_text = $options['catapult_cookie_more_settings'];
359
  } else {
360
- $more_text = "Find out more";
361
  }
362
  if ( $options['catapult_cookie_link_settings'] ) {
363
  $link_text = strtolower ( $options['catapult_cookie_link_settings'] );
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
8
  Author URI: http://catapultdesign.co.uk/
9
  */
10
 
260
  //Enqueue jquery
261
  function catapult_cookie_jquery() {
262
  wp_enqueue_script( 'jquery' );
263
+ wp_enqueue_script( 'uk-cookie-consent-js', plugins_url ( 'js/uk-cookie-consent-js.js', __FILE__ ), array ( 'jquery' ), '1.8', true );
264
  }
265
  add_action('wp_enqueue_scripts', 'catapult_cookie_jquery');
266
 
334
  jQuery(document).ready(function(){
335
  if(!catapultReadCookie("catAccCookies")){//If the cookie has not been set
336
  jQuery("#catapult-cookie-bar").show();
337
+ jQuery("html").css("margin-top","30px");
338
  }
339
  });
340
  </script>
347
  if ( $options['catapult_cookie_text_settings'] ) {
348
  $current_text = $options['catapult_cookie_text_settings'];
349
  } else {
350
+ $current_text = __( "This site uses cookies" );
351
  }
352
  if ( $options['catapult_cookie_accept_settings'] ) {
353
  $accept_text = $options['catapult_cookie_accept_settings'];
354
  } else {
355
+ $accept_text = __( "Okay, thanks" );
356
  }
357
  if ( $options['catapult_cookie_more_settings'] ) {
358
  $more_text = $options['catapult_cookie_more_settings'];
359
  } else {
360
+ $more_text = __( "Find out more" );
361
  }
362
  if ( $options['catapult_cookie_link_settings'] ) {
363
  $link_text = strtolower ( $options['catapult_cookie_link_settings'] );