Version Description
- Fix: The text of the revoke button ignored in shortcode
- Fix: Revoke consent button not displayed automatically in top position
- Tweak: Add shortcode parsing for content of [cookies_accepted], thanks to dsturm
Download this release
Release Info
Developer | dfactory |
Plugin | ![]() |
Version | 1.2.44 |
Comparing to | |
See all releases |
Code changes from version 1.2.43 to 1.2.44
- cookie-notice.php +24 -35
- css/front.css +134 -1
- css/front.min.css +1 -1
- includes/functions.php +26 -0
- js/admin.js +3 -3
- js/admin.min.js +1 -1
- js/front.js +32 -50
- js/front.min.js +1 -1
- languages/cookie-notice.pot +94 -102
- readme.txt +13 -8
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 GDPR regulations.
|
5 |
-
Version: 1.2.
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
|
@@ -34,7 +34,7 @@ include_once( plugin_dir_path( __FILE__ ) . 'includes/upgrade.php' );
|
|
34 |
* Cookie Notice class.
|
35 |
*
|
36 |
* @class Cookie_Notice
|
37 |
-
* @version 1.2.
|
38 |
*/
|
39 |
class Cookie_Notice {
|
40 |
|
@@ -77,7 +77,7 @@ class Cookie_Notice {
|
|
77 |
'translate' => true,
|
78 |
'deactivation_delete' => 'no'
|
79 |
),
|
80 |
-
'version' => '1.2.
|
81 |
);
|
82 |
private $positions = array();
|
83 |
private $styles = array();
|
@@ -121,6 +121,9 @@ class Cookie_Notice {
|
|
121 |
add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
|
122 |
add_filter( 'plugin_action_links', array( $this, 'plugin_action_links' ), 10, 2 );
|
123 |
add_filter( 'body_class', array( $this, 'change_body_class' ) );
|
|
|
|
|
|
|
124 |
}
|
125 |
|
126 |
/**
|
@@ -186,8 +189,8 @@ class Cookie_Notice {
|
|
186 |
$this->options['general']['message_text'] = __( '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.', 'cookie-notice' );
|
187 |
$this->options['general']['accept_text'] = __( 'Ok', 'cookie-notice' );
|
188 |
$this->options['general']['refuse_text'] = __( 'No', 'cookie-notice' );
|
189 |
-
$this->options['general']['revoke_text'] = __( 'Revoke
|
190 |
-
$this->options['general']['see_more_opt']['text'] = __( '
|
191 |
|
192 |
update_option( 'cookie_notice_options', $this->options['general'] );
|
193 |
}
|
@@ -201,7 +204,7 @@ class Cookie_Notice {
|
|
201 |
icl_register_string( 'Cookie Notice', 'Button text', $this->options['general']['accept_text'] );
|
202 |
icl_register_string( 'Cookie Notice', 'Refuse button text', $this->options['general']['refuse_text'] );
|
203 |
icl_register_string( 'Cookie Notice', 'Revoke button text', $this->options['general']['revoke_text'] );
|
204 |
-
icl_register_string( 'Cookie Notice', '
|
205 |
icl_register_string( 'Cookie Notice', 'Custom link', $this->options['general']['see_more_opt']['link'] );
|
206 |
}
|
207 |
}
|
@@ -250,8 +253,12 @@ class Cookie_Notice {
|
|
250 |
if ( $this->cookies_accepted() ) {
|
251 |
$scripts = html_entity_decode( trim( wp_kses( $content, $this->get_allowed_html() ) ) );
|
252 |
|
253 |
-
if ( ! empty( $scripts ) )
|
|
|
|
|
|
|
254 |
return $scripts;
|
|
|
255 |
}
|
256 |
|
257 |
return '';
|
@@ -270,7 +277,7 @@ class Cookie_Notice {
|
|
270 |
|
271 |
// defaults
|
272 |
$defaults = array(
|
273 |
-
'title' =>
|
274 |
'class' => $options['css_class']
|
275 |
);
|
276 |
|
@@ -280,7 +287,7 @@ class Cookie_Notice {
|
|
280 |
// escape class(es)
|
281 |
$args['class'] = esc_attr( $args['class'] );
|
282 |
|
283 |
-
return '<a href="#" class="cn-revoke-cookie cn-button cn-revoke-inline' . ( $options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '' ) . ( $args['class'] !== '' ? ' ' . $args['class'] : '' ) . '">' . esc_html( $args['title'] ) . '</a>';
|
284 |
}
|
285 |
|
286 |
/**
|
@@ -297,7 +304,7 @@ class Cookie_Notice {
|
|
297 |
'Button text' => $this->options['general']['accept_text'],
|
298 |
'Refuse button text' => $this->options['general']['refuse_text'],
|
299 |
'Revoke button text' => $this->options['general']['revoke_text'],
|
300 |
-
'
|
301 |
'Custom link' => $this->options['general']['see_more_opt']['link']
|
302 |
);
|
303 |
|
@@ -521,7 +528,7 @@ class Cookie_Notice {
|
|
521 |
}
|
522 |
|
523 |
/**
|
524 |
-
*
|
525 |
*/
|
526 |
public function cn_see_more() {
|
527 |
$pages = get_pages(
|
@@ -543,7 +550,7 @@ class Cookie_Notice {
|
|
543 |
<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>
|
544 |
<div id="cn_see_more_opt"' . ($this->options['general']['see_more'] === 'no' ? ' style="display: none;"' : '') . '>
|
545 |
<input type="text" class="regular-text" name="cookie_notice_options[see_more_opt][text]" value="' . esc_attr( $this->options['general']['see_more_opt']['text'] ) . '" />
|
546 |
-
<p class="description">' . __( 'The text of the
|
547 |
<div id="cn_see_more_opt_custom_link">';
|
548 |
|
549 |
foreach ( $this->links as $value => $label ) {
|
@@ -828,7 +835,7 @@ class Cookie_Notice {
|
|
828 |
// deactivation
|
829 |
$input['deactivation_delete'] = (bool) isset( $input['deactivation_delete'] ) ? 'yes' : 'no';
|
830 |
|
831 |
-
//
|
832 |
$input['see_more'] = (bool) isset( $input['see_more'] ) ? 'yes' : 'no';
|
833 |
$input['see_more_opt']['text'] = sanitize_text_field( isset( $input['see_more_opt']['text'] ) && $input['see_more_opt']['text'] !== '' ? $input['see_more_opt']['text'] : $this->defaults['general']['see_more_opt']['text'] );
|
834 |
$input['see_more_opt']['link_type'] = sanitize_text_field( isset( $input['see_more_opt']['link_type'] ) && in_array( $input['see_more_opt']['link_type'], array_keys( $this->links ) ) ? $input['see_more_opt']['link_type'] : $this->defaults['general']['see_more_opt']['link_type'] );
|
@@ -851,7 +858,7 @@ class Cookie_Notice {
|
|
851 |
do_action( 'wpml_register_single_string', 'Cookie Notice', 'Button text', $input['accept_text'] );
|
852 |
do_action( 'wpml_register_single_string', 'Cookie Notice', 'Refuse button text', $input['refuse_text'] );
|
853 |
do_action( 'wpml_register_single_string', 'Cookie Notice', 'Revoke button text', $input['revoke_text'] );
|
854 |
-
do_action( 'wpml_register_single_string', 'Cookie Notice', '
|
855 |
|
856 |
if ( $input['see_more_opt']['link_type'] === 'custom' )
|
857 |
do_action( 'wpml_register_single_string', 'Cookie Notice', 'Custom link', $input['see_more_opt']['link'] );
|
@@ -880,7 +887,7 @@ class Cookie_Notice {
|
|
880 |
$this->options['general']['accept_text'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['accept_text'], 'Cookie Notice', 'Button text' );
|
881 |
$this->options['general']['refuse_text'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['refuse_text'], 'Cookie Notice', 'Refuse button text' );
|
882 |
$this->options['general']['revoke_text'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['revoke_text'], 'Cookie Notice', 'Revoke button text' );
|
883 |
-
$this->options['general']['see_more_opt']['text'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['see_more_opt']['text'], 'Cookie Notice', '
|
884 |
$this->options['general']['see_more_opt']['link'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['see_more_opt']['link'], 'Cookie Notice', 'Custom link' );
|
885 |
// WPML and Polylang compatibility
|
886 |
} elseif ( function_exists( 'icl_t' ) ) {
|
@@ -888,7 +895,7 @@ class Cookie_Notice {
|
|
888 |
$this->options['general']['accept_text'] = icl_t( 'Cookie Notice', 'Button text', $this->options['general']['accept_text'] );
|
889 |
$this->options['general']['refuse_text'] = icl_t( 'Cookie Notice', 'Refuse button text', $this->options['general']['refuse_text'] );
|
890 |
$this->options['general']['revoke_text'] = icl_t( 'Cookie Notice', 'Revoke button text', $this->options['general']['revoke_text'] );
|
891 |
-
$this->options['general']['see_more_opt']['text'] = icl_t( 'Cookie Notice', '
|
892 |
$this->options['general']['see_more_opt']['link'] = icl_t( 'Cookie Notice', 'Custom link', $this->options['general']['see_more_opt']['link'] );
|
893 |
}
|
894 |
|
@@ -1023,7 +1030,7 @@ class Cookie_Notice {
|
|
1023 |
),
|
1024 |
'noscript' => array(),
|
1025 |
'style' => array(
|
1026 |
-
'
|
1027 |
),
|
1028 |
'iframe' => array(
|
1029 |
'src' => array(),
|
@@ -1118,22 +1125,4 @@ class Cookie_Notice {
|
|
1118 |
echo $scripts;
|
1119 |
}
|
1120 |
}
|
1121 |
-
}
|
1122 |
-
|
1123 |
-
/**
|
1124 |
-
* Check if cookies are accepted.
|
1125 |
-
*
|
1126 |
-
* @return boolean Whether cookies are accepted
|
1127 |
-
*/
|
1128 |
-
function cn_cookies_accepted() {
|
1129 |
-
return (bool) Cookie_Notice::cookies_accepted();
|
1130 |
-
}
|
1131 |
-
|
1132 |
-
/**
|
1133 |
-
* Check if cookies are set.
|
1134 |
-
*
|
1135 |
-
* @return boolean Whether cookies are set
|
1136 |
-
*/
|
1137 |
-
function cn_cookies_set() {
|
1138 |
-
return (bool) Cookie_Notice::cookies_set();
|
1139 |
}
|
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 GDPR regulations.
|
5 |
+
Version: 1.2.44
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
|
34 |
* Cookie Notice class.
|
35 |
*
|
36 |
* @class Cookie_Notice
|
37 |
+
* @version 1.2.44
|
38 |
*/
|
39 |
class Cookie_Notice {
|
40 |
|
77 |
'translate' => true,
|
78 |
'deactivation_delete' => 'no'
|
79 |
),
|
80 |
+
'version' => '1.2.44'
|
81 |
);
|
82 |
private $positions = array();
|
83 |
private $styles = array();
|
121 |
add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
|
122 |
add_filter( 'plugin_action_links', array( $this, 'plugin_action_links' ), 10, 2 );
|
123 |
add_filter( 'body_class', array( $this, 'change_body_class' ) );
|
124 |
+
|
125 |
+
// load other files
|
126 |
+
include_once( plugin_dir_path( __FILE__ ) . 'includes/functions.php' );
|
127 |
}
|
128 |
|
129 |
/**
|
189 |
$this->options['general']['message_text'] = __( '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.', 'cookie-notice' );
|
190 |
$this->options['general']['accept_text'] = __( 'Ok', 'cookie-notice' );
|
191 |
$this->options['general']['refuse_text'] = __( 'No', 'cookie-notice' );
|
192 |
+
$this->options['general']['revoke_text'] = __( 'Revoke cookies', 'cookie-notice' );
|
193 |
+
$this->options['general']['see_more_opt']['text'] = __( 'Privacy policy', 'cookie-notice' );
|
194 |
|
195 |
update_option( 'cookie_notice_options', $this->options['general'] );
|
196 |
}
|
204 |
icl_register_string( 'Cookie Notice', 'Button text', $this->options['general']['accept_text'] );
|
205 |
icl_register_string( 'Cookie Notice', 'Refuse button text', $this->options['general']['refuse_text'] );
|
206 |
icl_register_string( 'Cookie Notice', 'Revoke button text', $this->options['general']['revoke_text'] );
|
207 |
+
icl_register_string( 'Cookie Notice', 'Privacy policy text', $this->options['general']['see_more_opt']['text'] );
|
208 |
icl_register_string( 'Cookie Notice', 'Custom link', $this->options['general']['see_more_opt']['link'] );
|
209 |
}
|
210 |
}
|
253 |
if ( $this->cookies_accepted() ) {
|
254 |
$scripts = html_entity_decode( trim( wp_kses( $content, $this->get_allowed_html() ) ) );
|
255 |
|
256 |
+
if ( ! empty( $scripts ) ) {
|
257 |
+
if ( preg_match_all( '/' . get_shortcode_regex() . '/', $content ) ) {
|
258 |
+
$scripts = do_shortcode( $scripts );
|
259 |
+
}
|
260 |
return $scripts;
|
261 |
+
}
|
262 |
}
|
263 |
|
264 |
return '';
|
277 |
|
278 |
// defaults
|
279 |
$defaults = array(
|
280 |
+
'title' => $options['revoke_text'],
|
281 |
'class' => $options['css_class']
|
282 |
);
|
283 |
|
287 |
// escape class(es)
|
288 |
$args['class'] = esc_attr( $args['class'] );
|
289 |
|
290 |
+
return '<a href="#" class="cn-revoke-cookie cn-button cn-revoke-inline' . ( $options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '' ) . ( $args['class'] !== '' ? ' ' . $args['class'] : '' ) . '" title="' . esc_html( $args['title'] ) . '">' . esc_html( $args['title'] ) . '</a>';
|
291 |
}
|
292 |
|
293 |
/**
|
304 |
'Button text' => $this->options['general']['accept_text'],
|
305 |
'Refuse button text' => $this->options['general']['refuse_text'],
|
306 |
'Revoke button text' => $this->options['general']['revoke_text'],
|
307 |
+
'Privacy policy text' => $this->options['general']['see_more_opt']['text'],
|
308 |
'Custom link' => $this->options['general']['see_more_opt']['link']
|
309 |
);
|
310 |
|
528 |
}
|
529 |
|
530 |
/**
|
531 |
+
* Privacy policy link option.
|
532 |
*/
|
533 |
public function cn_see_more() {
|
534 |
$pages = get_pages(
|
550 |
<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>
|
551 |
<div id="cn_see_more_opt"' . ($this->options['general']['see_more'] === 'no' ? ' style="display: none;"' : '') . '>
|
552 |
<input type="text" class="regular-text" name="cookie_notice_options[see_more_opt][text]" value="' . esc_attr( $this->options['general']['see_more_opt']['text'] ) . '" />
|
553 |
+
<p class="description">' . __( 'The text of the privacy policy button.', 'cookie-notice' ) . '</p>
|
554 |
<div id="cn_see_more_opt_custom_link">';
|
555 |
|
556 |
foreach ( $this->links as $value => $label ) {
|
835 |
// deactivation
|
836 |
$input['deactivation_delete'] = (bool) isset( $input['deactivation_delete'] ) ? 'yes' : 'no';
|
837 |
|
838 |
+
// privacy policy
|
839 |
$input['see_more'] = (bool) isset( $input['see_more'] ) ? 'yes' : 'no';
|
840 |
$input['see_more_opt']['text'] = sanitize_text_field( isset( $input['see_more_opt']['text'] ) && $input['see_more_opt']['text'] !== '' ? $input['see_more_opt']['text'] : $this->defaults['general']['see_more_opt']['text'] );
|
841 |
$input['see_more_opt']['link_type'] = sanitize_text_field( isset( $input['see_more_opt']['link_type'] ) && in_array( $input['see_more_opt']['link_type'], array_keys( $this->links ) ) ? $input['see_more_opt']['link_type'] : $this->defaults['general']['see_more_opt']['link_type'] );
|
858 |
do_action( 'wpml_register_single_string', 'Cookie Notice', 'Button text', $input['accept_text'] );
|
859 |
do_action( 'wpml_register_single_string', 'Cookie Notice', 'Refuse button text', $input['refuse_text'] );
|
860 |
do_action( 'wpml_register_single_string', 'Cookie Notice', 'Revoke button text', $input['revoke_text'] );
|
861 |
+
do_action( 'wpml_register_single_string', 'Cookie Notice', 'Privacy policy text', $input['see_more_opt']['text'] );
|
862 |
|
863 |
if ( $input['see_more_opt']['link_type'] === 'custom' )
|
864 |
do_action( 'wpml_register_single_string', 'Cookie Notice', 'Custom link', $input['see_more_opt']['link'] );
|
887 |
$this->options['general']['accept_text'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['accept_text'], 'Cookie Notice', 'Button text' );
|
888 |
$this->options['general']['refuse_text'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['refuse_text'], 'Cookie Notice', 'Refuse button text' );
|
889 |
$this->options['general']['revoke_text'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['revoke_text'], 'Cookie Notice', 'Revoke button text' );
|
890 |
+
$this->options['general']['see_more_opt']['text'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['see_more_opt']['text'], 'Cookie Notice', 'Privacy policy text' );
|
891 |
$this->options['general']['see_more_opt']['link'] = apply_filters( 'wpml_translate_single_string', $this->options['general']['see_more_opt']['link'], 'Cookie Notice', 'Custom link' );
|
892 |
// WPML and Polylang compatibility
|
893 |
} elseif ( function_exists( 'icl_t' ) ) {
|
895 |
$this->options['general']['accept_text'] = icl_t( 'Cookie Notice', 'Button text', $this->options['general']['accept_text'] );
|
896 |
$this->options['general']['refuse_text'] = icl_t( 'Cookie Notice', 'Refuse button text', $this->options['general']['refuse_text'] );
|
897 |
$this->options['general']['revoke_text'] = icl_t( 'Cookie Notice', 'Revoke button text', $this->options['general']['revoke_text'] );
|
898 |
+
$this->options['general']['see_more_opt']['text'] = icl_t( 'Cookie Notice', 'Privacy policy text', $this->options['general']['see_more_opt']['text'] );
|
899 |
$this->options['general']['see_more_opt']['link'] = icl_t( 'Cookie Notice', 'Custom link', $this->options['general']['see_more_opt']['link'] );
|
900 |
}
|
901 |
|
1030 |
),
|
1031 |
'noscript' => array(),
|
1032 |
'style' => array(
|
1033 |
+
'type' => array()
|
1034 |
),
|
1035 |
'iframe' => array(
|
1036 |
'src' => array(),
|
1125 |
echo $scripts;
|
1126 |
}
|
1127 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1128 |
}
|
css/front.css
CHANGED
@@ -1 +1,134 @@
|
|
1 |
-
#cookie-notice
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#cookie-notice {
|
2 |
+
display: block;
|
3 |
+
visibility: hidden;
|
4 |
+
position: fixed;
|
5 |
+
min-width: 100%;
|
6 |
+
height: auto;
|
7 |
+
z-index: 100000;
|
8 |
+
font-size: 13px;
|
9 |
+
line-height: 20px;
|
10 |
+
left: 0;
|
11 |
+
text-align: center;
|
12 |
+
}
|
13 |
+
|
14 |
+
.cn-top {
|
15 |
+
top: 0;
|
16 |
+
}
|
17 |
+
|
18 |
+
.cn-bottom {
|
19 |
+
bottom: 0;
|
20 |
+
}
|
21 |
+
|
22 |
+
.cookie-notice-container {
|
23 |
+
padding: 10px;
|
24 |
+
text-align: center;
|
25 |
+
width: 100%;
|
26 |
+
}
|
27 |
+
|
28 |
+
.cookie-notice-revoke-container {
|
29 |
+
position: absolute;
|
30 |
+
bottom: 0;
|
31 |
+
width: 100%;
|
32 |
+
z-index: 1;
|
33 |
+
visibility: hidden;
|
34 |
+
}
|
35 |
+
|
36 |
+
.cn-top .cookie-notice-revoke-container {
|
37 |
+
top: 0;
|
38 |
+
bottom: auto;
|
39 |
+
}
|
40 |
+
|
41 |
+
#cookie-notice .cn-revoke-cookie {
|
42 |
+
margin: 0;
|
43 |
+
}
|
44 |
+
|
45 |
+
.cn-button.wp-default,
|
46 |
+
.cn-button.wp-default:hover,
|
47 |
+
.cn-button.bootstrap,
|
48 |
+
.cn-button.bootstrap:hover {
|
49 |
+
box-shadow: none;
|
50 |
+
text-decoration: none;
|
51 |
+
}
|
52 |
+
|
53 |
+
#cookie-notice .cn-button {
|
54 |
+
margin-left: 10px;
|
55 |
+
}
|
56 |
+
|
57 |
+
.cn-button.wp-default {
|
58 |
+
font-family: sans-serif;
|
59 |
+
line-height: 18px;
|
60 |
+
padding: 2px 12px;
|
61 |
+
background: linear-gradient(to bottom, #FEFEFE, #F4F4F4) repeat scroll 0 0 #F3F3F3;
|
62 |
+
border-color: #BBB;
|
63 |
+
color: #333;
|
64 |
+
text-shadow: 0 1px 0 #FFF;
|
65 |
+
-moz-box-sizing: border-box;
|
66 |
+
border-radius: 3px 3px 3px 3px;
|
67 |
+
border-style: solid;
|
68 |
+
border-width: 1px;
|
69 |
+
cursor: pointer;
|
70 |
+
display: inline-block;
|
71 |
+
font-size: 12px;
|
72 |
+
font-style: normal;
|
73 |
+
text-decoration: none;
|
74 |
+
white-space: nowrap;
|
75 |
+
outline: none;
|
76 |
+
}
|
77 |
+
|
78 |
+
.cn-button.wp-default:hover {
|
79 |
+
background: linear-gradient(to bottom, #FFFFFF, #F3F3F3) repeat scroll 0 0 #F3F3F3;
|
80 |
+
border-color: #999;
|
81 |
+
color: #222;
|
82 |
+
}
|
83 |
+
|
84 |
+
.cn-button.bootstrap {
|
85 |
+
font-family: sans-serif;
|
86 |
+
display: inline-block;
|
87 |
+
*display: inline;
|
88 |
+
padding: 4px 12px;
|
89 |
+
margin-right: .3em;
|
90 |
+
margin-bottom: 0;
|
91 |
+
*margin-left: .3em;
|
92 |
+
line-height: 20px;
|
93 |
+
color: #333;
|
94 |
+
text-align: center;
|
95 |
+
text-shadow: 0 1px 1px rgba(255, 255, 255, .75);
|
96 |
+
font-style: normal;
|
97 |
+
vertical-align: middle;
|
98 |
+
cursor: pointer;
|
99 |
+
color: #fff;
|
100 |
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
|
101 |
+
background-color: #006dcc;
|
102 |
+
*background-color: #04c;
|
103 |
+
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
|
104 |
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
|
105 |
+
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
|
106 |
+
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
|
107 |
+
background-image: linear-gradient(to bottom, #0088cc, #0044cc);
|
108 |
+
background-repeat: repeat-x;
|
109 |
+
border-style: solid;
|
110 |
+
border-width: 1px;
|
111 |
+
border-color: #04c #04c #002a80;
|
112 |
+
border-color: rgba(0, 0, 0, .1) rgba(0, 0, 0, .1) rgba(0, 0, 0, .25);
|
113 |
+
box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 1px 2px rgba(0, 0, 0, .05);
|
114 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
|
115 |
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
116 |
+
padding: 2px 10px;
|
117 |
+
font-size: 12px;
|
118 |
+
text-decoration: none;
|
119 |
+
-webkit-border-radius: 3px;
|
120 |
+
-moz-border-radius: 3px;
|
121 |
+
border-radius: 3px;
|
122 |
+
outline: none;
|
123 |
+
}
|
124 |
+
|
125 |
+
.cn-button.bootstrap:hover {
|
126 |
+
color: #fff;
|
127 |
+
background-color: #04c;
|
128 |
+
*background-color: #003bb3;
|
129 |
+
background-position: 0 -15px;
|
130 |
+
-webkit-transition: background-position 0.1s linear;
|
131 |
+
-moz-transition: background-position 0.1s linear;
|
132 |
+
-o-transition: background-position 0.1s linear;
|
133 |
+
transition: background-position 0.1s linear;
|
134 |
+
}
|
css/front.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#cookie-notice
|
1 |
+
#cookie-notice{display:block;visibility:hidden;position:fixed;min-width:100%;height:auto;z-index:100000;font-size:13px;line-height:20px;left:0;text-align:center}.cn-top{top:0}.cn-bottom{bottom:0}.cookie-notice-container{padding:10px;text-align:center;width:100%}.cookie-notice-revoke-container{position:absolute;bottom:0;width:100%;z-index:1;visibility:hidden}.cn-top .cookie-notice-revoke-container{top:0;bottom:auto}#cookie-notice .cn-revoke-cookie{margin:0}.cn-button.wp-default,.cn-button.wp-default:hover,.cn-button.bootstrap,.cn-button.bootstrap:hover{box-shadow:none;text-decoration:none}#cookie-notice .cn-button{margin-left:10px}.cn-button.wp-default{font-family:sans-serif;line-height:18px;padding:2px 12px;background:linear-gradient(to bottom,#FEFEFE,#F4F4F4) repeat scroll 0 0 #F3F3F3;border-color:#BBB;color:#333;text-shadow:0 1px 0 #FFF;-moz-box-sizing:border-box;border-radius:3px 3px 3px 3px;border-style:solid;border-width:1px;cursor:pointer;display:inline-block;font-size:12px;font-style:normal;text-decoration:none;white-space:nowrap;outline:none}.cn-button.wp-default:hover{background:linear-gradient(to bottom,#FFFFFF,#F3F3F3) repeat scroll 0 0 #F3F3F3;border-color:#999;color:#222}.cn-button.bootstrap{font-family:sans-serif;display:inline-block;*display:inline;padding:4px 12px;margin-right:.3em;margin-bottom:0;*margin-left:.3em;line-height:20px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,.75);font-style:normal;vertical-align:middle;cursor:pointer;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;*background-color:#04c;background-image:-moz-linear-gradient(top,#0088cc,#0044cc);background-image:-webkit-gradient(linear,0 0,0 100%,from(#0088cc),to(#0044cc));background-image:-webkit-linear-gradient(top,#0088cc,#0044cc);background-image:-o-linear-gradient(top,#0088cc,#0044cc);background-image:linear-gradient(to bottom,#0088cc,#0044cc);background-repeat:repeat-x;border-style:solid;border-width:1px;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 1px 2px rgba(0,0,0,.05);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);padding:2px 10px;font-size:12px;text-decoration:none;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;outline:none}.cn-button.bootstrap:hover{color:#fff;background-color:#04c;*background-color:#003bb3;background-position:0 -15px;-webkit-transition:background-position 0.1s linear;-moz-transition:background-position 0.1s linear;-o-transition:background-position 0.1s linear;transition:background-position 0.1s linear}
|
includes/functions.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// exit if accessed directly
|
3 |
+
if ( ! defined( 'ABSPATH' ) )
|
4 |
+
exit;
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Check if cookies are accepted.
|
8 |
+
*
|
9 |
+
* @return boolean Whether cookies are accepted
|
10 |
+
*/
|
11 |
+
if ( ! function_exists( 'cn_cookies_accepted' ) ) {
|
12 |
+
function cn_cookies_accepted() {
|
13 |
+
return (bool) Cookie_Notice::cookies_accepted();
|
14 |
+
}
|
15 |
+
}
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Check if cookies are set.
|
19 |
+
*
|
20 |
+
* @return boolean Whether cookies are set
|
21 |
+
*/
|
22 |
+
if ( ! function_exists( 'cn_cookies_set' ) ) {
|
23 |
+
function cn_cookies_set() {
|
24 |
+
return (bool) Cookie_Notice::cookies_set();
|
25 |
+
}
|
26 |
+
}
|
js/admin.js
CHANGED
@@ -22,7 +22,7 @@
|
|
22 |
}
|
23 |
} );
|
24 |
|
25 |
-
//
|
26 |
$( '#cn_see_more' ).change( function () {
|
27 |
if ( $( this ).is( ':checked' ) ) {
|
28 |
$( '#cn_see_more_opt' ).slideDown( 'fast' );
|
@@ -31,7 +31,7 @@
|
|
31 |
}
|
32 |
} );
|
33 |
|
34 |
-
//
|
35 |
$( '#cn_on_scroll' ).change( function () {
|
36 |
if ( $( this ).is( ':checked' ) ) {
|
37 |
$( '#cn_on_scroll_offset' ).slideDown( 'fast' );
|
@@ -40,7 +40,7 @@
|
|
40 |
}
|
41 |
} );
|
42 |
|
43 |
-
//
|
44 |
$( '#cn_see_more_link-custom, #cn_see_more_link-page' ).change( function () {
|
45 |
if ( $( '#cn_see_more_link-custom:checked' ).val() === 'custom' ) {
|
46 |
$( '#cn_see_more_opt_page' ).slideUp( 'fast', function () {
|
22 |
}
|
23 |
} );
|
24 |
|
25 |
+
// privacy policy option
|
26 |
$( '#cn_see_more' ).change( function () {
|
27 |
if ( $( this ).is( ':checked' ) ) {
|
28 |
$( '#cn_see_more_opt' ).slideDown( 'fast' );
|
31 |
}
|
32 |
} );
|
33 |
|
34 |
+
// privacy policy option
|
35 |
$( '#cn_on_scroll' ).change( function () {
|
36 |
if ( $( this ).is( ':checked' ) ) {
|
37 |
$( '#cn_on_scroll_offset' ).slideDown( 'fast' );
|
40 |
}
|
41 |
} );
|
42 |
|
43 |
+
// privacy policy link
|
44 |
$( '#cn_see_more_link-custom, #cn_see_more_link-page' ).change( function () {
|
45 |
if ( $( '#cn_see_more_link-custom:checked' ).val() === 'custom' ) {
|
46 |
$( '#cn_see_more_opt_page' ).slideUp( 'fast', function () {
|
js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(c){c(document).ready(function(){c(".cn_color").wpColorPicker(),c("#cn_refuse_opt").change(function(){c(this).is(":checked")?c("#cn_refuse_opt_container").slideDown("fast"):c("#cn_refuse_opt_container").slideUp("fast")}),c("#cn_revoke_cookies").change(function(){c(this).is(":checked")?c("#cn_revoke_opt_container").slideDown("fast"):c("#cn_revoke_opt_container").slideUp("fast")}),c("#cn_see_more").change(function(){c(this).is(":checked")?c("#cn_see_more_opt").slideDown("fast"):c("#cn_see_more_opt").slideUp("fast")}),c("#cn_on_scroll").change(function(){c(this).is(":checked")?c("#cn_on_scroll_offset").slideDown("fast"):c("#cn_on_scroll_offset").slideUp("fast")}),c("#cn_see_more_link-custom, #cn_see_more_link-page").change(function(){"custom"===c("#cn_see_more_link-custom:checked").val()?c("#cn_see_more_opt_page").slideUp("fast",function(){c("#cn_see_more_opt_link").slideDown("fast")}):"page"===c("#cn_see_more_link-page:checked").val()&&c("#cn_see_more_opt_link").slideUp("fast",function(){c("#cn_see_more_opt_page").slideDown("fast")})}),c("#cn_refuse_code_fields").find("a").click(function(e){e.preventDefault(),c("#cn_refuse_code_fields").find("a").removeClass("nav-tab-active"),c(".refuse-code-tab").removeClass("active");var n=c(this).attr("id").replace("-tab","");c("#"+n).addClass("active"),c(this).addClass("nav-tab-active")})}),c(document).on("click","input#reset_cookie_notice_options",function(){return confirm(cnArgs.resetToDefaults)})}(jQuery);
|
js/front.js
CHANGED
@@ -167,78 +167,70 @@
|
|
167 |
data: cnArgs
|
168 |
} );
|
169 |
|
|
|
|
|
170 |
switch ( type ) {
|
171 |
case 0:
|
172 |
if ( cnArgs.hideEffect === 'fade' ) {
|
173 |
// show cookie notice
|
174 |
-
|
175 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
176 |
// show cookie notice
|
177 |
-
|
178 |
} else {
|
179 |
// show cookie notice
|
180 |
-
|
181 |
}
|
182 |
break;
|
183 |
|
184 |
case 1:
|
185 |
-
var notice = this;
|
186 |
-
|
187 |
if ( cnArgs.hideEffect === 'fade' ) {
|
188 |
// hide revoke button
|
189 |
-
|
190 |
// show cookie notice
|
191 |
-
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn(
|
192 |
} );
|
193 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
194 |
// hide revoke button
|
195 |
-
|
196 |
// show cookie notice
|
197 |
-
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown(
|
198 |
} );
|
199 |
} else {
|
200 |
// hide revoke button
|
201 |
-
|
202 |
-
|
203 |
-
// show cookie notice
|
204 |
-
notice.css( { 'visibility': 'visible', 'display': 'block' } );
|
205 |
}
|
206 |
break;
|
207 |
|
208 |
case 2:
|
209 |
if ( cnArgs.hideEffect === 'fade' ) {
|
210 |
// show cookie notice
|
211 |
-
|
212 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
213 |
// show cookie notice
|
214 |
-
|
215 |
} else {
|
216 |
// show cookie notice
|
217 |
-
|
218 |
}
|
219 |
break;
|
220 |
|
221 |
case 3:
|
222 |
-
var notice = this;
|
223 |
-
|
224 |
if ( cnArgs.hideEffect === 'fade' ) {
|
225 |
// hide revoke button
|
226 |
-
|
227 |
// show cookie notice
|
228 |
-
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn(
|
229 |
} );
|
230 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
231 |
// hide revoke button
|
232 |
-
|
233 |
// show cookie notice
|
234 |
-
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown(
|
235 |
} );
|
236 |
} else {
|
237 |
// hide revoke button
|
238 |
-
|
239 |
-
|
240 |
-
// show cookie notice
|
241 |
-
notice.css( { 'visibility': 'visible', 'display': 'block' } );
|
242 |
}
|
243 |
break;
|
244 |
}
|
@@ -252,55 +244,45 @@
|
|
252 |
value: type,
|
253 |
data: cnArgs
|
254 |
} );
|
|
|
|
|
|
|
255 |
|
256 |
switch ( type ) {
|
257 |
case 0:
|
258 |
if ( cnArgs.hideEffect === 'fade' ) {
|
259 |
-
|
260 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
261 |
-
|
262 |
} else {
|
263 |
-
|
264 |
}
|
265 |
break;
|
266 |
|
267 |
case 1:
|
268 |
-
this.css( { 'visibility': 'hidden', 'display': 'block' } );
|
269 |
-
|
270 |
if ( cnArgs.hideEffect === 'fade' ) {
|
271 |
-
|
272 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
273 |
-
|
274 |
} else {
|
275 |
-
|
276 |
}
|
277 |
break;
|
278 |
|
279 |
case 2:
|
280 |
-
var notice = this;
|
281 |
-
|
282 |
if ( cnArgs.hideEffect === 'fade' ) {
|
283 |
-
|
284 |
-
// hide cookie notice
|
285 |
-
notice.css( { 'visibility': 'hidden', 'display': 'block' } );
|
286 |
-
|
287 |
// show revoke button
|
288 |
-
notice.find( '.cookie-notice-revoke-container' ).fadeIn(
|
289 |
} );
|
290 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
291 |
-
|
292 |
-
// hide cookie notice
|
293 |
-
notice.css( { 'visibility': 'hidden', 'display': 'block' } );
|
294 |
-
|
295 |
// show revoke button
|
296 |
-
notice.find( '.cookie-notice-revoke-container' ).slideDown(
|
297 |
} );
|
298 |
} else {
|
299 |
-
// hide cookie notice
|
300 |
-
this.css( { 'visibility': 'hidden', 'display': 'block' } );
|
301 |
-
|
302 |
// show revoke button
|
303 |
-
notice.find( '.cookie-notice-revoke-container' ).css( { 'visibility': 'visible', 'display': 'block' } );
|
304 |
}
|
305 |
break;
|
306 |
}
|
167 |
data: cnArgs
|
168 |
} );
|
169 |
|
170 |
+
var notice = this;
|
171 |
+
|
172 |
switch ( type ) {
|
173 |
case 0:
|
174 |
if ( cnArgs.hideEffect === 'fade' ) {
|
175 |
// show cookie notice
|
176 |
+
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn( 400 );
|
177 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
178 |
// show cookie notice
|
179 |
+
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown( 400 );
|
180 |
} else {
|
181 |
// show cookie notice
|
182 |
+
notice.css( { 'visibility': 'visible' } ).show();
|
183 |
}
|
184 |
break;
|
185 |
|
186 |
case 1:
|
|
|
|
|
187 |
if ( cnArgs.hideEffect === 'fade' ) {
|
188 |
// hide revoke button
|
189 |
+
notice.find( '.cookie-notice-revoke-container' ).fadeOut( 400, function () {
|
190 |
// show cookie notice
|
191 |
+
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn( 400 );
|
192 |
} );
|
193 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
194 |
// hide revoke button
|
195 |
+
notice.find( '.cookie-notice-revoke-container' ).slideUp( 400, function () {
|
196 |
// show cookie notice
|
197 |
+
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown( 400 );
|
198 |
} );
|
199 |
} else {
|
200 |
// hide revoke button
|
201 |
+
notice.css( { 'visibility': 'visible' } ).find( '.cookie-notice-revoke-container' ).hide();
|
|
|
|
|
|
|
202 |
}
|
203 |
break;
|
204 |
|
205 |
case 2:
|
206 |
if ( cnArgs.hideEffect === 'fade' ) {
|
207 |
// show cookie notice
|
208 |
+
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn( 400 );
|
209 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
210 |
// show cookie notice
|
211 |
+
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown( 400 );
|
212 |
} else {
|
213 |
// show cookie notice
|
214 |
+
notice.css( { 'visibility': 'visible' } );
|
215 |
}
|
216 |
break;
|
217 |
|
218 |
case 3:
|
|
|
|
|
219 |
if ( cnArgs.hideEffect === 'fade' ) {
|
220 |
// hide revoke button
|
221 |
+
notice.find( '.cookie-notice-revoke-container' ).fadeOut( 400, function () {
|
222 |
// show cookie notice
|
223 |
+
notice.css( { 'visibility': 'visible', 'display': 'none' } ).fadeIn( 400 );
|
224 |
} );
|
225 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
226 |
// hide revoke button
|
227 |
+
notice.find( '.cookie-notice-revoke-container' ).slideUp( 400, function () {
|
228 |
// show cookie notice
|
229 |
+
notice.css( { 'visibility': 'visible', 'display': 'none' } ).slideDown( 400 );
|
230 |
} );
|
231 |
} else {
|
232 |
// hide revoke button
|
233 |
+
notice.css( { 'visibility': 'visible' } ).find( '.cookie-notice-revoke-container' ).hide();
|
|
|
|
|
|
|
234 |
}
|
235 |
break;
|
236 |
}
|
244 |
value: type,
|
245 |
data: cnArgs
|
246 |
} );
|
247 |
+
|
248 |
+
var notice = this,
|
249 |
+
display = this.css( 'display' );
|
250 |
|
251 |
switch ( type ) {
|
252 |
case 0:
|
253 |
if ( cnArgs.hideEffect === 'fade' ) {
|
254 |
+
notice.fadeOut( 400 );
|
255 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
256 |
+
notice.slideUp( 400 );
|
257 |
} else {
|
258 |
+
notice.css( { 'visibility': 'hidden' } );
|
259 |
}
|
260 |
break;
|
261 |
|
262 |
case 1:
|
|
|
|
|
263 |
if ( cnArgs.hideEffect === 'fade' ) {
|
264 |
+
notice.find( '.cookie-notice-revoke-container' ).hide().fadeIn( 400 ).css( { 'visibility': 'visible', 'display': 'block' } );
|
265 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
266 |
+
notice.find( '.cookie-notice-revoke-container' ).hide().slideDown( 400 ).css( { 'visibility': 'visible', 'display': 'block' } );
|
267 |
} else {
|
268 |
+
notice.find( '.cookie-notice-revoke-container' ).css( { 'visibility': 'visible', 'display': 'block' } );
|
269 |
}
|
270 |
break;
|
271 |
|
272 |
case 2:
|
|
|
|
|
273 |
if ( cnArgs.hideEffect === 'fade' ) {
|
274 |
+
notice.fadeOut( 400, function () {
|
|
|
|
|
|
|
275 |
// show revoke button
|
276 |
+
notice.css( { 'visibility': 'hidden', 'display': display } ).find( '.cookie-notice-revoke-container' ).hide().fadeIn( 400 ).css( { 'visibility': 'visible', 'display': 'block' } );
|
277 |
} );
|
278 |
} else if ( cnArgs.hideEffect === 'slide' ) {
|
279 |
+
notice.slideUp( 400, function () {
|
|
|
|
|
|
|
280 |
// show revoke button
|
281 |
+
notice.css( { 'visibility': 'hidden', 'display': display } ).find( '.cookie-notice-revoke-container' ).hide().slideDown( 400 ).css( { 'visibility': 'visible', 'display': 'block' } );
|
282 |
} );
|
283 |
} else {
|
|
|
|
|
|
|
284 |
// show revoke button
|
285 |
+
notice.css( { 'visibility': 'hidden' } ).find( '.cookie-notice-revoke-container' ).css( { 'visibility': 'visible', 'display': 'block' } );
|
286 |
}
|
287 |
break;
|
288 |
}
|
js/front.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(t){function d(e){var i=t(this);i.scrollTop()>parseInt(cnArgs.onScrollOffset)&&(i.setCookieNotice("accept"),i.off("scroll",d))}t(document).ready(function(){var s=t("#cookie-notice"),c=t.fn.getCookieNotice();t(document).on("click",".cn-set-cookie",function(e){e.preventDefault(),t(this).setCookieNotice(t(this).data("cookie-set"))}),t(document).on("click",".cn-revoke-cookie",function(e){if(e.preventDefault(),"yes"===cnArgs.refuse){var i=t(this);if("yes"===cnArgs.onScroll&&t(window).on("scroll",d),"1"===cnArgs.revoke_cookies){if(i.hasClass("cn-revoke-inline")){var o=t("body");o.hasClass("cookies-revoke")||o.hasClass("cookies-not-set")||("automatic"===cnArgs.revoke_cookies_opt?s.showCookieNotice(3):s.showCookieNotice(2))}else s.showCookieNotice(1);c=t.fn.getCookieNotice(),t.fn.setCookieNoticeBodyClass("cookies-set cookies-revoke "+("true"===c?"cookies-accepted":"cookies-refused"))}}}),void 0===c?("yes"===cnArgs.onScroll&&t(window).on("scroll",d),s.showCookieNotice(0),t.fn.setCookieNoticeBodyClass("cookies-not-set")):"yes"===cnArgs.refuse?"1"===cnArgs.revoke_cookies&&("automatic"===cnArgs.revoke_cookies_opt&&s.hideCookieNotice(1),t.fn.setCookieNoticeBodyClass("cookies-set "+("true"===c?"cookies-accepted":"cookies-refused"))):t.fn.setCookieNoticeBodyClass("cookies-set "+("true"===c?"cookies-accepted":"cookies-refused"))}),t.fn.setCookieNotice=function(e){"yes"===cnArgs.onScroll&&t(window).off("scroll",d);var i=new Date,o=new Date,s=t("#cookie-notice");if(o.setTime(parseInt(i.getTime())+1e3*parseInt(cnArgs.cookieTime)),e="accept"===e?"true":"false",document.cookie=cnArgs.cookieName+"="+e+";expires="+o.toUTCString()+";"+(void 0!==cnArgs.cookieDomain&&""!==cnArgs.cookieDomain?"domain="+cnArgs.cookieDomain+";":"")+(void 0!==cnArgs.cookiePath&&""!==cnArgs.cookiePath?"path="+cnArgs.cookiePath+";":"")+("1"===cnArgs.secure?"secure;":""),t.event.trigger({type:"setCookieNotice",value:e,time:i,expires:o}),t.fn.setCookieNoticeBodyClass("cookies-set "+("true"===e?"cookies-accepted":"cookies-refused")),"yes"===cnArgs.refuse&&"1"===cnArgs.revoke_cookies&&"automatic"===cnArgs.revoke_cookies_opt?s.hideCookieNotice(2):s.hideCookieNotice(0),e&&"1"===cnArgs.redirection){var c=window.location.protocol+"//",n=window.location.host+"/"+window.location.pathname;"1"===cnArgs.cache?(c=c+n.replace("//","/")+(""===window.location.search?"?":window.location.search+"&")+"cn-reloaded=1"+window.location.hash,window.location.href=c):(c=c+n.replace("//","/")+window.location.search+window.location.hash,window.location.reload(!0))}else;},t.fn.setCookieNoticeBodyClass=function(e){t("body").removeClass("cookies-revoke cookies-accepted cookies-refused cookies-set cookies-not-set").addClass(e)},t.fn.getCookieNotice=function(){var e=("; "+document.cookie).split("; cookie_notice_accepted=");return 2===e.length?e.pop().split(";").shift():void 0},t.fn.showCookieNotice=function(e){t.event.trigger({type:"showCookieNotice",value:e,data:cnArgs});var i=this;switch(e){case 0:"fade"===cnArgs.hideEffect?i.css({visibility:"visible",display:"none"}).fadeIn(400):"slide"===cnArgs.hideEffect?i.css({visibility:"visible",display:"none"}).slideDown(400):i.css({visibility:"visible"}).show();break;case 1:"fade"===cnArgs.hideEffect?i.find(".cookie-notice-revoke-container").fadeOut(400,function(){i.css({visibility:"visible",display:"none"}).fadeIn(400)}):"slide"===cnArgs.hideEffect?i.find(".cookie-notice-revoke-container").slideUp(400,function(){i.css({visibility:"visible",display:"none"}).slideDown(400)}):i.css({visibility:"visible"}).find(".cookie-notice-revoke-container").hide();break;case 2:"fade"===cnArgs.hideEffect?i.css({visibility:"visible",display:"none"}).fadeIn(400):"slide"===cnArgs.hideEffect?i.css({visibility:"visible",display:"none"}).slideDown(400):i.css({visibility:"visible"});break;case 3:"fade"===cnArgs.hideEffect?i.find(".cookie-notice-revoke-container").fadeOut(400,function(){i.css({visibility:"visible",display:"none"}).fadeIn(400)}):"slide"===cnArgs.hideEffect?i.find(".cookie-notice-revoke-container").slideUp(400,function(){i.css({visibility:"visible",display:"none"}).slideDown(400)}):i.css({visibility:"visible"}).find(".cookie-notice-revoke-container").hide()}},t.fn.hideCookieNotice=function(e){t.event.trigger({type:"hideCookieNotice",value:e,data:cnArgs});var i=this,o=this.css("display");switch(e){case 0:"fade"===cnArgs.hideEffect?i.fadeOut(400):"slide"===cnArgs.hideEffect?i.slideUp(400):i.css({visibility:"hidden"});break;case 1:"fade"===cnArgs.hideEffect?i.find(".cookie-notice-revoke-container").hide().fadeIn(400).css({visibility:"visible",display:"block"}):"slide"===cnArgs.hideEffect?i.find(".cookie-notice-revoke-container").hide().slideDown(400).css({visibility:"visible",display:"block"}):i.find(".cookie-notice-revoke-container").css({visibility:"visible",display:"block"});break;case 2:"fade"===cnArgs.hideEffect?i.fadeOut(400,function(){i.css({visibility:"hidden",display:o}).find(".cookie-notice-revoke-container").hide().fadeIn(400).css({visibility:"visible",display:"block"})}):"slide"===cnArgs.hideEffect?i.slideUp(400,function(){i.css({visibility:"hidden",display:o}).find(".cookie-notice-revoke-container").hide().slideDown(400).css({visibility:"visible",display:"block"})}):i.css({visibility:"hidden"}).find(".cookie-notice-revoke-container").css({visibility:"visible",display:"block"})}}}(jQuery);
|
languages/cookie-notice.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Cookie Notice\n"
|
5 |
-
"POT-Creation-Date: 2018-
|
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"
|
@@ -10,377 +10,369 @@ msgstr ""
|
|
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 2.0.
|
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:
|
20 |
msgid "Top"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: ../cookie-notice.php:
|
24 |
msgid "Bottom"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: ../cookie-notice.php:
|
28 |
msgid "None"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: ../cookie-notice.php:
|
32 |
msgid "WordPress"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: ../cookie-notice.php:
|
36 |
msgid "Bootstrap"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: ../cookie-notice.php:
|
40 |
msgid "Automatic"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: ../cookie-notice.php:
|
44 |
msgid "Manual"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../cookie-notice.php:
|
48 |
msgid "Page link"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../cookie-notice.php:
|
52 |
msgid "Custom link"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: ../cookie-notice.php:
|
56 |
msgid "Text color"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: ../cookie-notice.php:
|
60 |
msgid "Bar color"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../cookie-notice.php:
|
64 |
msgid "An hour"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: ../cookie-notice.php:
|
68 |
msgid "1 day"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: ../cookie-notice.php:
|
72 |
msgid "1 week"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: ../cookie-notice.php:
|
76 |
msgid "1 month"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: ../cookie-notice.php:
|
80 |
msgid "3 months"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: ../cookie-notice.php:
|
84 |
msgid "6 months"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: ../cookie-notice.php:
|
88 |
msgid "1 year"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: ../cookie-notice.php:
|
92 |
msgid "infinity"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: ../cookie-notice.php:
|
96 |
msgid "Fade"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: ../cookie-notice.php:
|
100 |
msgid "Slide"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: ../cookie-notice.php:
|
104 |
msgid "Header"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: ../cookie-notice.php:
|
108 |
msgid "Footer"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: ../cookie-notice.php:
|
112 |
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."
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: ../cookie-notice.php:
|
116 |
msgid "Ok"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: ../cookie-notice.php:
|
120 |
msgid "No"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: ../cookie-notice.php:
|
124 |
-
msgid "Revoke
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: ../cookie-notice.php:
|
128 |
-
msgid "
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: ../cookie-notice.php:
|
132 |
msgid "Cookie Notice"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: ../cookie-notice.php:
|
136 |
msgid "Need support?"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: ../cookie-notice.php:
|
140 |
#, php-format
|
141 |
msgid "If you are having problems with this plugin, please browse it's <a href=\"%s\" target=\"_blank\">Documentation</a> or talk about them in the <a href=\"%s\" target=\"_blank\">Support forum</a>"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: ../cookie-notice.php:
|
145 |
msgid "Do you like this plugin?"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: ../cookie-notice.php:
|
149 |
#, php-format
|
150 |
msgid "<a href=\"%s\" target=\"_blank\">Rate it 5</a> on WordPress.org"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: ../cookie-notice.php:
|
154 |
#, php-format
|
155 |
msgid "Blog about it & link to the <a href=\"%s\" target=\"_blank\">plugin page</a>."
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: ../cookie-notice.php:
|
159 |
#, php-format
|
160 |
msgid "Check out our other <a href=\"%s\" target=\"_blank\">WordPress plugins</a>."
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: ../cookie-notice.php:
|
164 |
msgid "Reset to defaults"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: ../cookie-notice.php:
|
168 |
msgid "Configuration"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: ../cookie-notice.php:
|
172 |
msgid "Message"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: ../cookie-notice.php:
|
176 |
msgid "Button text"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: ../cookie-notice.php:
|
180 |
-
msgid "Privacy policy"
|
181 |
-
msgstr ""
|
182 |
-
|
183 |
-
#: ../cookie-notice.php:385
|
184 |
msgid "Link target"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: ../cookie-notice.php:
|
188 |
msgid "Refuse cookies"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: ../cookie-notice.php:
|
192 |
-
msgid "Revoke cookies"
|
193 |
-
msgstr ""
|
194 |
-
|
195 |
-
#: ../cookie-notice.php:388
|
196 |
msgid "Script blocking"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: ../cookie-notice.php:
|
200 |
msgid "Reloading"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: ../cookie-notice.php:
|
204 |
msgid "On scroll"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: ../cookie-notice.php:
|
208 |
msgid "Cookie expiry"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: ../cookie-notice.php:
|
212 |
msgid "Script placement"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: ../cookie-notice.php:
|
216 |
msgid "Deactivation"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: ../cookie-notice.php:
|
220 |
msgid "Design"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: ../cookie-notice.php:
|
224 |
msgid "Position"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: ../cookie-notice.php:
|
228 |
msgid "Animation"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: ../cookie-notice.php:
|
232 |
msgid "Button style"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: ../cookie-notice.php:
|
236 |
msgid "Button class"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: ../cookie-notice.php:
|
240 |
msgid "Colors"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: ../cookie-notice.php:
|
244 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: ../cookie-notice.php:
|
248 |
msgid "Enter the cookie notice message."
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: ../cookie-notice.php:
|
252 |
msgid "The text of the option to accept the usage of the cookies and make the notification disappear."
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: ../cookie-notice.php:
|
256 |
msgid "Enable to give to the user the possibility to refuse third party non functional cookies."
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: ../cookie-notice.php:
|
260 |
msgid "The text of the button to refuse the usage of the cookies."
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: ../cookie-notice.php:
|
264 |
msgid "Head"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: ../cookie-notice.php:
|
268 |
msgid "Body"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: ../cookie-notice.php:
|
272 |
msgid "The code to be used in your site header, before the closing head tag."
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: ../cookie-notice.php:
|
276 |
msgid "The code to be used in your site footer, before the closing body tag."
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: ../cookie-notice.php:
|
280 |
msgid "Enter non functional cookies Javascript code here (for e.g. Google Analitycs) to be used after cookies are accepted."
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: ../cookie-notice.php:
|
284 |
msgid "To get the cookie notice status use <code>cn_cookies_accepted()</code> function."
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: ../cookie-notice.php:
|
288 |
msgid "Enable to give to the user the possibility to revoke their cookie consent <i>(requires \"Refuse cookies\" option enabled)</i>."
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: ../cookie-notice.php:
|
292 |
msgid "The text of the button to revoke the cookie consent."
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: ../cookie-notice.php:
|
296 |
msgid "Select the method for displaying the revoke button - automatic (in the Cookie Notice container) or manual using <code>[cookies_revoke]</code> shortcode."
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: ../cookie-notice.php:
|
300 |
msgid "Enable to reload the page after cookies are accepted."
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: ../cookie-notice.php:
|
304 |
msgid "Enable privacy policy link."
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: ../cookie-notice.php:
|
308 |
#, php-format
|
309 |
msgid "Need a Cookie Policy? Generate one with <a href=\"%s\" target=\"_blank\" title=\"iubenda\">iubenda</a>."
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: ../cookie-notice.php:
|
313 |
-
msgid "The text of the
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: ../cookie-notice.php:
|
317 |
msgid "Select where to redirect user for more information about cookies."
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: ../cookie-notice.php:
|
321 |
msgid "-- select page --"
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: ../cookie-notice.php:
|
325 |
msgid "Select from one of your site's pages."
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: ../cookie-notice.php:
|
329 |
msgid "Synchronize with WordPress Privacy Policy page."
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: ../cookie-notice.php:
|
333 |
msgid "Enter the full URL starting with http(s)://"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: ../cookie-notice.php:
|
337 |
msgid "Select the privacy policy link target."
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: ../cookie-notice.php:
|
341 |
msgid "The ammount of time that cookie should be stored for."
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: ../cookie-notice.php:
|
345 |
msgid "Select where all the plugin scripts should be placed."
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: ../cookie-notice.php:
|
349 |
msgid "Select location for your cookie notice."
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: ../cookie-notice.php:
|
353 |
msgid "Cookie notice acceptance animation."
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: ../cookie-notice.php:
|
357 |
msgid "Enable cookie notice acceptance when users scroll."
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: ../cookie-notice.php:
|
361 |
msgid "Number of pixels user has to scroll to accept the usage of the cookies and make the notification disappear."
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: ../cookie-notice.php:
|
365 |
msgid "Choose buttons style."
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: ../cookie-notice.php:
|
369 |
msgid "Enter additional button CSS classes separated by spaces."
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: ../cookie-notice.php:
|
373 |
msgid "Settings restored to defaults."
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: ../cookie-notice.php:
|
377 |
msgid "Support"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: ../cookie-notice.php:
|
381 |
msgid "Settings"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: ../cookie-notice.php:
|
385 |
msgid "Are you sure you want to reset these settings to defaults?"
|
386 |
msgstr ""
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Cookie Notice\n"
|
5 |
+
"POT-Creation-Date: 2018-06-11 10:36+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"
|
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 2.0.8\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:134
|
20 |
msgid "Top"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: ../cookie-notice.php:135
|
24 |
msgid "Bottom"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: ../cookie-notice.php:139 ../cookie-notice.php:176
|
28 |
msgid "None"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: ../cookie-notice.php:140
|
32 |
msgid "WordPress"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: ../cookie-notice.php:141
|
36 |
msgid "Bootstrap"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: ../cookie-notice.php:145
|
40 |
msgid "Automatic"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: ../cookie-notice.php:146
|
44 |
msgid "Manual"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../cookie-notice.php:150
|
48 |
msgid "Page link"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../cookie-notice.php:151
|
52 |
msgid "Custom link"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: ../cookie-notice.php:160
|
56 |
msgid "Text color"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: ../cookie-notice.php:161
|
60 |
msgid "Bar color"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../cookie-notice.php:165
|
64 |
msgid "An hour"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: ../cookie-notice.php:166
|
68 |
msgid "1 day"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: ../cookie-notice.php:167
|
72 |
msgid "1 week"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../cookie-notice.php:168
|
76 |
msgid "1 month"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../cookie-notice.php:169
|
80 |
msgid "3 months"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: ../cookie-notice.php:170
|
84 |
msgid "6 months"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: ../cookie-notice.php:171
|
88 |
msgid "1 year"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: ../cookie-notice.php:172
|
92 |
msgid "infinity"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: ../cookie-notice.php:177
|
96 |
msgid "Fade"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: ../cookie-notice.php:178
|
100 |
msgid "Slide"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: ../cookie-notice.php:182
|
104 |
msgid "Header"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: ../cookie-notice.php:183
|
108 |
msgid "Footer"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: ../cookie-notice.php:189
|
112 |
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."
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: ../cookie-notice.php:190
|
116 |
msgid "Ok"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: ../cookie-notice.php:191
|
120 |
msgid "No"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: ../cookie-notice.php:192 ../cookie-notice.php:394
|
124 |
+
msgid "Revoke cookies"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: ../cookie-notice.php:193 ../cookie-notice.php:391
|
128 |
+
msgid "Privacy policy"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: ../cookie-notice.php:335 ../cookie-notice.php:346 ../cookie-notice.php:349
|
132 |
msgid "Cookie Notice"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: ../cookie-notice.php:351
|
136 |
msgid "Need support?"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: ../cookie-notice.php:352
|
140 |
#, php-format
|
141 |
msgid "If you are having problems with this plugin, please browse it's <a href=\"%s\" target=\"_blank\">Documentation</a> or talk about them in the <a href=\"%s\" target=\"_blank\">Support forum</a>"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: ../cookie-notice.php:354
|
145 |
msgid "Do you like this plugin?"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: ../cookie-notice.php:355
|
149 |
#, php-format
|
150 |
msgid "<a href=\"%s\" target=\"_blank\">Rate it 5</a> on WordPress.org"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: ../cookie-notice.php:356
|
154 |
#, php-format
|
155 |
msgid "Blog about it & link to the <a href=\"%s\" target=\"_blank\">plugin page</a>."
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: ../cookie-notice.php:357
|
159 |
#, php-format
|
160 |
msgid "Check out our other <a href=\"%s\" target=\"_blank\">WordPress plugins</a>."
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: ../cookie-notice.php:372
|
164 |
msgid "Reset to defaults"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: ../cookie-notice.php:388
|
168 |
msgid "Configuration"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: ../cookie-notice.php:389
|
172 |
msgid "Message"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: ../cookie-notice.php:390
|
176 |
msgid "Button text"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: ../cookie-notice.php:392
|
|
|
|
|
|
|
|
|
180 |
msgid "Link target"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: ../cookie-notice.php:393
|
184 |
msgid "Refuse cookies"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: ../cookie-notice.php:395
|
|
|
|
|
|
|
|
|
188 |
msgid "Script blocking"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: ../cookie-notice.php:396
|
192 |
msgid "Reloading"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: ../cookie-notice.php:397
|
196 |
msgid "On scroll"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: ../cookie-notice.php:398
|
200 |
msgid "Cookie expiry"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: ../cookie-notice.php:399
|
204 |
msgid "Script placement"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: ../cookie-notice.php:400
|
208 |
msgid "Deactivation"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: ../cookie-notice.php:403
|
212 |
msgid "Design"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: ../cookie-notice.php:404
|
216 |
msgid "Position"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: ../cookie-notice.php:405
|
220 |
msgid "Animation"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: ../cookie-notice.php:406
|
224 |
msgid "Button style"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: ../cookie-notice.php:407
|
228 |
msgid "Button class"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: ../cookie-notice.php:408
|
232 |
msgid "Colors"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: ../cookie-notice.php:423
|
236 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: ../cookie-notice.php:435
|
240 |
msgid "Enter the cookie notice message."
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: ../cookie-notice.php:448
|
244 |
msgid "The text of the option to accept the usage of the cookies and make the notification disappear."
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: ../cookie-notice.php:459
|
248 |
msgid "Enable to give to the user the possibility to refuse third party non functional cookies."
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: ../cookie-notice.php:463
|
252 |
msgid "The text of the button to refuse the usage of the cookies."
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: ../cookie-notice.php:481
|
256 |
msgid "Head"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: ../cookie-notice.php:482
|
260 |
msgid "Body"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: ../cookie-notice.php:485
|
264 |
msgid "The code to be used in your site header, before the closing head tag."
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: ../cookie-notice.php:489
|
268 |
msgid "The code to be used in your site footer, before the closing body tag."
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: ../cookie-notice.php:493
|
272 |
msgid "Enter non functional cookies Javascript code here (for e.g. Google Analitycs) to be used after cookies are accepted."
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: ../cookie-notice.php:493
|
276 |
msgid "To get the cookie notice status use <code>cn_cookies_accepted()</code> function."
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: ../cookie-notice.php:504
|
280 |
msgid "Enable to give to the user the possibility to revoke their cookie consent <i>(requires \"Refuse cookies\" option enabled)</i>."
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: ../cookie-notice.php:507
|
284 |
msgid "The text of the button to revoke the cookie consent."
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: ../cookie-notice.php:515
|
288 |
msgid "Select the method for displaying the revoke button - automatic (in the Cookie Notice container) or manual using <code>[cookies_revoke]</code> shortcode."
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: ../cookie-notice.php:526
|
292 |
msgid "Enable to reload the page after cookies are accepted."
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: ../cookie-notice.php:549
|
296 |
msgid "Enable privacy policy link."
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: ../cookie-notice.php:550
|
300 |
#, php-format
|
301 |
msgid "Need a Cookie Policy? Generate one with <a href=\"%s\" target=\"_blank\" title=\"iubenda\">iubenda</a>."
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: ../cookie-notice.php:553
|
305 |
+
msgid "The text of the privacy policy button."
|
306 |
msgstr ""
|
307 |
|
308 |
+
#: ../cookie-notice.php:565
|
309 |
msgid "Select where to redirect user for more information about cookies."
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: ../cookie-notice.php:568
|
313 |
msgid "-- select page --"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: ../cookie-notice.php:579
|
317 |
msgid "Select from one of your site's pages."
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: ../cookie-notice.php:585
|
321 |
msgid "Synchronize with WordPress Privacy Policy page."
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: ../cookie-notice.php:592
|
325 |
msgid "Enter the full URL starting with http(s)://"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: ../cookie-notice.php:614
|
329 |
msgid "Select the privacy policy link target."
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: ../cookie-notice.php:637
|
333 |
msgid "The ammount of time that cookie should be stored for."
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: ../cookie-notice.php:655
|
337 |
msgid "Select where all the plugin scripts should be placed."
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: ../cookie-notice.php:675
|
341 |
msgid "Select location for your cookie notice."
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: ../cookie-notice.php:696
|
345 |
msgid "Cookie notice acceptance animation."
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: ../cookie-notice.php:707
|
349 |
msgid "Enable cookie notice acceptance when users scroll."
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: ../cookie-notice.php:710
|
353 |
msgid "Number of pixels user has to scroll to accept the usage of the cookies and make the notification disappear."
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: ../cookie-notice.php:731
|
357 |
msgid "Choose buttons style."
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: ../cookie-notice.php:744
|
361 |
msgid "Enter additional button CSS classes separated by spaces."
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: ../cookie-notice.php:870
|
365 |
msgid "Settings restored to defaults."
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: ../cookie-notice.php:976
|
369 |
msgid "Support"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: ../cookie-notice.php:993
|
373 |
msgid "Settings"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: ../cookie-notice.php:1060
|
377 |
msgid "Are you sure you want to reset these settings to defaults?"
|
378 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
-
=== Cookie Notice
|
2 |
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
|
5 |
Requires at least: 3.3
|
|
|
6 |
Tested up to: 4.9.6
|
7 |
-
Stable tag: 1.2.
|
8 |
License: MIT License
|
9 |
License URI: http://opensource.org/licenses/MIT
|
10 |
|
@@ -19,7 +20,7 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
|
|
19 |
= Features include: =
|
20 |
|
21 |
* 100% GDPR compliant
|
22 |
-
* Customizable
|
23 |
* Redirects users to specified page for more cookie information
|
24 |
* Multiple cookie expiry options
|
25 |
* Link to Privacy Policy page
|
@@ -66,6 +67,11 @@ No questions yet.
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
= 1.2.43 =
|
70 |
* New: Option to revoke the user consent
|
71 |
* New: Script blocking extended to header and footer
|
@@ -249,7 +255,6 @@ Initial release
|
|
249 |
|
250 |
== Upgrade Notice ==
|
251 |
|
252 |
-
= 1.2.
|
253 |
-
*
|
254 |
-
*
|
255 |
-
* New: Synchronization with WordPress 4.9.6 Privacy Policy page
|
1 |
+
=== Cookie Notice for GDPR ===
|
2 |
Contributors: dfactory
|
3 |
Donate link: http://www.dfactory.eu/
|
4 |
+
Tags: gdpr, cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent
|
5 |
Requires at least: 3.3
|
6 |
+
Requires PHP: 5.2.4
|
7 |
Tested up to: 4.9.6
|
8 |
+
Stable tag: 1.2.44
|
9 |
License: MIT License
|
10 |
License URI: http://opensource.org/licenses/MIT
|
11 |
|
20 |
= Features include: =
|
21 |
|
22 |
* 100% GDPR compliant
|
23 |
+
* Customizable cookie message
|
24 |
* Redirects users to specified page for more cookie information
|
25 |
* Multiple cookie expiry options
|
26 |
* Link to Privacy Policy page
|
67 |
|
68 |
== Changelog ==
|
69 |
|
70 |
+
= 1.2.44 =
|
71 |
+
* Fix: The text of the revoke button ignored in shortcode
|
72 |
+
* Fix: Revoke consent button not displayed automatically in top position
|
73 |
+
* Tweak: Add shortcode parsing for content of [cookies_accepted], thanks to [dsturm](https://github.com/dsturm)
|
74 |
+
|
75 |
= 1.2.43 =
|
76 |
* New: Option to revoke the user consent
|
77 |
* New: Script blocking extended to header and footer
|
255 |
|
256 |
== Upgrade Notice ==
|
257 |
|
258 |
+
= 1.2.44 =
|
259 |
+
* Fix: The text of the revoke button ignored in shortcode
|
260 |
+
* Fix: Revoke consent button not displayed automatically in top position
|
|