Cookie Notice by dFactory - Version 1.2.37

Version Description

  • Tweak: Add aria landmark role="banner"
  • Tweak: Extend cn_cookie_notice_args with button class
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Cookie Notice by dFactory
Version 1.2.37
Comparing to
See all releases

Code changes from version 1.2.36.1 to 1.2.37

cookie-notice.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Cookie Notice
4
  Description: Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law regulations.
5
- Version: 1.2.36.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
@@ -28,13 +28,13 @@ if ( ! defined( 'ABSPATH' ) )
28
  // set plugin instance
29
  $cookie_notice = new Cookie_Notice();
30
 
31
- include_once( plugin_dir_path( __FILE__ ) . 'includes/update.php' );
32
 
33
  /**
34
  * Cookie Notice class.
35
  *
36
  * @class Cookie_Notice
37
- * @version 1.2.36.1
38
  */
39
  class Cookie_Notice {
40
 
@@ -70,7 +70,7 @@ class Cookie_Notice {
70
  'translate' => true,
71
  'deactivation_delete' => 'no'
72
  ),
73
- 'version' => '1.2.36.1'
74
  );
75
  private $positions = array();
76
  private $styles = array();
@@ -241,6 +241,8 @@ class Cookie_Notice {
241
 
242
  /**
243
  * Options page output.
 
 
244
  */
245
  public function options_page() {
246
  echo '
@@ -254,12 +256,6 @@ class Cookie_Notice {
254
  <p class="inner">' . __( 'If you are having problems with this plugin, please talk about them in the', 'cookie-notice' ) . ' <a href="http://dfactory.eu/support/" target="_blank" title="' . __( 'Support forum', 'cookie-notice' ) . '">' . __( 'Support forum', 'cookie-notice' ) . '</a></p>
255
  <hr />
256
  <h4 class="inner">' . __( 'Do you like this plugin?', 'cookie-notice' ) . '</h4>
257
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="inner">
258
- <input type="hidden" name="cmd" value="_s-xclick">
259
- <input type="hidden" name="hosted_button_id" value="38CLZJPBEN9ZW">
260
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
261
- <img alt="" border="0" src="https://www.paypalobjects.com/pl_PL/i/scr/pixel.gif" width="1" height="1">
262
- </form>
263
  <p class="inner"><a href="http://wordpress.org/support/view/plugin-reviews/cookie-notice" target="_blank" title="' . __( 'Rate it 5', 'cookie-notice' ) . '">' . __( 'Rate it 5', 'cookie-notice' ) . '</a> ' . __( 'on WordPress.org', 'cookie-notice' ) . '<br />' .
264
  __( 'Blog about it & link to the', 'cookie-notice' ) . ' <a href="http://dfactory.eu/plugins/cookie-notice/" target="_blank" title="' . __( 'plugin page', 'cookie-notice' ) . '">' . __( 'plugin page', 'cookie-notice' ) . '</a><br />' .
265
  __( 'Check out our other', 'cookie-notice' ) . ' <a href="http://dfactory.eu/plugins/" target="_blank" title="' . __( 'WordPress plugins', 'cookie-notice' ) . '">' . __( 'WordPress plugins', 'cookie-notice' ) . '</a>
@@ -390,10 +386,11 @@ class Cookie_Notice {
390
  );
391
 
392
  echo '
393
- <fieldset>
394
- <label><input id="cn_see_more" type="checkbox" name="cookie_notice_options[see_more]" value="1" ' . checked( 'yes', $this->options['general']['see_more'], false ) . ' />' . __( 'Enable Read more link.', 'cookie-notice' ) . '</label>';
395
 
396
  echo '
 
397
  <div id="cn_see_more_opt"' . ($this->options['general']['see_more'] === 'no' ? ' style="display: none;"' : '') . '>
398
  <input type="text" class="regular-text" name="cookie_notice_options[see_more_opt][text]" value="' . esc_attr( $this->options['general']['see_more_opt']['text'] ) . '" />
399
  <p class="description">' . __( 'The text of the more info button.', 'cookie-notice' ) . '</p>
@@ -531,7 +528,7 @@ class Cookie_Notice {
531
  <fieldset>
532
  <label><input id="cn_on_scroll" type="checkbox" name="cookie_notice_options[on_scroll]" value="1" ' . checked( 'yes', $this->options['general']['on_scroll'], false ) . ' />' . __( 'Enable cookie notice acceptance when users scroll.', 'cookie-notice' ) . '</label>';
533
  echo '
534
- <div id="cn_on_scroll_offset"' . ( $this->options['general']['on_scroll'] === 'no' ? ' style="display: none;"' : '' ) . '>
535
  <input type="text" class="text" name="cookie_notice_options[on_scroll_offset]" value="' . esc_attr( $this->options['general']['on_scroll_offset'] ) . '" /> <span>px</span>
536
  <p class="description">' . __( 'Number of pixels user has to scroll to accept the usage of the cookies and make the notification disappear.', 'cookie-notice' ) . '</p>
537
  </div>
@@ -579,6 +576,9 @@ class Cookie_Notice {
579
 
580
  /**
581
  * Validate options.
 
 
 
582
  */
583
  public function validate_options( $input ) {
584
 
@@ -663,6 +663,8 @@ class Cookie_Notice {
663
 
664
  /**
665
  * Cookie notice output.
 
 
666
  */
667
  public function add_cookie_notice() {
668
  if ( ! $this->cookie_setted() ) {
@@ -689,6 +691,7 @@ class Cookie_Notice {
689
  $options = apply_filters( 'cn_cookie_notice_args', array(
690
  'position' => $this->options['general']['position'],
691
  'css_style' => $this->options['general']['css_style'],
 
692
  'colors' => $this->options['general']['colors'],
693
  'message_text' => $this->options['general']['message_text'],
694
  'accept_text' => $this->options['general']['accept_text'],
@@ -701,11 +704,11 @@ class Cookie_Notice {
701
 
702
  // message output
703
  $output = '
704
- <div id="cookie-notice" class="cn-' . ($options['position']) . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '" style="color: ' . $options['colors']['text'] . '; background-color: ' . $options['colors']['bar'] . ';">'
705
  . '<div class="cookie-notice-container"><span id="cn-notice-text">'. $options['message_text'] .'</span>'
706
- . '<a href="#" id="cn-accept-cookie" data-cookie-set="accept" class="cn-set-cookie button' . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['accept_text'] . '</a>'
707
- . ($options['refuse_opt'] === 'yes' ? '<a href="#" id="cn-refuse-cookie" data-cookie-set="refuse" class="cn-set-cookie button' . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['refuse_text'] . '</a>' : '' )
708
- . ($options['see_more'] === 'yes' ? '<a href="' . ($options['see_more_opt']['link_type'] === 'custom' ? $options['see_more_opt']['link'] : get_permalink( $options['see_more_opt']['id'] )) . '" target="' . $options['link_target'] . '" id="cn-more-info" class="button' . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['see_more_opt']['text'] . '</a>' : '') . '
709
  </div>
710
  </div>';
711
 
@@ -715,6 +718,8 @@ class Cookie_Notice {
715
 
716
  /**
717
  * Checks if cookie is setted
 
 
718
  */
719
  public function cookie_setted() {
720
  return isset( $_COOKIE[self::$cookie['name']] );
@@ -722,6 +727,8 @@ class Cookie_Notice {
722
 
723
  /**
724
  * Checks if third party non functional cookies are accepted
 
 
725
  */
726
  public static function cookies_accepted() {
727
  return ( isset( $_COOKIE[self::$cookie['name']] ) && strtoupper( $_COOKIE[self::$cookie['name']] ) === self::$cookie['value'] );
@@ -736,6 +743,10 @@ class Cookie_Notice {
736
 
737
  /**
738
  * Add links to Support Forum.
 
 
 
 
739
  */
740
  public function plugin_extend_links( $links, $file ) {
741
  if ( ! current_user_can( apply_filters( 'cn_manage_cookie_notice_cap', 'manage_options' ) ) )
@@ -751,6 +762,10 @@ class Cookie_Notice {
751
 
752
  /**
753
  * Add links to settings page.
 
 
 
 
754
  */
755
  public function plugin_settings_link( $links, $file ) {
756
  if ( ! current_user_can( apply_filters( 'cn_manage_cookie_notice_cap', 'manage_options' ) ) )
2
  /*
3
  Plugin Name: Cookie Notice
4
  Description: Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law regulations.
5
+ Version: 1.2.37
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
28
  // set plugin instance
29
  $cookie_notice = new Cookie_Notice();
30
 
31
+ include_once( plugin_dir_path( __FILE__ ) . 'includes/upgrade.php' );
32
 
33
  /**
34
  * Cookie Notice class.
35
  *
36
  * @class Cookie_Notice
37
+ * @version 1.2.37
38
  */
39
  class Cookie_Notice {
40
 
70
  'translate' => true,
71
  'deactivation_delete' => 'no'
72
  ),
73
+ 'version' => '1.2.37'
74
  );
75
  private $positions = array();
76
  private $styles = array();
241
 
242
  /**
243
  * Options page output.
244
+ *
245
+ * @return mixed
246
  */
247
  public function options_page() {
248
  echo '
256
  <p class="inner">' . __( 'If you are having problems with this plugin, please talk about them in the', 'cookie-notice' ) . ' <a href="http://dfactory.eu/support/" target="_blank" title="' . __( 'Support forum', 'cookie-notice' ) . '">' . __( 'Support forum', 'cookie-notice' ) . '</a></p>
257
  <hr />
258
  <h4 class="inner">' . __( 'Do you like this plugin?', 'cookie-notice' ) . '</h4>
 
 
 
 
 
 
259
  <p class="inner"><a href="http://wordpress.org/support/view/plugin-reviews/cookie-notice" target="_blank" title="' . __( 'Rate it 5', 'cookie-notice' ) . '">' . __( 'Rate it 5', 'cookie-notice' ) . '</a> ' . __( 'on WordPress.org', 'cookie-notice' ) . '<br />' .
260
  __( 'Blog about it & link to the', 'cookie-notice' ) . ' <a href="http://dfactory.eu/plugins/cookie-notice/" target="_blank" title="' . __( 'plugin page', 'cookie-notice' ) . '">' . __( 'plugin page', 'cookie-notice' ) . '</a><br />' .
261
  __( 'Check out our other', 'cookie-notice' ) . ' <a href="http://dfactory.eu/plugins/" target="_blank" title="' . __( 'WordPress plugins', 'cookie-notice' ) . '">' . __( 'WordPress plugins', 'cookie-notice' ) . '</a>
386
  );
387
 
388
  echo '
389
+ <label><input id="cn_see_more" type="checkbox" name="cookie_notice_options[see_more]" value="1" ' . checked( 'yes', $this->options['general']['see_more'], false ) . ' />' . __( 'Enable Read more link.', 'cookie-notice' ) . '</label>
390
+ <p class="description">' . sprintf( __( 'Need a Cookie Policy? Generate one with <a href="%s" target="_blank" title="iubenda">iubenda</a>', 'cookie-notice' ), 'http://iubenda.refr.cc/MXRWXMP' ) . '</p>';
391
 
392
  echo '
393
+ <fieldset>
394
  <div id="cn_see_more_opt"' . ($this->options['general']['see_more'] === 'no' ? ' style="display: none;"' : '') . '>
395
  <input type="text" class="regular-text" name="cookie_notice_options[see_more_opt][text]" value="' . esc_attr( $this->options['general']['see_more_opt']['text'] ) . '" />
396
  <p class="description">' . __( 'The text of the more info button.', 'cookie-notice' ) . '</p>
528
  <fieldset>
529
  <label><input id="cn_on_scroll" type="checkbox" name="cookie_notice_options[on_scroll]" value="1" ' . checked( 'yes', $this->options['general']['on_scroll'], false ) . ' />' . __( 'Enable cookie notice acceptance when users scroll.', 'cookie-notice' ) . '</label>';
530
  echo '
531
+ <div id="cn_on_scroll_offset"' . ( $this->options['general']['on_scroll'] === 'no' || $this->options['general']['on_scroll'] == false ? ' style="display: none;"' : '' ) . '>
532
  <input type="text" class="text" name="cookie_notice_options[on_scroll_offset]" value="' . esc_attr( $this->options['general']['on_scroll_offset'] ) . '" /> <span>px</span>
533
  <p class="description">' . __( 'Number of pixels user has to scroll to accept the usage of the cookies and make the notification disappear.', 'cookie-notice' ) . '</p>
534
  </div>
576
 
577
  /**
578
  * Validate options.
579
+ *
580
+ * @param array $input
581
+ * @return array
582
  */
583
  public function validate_options( $input ) {
584
 
663
 
664
  /**
665
  * Cookie notice output.
666
+ *
667
+ * @return mixed
668
  */
669
  public function add_cookie_notice() {
670
  if ( ! $this->cookie_setted() ) {
691
  $options = apply_filters( 'cn_cookie_notice_args', array(
692
  'position' => $this->options['general']['position'],
693
  'css_style' => $this->options['general']['css_style'],
694
+ 'button_class' => 'button',
695
  'colors' => $this->options['general']['colors'],
696
  'message_text' => $this->options['general']['message_text'],
697
  'accept_text' => $this->options['general']['accept_text'],
704
 
705
  // message output
706
  $output = '
707
+ <div id="cookie-notice" role="banner" class="cn-' . ($options['position']) . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '" style="color: ' . $options['colors']['text'] . '; background-color: ' . $options['colors']['bar'] . ';">'
708
  . '<div class="cookie-notice-container"><span id="cn-notice-text">'. $options['message_text'] .'</span>'
709
+ . '<a href="#" id="cn-accept-cookie" data-cookie-set="accept" class="cn-set-cookie ' . $options['button_class'] . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['accept_text'] . '</a>'
710
+ . ($options['refuse_opt'] === 'yes' ? '<a href="#" id="cn-refuse-cookie" data-cookie-set="refuse" class="cn-set-cookie ' . $options['button_class'] . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['refuse_text'] . '</a>' : '' )
711
+ . ($options['see_more'] === 'yes' ? '<a href="' . ($options['see_more_opt']['link_type'] === 'custom' ? $options['see_more_opt']['link'] : get_permalink( $options['see_more_opt']['id'] )) . '" target="' . $options['link_target'] . '" id="cn-more-info" class="' . $options['button_class'] . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['see_more_opt']['text'] . '</a>' : '') . '
712
  </div>
713
  </div>';
714
 
718
 
719
  /**
720
  * Checks if cookie is setted
721
+ *
722
+ * @return bool
723
  */
724
  public function cookie_setted() {
725
  return isset( $_COOKIE[self::$cookie['name']] );
727
 
728
  /**
729
  * Checks if third party non functional cookies are accepted
730
+ *
731
+ * @return bool
732
  */
733
  public static function cookies_accepted() {
734
  return ( isset( $_COOKIE[self::$cookie['name']] ) && strtoupper( $_COOKIE[self::$cookie['name']] ) === self::$cookie['value'] );
743
 
744
  /**
745
  * Add links to Support Forum.
746
+ *
747
+ * @param array $links
748
+ * @param string $file
749
+ * @return array
750
  */
751
  public function plugin_extend_links( $links, $file ) {
752
  if ( ! current_user_can( apply_filters( 'cn_manage_cookie_notice_cap', 'manage_options' ) ) )
762
 
763
  /**
764
  * Add links to settings page.
765
+ *
766
+ * @param array $links
767
+ * @param string $file
768
+ * @return array
769
  */
770
  public function plugin_settings_link( $links, $file ) {
771
  if ( ! current_user_can( apply_filters( 'cn_manage_cookie_notice_cap', 'manage_options' ) ) )
css/admin.css CHANGED
@@ -33,6 +33,10 @@
33
  padding: 5px 0 0 4px;
34
  }
35
 
 
 
 
 
36
  .cookie-notice-settings .df-credits form {
37
  min-width: 260px;
38
  margin-bottom: 1em;
33
  padding: 5px 0 0 4px;
34
  }
35
 
36
+ .df-promo h4 {
37
+ margin-bottom: 0;
38
+ }
39
+
40
  .cookie-notice-settings .df-credits form {
41
  min-width: 260px;
42
  margin-bottom: 1em;
includes/update.php DELETED
@@ -1,34 +0,0 @@
1
- <?php
2
- // exit if accessed directly
3
- if ( ! defined( 'ABSPATH' ) )
4
- exit;
5
-
6
- new Cookie_Notice_Update( $cookie_notice );
7
-
8
- class Cookie_Notice_Update {
9
-
10
- private $defaults;
11
-
12
- public function __construct( $cookie_notice ) {
13
- // attributes
14
- $this->defaults = $cookie_notice->get_defaults();
15
-
16
- // actions
17
- add_action( 'init', array( $this, 'check_upgrade' ) );
18
- }
19
-
20
- public function check_upgrade() {
21
- if ( ! current_user_can( 'manage_options' ) )
22
- return;
23
-
24
- // gets current database version
25
- $current_db_version = get_option( 'cookie_notice_version', '1.0.0' );
26
-
27
- // new version?
28
- if ( version_compare( $current_db_version, $this->defaults['version'], '<' ) ) {
29
- // updates plugin version
30
- update_option( 'cookie_notice_version', $this->defaults['version'] );
31
- }
32
- }
33
-
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/upgrade.php CHANGED
@@ -27,7 +27,7 @@ class Cookie_Notice_Upgrade {
27
  // new version?
28
  if ( version_compare( $current_db_version, $this->defaults['version'], '<' ) ) {
29
  // updates plugin version
30
- update_option( 'cookie_notice_version', $this->defaults['version'] );
31
  }
32
  }
33
 
27
  // new version?
28
  if ( version_compare( $current_db_version, $this->defaults['version'], '<' ) ) {
29
  // updates plugin version
30
+ update_option( 'cookie_notice_version', $this->defaults['version'], false );
31
  }
32
  }
33
 
js/admin.js CHANGED
@@ -1,54 +1,54 @@
1
  ( function ( $ ) {
2
 
3
- $( document ).ready( function () {
4
-
5
- // initialize color picker
6
- $( '.cn_color' ).wpColorPicker();
7
-
8
- // refuse option
9
- $( '#cn_refuse_opt' ).change( function () {
10
- if ( $( this ).is(':checked') ) {
11
- $( '#cn_refuse_opt_container' ).slideDown( 'fast' );
12
- } else {
13
- $( '#cn_refuse_opt_container' ).slideUp( 'fast' );
14
- }
15
- } );
16
 
17
- // read more option
18
- $( '#cn_see_more' ).change( function () {
19
- if ( $( this ).is(':checked') ) {
20
- $( '#cn_see_more_opt' ).slideDown( 'fast' );
21
- } else {
22
- $( '#cn_see_more_opt' ).slideUp( 'fast' );
23
- }
24
- } );
25
-
26
- // read more option
27
- $( '#cn_on_scroll' ).change( function () {
28
- if ( $( this ).is(':checked') ) {
29
- $( '#cn_on_scroll_offset' ).slideDown( 'fast' );
30
- } else {
31
- $( '#cn_on_scroll_offset' ).slideUp( 'fast' );
32
- }
33
- } );
34
 
35
- // read more link
36
- $( '#cn_see_more_link-custom, #cn_see_more_link-page' ).change( function () {
37
- if ( $( '#cn_see_more_link-custom:checked' ).val() === 'custom' ) {
38
- $( '#cn_see_more_opt_page' ).slideUp( 'fast', function () {
39
- $( '#cn_see_more_opt_link' ).slideDown( 'fast' );
40
- } );
41
- } else if ( $( '#cn_see_more_link-page:checked' ).val() === 'page' ) {
42
- $( '#cn_see_more_opt_link' ).slideUp( 'fast', function () {
43
- $( '#cn_see_more_opt_page' ).slideDown( 'fast' );
44
- } );
45
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  } );
47
-
48
- $( document ).on( 'click', 'input#reset_cookie_notice_options', function () {
49
- return confirm( cnArgs.resetToDefaults );
50
  } );
 
 
51
 
 
 
52
  } );
53
 
 
 
54
  } )( jQuery );
1
  ( function ( $ ) {
2
 
3
+ $( document ).ready( function () {
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
+ // initialize color picker
6
+ $( '.cn_color' ).wpColorPicker();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
+ // refuse option
9
+ $( '#cn_refuse_opt' ).change( function () {
10
+ if ( $( this ).is( ':checked' ) ) {
11
+ $( '#cn_refuse_opt_container' ).slideDown( 'fast' );
12
+ } else {
13
+ $( '#cn_refuse_opt_container' ).slideUp( 'fast' );
14
+ }
15
+ } );
16
+
17
+ // read more option
18
+ $( '#cn_see_more' ).change( function () {
19
+ if ( $( this ).is( ':checked' ) ) {
20
+ $( '#cn_see_more_opt' ).slideDown( 'fast' );
21
+ } else {
22
+ $( '#cn_see_more_opt' ).slideUp( 'fast' );
23
+ }
24
+ } );
25
+
26
+ // read more option
27
+ $( '#cn_on_scroll' ).change( function () {
28
+ if ( $( this ).is( ':checked' ) ) {
29
+ $( '#cn_on_scroll_offset' ).slideDown( 'fast' );
30
+ } else {
31
+ $( '#cn_on_scroll_offset' ).slideUp( 'fast' );
32
+ }
33
+ } );
34
+
35
+ // read more link
36
+ $( '#cn_see_more_link-custom, #cn_see_more_link-page' ).change( function () {
37
+ if ( $( '#cn_see_more_link-custom:checked' ).val() === 'custom' ) {
38
+ $( '#cn_see_more_opt_page' ).slideUp( 'fast', function () {
39
+ $( '#cn_see_more_opt_link' ).slideDown( 'fast' );
40
  } );
41
+ } else if ( $( '#cn_see_more_link-page:checked' ).val() === 'page' ) {
42
+ $( '#cn_see_more_opt_link' ).slideUp( 'fast', function () {
43
+ $( '#cn_see_more_opt_page' ).slideDown( 'fast' );
44
  } );
45
+ }
46
+ } );
47
 
48
+ $( document ).on( 'click', 'input#reset_cookie_notice_options', function () {
49
+ return confirm( cnArgs.resetToDefaults );
50
  } );
51
 
52
+ } );
53
+
54
  } )( jQuery );
js/front.js CHANGED
@@ -1,86 +1,86 @@
1
  ( function ( $ ) {
2
 
3
- $( document ).ready( function () {
4
 
5
- var cnDomNode = $( '#cookie-notice' );
6
 
7
- // handle set-cookie button click
8
- $( document ).on( 'click', '.cn-set-cookie', function ( e ) {
9
- e.preventDefault();
10
- $( this ).setCookieNotice( $( this ).data( 'cookie-set' ) );
11
- } );
12
-
13
- // handle on scroll
14
- if ( cnArgs.onScroll == 'yes' ) {
15
- var cnHandleScroll = function () {
16
- var win = $( this );
17
- if ( win.scrollTop() > parseInt( cnArgs.onScrollOffset ) ) {
18
- // If user scrolls at least 100 pixels
19
- win.setCookieNotice( 'accept' );
20
- win.off( 'scroll', cnHandleScroll ); //remove itself after cookie accept
21
- }
22
- };
23
 
24
- $( window ).on( 'scroll', cnHandleScroll );
 
 
 
 
 
 
 
25
  }
 
26
 
27
- // display cookie notice
28
- if ( document.cookie.indexOf( 'cookie_notice_accepted' ) === -1 ) {
29
- if ( cnArgs.hideEffect === 'fade' ) {
30
- cnDomNode.fadeIn( 300 );
31
- } else if ( cnArgs.hideEffect === 'slide' ) {
32
- cnDomNode.slideDown( 300 );
33
- } else {
34
- cnDomNode.show();
35
- }
36
- $( 'body' ).addClass( 'cookies-not-accepted' );
37
- } else {
38
- cnDomNode.removeCookieNotice();
39
- }
40
 
41
- } );
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
- // set Cookie Notice
44
- $.fn.setCookieNotice = function ( cookie_value ) {
45
 
46
- var cnTime = new Date(),
47
- cnLater = new Date(),
48
- cnDomNode = $( '#cookie-notice' ),
49
- cnSelf = this;
50
 
51
- // set expiry time in seconds
52
- cnLater.setTime( parseInt( cnTime.getTime() ) + parseInt( cnArgs.cookieTime ) * 1000 );
 
 
53
 
54
- // set cookie
55
- cookie_value = cookie_value === 'accept' ? true : false;
56
- document.cookie = cnArgs.cookieName + '=' + cookie_value + ';expires=' + cnLater.toGMTString() + ';' + ( cnArgs.cookieDomain !== undefined && cnArgs.cookieDomain !== '' ? 'domain=' + cnArgs.cookieDomain + ';' : '' ) + ( cnArgs.cookiePath !== undefined && cnArgs.cookiePath !== '' ? 'path=' + cnArgs.cookiePath + ';' : '' );
57
 
58
- // trigger custom event
59
- $.event.trigger( {
60
- type : "setCookieNotice",
61
- value : cookie_value,
62
- time : cnTime,
63
- expires : cnLater
64
- } );
65
 
66
- // hide message container
67
- if ( cnArgs.hideEffect === 'fade' ) {
68
- cnDomNode.fadeOut( 300, function () {
69
- cnSelf.removeCookieNotice();
70
- } );
71
- } else if ( cnArgs.hideEffect === 'slide' ) {
72
- cnDomNode.slideUp( 300, function () {
73
- cnSelf.removeCookieNotice();
74
- } );
75
- } else {
76
- cnSelf.removeCookieNotice();
77
- }
78
- };
79
 
80
- // remove Cookie Notice
81
- $.fn.removeCookieNotice = function ( cookie_value ) {
82
- $( '#cookie-notice' ).remove();
83
- $( 'body' ).removeClass( 'cookies-not-accepted' );
 
 
 
 
 
 
 
84
  }
 
 
 
 
 
 
 
85
 
86
  } )( jQuery );
1
  ( function ( $ ) {
2
 
3
+ $( document ).ready( function () {
4
 
5
+ var cnDomNode = $( '#cookie-notice' );
6
 
7
+ // handle set-cookie button click
8
+ $( document ).on( 'click', '.cn-set-cookie', function ( e ) {
9
+ e.preventDefault();
10
+ $( this ).setCookieNotice( $( this ).data( 'cookie-set' ) );
11
+ } );
 
 
 
 
 
 
 
 
 
 
 
12
 
13
+ // handle on scroll
14
+ if ( cnArgs.onScroll == 'yes' ) {
15
+ var cnHandleScroll = function () {
16
+ var win = $( this );
17
+ if ( win.scrollTop() > parseInt( cnArgs.onScrollOffset ) ) {
18
+ // If user scrolls at least 100 pixels
19
+ win.setCookieNotice( 'accept' );
20
+ win.off( 'scroll', cnHandleScroll ); //remove itself after cookie accept
21
  }
22
+ };
23
 
24
+ $( window ).on( 'scroll', cnHandleScroll );
25
+ }
 
 
 
 
 
 
 
 
 
 
 
26
 
27
+ // display cookie notice
28
+ if ( document.cookie.indexOf( 'cookie_notice_accepted' ) === -1 ) {
29
+ if ( cnArgs.hideEffect === 'fade' ) {
30
+ cnDomNode.fadeIn( 300 );
31
+ } else if ( cnArgs.hideEffect === 'slide' ) {
32
+ cnDomNode.slideDown( 300 );
33
+ } else {
34
+ cnDomNode.show();
35
+ }
36
+ $( 'body' ).addClass( 'cookies-not-accepted' );
37
+ } else {
38
+ cnDomNode.removeCookieNotice();
39
+ }
40
 
41
+ } );
 
42
 
43
+ // set Cookie Notice
44
+ $.fn.setCookieNotice = function ( cookie_value ) {
 
 
45
 
46
+ var cnTime = new Date(),
47
+ cnLater = new Date(),
48
+ cnDomNode = $( '#cookie-notice' ),
49
+ cnSelf = this;
50
 
51
+ // set expiry time in seconds
52
+ cnLater.setTime( parseInt( cnTime.getTime() ) + parseInt( cnArgs.cookieTime ) * 1000 );
 
53
 
54
+ // set cookie
55
+ cookie_value = cookie_value === 'accept' ? true : false;
56
+ document.cookie = cnArgs.cookieName + '=' + cookie_value + ';expires=' + cnLater.toGMTString() + ';' + ( cnArgs.cookieDomain !== undefined && cnArgs.cookieDomain !== '' ? 'domain=' + cnArgs.cookieDomain + ';' : '' ) + ( cnArgs.cookiePath !== undefined && cnArgs.cookiePath !== '' ? 'path=' + cnArgs.cookiePath + ';' : '' );
 
 
 
 
57
 
58
+ // trigger custom event
59
+ $.event.trigger( {
60
+ type: "setCookieNotice",
61
+ value: cookie_value,
62
+ time: cnTime,
63
+ expires: cnLater
64
+ } );
 
 
 
 
 
 
65
 
66
+ // hide message container
67
+ if ( cnArgs.hideEffect === 'fade' ) {
68
+ cnDomNode.fadeOut( 300, function () {
69
+ cnSelf.removeCookieNotice();
70
+ } );
71
+ } else if ( cnArgs.hideEffect === 'slide' ) {
72
+ cnDomNode.slideUp( 300, function () {
73
+ cnSelf.removeCookieNotice();
74
+ } );
75
+ } else {
76
+ cnSelf.removeCookieNotice();
77
  }
78
+ };
79
+
80
+ // remove Cookie Notice
81
+ $.fn.removeCookieNotice = function ( cookie_value ) {
82
+ $( '#cookie-notice' ).remove();
83
+ $( 'body' ).removeClass( 'cookies-not-accepted' );
84
+ }
85
 
86
  } )( jQuery );
languages/cookie-notice.pot CHANGED
@@ -1,331 +1,323 @@
1
- #, fuzzy
2
- msgid ""
3
- msgstr ""
4
- "Project-Id-Version: Cookie Notice\n"
5
- "POT-Creation-Date: 2015-07-21 13:29+0200\n"
6
- "PO-Revision-Date: 2015-03-24 11:30+0100\n"
7
- "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
- "Language-Team: dFactory <info@dfactory.eu>\n"
9
- "Language: en\n"
10
- "MIME-Version: 1.0\n"
11
- "Content-Type: text/plain; charset=UTF-8\n"
12
- "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 1.8.2\n"
14
- "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
15
- "X-Poedit-Basepath: .\n"
16
- "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-SearchPath-0: ..\n"
18
-
19
- #: ../cookie-notice.php:127
20
- msgid "Top"
21
- msgstr ""
22
-
23
- #: ../cookie-notice.php:128
24
- msgid "Bottom"
25
- msgstr ""
26
-
27
- #: ../cookie-notice.php:132 ../cookie-notice.php:163
28
- msgid "None"
29
- msgstr ""
30
-
31
- #: ../cookie-notice.php:133
32
- msgid "WordPress"
33
- msgstr ""
34
-
35
- #: ../cookie-notice.php:134
36
- msgid "Bootstrap"
37
- msgstr ""
38
-
39
- #: ../cookie-notice.php:138
40
- msgid "Custom link"
41
- msgstr ""
42
-
43
- #: ../cookie-notice.php:139
44
- msgid "Page link"
45
- msgstr ""
46
-
47
- #: ../cookie-notice.php:148
48
- msgid "Text color"
49
- msgstr ""
50
-
51
- #: ../cookie-notice.php:149
52
- msgid "Bar color"
53
- msgstr ""
54
-
55
- #: ../cookie-notice.php:153
56
- msgid "1 day"
57
- msgstr ""
58
-
59
- #: ../cookie-notice.php:154
60
- msgid "1 week"
61
- msgstr ""
62
-
63
- #: ../cookie-notice.php:155
64
- msgid "1 month"
65
- msgstr ""
66
-
67
- #: ../cookie-notice.php:156
68
- msgid "3 months"
69
- msgstr ""
70
-
71
- #: ../cookie-notice.php:157
72
- msgid "6 months"
73
- msgstr ""
74
-
75
- #: ../cookie-notice.php:158
76
- msgid "1 year"
77
- msgstr ""
78
-
79
- #: ../cookie-notice.php:159
80
- msgid "infinity"
81
- msgstr ""
82
-
83
- #: ../cookie-notice.php:164
84
- msgid "Fade"
85
- msgstr ""
86
-
87
- #: ../cookie-notice.php:165
88
- msgid "Slide"
89
- msgstr ""
90
-
91
- #: ../cookie-notice.php:169
92
- msgid "Header"
93
- msgstr ""
94
-
95
- #: ../cookie-notice.php:170
96
- msgid "Footer"
97
- msgstr ""
98
-
99
- #: ../cookie-notice.php:189
100
- msgid ""
101
- "We use cookies to ensure that we give you the best experience on our "
102
- "website. If you continue to use this site we will assume that you are happy "
103
- "with it."
104
- msgstr ""
105
-
106
- #: ../cookie-notice.php:190
107
- msgid "Ok"
108
- msgstr ""
109
-
110
- #: ../cookie-notice.php:191
111
- msgid "No"
112
- msgstr ""
113
-
114
- #: ../cookie-notice.php:192
115
- msgid "Read more"
116
- msgstr ""
117
-
118
- #: ../cookie-notice.php:219 ../cookie-notice.php:229 ../cookie-notice.php:232
119
- msgid "Cookie Notice"
120
- msgstr ""
121
-
122
- #: ../cookie-notice.php:234
123
- msgid "Need support?"
124
- msgstr ""
125
-
126
- #: ../cookie-notice.php:235
127
- msgid ""
128
- "If you are having problems with this plugin, please talk about them in the"
129
- msgstr ""
130
-
131
- #: ../cookie-notice.php:235
132
- msgid "Support forum"
133
- msgstr ""
134
-
135
- #: ../cookie-notice.php:237
136
- msgid "Do you like this plugin?"
137
- msgstr ""
138
-
139
- #: ../cookie-notice.php:244
140
- msgid "Rate it 5"
141
- msgstr ""
142
-
143
- #: ../cookie-notice.php:244
144
- msgid "on WordPress.org"
145
- msgstr ""
146
-
147
- #: ../cookie-notice.php:245
148
- msgid "Blog about it & link to the"
149
- msgstr ""
150
-
151
- #: ../cookie-notice.php:245
152
- msgid "plugin page"
153
- msgstr ""
154
-
155
- #: ../cookie-notice.php:246
156
- msgid "Check out our other"
157
- msgstr ""
158
-
159
- #: ../cookie-notice.php:246
160
- msgid "WordPress plugins"
161
- msgstr ""
162
-
163
- #: ../cookie-notice.php:261
164
- msgid "Reset to defaults"
165
- msgstr ""
166
-
167
- #: ../cookie-notice.php:277
168
- msgid "Configuration"
169
- msgstr ""
170
-
171
- #: ../cookie-notice.php:278
172
- msgid "Message"
173
- msgstr ""
174
-
175
- #: ../cookie-notice.php:279
176
- msgid "Button text"
177
- msgstr ""
178
-
179
- #: ../cookie-notice.php:280
180
- msgid "More info link"
181
- msgstr ""
182
-
183
- #: ../cookie-notice.php:281
184
- msgid "Link target"
185
- msgstr ""
186
-
187
- #: ../cookie-notice.php:282
188
- msgid "Refuse button"
189
- msgstr ""
190
-
191
- #: ../cookie-notice.php:283
192
- msgid "On scroll"
193
- msgstr ""
194
-
195
- #: ../cookie-notice.php:284
196
- msgid "Cookie expiry"
197
- msgstr ""
198
-
199
- #: ../cookie-notice.php:285
200
- msgid "Script placement"
201
- msgstr ""
202
-
203
- #: ../cookie-notice.php:286
204
- msgid "Deactivation"
205
- msgstr ""
206
-
207
- #: ../cookie-notice.php:289
208
- msgid "Design"
209
- msgstr ""
210
-
211
- #: ../cookie-notice.php:290
212
- msgid "Position"
213
- msgstr ""
214
-
215
- #: ../cookie-notice.php:291
216
- msgid "Animation"
217
- msgstr ""
218
-
219
- #: ../cookie-notice.php:292
220
- msgid "Button style"
221
- msgstr ""
222
-
223
- #: ../cookie-notice.php:293
224
- msgid "Colors"
225
- msgstr ""
226
-
227
- #: ../cookie-notice.php:307
228
- msgid "Enable if you want all plugin data to be deleted on deactivation."
229
- msgstr ""
230
-
231
- #: ../cookie-notice.php:317
232
- msgid "Enter the cookie notice message."
233
- msgstr ""
234
-
235
- #: ../cookie-notice.php:328
236
- msgid ""
237
- "The text of the option to accept the usage of the cookies and make the "
238
- "notification disappear."
239
- msgstr ""
240
-
241
- #: ../cookie-notice.php:338
242
- msgid ""
243
- "Give to the user the possibility to refuse third party non functional "
244
- "cookies."
245
- msgstr ""
246
-
247
- #: ../cookie-notice.php:343
248
- msgid ""
249
- "The text of the option to refuse the usage of the cookies. To get the "
250
- "cookie notice status use <code>cn_cookies_accepted()</code> function."
251
- msgstr ""
252
-
253
- #: ../cookie-notice.php:348
254
- msgid ""
255
- "Enter non functional cookies Javascript code here (for e.g. Google "
256
- "Analitycs). It will be used after cookies are accepted."
257
- msgstr ""
258
-
259
- #: ../cookie-notice.php:361
260
- msgid "Enable Read more link."
261
- msgstr ""
262
-
263
- #: ../cookie-notice.php:366
264
- msgid "The text of the more info button."
265
- msgstr ""
266
-
267
- #: ../cookie-notice.php:378
268
- msgid "Select where to redirect user for more information about cookies."
269
- msgstr ""
270
-
271
- #: ../cookie-notice.php:381
272
- msgid "-- select page --"
273
- msgstr ""
274
-
275
- #: ../cookie-notice.php:390
276
- msgid "Select from one of your site's pages"
277
- msgstr ""
278
-
279
- #: ../cookie-notice.php:394
280
- msgid "Enter the full URL starting with http://"
281
- msgstr ""
282
-
283
- #: ../cookie-notice.php:414
284
- msgid "Select the link target for more info page."
285
- msgstr ""
286
-
287
- #: ../cookie-notice.php:434
288
- msgid "The ammount of time that cookie should be stored for."
289
- msgstr ""
290
-
291
- #: ../cookie-notice.php:448
292
- msgid "Select where all the plugin scripts should be placed."
293
- msgstr ""
294
-
295
- #: ../cookie-notice.php:466
296
- msgid "Select location for your cookie notice."
297
- msgstr ""
298
-
299
- #: ../cookie-notice.php:485
300
- msgid "Cookie notice acceptance animation."
301
- msgstr ""
302
-
303
- #: ../cookie-notice.php:495
304
- msgid "Enable cookie notice acceptance when users scroll."
305
- msgstr ""
306
-
307
- #: ../cookie-notice.php:499
308
- msgid ""
309
- "Number of pixels user has to scroll to accept the usage of the cookies and "
310
- "make the notification disappear."
311
- msgstr ""
312
-
313
- #: ../cookie-notice.php:519
314
- msgid "Choose buttons style."
315
- msgstr ""
316
-
317
- #: ../cookie-notice.php:610
318
- msgid "Settings restored to defaults."
319
- msgstr ""
320
-
321
- #: ../cookie-notice.php:693
322
- msgid "Support"
323
- msgstr ""
324
-
325
- #: ../cookie-notice.php:708
326
- msgid "Settings"
327
- msgstr ""
328
-
329
- #: ../cookie-notice.php:742
330
- msgid "Are you sure you want to reset these settings to defaults?"
331
- msgstr ""
1
+ #, fuzzy
2
+ msgid ""
3
+ msgstr ""
4
+ "Project-Id-Version: Cookie Notice\n"
5
+ "POT-Creation-Date: 2016-12-07 10:49+0100\n"
6
+ "PO-Revision-Date: 2015-03-24 11:30+0100\n"
7
+ "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
+ "Language-Team: dFactory <info@dfactory.eu>\n"
9
+ "Language: en\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8.11\n"
14
+ "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;_n\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
+
19
+ #: ../cookie-notice.php:126
20
+ msgid "Top"
21
+ msgstr ""
22
+
23
+ #: ../cookie-notice.php:127
24
+ msgid "Bottom"
25
+ msgstr ""
26
+
27
+ #: ../cookie-notice.php:131 ../cookie-notice.php:162
28
+ msgid "None"
29
+ msgstr ""
30
+
31
+ #: ../cookie-notice.php:132
32
+ msgid "WordPress"
33
+ msgstr ""
34
+
35
+ #: ../cookie-notice.php:133
36
+ msgid "Bootstrap"
37
+ msgstr ""
38
+
39
+ #: ../cookie-notice.php:137
40
+ msgid "Custom link"
41
+ msgstr ""
42
+
43
+ #: ../cookie-notice.php:138
44
+ msgid "Page link"
45
+ msgstr ""
46
+
47
+ #: ../cookie-notice.php:147
48
+ msgid "Text color"
49
+ msgstr ""
50
+
51
+ #: ../cookie-notice.php:148
52
+ msgid "Bar color"
53
+ msgstr ""
54
+
55
+ #: ../cookie-notice.php:152
56
+ msgid "1 day"
57
+ msgstr ""
58
+
59
+ #: ../cookie-notice.php:153
60
+ msgid "1 week"
61
+ msgstr ""
62
+
63
+ #: ../cookie-notice.php:154
64
+ msgid "1 month"
65
+ msgstr ""
66
+
67
+ #: ../cookie-notice.php:155
68
+ msgid "3 months"
69
+ msgstr ""
70
+
71
+ #: ../cookie-notice.php:156
72
+ msgid "6 months"
73
+ msgstr ""
74
+
75
+ #: ../cookie-notice.php:157
76
+ msgid "1 year"
77
+ msgstr ""
78
+
79
+ #: ../cookie-notice.php:158
80
+ msgid "infinity"
81
+ msgstr ""
82
+
83
+ #: ../cookie-notice.php:163
84
+ msgid "Fade"
85
+ msgstr ""
86
+
87
+ #: ../cookie-notice.php:164
88
+ msgid "Slide"
89
+ msgstr ""
90
+
91
+ #: ../cookie-notice.php:168
92
+ msgid "Header"
93
+ msgstr ""
94
+
95
+ #: ../cookie-notice.php:169
96
+ msgid "Footer"
97
+ msgstr ""
98
+
99
+ #: ../cookie-notice.php:175
100
+ msgid "We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it."
101
+ msgstr ""
102
+
103
+ #: ../cookie-notice.php:176
104
+ msgid "Ok"
105
+ msgstr ""
106
+
107
+ #: ../cookie-notice.php:177
108
+ msgid "No"
109
+ msgstr ""
110
+
111
+ #: ../cookie-notice.php:178
112
+ msgid "Read more"
113
+ msgstr ""
114
+
115
+ #: ../cookie-notice.php:238 ../cookie-notice.php:250 ../cookie-notice.php:253
116
+ msgid "Cookie Notice"
117
+ msgstr ""
118
+
119
+ #: ../cookie-notice.php:255
120
+ msgid "Need support?"
121
+ msgstr ""
122
+
123
+ #: ../cookie-notice.php:256
124
+ msgid "If you are having problems with this plugin, please talk about them in the"
125
+ msgstr ""
126
+
127
+ #: ../cookie-notice.php:256
128
+ msgid "Support forum"
129
+ msgstr ""
130
+
131
+ #: ../cookie-notice.php:258
132
+ msgid "Do you like this plugin?"
133
+ msgstr ""
134
+
135
+ #: ../cookie-notice.php:259
136
+ msgid "Rate it 5"
137
+ msgstr ""
138
+
139
+ #: ../cookie-notice.php:259
140
+ msgid "on WordPress.org"
141
+ msgstr ""
142
+
143
+ #: ../cookie-notice.php:260
144
+ msgid "Blog about it & link to the"
145
+ msgstr ""
146
+
147
+ #: ../cookie-notice.php:260
148
+ msgid "plugin page"
149
+ msgstr ""
150
+
151
+ #: ../cookie-notice.php:261
152
+ msgid "Check out our other"
153
+ msgstr ""
154
+
155
+ #: ../cookie-notice.php:261
156
+ msgid "WordPress plugins"
157
+ msgstr ""
158
+
159
+ #: ../cookie-notice.php:276
160
+ msgid "Reset to defaults"
161
+ msgstr ""
162
+
163
+ #: ../cookie-notice.php:292
164
+ msgid "Configuration"
165
+ msgstr ""
166
+
167
+ #: ../cookie-notice.php:293
168
+ msgid "Message"
169
+ msgstr ""
170
+
171
+ #: ../cookie-notice.php:294
172
+ msgid "Button text"
173
+ msgstr ""
174
+
175
+ #: ../cookie-notice.php:295
176
+ msgid "More info link"
177
+ msgstr ""
178
+
179
+ #: ../cookie-notice.php:296
180
+ msgid "Link target"
181
+ msgstr ""
182
+
183
+ #: ../cookie-notice.php:297
184
+ msgid "Refuse button"
185
+ msgstr ""
186
+
187
+ #: ../cookie-notice.php:298
188
+ msgid "On scroll"
189
+ msgstr ""
190
+
191
+ #: ../cookie-notice.php:299
192
+ msgid "Cookie expiry"
193
+ msgstr ""
194
+
195
+ #: ../cookie-notice.php:300
196
+ msgid "Script placement"
197
+ msgstr ""
198
+
199
+ #: ../cookie-notice.php:301
200
+ msgid "Deactivation"
201
+ msgstr ""
202
+
203
+ #: ../cookie-notice.php:304
204
+ msgid "Design"
205
+ msgstr ""
206
+
207
+ #: ../cookie-notice.php:305
208
+ msgid "Position"
209
+ msgstr ""
210
+
211
+ #: ../cookie-notice.php:306
212
+ msgid "Animation"
213
+ msgstr ""
214
+
215
+ #: ../cookie-notice.php:307
216
+ msgid "Button style"
217
+ msgstr ""
218
+
219
+ #: ../cookie-notice.php:308
220
+ msgid "Colors"
221
+ msgstr ""
222
+
223
+ #: ../cookie-notice.php:322
224
+ msgid "Enable if you want all plugin data to be deleted on deactivation."
225
+ msgstr ""
226
+
227
+ #: ../cookie-notice.php:332
228
+ msgid "Enter the cookie notice message."
229
+ msgstr ""
230
+
231
+ #: ../cookie-notice.php:343
232
+ msgid "The text of the option to accept the usage of the cookies and make the notification disappear."
233
+ msgstr ""
234
+
235
+ #: ../cookie-notice.php:353
236
+ msgid "Give to the user the possibility to refuse third party non functional cookies."
237
+ msgstr ""
238
+
239
+ #: ../cookie-notice.php:358
240
+ msgid "The text of the option to refuse the usage of the cookies. To get the cookie notice status use <code>cn_cookies_accepted()</code> function."
241
+ msgstr ""
242
+
243
+ #: ../cookie-notice.php:363
244
+ msgid "Enter non functional cookies Javascript code here (for e.g. Google Analitycs). It will be used after cookies are accepted."
245
+ msgstr ""
246
+
247
+ #: ../cookie-notice.php:389
248
+ msgid "Enable Read more link."
249
+ msgstr ""
250
+
251
+ #: ../cookie-notice.php:390
252
+ #, php-format
253
+ msgid "Need a Cookie Policy? Generate one with <a href=\"%s\" target=\"_blank\" title=\"iubenda\">iubenda</a>"
254
+ msgstr ""
255
+
256
+ #: ../cookie-notice.php:396
257
+ msgid "The text of the more info button."
258
+ msgstr ""
259
+
260
+ #: ../cookie-notice.php:410
261
+ msgid "Select where to redirect user for more information about cookies."
262
+ msgstr ""
263
+
264
+ #: ../cookie-notice.php:413
265
+ msgid "-- select page --"
266
+ msgstr ""
267
+
268
+ #: ../cookie-notice.php:424
269
+ msgid "Select from one of your site's pages"
270
+ msgstr ""
271
+
272
+ #: ../cookie-notice.php:428
273
+ msgid "Enter the full URL starting with http://"
274
+ msgstr ""
275
+
276
+ #: ../cookie-notice.php:448
277
+ msgid "Select the link target for more info page."
278
+ msgstr ""
279
+
280
+ #: ../cookie-notice.php:468
281
+ msgid "The ammount of time that cookie should be stored for."
282
+ msgstr ""
283
+
284
+ #: ../cookie-notice.php:482
285
+ msgid "Select where all the plugin scripts should be placed."
286
+ msgstr ""
287
+
288
+ #: ../cookie-notice.php:500
289
+ msgid "Select location for your cookie notice."
290
+ msgstr ""
291
+
292
+ #: ../cookie-notice.php:519
293
+ msgid "Cookie notice acceptance animation."
294
+ msgstr ""
295
+
296
+ #: ../cookie-notice.php:529
297
+ msgid "Enable cookie notice acceptance when users scroll."
298
+ msgstr ""
299
+
300
+ #: ../cookie-notice.php:533
301
+ msgid "Number of pixels user has to scroll to accept the usage of the cookies and make the notification disappear."
302
+ msgstr ""
303
+
304
+ #: ../cookie-notice.php:553
305
+ msgid "Choose buttons style."
306
+ msgstr ""
307
+
308
+ #: ../cookie-notice.php:657
309
+ msgid "Settings restored to defaults."
310
+ msgstr ""
311
+
312
+ #: ../cookie-notice.php:758
313
+ msgid "Support"
314
+ msgstr ""
315
+
316
+ #: ../cookie-notice.php:777
317
+ msgid "Settings"
318
+ msgstr ""
319
+
320
+ #: ../cookie-notice.php:811
321
+ msgid "Are you sure you want to reset these settings to defaults?"
322
+ msgstr ""
323
+
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
  Tags: cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent, Bootstrap
5
  Requires at least: 3.3
6
- Tested up to: 4.6
7
- Stable tag: 1.2.36.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -60,6 +60,10 @@ No questions yet.
60
 
61
  == Changelog ==
62
 
 
 
 
 
63
  = 1.2.36.1 =
64
  * Fix: Repository upload issue with 1.2.36
65
 
@@ -211,5 +215,6 @@ Initial release
211
 
212
  == Upgrade Notice ==
213
 
214
- = 1.2.36.1 =
215
- * Fix: Repository upload issue with 1.2.36
 
3
  Donate link: http://www.dfactory.eu/
4
  Tags: cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent, Bootstrap
5
  Requires at least: 3.3
6
+ Tested up to: 4.7
7
+ Stable tag: 1.2.37
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.2.37 =
64
+ * Tweak: Add aria landmark role="banner"
65
+ * Tweak: Extend cn_cookie_notice_args with button class
66
+
67
  = 1.2.36.1 =
68
  * Fix: Repository upload issue with 1.2.36
69
 
215
 
216
  == Upgrade Notice ==
217
 
218
+ = 1.2.37 =
219
+ * Tweak: Add aria landmark role="banner"
220
+ * Tweak: Extend cn_cookie_notice_args with button class