Version Description
- New: Option to refuse to accept cookies
- New: setCookieNotice custom jQuery event
- Tweak: Italian translation updated, thanks to Luca Speranza
Download this release
Release Info
Developer | dfactory |
Plugin | Cookie Notice by dFactory |
Version | 1.2.24 |
Comparing to | |
See all releases |
Code changes from version 1.2.23 to 1.2.24
- cookie-notice.php +203 -163
- includes/update.php +5 -9
- js/admin.js +26 -13
- js/front.js +17 -6
- languages/cookie-notice-it_IT.mo +0 -0
- languages/cookie-notice-it_IT.po +98 -66
- languages/cookie-notice-pl_PL.mo +0 -0
- languages/cookie-notice-pl_PL.po +139 -80
- languages/cookie-notice.pot +104 -76
- readme.txt +23 -9
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.
|
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.
|
38 |
*/
|
39 |
class Cookie_Notice {
|
40 |
|
@@ -42,47 +42,49 @@ class Cookie_Notice {
|
|
42 |
* @var $defaults
|
43 |
*/
|
44 |
private $defaults = array(
|
45 |
-
'general'
|
46 |
-
'position'
|
47 |
-
'message_text'
|
48 |
-
'css_style'
|
49 |
-
'accept_text'
|
50 |
-
'
|
51 |
-
'
|
52 |
-
'
|
53 |
-
'
|
54 |
-
'
|
55 |
-
|
56 |
-
|
|
|
|
|
57 |
),
|
58 |
-
'see_more_opt'
|
59 |
-
'text'
|
60 |
-
'link_type'
|
61 |
-
'id'
|
62 |
-
'link'
|
63 |
),
|
64 |
-
'script_placement'
|
65 |
-
'translate'
|
66 |
-
'deactivation_delete'
|
67 |
),
|
68 |
-
'version'
|
69 |
);
|
70 |
-
private $positions
|
71 |
-
private $styles
|
72 |
-
private $choices
|
73 |
-
private $pages
|
74 |
-
private $links
|
75 |
-
private $link_target
|
76 |
-
private $colors
|
77 |
-
private $options
|
78 |
-
private $effects
|
79 |
-
private $times
|
80 |
-
private $script_placements
|
81 |
|
82 |
/**
|
83 |
* @var $cookie, holds cookie name
|
84 |
*/
|
85 |
-
private $cookie = array(
|
86 |
'name' => 'cookie_notice_accepted',
|
87 |
'value' => 'TRUE'
|
88 |
);
|
@@ -118,24 +120,19 @@ class Cookie_Notice {
|
|
118 |
*/
|
119 |
public function load_defaults() {
|
120 |
$this->positions = array(
|
121 |
-
'top'
|
122 |
-
'bottom'
|
123 |
);
|
124 |
|
125 |
$this->styles = array(
|
126 |
-
'none'
|
127 |
-
'wp-default'
|
128 |
-
'bootstrap'
|
129 |
-
);
|
130 |
-
|
131 |
-
$this->choices = array(
|
132 |
-
'yes' => __( 'Enable', 'cookie-notice' ),
|
133 |
-
'no' => __( 'Disable', 'cookie-notice' )
|
134 |
);
|
135 |
|
136 |
$this->links = array(
|
137 |
-
'custom'
|
138 |
-
'page'
|
139 |
);
|
140 |
|
141 |
$this->link_target = array(
|
@@ -144,41 +141,41 @@ class Cookie_Notice {
|
|
144 |
);
|
145 |
|
146 |
$this->colors = array(
|
147 |
-
'text'
|
148 |
-
'bar'
|
149 |
);
|
150 |
|
151 |
$this->times = array(
|
152 |
-
'day'
|
153 |
-
'week'
|
154 |
-
'month'
|
155 |
-
'3months'
|
156 |
-
'6months'
|
157 |
-
'year'
|
158 |
-
'infinity'
|
159 |
);
|
160 |
|
161 |
$this->effects = array(
|
162 |
-
'none'
|
163 |
-
'fade'
|
164 |
-
'slide'
|
165 |
);
|
166 |
|
167 |
$this->script_placements = array(
|
168 |
-
'header'
|
169 |
-
'footer'
|
170 |
);
|
171 |
|
172 |
$this->pages = get_pages(
|
173 |
array(
|
174 |
-
'sort_order'
|
175 |
-
'sort_column'
|
176 |
-
'hierarchical'
|
177 |
-
'child_of'
|
178 |
-
'parent'
|
179 |
-
'offset'
|
180 |
-
'post_type'
|
181 |
-
'post_status'
|
182 |
)
|
183 |
);
|
184 |
|
@@ -187,6 +184,7 @@ class Cookie_Notice {
|
|
187 |
|
188 |
$this->options['general']['message_text'] = esc_textarea( __( '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' ) );
|
189 |
$this->options['general']['accept_text'] = sanitize_text_field( __( 'Ok', 'cookie-notice' ) );
|
|
|
190 |
$this->options['general']['see_more_opt']['text'] = sanitize_text_field( __( 'Read more', 'cookie-notice' ) );
|
191 |
|
192 |
update_option( 'cookie_notice_options', $this->options['general'] );
|
@@ -196,6 +194,7 @@ class Cookie_Notice {
|
|
196 |
if ( function_exists( 'icl_register_string' ) ) {
|
197 |
icl_register_string( 'Cookie Notice', 'Message in the notice', $this->options['general']['message_text'] );
|
198 |
icl_register_string( 'Cookie Notice', 'Button text', $this->options['general']['accept_text'] );
|
|
|
199 |
icl_register_string( 'Cookie Notice', 'Read more text', $this->options['general']['see_more_opt']['text'] );
|
200 |
icl_register_string( 'Cookie Notice', 'Custom link', $this->options['general']['see_more_opt']['link'] );
|
201 |
}
|
@@ -250,9 +249,14 @@ class Cookie_Notice {
|
|
250 |
|
251 |
settings_fields( 'cookie_notice_options' );
|
252 |
do_settings_sections( 'cookie_notice_options' );
|
253 |
-
|
254 |
-
|
|
|
|
|
|
|
|
|
255 |
echo '
|
|
|
256 |
</form>
|
257 |
</div>
|
258 |
<div class="clear"></div>
|
@@ -269,8 +273,9 @@ class Cookie_Notice {
|
|
269 |
add_settings_section( 'cookie_notice_configuration', __( 'Configuration', 'cookie-notice' ), '', 'cookie_notice_options' );
|
270 |
add_settings_field( 'cn_message_text', __( 'Message', 'cookie-notice' ), array( $this, 'cn_message_text' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
271 |
add_settings_field( 'cn_accept_text', __( 'Button text', 'cookie-notice' ), array( $this, 'cn_accept_text' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
272 |
-
add_settings_field( 'cn_see_more', __( 'More info', 'cookie-notice' ), array( $this, 'cn_see_more' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
273 |
add_settings_field( 'cn_link_target', __( 'Link target', 'cookie-notice' ), array( $this, 'cn_link_target' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
|
|
274 |
add_settings_field( 'cn_time', __( 'Cookie expiry', 'cookie-notice' ), array( $this, 'cn_time' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
275 |
add_settings_field( 'cn_script_placement', __( 'Script placement', 'cookie-notice' ), array( $this, 'cn_script_placement' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
276 |
add_settings_field( 'cn_deactivation_delete', __( 'Deactivation', 'cookie-notice' ), array( $this, 'cn_deactivation_delete' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
@@ -288,19 +293,7 @@ class Cookie_Notice {
|
|
288 |
*/
|
289 |
public function cn_deactivation_delete() {
|
290 |
echo '
|
291 |
-
<
|
292 |
-
<fieldset>';
|
293 |
-
|
294 |
-
foreach ( $this->choices as $val => $trans ) {
|
295 |
-
echo '
|
296 |
-
<input id="cn-deactivation-delete-' . $val . '" type="radio" name="cookie_notice_options[deactivation_delete]" value="' . $val . '" ' . checked( $val, $this->options['general']['deactivation_delete'], false ) . '/><label for="cn-deactivation-delete-' . $val . '">' . $trans . '</label>';
|
297 |
-
}
|
298 |
-
|
299 |
-
echo '
|
300 |
-
<br/>
|
301 |
-
<span class="description">' . __( 'Enable if you want all plugin data to be deleted on deactivation.', 'cookie-notice' ) . '</span>
|
302 |
-
</fieldset>
|
303 |
-
</div>';
|
304 |
}
|
305 |
|
306 |
/**
|
@@ -320,40 +313,46 @@ class Cookie_Notice {
|
|
320 |
public function cn_accept_text() {
|
321 |
echo '
|
322 |
<div id="cn_accept_text">
|
323 |
-
<input type="text" name="cookie_notice_options[accept_text]" value="' . esc_attr( $this->options['general']['accept_text'] ) . '" />
|
324 |
<p class="description">' . __( 'The text of the option to accept the usage of the cookies and make the notification disappear.', 'cookie-notice' ) . '</p>
|
325 |
</div>';
|
326 |
}
|
327 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
/**
|
329 |
* Read more link option.
|
330 |
*/
|
331 |
public function cn_see_more() {
|
332 |
echo '
|
333 |
-
<
|
334 |
-
|
335 |
-
foreach ( $this->choices as $val => $trans ) {
|
336 |
-
$val = esc_attr( $val );
|
337 |
-
|
338 |
-
echo '
|
339 |
-
<input id="cn-see-more-' . $val . '" type="radio" name="cookie_notice_options[see_more]" value="' . $val . '" ' . checked( $val, $this->options['general']['see_more'], false ) . ' />
|
340 |
-
<label for="cn-see-more-' . $val . '">' . esc_html( $trans ) . '</label>';
|
341 |
-
}
|
342 |
|
343 |
echo '
|
344 |
-
<p class="description">' . __( 'Enable or Disable Read more button.', 'cookie-notice' ) . '</p>
|
345 |
-
</div>
|
346 |
<div id="cn_see_more_opt"' . ($this->options['general']['see_more'] === 'no' ? ' style="display: none;"' : '') . '>
|
347 |
-
<input type="text" name="cookie_notice_options[see_more_opt][text]" value="' . esc_attr( $this->options['general']['see_more_opt']['text'] ) . '" />
|
348 |
-
<p class="description">' . __( '
|
349 |
<div id="cn_see_more_opt_custom_link">';
|
350 |
|
351 |
-
foreach ( $this->links as $
|
352 |
-
$
|
353 |
|
354 |
echo '
|
355 |
-
<input id="
|
356 |
-
<label for="cn-see-more-link-' . $val . '">' . esc_html( $trans ) . '</label>';
|
357 |
}
|
358 |
|
359 |
echo '
|
@@ -373,10 +372,11 @@ class Cookie_Notice {
|
|
373 |
<p class="description">' . __( 'Select from one of your site\'s pages', 'cookie-notice' ) . '</p>
|
374 |
</div>
|
375 |
<div id="cn_see_more_opt_link"' . ($this->options['general']['see_more_opt']['link_type'] === 'page' ? ' style="display: none;"' : '') . '>
|
376 |
-
<input type="text" name="cookie_notice_options[see_more_opt][link]" value="' . esc_attr( $this->options['general']['see_more_opt']['link'] ) . '" />
|
377 |
<p class="description">' . __( 'Enter the full URL starting with http://', 'cookie-notice' ) . '</p>
|
378 |
</div>
|
379 |
-
</div>
|
|
|
380 |
}
|
381 |
|
382 |
/**
|
@@ -422,15 +422,14 @@ class Cookie_Notice {
|
|
422 |
*/
|
423 |
public function cn_script_placement() {
|
424 |
echo '
|
425 |
-
<div id="cn_time">
|
426 |
-
<select name="cookie_notice_options[script_placement]">';
|
427 |
|
428 |
-
foreach ( $this->script_placements as $
|
429 |
-
echo '
|
|
|
430 |
}
|
431 |
|
432 |
echo '
|
433 |
-
</select>
|
434 |
<p class="description">' . __( 'Select where all the plugin scripts should be placed.', 'cookie-notice' ) . '</p>
|
435 |
</div>';
|
436 |
}
|
@@ -442,12 +441,11 @@ class Cookie_Notice {
|
|
442 |
echo '
|
443 |
<div id="cn_position">';
|
444 |
|
445 |
-
foreach ( $this->positions as $
|
446 |
-
$
|
447 |
|
448 |
echo '
|
449 |
-
<input id="
|
450 |
-
<label for="cn-position-' . $val . '">' . esc_html( $trans ) . '</label>';
|
451 |
}
|
452 |
|
453 |
echo '
|
@@ -462,12 +460,11 @@ class Cookie_Notice {
|
|
462 |
echo '
|
463 |
<div id="cn_hide_effect">';
|
464 |
|
465 |
-
foreach ( $this->effects as $
|
466 |
-
$
|
467 |
|
468 |
echo '
|
469 |
-
<input id="
|
470 |
-
<label for="cn-hide-effect-' . $val . '">' . esc_html( $trans ) . '</label>';
|
471 |
}
|
472 |
|
473 |
echo '
|
@@ -482,12 +479,11 @@ class Cookie_Notice {
|
|
482 |
echo '
|
483 |
<div id="cn_css_style">';
|
484 |
|
485 |
-
foreach ( $this->styles as $
|
486 |
-
$
|
487 |
|
488 |
echo '
|
489 |
-
<input id="
|
490 |
-
<label for="cn-css-style-' . $val . '">' . esc_html( $trans ) . '</label>';
|
491 |
}
|
492 |
|
493 |
echo '
|
@@ -500,25 +496,28 @@ class Cookie_Notice {
|
|
500 |
*/
|
501 |
public function cn_colors() {
|
502 |
echo '
|
503 |
-
<
|
504 |
-
|
505 |
-
foreach ( $this->colors as $
|
506 |
-
$
|
507 |
|
508 |
echo '
|
509 |
-
<
|
510 |
-
|
511 |
-
'</
|
512 |
}
|
513 |
-
|
514 |
echo '
|
515 |
-
</
|
516 |
}
|
517 |
|
518 |
/**
|
519 |
* Validate options.
|
520 |
*/
|
521 |
public function validate_options( $input ) {
|
|
|
|
|
|
|
522 |
|
523 |
if ( isset( $_POST['save_cookie_notice_options'] ) ) {
|
524 |
|
@@ -532,6 +531,8 @@ class Cookie_Notice {
|
|
532 |
// texts
|
533 |
$input['message_text'] = wp_kses_post( isset( $input['message_text'] ) && $input['message_text'] !== '' ? $input['message_text'] : $this->defaults['general']['message_text'] );
|
534 |
$input['accept_text'] = sanitize_text_field( isset( $input['accept_text'] ) && $input['accept_text'] !== '' ? $input['accept_text'] : $this->defaults['general']['accept_text'] );
|
|
|
|
|
535 |
|
536 |
// css
|
537 |
$input['css_style'] = sanitize_text_field( isset( $input['css_style'] ) && in_array( $input['css_style'], array_keys( $this->styles ) ) ? $input['css_style'] : $this->defaults['general']['css_style'] );
|
@@ -549,19 +550,26 @@ class Cookie_Notice {
|
|
549 |
$input['hide_effect'] = sanitize_text_field( isset( $input['hide_effect'] ) && in_array( $input['hide_effect'], array_keys( $this->effects ) ) ? $input['hide_effect'] : $this->defaults['general']['hide_effect'] );
|
550 |
|
551 |
// deactivation
|
552 |
-
$input['deactivation_delete'] = (
|
553 |
|
554 |
// read more
|
555 |
-
$input['see_more'] =
|
556 |
$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'] );
|
557 |
$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'] );
|
558 |
|
559 |
if ( $input['see_more_opt']['link_type'] === 'custom' )
|
560 |
$input['see_more_opt']['link'] = esc_url( $input['see_more'] === 'yes' ? $input['see_more_opt']['link'] : 'empty' );
|
561 |
elseif ( $input['see_more_opt']['link_type'] === 'page' )
|
562 |
-
$input['see_more_opt']['id'] = ($input['see_more'] === 'yes' ? (int) $input['see_more_opt']['id'] : 'empty');
|
563 |
|
564 |
$input['translate'] = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
}
|
566 |
|
567 |
return $input;
|
@@ -571,11 +579,12 @@ class Cookie_Notice {
|
|
571 |
* Cookie notice output.
|
572 |
*/
|
573 |
public function add_cookie_notice() {
|
574 |
-
if ( !
|
575 |
// WPML and Polylang compatibility
|
576 |
if ( function_exists( 'icl_t' ) ) {
|
577 |
$this->options['general']['message_text'] = icl_t( 'Cookie Notice', 'Message in the notice', $this->options['general']['message_text'] );
|
578 |
$this->options['general']['accept_text'] = icl_t( 'Cookie Notice', 'Button text', $this->options['general']['accept_text'] );
|
|
|
579 |
$this->options['general']['see_more_opt']['text'] = icl_t( 'Cookie Notice', 'Read more text', $this->options['general']['see_more_opt']['text'] );
|
580 |
$this->options['general']['see_more_opt']['link'] = icl_t( 'Cookie Notice', 'Custom link', $this->options['general']['see_more_opt']['link'] );
|
581 |
}
|
@@ -585,22 +594,24 @@ class Cookie_Notice {
|
|
585 |
|
586 |
// get cookie container args
|
587 |
$options = apply_filters( 'cn_cookie_notice_args', array(
|
588 |
-
'position'
|
589 |
-
'css_style'
|
590 |
-
'colors'
|
591 |
-
'message_text'
|
592 |
-
'accept_text'
|
593 |
-
'
|
594 |
-
'
|
595 |
-
'
|
|
|
|
|
596 |
) );
|
597 |
|
598 |
// message output
|
599 |
$output = '
|
600 |
<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'] . ';">'
|
601 |
-
. '<div class="cookie-notice-container"><span id="cn-notice-text">'
|
602 |
-
. $options['
|
603 |
-
. '
|
604 |
. ($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>' : '') . '
|
605 |
</div>
|
606 |
</div>';
|
@@ -609,6 +620,27 @@ class Cookie_Notice {
|
|
609 |
}
|
610 |
}
|
611 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
612 |
/**
|
613 |
* Add links to Support Forum.
|
614 |
*/
|
@@ -624,13 +656,6 @@ class Cookie_Notice {
|
|
624 |
return $links;
|
625 |
}
|
626 |
|
627 |
-
/**
|
628 |
-
* Get default settings.
|
629 |
-
*/
|
630 |
-
public function get_defaults() {
|
631 |
-
return $this->defaults;
|
632 |
-
}
|
633 |
-
|
634 |
/**
|
635 |
* Add links to settings page.
|
636 |
*/
|
@@ -672,6 +697,12 @@ class Cookie_Notice {
|
|
672 |
wp_enqueue_script(
|
673 |
'cookie-notice-admin', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery', 'wp-color-picker' ), $this->defaults['version']
|
674 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
675 |
|
676 |
wp_enqueue_style( 'wp-color-picker' );
|
677 |
wp_enqueue_style( 'cookie-notice-admin', plugins_url( 'css/admin.css', __FILE__ ) );
|
@@ -681,20 +712,20 @@ class Cookie_Notice {
|
|
681 |
* Load scripts and styles - frontend.
|
682 |
*/
|
683 |
public function front_load_scripts_styles() {
|
684 |
-
if ( !
|
685 |
wp_enqueue_script(
|
686 |
'cookie-notice-front', plugins_url( 'js/front.js', __FILE__ ), array( 'jquery' ), $this->defaults['version'], isset( $this->options['general']['script_placement'] ) && $this->options['general']['script_placement'] === 'footer' ? true : false
|
687 |
);
|
688 |
|
689 |
wp_localize_script(
|
690 |
'cookie-notice-front', 'cnArgs', array(
|
691 |
-
'ajaxurl'
|
692 |
-
'hideEffect'
|
693 |
-
'cookieName'
|
694 |
-
'cookieValue'
|
695 |
-
'cookieTime'
|
696 |
-
'cookiePath'
|
697 |
-
'cookieDomain'
|
698 |
)
|
699 |
);
|
700 |
|
@@ -702,4 +733,13 @@ class Cookie_Notice {
|
|
702 |
}
|
703 |
}
|
704 |
|
705 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.24
|
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/update.php' );
|
32 |
|
33 |
/**
|
34 |
* Cookie Notice class.
|
35 |
*
|
36 |
* @class Cookie_Notice
|
37 |
+
* @version 1.2.24
|
38 |
*/
|
39 |
class Cookie_Notice {
|
40 |
|
42 |
* @var $defaults
|
43 |
*/
|
44 |
private $defaults = array(
|
45 |
+
'general' => array(
|
46 |
+
'position' => 'bottom',
|
47 |
+
'message_text' => '',
|
48 |
+
'css_style' => 'bootstrap',
|
49 |
+
'accept_text' => '',
|
50 |
+
'refuse_text' => '',
|
51 |
+
'refuse_opt' => 'no',
|
52 |
+
'see_more' => 'no',
|
53 |
+
'link_target' => '_blank',
|
54 |
+
'time' => 'month',
|
55 |
+
'hide_effect' => 'fade',
|
56 |
+
'colors' => array(
|
57 |
+
'text' => '#fff',
|
58 |
+
'bar' => '#000',
|
59 |
),
|
60 |
+
'see_more_opt' => array(
|
61 |
+
'text' => '',
|
62 |
+
'link_type' => 'custom',
|
63 |
+
'id' => 'empty',
|
64 |
+
'link' => ''
|
65 |
),
|
66 |
+
'script_placement' => 'header',
|
67 |
+
'translate' => true,
|
68 |
+
'deactivation_delete' => 'no'
|
69 |
),
|
70 |
+
'version' => '1.2.24'
|
71 |
);
|
72 |
+
private $positions = array();
|
73 |
+
private $styles = array();
|
74 |
+
private $choices = array();
|
75 |
+
private $pages = array();
|
76 |
+
private $links = array();
|
77 |
+
private $link_target = array();
|
78 |
+
private $colors = array();
|
79 |
+
private $options = array();
|
80 |
+
private $effects = array();
|
81 |
+
private $times = array();
|
82 |
+
private $script_placements = array();
|
83 |
|
84 |
/**
|
85 |
* @var $cookie, holds cookie name
|
86 |
*/
|
87 |
+
private static $cookie = array(
|
88 |
'name' => 'cookie_notice_accepted',
|
89 |
'value' => 'TRUE'
|
90 |
);
|
120 |
*/
|
121 |
public function load_defaults() {
|
122 |
$this->positions = array(
|
123 |
+
'top' => __( 'Top', 'cookie-notice' ),
|
124 |
+
'bottom' => __( 'Bottom', 'cookie-notice' )
|
125 |
);
|
126 |
|
127 |
$this->styles = array(
|
128 |
+
'none' => __( 'None', 'cookie-notice' ),
|
129 |
+
'wp-default' => __( 'WordPress', 'cookie-notice' ),
|
130 |
+
'bootstrap' => __( 'Bootstrap', 'cookie-notice' )
|
|
|
|
|
|
|
|
|
|
|
131 |
);
|
132 |
|
133 |
$this->links = array(
|
134 |
+
'custom' => __( 'Custom link', 'cookie-notice' ),
|
135 |
+
'page' => __( 'Page link', 'cookie-notice' )
|
136 |
);
|
137 |
|
138 |
$this->link_target = array(
|
141 |
);
|
142 |
|
143 |
$this->colors = array(
|
144 |
+
'text' => __( 'Text color', 'cookie-notice' ),
|
145 |
+
'bar' => __( 'Bar color', 'cookie-notice' ),
|
146 |
);
|
147 |
|
148 |
$this->times = array(
|
149 |
+
'day' => array( __( '1 day', 'cookie-notice' ), 86400 ),
|
150 |
+
'week' => array( __( '1 week', 'cookie-notice' ), 604800 ),
|
151 |
+
'month' => array( __( '1 month', 'cookie-notice' ), 2592000 ),
|
152 |
+
'3months' => array( __( '3 months', 'cookie-notice' ), 7862400 ),
|
153 |
+
'6months' => array( __( '6 months', 'cookie-notice' ), 15811200 ),
|
154 |
+
'year' => array( __( '1 year', 'cookie-notice' ), 31536000 ),
|
155 |
+
'infinity' => array( __( 'infinity', 'cookie-notice' ), 31337313373 )
|
156 |
);
|
157 |
|
158 |
$this->effects = array(
|
159 |
+
'none' => __( 'None', 'cookie-notice' ),
|
160 |
+
'fade' => __( 'Fade', 'cookie-notice' ),
|
161 |
+
'slide' => __( 'Slide', 'cookie-notice' )
|
162 |
);
|
163 |
|
164 |
$this->script_placements = array(
|
165 |
+
'header' => __( 'Header', 'cookie-notice' ),
|
166 |
+
'footer' => __( 'Footer', 'cookie-notice' ),
|
167 |
);
|
168 |
|
169 |
$this->pages = get_pages(
|
170 |
array(
|
171 |
+
'sort_order' => 'ASC',
|
172 |
+
'sort_column' => 'post_title',
|
173 |
+
'hierarchical' => 0,
|
174 |
+
'child_of' => 0,
|
175 |
+
'parent' => -1,
|
176 |
+
'offset' => 0,
|
177 |
+
'post_type' => 'page',
|
178 |
+
'post_status' => 'publish'
|
179 |
)
|
180 |
);
|
181 |
|
184 |
|
185 |
$this->options['general']['message_text'] = esc_textarea( __( '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' ) );
|
186 |
$this->options['general']['accept_text'] = sanitize_text_field( __( 'Ok', 'cookie-notice' ) );
|
187 |
+
$this->options['general']['refuse_text'] = sanitize_text_field( __( 'No', 'cookie-notice' ) );
|
188 |
$this->options['general']['see_more_opt']['text'] = sanitize_text_field( __( 'Read more', 'cookie-notice' ) );
|
189 |
|
190 |
update_option( 'cookie_notice_options', $this->options['general'] );
|
194 |
if ( function_exists( 'icl_register_string' ) ) {
|
195 |
icl_register_string( 'Cookie Notice', 'Message in the notice', $this->options['general']['message_text'] );
|
196 |
icl_register_string( 'Cookie Notice', 'Button text', $this->options['general']['accept_text'] );
|
197 |
+
icl_register_string( 'Cookie Notice', 'Refuse button text', $this->options['general']['refuse_text'] );
|
198 |
icl_register_string( 'Cookie Notice', 'Read more text', $this->options['general']['see_more_opt']['text'] );
|
199 |
icl_register_string( 'Cookie Notice', 'Custom link', $this->options['general']['see_more_opt']['link'] );
|
200 |
}
|
249 |
|
250 |
settings_fields( 'cookie_notice_options' );
|
251 |
do_settings_sections( 'cookie_notice_options' );
|
252 |
+
|
253 |
+
echo '
|
254 |
+
<p class="submit">';
|
255 |
+
submit_button( '', 'primary', 'save_cookie_notice_options', false );
|
256 |
+
echo ' ';
|
257 |
+
submit_button( __( 'Reset to defaults', 'cookie-notice' ), 'secondary', 'reset_cookie_notice_options', false );
|
258 |
echo '
|
259 |
+
</p>
|
260 |
</form>
|
261 |
</div>
|
262 |
<div class="clear"></div>
|
273 |
add_settings_section( 'cookie_notice_configuration', __( 'Configuration', 'cookie-notice' ), '', 'cookie_notice_options' );
|
274 |
add_settings_field( 'cn_message_text', __( 'Message', 'cookie-notice' ), array( $this, 'cn_message_text' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
275 |
add_settings_field( 'cn_accept_text', __( 'Button text', 'cookie-notice' ), array( $this, 'cn_accept_text' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
276 |
+
add_settings_field( 'cn_see_more', __( 'More info link', 'cookie-notice' ), array( $this, 'cn_see_more' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
277 |
add_settings_field( 'cn_link_target', __( 'Link target', 'cookie-notice' ), array( $this, 'cn_link_target' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
278 |
+
add_settings_field( 'cn_refuse_opt', __( 'Refuse button', 'cookie-notice' ), array( $this, 'cn_refuse_opt' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
279 |
add_settings_field( 'cn_time', __( 'Cookie expiry', 'cookie-notice' ), array( $this, 'cn_time' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
280 |
add_settings_field( 'cn_script_placement', __( 'Script placement', 'cookie-notice' ), array( $this, 'cn_script_placement' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
281 |
add_settings_field( 'cn_deactivation_delete', __( 'Deactivation', 'cookie-notice' ), array( $this, 'cn_deactivation_delete' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
293 |
*/
|
294 |
public function cn_deactivation_delete() {
|
295 |
echo '
|
296 |
+
<label><input id="cn_deactivation_delete" type="checkbox" name="cookie_notice_options[deactivation_delete]" value="1" ' . checked( 'yes', $this->options['general']['deactivation_delete'], false ) . '/>' . __( 'Enable if you want all plugin data to be deleted on deactivation.', 'cookie-notice' ) . '</label>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
}
|
298 |
|
299 |
/**
|
313 |
public function cn_accept_text() {
|
314 |
echo '
|
315 |
<div id="cn_accept_text">
|
316 |
+
<input type="text" class="regular-text" name="cookie_notice_options[accept_text]" value="' . esc_attr( $this->options['general']['accept_text'] ) . '" />
|
317 |
<p class="description">' . __( 'The text of the option to accept the usage of the cookies and make the notification disappear.', 'cookie-notice' ) . '</p>
|
318 |
</div>';
|
319 |
}
|
320 |
|
321 |
+
/**
|
322 |
+
* Enable/Disable third party non functional cookies option.
|
323 |
+
*/
|
324 |
+
public function cn_refuse_opt() {
|
325 |
+
echo '
|
326 |
+
<fieldset>
|
327 |
+
<label><input id="cn_refuse_opt" type="checkbox" name="cookie_notice_options[refuse_opt]" value="1" ' . checked( 'yes', $this->options['general']['refuse_opt'], false ) . ' />' . __( 'Give to the user the possibility to refuse third party non functional cookies.', 'cookie-notice' ) . '</label>';
|
328 |
+
echo '
|
329 |
+
<div id="cn_refuse_text"' . ($this->options['general']['refuse_opt'] === 'no' ? ' style="display: none;"' : '') . '>
|
330 |
+
<input type="text" class="regular-text" name="cookie_notice_options[refuse_text]" value="' . esc_attr( $this->options['general']['refuse_text'] ) . '" />
|
331 |
+
<p class="description">' . __( '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.', 'cookie-notice' ) . '</p>
|
332 |
+
</div>';
|
333 |
+
echo '
|
334 |
+
</fieldset>';
|
335 |
+
}
|
336 |
+
|
337 |
/**
|
338 |
* Read more link option.
|
339 |
*/
|
340 |
public function cn_see_more() {
|
341 |
echo '
|
342 |
+
<fieldset>
|
343 |
+
<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>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
|
345 |
echo '
|
|
|
|
|
346 |
<div id="cn_see_more_opt"' . ($this->options['general']['see_more'] === 'no' ? ' style="display: none;"' : '') . '>
|
347 |
+
<input type="text" class="regular-text" name="cookie_notice_options[see_more_opt][text]" value="' . esc_attr( $this->options['general']['see_more_opt']['text'] ) . '" />
|
348 |
+
<p class="description">' . __( 'The text of the more info button.', 'cookie-notice' ) . '</p>
|
349 |
<div id="cn_see_more_opt_custom_link">';
|
350 |
|
351 |
+
foreach ( $this->links as $value => $label ) {
|
352 |
+
$value = esc_attr( $value );
|
353 |
|
354 |
echo '
|
355 |
+
<label><input id="cn_see_more_link-' . $value . '" type="radio" name="cookie_notice_options[see_more_opt][link_type]" value="' . $value . '" ' . checked( $value, $this->options['general']['see_more_opt']['link_type'], false ) . ' />' . esc_html( $label ) . '</label>';
|
|
|
356 |
}
|
357 |
|
358 |
echo '
|
372 |
<p class="description">' . __( 'Select from one of your site\'s pages', 'cookie-notice' ) . '</p>
|
373 |
</div>
|
374 |
<div id="cn_see_more_opt_link"' . ($this->options['general']['see_more_opt']['link_type'] === 'page' ? ' style="display: none;"' : '') . '>
|
375 |
+
<input type="text" class="regular-text" name="cookie_notice_options[see_more_opt][link]" value="' . esc_attr( $this->options['general']['see_more_opt']['link'] ) . '" />
|
376 |
<p class="description">' . __( 'Enter the full URL starting with http://', 'cookie-notice' ) . '</p>
|
377 |
</div>
|
378 |
+
</div>
|
379 |
+
</fieldset>';
|
380 |
}
|
381 |
|
382 |
/**
|
422 |
*/
|
423 |
public function cn_script_placement() {
|
424 |
echo '
|
425 |
+
<div id="cn_time">';
|
|
|
426 |
|
427 |
+
foreach ( $this->script_placements as $valueue => $label ) {
|
428 |
+
echo '
|
429 |
+
<label><input id="cn_script_placement-' . $valueue . '" type="radio" name="cookie_notice_options[script_placement]" value="' . esc_attr( $valueue ) . '" ' . checked( $valueue, $this->options['general']['script_placement'], false ) . ' />' . esc_html( $label ) . '</label>';
|
430 |
}
|
431 |
|
432 |
echo '
|
|
|
433 |
<p class="description">' . __( 'Select where all the plugin scripts should be placed.', 'cookie-notice' ) . '</p>
|
434 |
</div>';
|
435 |
}
|
441 |
echo '
|
442 |
<div id="cn_position">';
|
443 |
|
444 |
+
foreach ( $this->positions as $value => $label ) {
|
445 |
+
$value = esc_attr( $value );
|
446 |
|
447 |
echo '
|
448 |
+
<label><input id="cn_position-' . $value . '" type="radio" name="cookie_notice_options[position]" value="' . $value . '" ' . checked( $value, $this->options['general']['position'], false ) . ' />' . esc_html( $label ) . '</label>';
|
|
|
449 |
}
|
450 |
|
451 |
echo '
|
460 |
echo '
|
461 |
<div id="cn_hide_effect">';
|
462 |
|
463 |
+
foreach ( $this->effects as $value => $label ) {
|
464 |
+
$value = esc_attr( $value );
|
465 |
|
466 |
echo '
|
467 |
+
<label><input id="cn_hide_effect-' . $value . '" type="radio" name="cookie_notice_options[hide_effect]" value="' . $value . '" ' . checked( $value, $this->options['general']['hide_effect'], false ) . ' />' . esc_html( $label ) . '</label>';
|
|
|
468 |
}
|
469 |
|
470 |
echo '
|
479 |
echo '
|
480 |
<div id="cn_css_style">';
|
481 |
|
482 |
+
foreach ( $this->styles as $value => $label ) {
|
483 |
+
$value = esc_attr( $value );
|
484 |
|
485 |
echo '
|
486 |
+
<label><input id="cn_css_style-' . $value . '" type="radio" name="cookie_notice_options[css_style]" value="' . $value . '" ' . checked( $value, $this->options['general']['css_style'], false ) . ' />' . esc_html( $label ) . '</label>';
|
|
|
487 |
}
|
488 |
|
489 |
echo '
|
496 |
*/
|
497 |
public function cn_colors() {
|
498 |
echo '
|
499 |
+
<fieldset>';
|
500 |
+
|
501 |
+
foreach ( $this->colors as $value => $label ) {
|
502 |
+
$value = esc_attr( $value );
|
503 |
|
504 |
echo '
|
505 |
+
<div id="cn_colors-' . $value . '"><label>' . esc_html( $label ) . '</label><br />
|
506 |
+
<input class="cn_color" type="text" name="cookie_notice_options[colors][' . $value . ']" value="' . esc_attr( $this->options['general']['colors'][$value] ) . '" />' .
|
507 |
+
'</div>';
|
508 |
}
|
509 |
+
|
510 |
echo '
|
511 |
+
</fieldset>';
|
512 |
}
|
513 |
|
514 |
/**
|
515 |
* Validate options.
|
516 |
*/
|
517 |
public function validate_options( $input ) {
|
518 |
+
|
519 |
+
if ( ! current_user_can( 'manage_options' ) )
|
520 |
+
return $input;
|
521 |
|
522 |
if ( isset( $_POST['save_cookie_notice_options'] ) ) {
|
523 |
|
531 |
// texts
|
532 |
$input['message_text'] = wp_kses_post( isset( $input['message_text'] ) && $input['message_text'] !== '' ? $input['message_text'] : $this->defaults['general']['message_text'] );
|
533 |
$input['accept_text'] = sanitize_text_field( isset( $input['accept_text'] ) && $input['accept_text'] !== '' ? $input['accept_text'] : $this->defaults['general']['accept_text'] );
|
534 |
+
$input['refuse_text'] = sanitize_text_field( isset( $input['refuse_text'] ) && $input['refuse_text'] !== '' ? $input['refuse_text'] : $this->defaults['general']['refuse_text'] );
|
535 |
+
$input['refuse_opt'] = (bool) isset( $input['refuse_opt'] ) ? 'yes' : 'no';
|
536 |
|
537 |
// css
|
538 |
$input['css_style'] = sanitize_text_field( isset( $input['css_style'] ) && in_array( $input['css_style'], array_keys( $this->styles ) ) ? $input['css_style'] : $this->defaults['general']['css_style'] );
|
550 |
$input['hide_effect'] = sanitize_text_field( isset( $input['hide_effect'] ) && in_array( $input['hide_effect'], array_keys( $this->effects ) ) ? $input['hide_effect'] : $this->defaults['general']['hide_effect'] );
|
551 |
|
552 |
// deactivation
|
553 |
+
$input['deactivation_delete'] = (bool) isset( $input['deactivation_delete'] ) ? 'yes' : 'no';
|
554 |
|
555 |
// read more
|
556 |
+
$input['see_more'] = (bool) isset( $input['see_more'] ) ? 'yes' : 'no';
|
557 |
$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'] );
|
558 |
$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'] );
|
559 |
|
560 |
if ( $input['see_more_opt']['link_type'] === 'custom' )
|
561 |
$input['see_more_opt']['link'] = esc_url( $input['see_more'] === 'yes' ? $input['see_more_opt']['link'] : 'empty' );
|
562 |
elseif ( $input['see_more_opt']['link_type'] === 'page' )
|
563 |
+
$input['see_more_opt']['id'] = ( $input['see_more'] === 'yes' ? (int) $input['see_more_opt']['id'] : 'empty' );
|
564 |
|
565 |
$input['translate'] = false;
|
566 |
+
|
567 |
+
} elseif ( isset( $_POST['reset_cookie_notice_options'] ) ) {
|
568 |
+
|
569 |
+
$input = $this->defaults['general'];
|
570 |
+
|
571 |
+
add_settings_error( 'reset_cookie_notice_options', 'reset_cookie_notice_options', __( 'Settings restored to defaults.', 'cookie-notice' ), 'updated' );
|
572 |
+
|
573 |
}
|
574 |
|
575 |
return $input;
|
579 |
* Cookie notice output.
|
580 |
*/
|
581 |
public function add_cookie_notice() {
|
582 |
+
if ( ! $this->cookie_setted() ) {
|
583 |
// WPML and Polylang compatibility
|
584 |
if ( function_exists( 'icl_t' ) ) {
|
585 |
$this->options['general']['message_text'] = icl_t( 'Cookie Notice', 'Message in the notice', $this->options['general']['message_text'] );
|
586 |
$this->options['general']['accept_text'] = icl_t( 'Cookie Notice', 'Button text', $this->options['general']['accept_text'] );
|
587 |
+
$this->options['general']['refuse_text'] = icl_t( 'Cookie Notice', 'Refuse button text', $this->options['general']['refuse_text'] );
|
588 |
$this->options['general']['see_more_opt']['text'] = icl_t( 'Cookie Notice', 'Read more text', $this->options['general']['see_more_opt']['text'] );
|
589 |
$this->options['general']['see_more_opt']['link'] = icl_t( 'Cookie Notice', 'Custom link', $this->options['general']['see_more_opt']['link'] );
|
590 |
}
|
594 |
|
595 |
// get cookie container args
|
596 |
$options = apply_filters( 'cn_cookie_notice_args', array(
|
597 |
+
'position' => $this->options['general']['position'],
|
598 |
+
'css_style' => $this->options['general']['css_style'],
|
599 |
+
'colors' => $this->options['general']['colors'],
|
600 |
+
'message_text' => $this->options['general']['message_text'],
|
601 |
+
'accept_text' => $this->options['general']['accept_text'],
|
602 |
+
'refuse_text' => $this->options['general']['refuse_text'],
|
603 |
+
'refuse_opt' => $this->options['general']['refuse_opt'],
|
604 |
+
'see_more' => $this->options['general']['see_more'],
|
605 |
+
'see_more_opt' => $this->options['general']['see_more_opt'],
|
606 |
+
'link_target' => $this->options['general']['link_target'],
|
607 |
) );
|
608 |
|
609 |
// message output
|
610 |
$output = '
|
611 |
<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'] . ';">'
|
612 |
+
. '<div class="cookie-notice-container"><span id="cn-notice-text">'. $options['message_text'] .'</span>'
|
613 |
+
. '<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>'
|
614 |
+
. ($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>' : '' )
|
615 |
. ($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>' : '') . '
|
616 |
</div>
|
617 |
</div>';
|
620 |
}
|
621 |
}
|
622 |
|
623 |
+
/**
|
624 |
+
* Checks if cookie is setted
|
625 |
+
*/
|
626 |
+
public function cookie_setted() {
|
627 |
+
return isset( $_COOKIE[self::$cookie['name']] );
|
628 |
+
}
|
629 |
+
|
630 |
+
/**
|
631 |
+
* Checks if third party non functional cookies are accepted
|
632 |
+
*/
|
633 |
+
public static function cookies_accepted() {
|
634 |
+
return ( isset( $_COOKIE[self::$cookie['name']] ) && strtoupper( $_COOKIE[self::$cookie['name']] ) === self::$cookie['value'] );
|
635 |
+
}
|
636 |
+
|
637 |
+
/**
|
638 |
+
* Get default settings.
|
639 |
+
*/
|
640 |
+
public function get_defaults() {
|
641 |
+
return $this->defaults;
|
642 |
+
}
|
643 |
+
|
644 |
/**
|
645 |
* Add links to Support Forum.
|
646 |
*/
|
656 |
return $links;
|
657 |
}
|
658 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
659 |
/**
|
660 |
* Add links to settings page.
|
661 |
*/
|
697 |
wp_enqueue_script(
|
698 |
'cookie-notice-admin', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery', 'wp-color-picker' ), $this->defaults['version']
|
699 |
);
|
700 |
+
|
701 |
+
wp_localize_script(
|
702 |
+
'cookie-notice-admin', 'cnArgs', array(
|
703 |
+
'resetToDefaults' => __( 'Are you sure you want to reset these settings to defaults?', 'cookie-notice' ),
|
704 |
+
)
|
705 |
+
);
|
706 |
|
707 |
wp_enqueue_style( 'wp-color-picker' );
|
708 |
wp_enqueue_style( 'cookie-notice-admin', plugins_url( 'css/admin.css', __FILE__ ) );
|
712 |
* Load scripts and styles - frontend.
|
713 |
*/
|
714 |
public function front_load_scripts_styles() {
|
715 |
+
if ( ! $this->cookie_setted() ) {
|
716 |
wp_enqueue_script(
|
717 |
'cookie-notice-front', plugins_url( 'js/front.js', __FILE__ ), array( 'jquery' ), $this->defaults['version'], isset( $this->options['general']['script_placement'] ) && $this->options['general']['script_placement'] === 'footer' ? true : false
|
718 |
);
|
719 |
|
720 |
wp_localize_script(
|
721 |
'cookie-notice-front', 'cnArgs', array(
|
722 |
+
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
723 |
+
'hideEffect' => $this->options['general']['hide_effect'],
|
724 |
+
'cookieName' => self::$cookie['name'],
|
725 |
+
'cookieValue' => self::$cookie['value'],
|
726 |
+
'cookieTime' => $this->times[$this->options['general']['time']][1],
|
727 |
+
'cookiePath' => ( defined( 'COOKIEPATH' ) ? COOKIEPATH : '' ),
|
728 |
+
'cookieDomain' => ( defined( 'COOKIE_DOMAIN' ) ? COOKIE_DOMAIN : '' )
|
729 |
)
|
730 |
);
|
731 |
|
733 |
}
|
734 |
}
|
735 |
|
736 |
+
}
|
737 |
+
|
738 |
+
/**
|
739 |
+
* Get the cookie notice status
|
740 |
+
*
|
741 |
+
* @return boolean
|
742 |
+
*/
|
743 |
+
function cn_cookies_accepted() {
|
744 |
+
return (bool) Cookie_Notice::cookies_accepted();
|
745 |
+
}
|
includes/update.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
|
|
2 |
if ( ! defined( 'ABSPATH' ) )
|
3 |
exit;
|
4 |
|
5 |
new Cookie_Notice_Update( $cookie_notice );
|
6 |
|
7 |
class Cookie_Notice_Update {
|
8 |
-
|
9 |
private $defaults;
|
10 |
|
11 |
-
public function __construct( $cookie_notice )
|
12 |
// attributes
|
13 |
$this->defaults = $cookie_notice->get_defaults();
|
14 |
|
@@ -16,21 +16,17 @@ class Cookie_Notice_Update {
|
|
16 |
add_action( 'init', array( $this, 'check_update' ) );
|
17 |
}
|
18 |
|
19 |
-
/**
|
20 |
-
*
|
21 |
-
*/
|
22 |
public function check_update() {
|
23 |
-
if
|
24 |
return;
|
25 |
|
26 |
// gets current database version
|
27 |
$current_db_version = get_option( 'cookie_notice_version', '1.0.0' );
|
28 |
|
29 |
// new version?
|
30 |
-
if
|
31 |
// updates plugin version
|
32 |
update_option( 'cookie_notice_version', $this->defaults['version'] );
|
33 |
}
|
34 |
}
|
35 |
-
|
36 |
-
}
|
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 |
private $defaults;
|
10 |
|
11 |
+
public function __construct( $cookie_notice ) {
|
12 |
// attributes
|
13 |
$this->defaults = $cookie_notice->get_defaults();
|
14 |
|
16 |
add_action( 'init', array( $this, 'check_update' ) );
|
17 |
}
|
18 |
|
|
|
|
|
|
|
19 |
public function check_update() {
|
20 |
+
if( ! current_user_can( 'manage_options' ) )
|
21 |
return;
|
22 |
|
23 |
// gets current database version
|
24 |
$current_db_version = get_option( 'cookie_notice_version', '1.0.0' );
|
25 |
|
26 |
// new version?
|
27 |
+
if( version_compare( $current_db_version, $this->defaults['version'], '<') ) {
|
28 |
// updates plugin version
|
29 |
update_option( 'cookie_notice_version', $this->defaults['version'] );
|
30 |
}
|
31 |
}
|
32 |
+
}
|
|
js/admin.js
CHANGED
@@ -3,29 +3,42 @@
|
|
3 |
$( document ).ready( function () {
|
4 |
|
5 |
// initialize color picker
|
6 |
-
$( '.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
// read more option
|
9 |
-
$( '#
|
10 |
-
if ( $(
|
11 |
-
$( '#cn_see_more_opt' ).
|
12 |
-
} else
|
13 |
-
$( '#cn_see_more_opt' ).
|
14 |
}
|
15 |
} );
|
16 |
|
17 |
// read more link
|
18 |
-
$( '#
|
19 |
-
if ( $( '#
|
20 |
-
$( '#cn_see_more_opt_page' ).
|
21 |
-
$( '#cn_see_more_opt_link' ).
|
22 |
} );
|
23 |
-
} else if ( $( '#
|
24 |
-
$( '#cn_see_more_opt_link' ).
|
25 |
-
$( '#cn_see_more_opt_page' ).
|
26 |
} );
|
27 |
}
|
28 |
} );
|
|
|
|
|
|
|
|
|
29 |
|
30 |
} );
|
31 |
|
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_text' ).slideDown( 'fast' );
|
12 |
+
} else {
|
13 |
+
$( '#cn_refuse_text' ).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 link
|
27 |
+
$( '#cn_see_more_link-custom, #cn_see_more_link-page' ).change( function () {
|
28 |
+
if ( $( '#cn_see_more_link-custom:checked' ).val() === 'custom' ) {
|
29 |
+
$( '#cn_see_more_opt_page' ).slideUp( 'fast', function () {
|
30 |
+
$( '#cn_see_more_opt_link' ).slideDown( 'fast' );
|
31 |
} );
|
32 |
+
} else if ( $( '#cn_see_more_link-page:checked' ).val() === 'page' ) {
|
33 |
+
$( '#cn_see_more_opt_link' ).slideUp( 'fast', function () {
|
34 |
+
$( '#cn_see_more_opt_page' ).slideDown( 'fast' );
|
35 |
} );
|
36 |
}
|
37 |
} );
|
38 |
+
|
39 |
+
$( document ).on( 'click', 'input#reset_cookie_notice_options', function () {
|
40 |
+
return confirm( cnArgs.resetToDefaults );
|
41 |
+
} );
|
42 |
|
43 |
} );
|
44 |
|
js/front.js
CHANGED
@@ -2,18 +2,28 @@
|
|
2 |
|
3 |
$( document ).ready( function () {
|
4 |
|
5 |
-
// handle
|
6 |
-
$( document ).on( 'click', '
|
7 |
-
|
8 |
|
9 |
-
var cnTime = new Date()
|
10 |
-
|
11 |
|
12 |
// set expiry time in seconds
|
13 |
cnLater.setTime( parseInt( cnTime.getTime() ) + parseInt( cnArgs.cookieTime ) * 1000 );
|
14 |
|
15 |
// set cookie
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
// hide message container
|
19 |
if ( cnArgs.hideEffect === 'fade' ) {
|
@@ -27,6 +37,7 @@
|
|
27 |
} else {
|
28 |
$( '#cookie-notice' ).remove();
|
29 |
}
|
|
|
30 |
} );
|
31 |
|
32 |
// display cookie notice
|
2 |
|
3 |
$( document ).ready( function () {
|
4 |
|
5 |
+
// handle set-cookie button click
|
6 |
+
$( document ).on( 'click', '.cn-set-cookie', function ( e ) {
|
7 |
+
e.preventDefault();
|
8 |
|
9 |
+
var cnTime = new Date(),
|
10 |
+
cnLater = new Date();
|
11 |
|
12 |
// set expiry time in seconds
|
13 |
cnLater.setTime( parseInt( cnTime.getTime() ) + parseInt( cnArgs.cookieTime ) * 1000 );
|
14 |
|
15 |
// set cookie
|
16 |
+
var cookie_value = $( this ).data( 'cookie-set' ) === 'accept' ? true : false;
|
17 |
+
|
18 |
+
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 + ';' : '' );
|
19 |
+
|
20 |
+
// trigger custom event
|
21 |
+
$.event.trigger({
|
22 |
+
type: "setCookieNotice",
|
23 |
+
value: cookie_value,
|
24 |
+
time: cnTime,
|
25 |
+
expires: cnLater
|
26 |
+
});
|
27 |
|
28 |
// hide message container
|
29 |
if ( cnArgs.hideEffect === 'fade' ) {
|
37 |
} else {
|
38 |
$( '#cookie-notice' ).remove();
|
39 |
}
|
40 |
+
|
41 |
} );
|
42 |
|
43 |
// display cookie notice
|
languages/cookie-notice-it_IT.mo
CHANGED
Binary file
|
languages/cookie-notice-it_IT.po
CHANGED
@@ -1,102 +1,110 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Cookie Notice\n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: dFactory <info@dfactory.eu>\n"
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.6.
|
12 |
"X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
-
"Language: it_IT\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
-
#: ../cookie-notice.php:
|
20 |
msgid "Top"
|
21 |
msgstr "In alto"
|
22 |
|
23 |
-
#: ../cookie-notice.php:
|
24 |
msgid "Bottom"
|
25 |
msgstr "In basso"
|
26 |
|
27 |
-
#: ../cookie-notice.php:
|
28 |
msgid "None"
|
29 |
msgstr "Nessuno"
|
30 |
|
31 |
-
#: ../cookie-notice.php:
|
32 |
msgid "WordPress"
|
33 |
msgstr "WordPress"
|
34 |
|
35 |
-
#: ../cookie-notice.php:
|
36 |
msgid "Bootstrap"
|
37 |
msgstr "Bootstrap"
|
38 |
|
39 |
-
#: ../cookie-notice.php:
|
40 |
msgid "Enable"
|
41 |
msgstr "Abilita"
|
42 |
|
43 |
-
#: ../cookie-notice.php:
|
44 |
msgid "Disable"
|
45 |
msgstr "Disabilita"
|
46 |
|
47 |
-
#: ../cookie-notice.php:
|
48 |
msgid "Custom link"
|
49 |
msgstr "Link personalizzato"
|
50 |
|
51 |
-
#: ../cookie-notice.php:
|
52 |
msgid "Page link"
|
53 |
msgstr "Link alla pagina"
|
54 |
|
55 |
-
#: ../cookie-notice.php:
|
56 |
msgid "Text color"
|
57 |
msgstr "Colore del testo"
|
58 |
|
59 |
-
#: ../cookie-notice.php:
|
60 |
msgid "Bar color"
|
61 |
msgstr "Colore della barra"
|
62 |
|
63 |
-
#: ../cookie-notice.php:
|
64 |
msgid "1 day"
|
65 |
msgstr "1 giorno"
|
66 |
|
67 |
-
#: ../cookie-notice.php:
|
68 |
msgid "1 week"
|
69 |
msgstr "1 settimana"
|
70 |
|
71 |
-
#: ../cookie-notice.php:
|
72 |
msgid "1 month"
|
73 |
msgstr "1 mese"
|
74 |
|
75 |
-
#: ../cookie-notice.php:
|
76 |
msgid "3 months"
|
77 |
msgstr "3 Mesi"
|
78 |
|
79 |
-
#: ../cookie-notice.php:
|
80 |
msgid "6 months"
|
81 |
msgstr "6 Mesi"
|
82 |
|
83 |
-
#: ../cookie-notice.php:
|
84 |
msgid "1 year"
|
85 |
msgstr "1 anno"
|
86 |
|
87 |
-
#: ../cookie-notice.php:
|
88 |
msgid "infinity"
|
89 |
msgstr "infinito"
|
90 |
|
91 |
-
#: ../cookie-notice.php:
|
92 |
msgid "Fade"
|
93 |
msgstr "Dissolvenza"
|
94 |
|
95 |
-
#: ../cookie-notice.php:
|
96 |
msgid "Slide"
|
97 |
msgstr "Slittamento"
|
98 |
|
99 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 "
|
@@ -106,162 +114,186 @@ msgstr ""
|
|
106 |
"esperienza sul nostro sito. Se continui ad utilizzare questo sito noi "
|
107 |
"assumiamo che tu ne sia felice."
|
108 |
|
109 |
-
#: ../cookie-notice.php:
|
110 |
msgid "Ok"
|
111 |
msgstr "Ok"
|
112 |
|
113 |
-
#: ../cookie-notice.php:
|
114 |
msgid "Read more"
|
115 |
msgstr "Leggi di più"
|
116 |
|
117 |
-
#: ../cookie-notice.php:
|
118 |
-
#: ../cookie-notice.php:204
|
119 |
msgid "Cookie Notice"
|
120 |
msgstr "Notifica Cookie"
|
121 |
|
122 |
-
#: ../cookie-notice.php:
|
123 |
msgid "Need support?"
|
124 |
msgstr "Hai bisogno di supporto?"
|
125 |
|
126 |
-
#: ../cookie-notice.php:
|
127 |
msgid ""
|
128 |
"If you are having problems with this plugin, please talk about them in the"
|
129 |
msgstr "Se hai incontrato problemi con questo plugin, per favore parlane nel"
|
130 |
|
131 |
-
#: ../cookie-notice.php:
|
132 |
msgid "Support forum"
|
133 |
msgstr "Forum di supporto"
|
134 |
|
135 |
-
#: ../cookie-notice.php:
|
136 |
msgid "Do you like this plugin?"
|
137 |
msgstr "Ti piace questo plugin?"
|
138 |
|
139 |
-
#: ../cookie-notice.php:
|
140 |
msgid "Rate it 5"
|
141 |
msgstr "Valutalo con 5"
|
142 |
|
143 |
-
#: ../cookie-notice.php:
|
144 |
msgid "on WordPress.org"
|
145 |
msgstr "su WordPress.org"
|
146 |
|
147 |
-
#: ../cookie-notice.php:
|
148 |
msgid "Blog about it & link to the"
|
149 |
msgstr "Scrivi su di esso e inserisci il link alla"
|
150 |
|
151 |
-
#: ../cookie-notice.php:
|
152 |
msgid "plugin page"
|
153 |
msgstr "pagina del plugin"
|
154 |
|
155 |
-
#: ../cookie-notice.php:
|
156 |
msgid "Check out our other"
|
157 |
msgstr "Dai una occhiata ai nostri "
|
158 |
|
159 |
-
#: ../cookie-notice.php:
|
160 |
msgid "WordPress plugins"
|
161 |
msgstr "Plugin di WordPress"
|
162 |
|
163 |
-
#: ../cookie-notice.php:
|
164 |
msgid "Configuration"
|
165 |
msgstr "Configurazione"
|
166 |
|
167 |
-
#: ../cookie-notice.php:
|
168 |
msgid "Message"
|
169 |
msgstr "Messaggio"
|
170 |
|
171 |
-
#: ../cookie-notice.php:
|
172 |
msgid "Button text"
|
173 |
msgstr "Testo del bottone"
|
174 |
|
175 |
-
#: ../cookie-notice.php:
|
176 |
msgid "More info"
|
177 |
msgstr "Maggiori informazioni"
|
178 |
|
179 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
180 |
msgid "Cookie expiry"
|
181 |
msgstr "Scadenza del cookie"
|
182 |
|
183 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
184 |
msgid "Deactivation"
|
185 |
msgstr "Disattivazione"
|
186 |
|
187 |
-
#: ../cookie-notice.php:
|
188 |
msgid "Design"
|
189 |
msgstr "Design"
|
190 |
|
191 |
-
#: ../cookie-notice.php:
|
192 |
msgid "Position"
|
193 |
msgstr "Posizione"
|
194 |
|
195 |
-
#: ../cookie-notice.php:
|
196 |
msgid "Animation"
|
197 |
msgstr "Animazione"
|
198 |
|
199 |
-
#: ../cookie-notice.php:
|
200 |
msgid "Button style"
|
201 |
msgstr "Stile del bottone"
|
202 |
|
203 |
-
#: ../cookie-notice.php:
|
204 |
msgid "Colors"
|
205 |
msgstr "Colori"
|
206 |
|
207 |
-
#: ../cookie-notice.php:
|
208 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
209 |
msgstr ""
|
210 |
"Abilita se vuoi che tutti i dati del plugin vengano eliminati con la "
|
211 |
"disattivazione."
|
212 |
|
213 |
-
#: ../cookie-notice.php:
|
214 |
msgid "Enter the cookie notice message."
|
215 |
msgstr "Inserisci il messaggio di notifica cookie"
|
216 |
|
217 |
-
#: ../cookie-notice.php:
|
218 |
-
msgid "
|
|
|
|
|
219 |
msgstr ""
|
220 |
-
"Il testo
|
|
|
221 |
|
222 |
-
#: ../cookie-notice.php:
|
223 |
msgid "Enable or Disable Read more button."
|
224 |
msgstr "Abilita o Disabilita il bottone Leggi di più"
|
225 |
|
226 |
-
#: ../cookie-notice.php:
|
227 |
msgid "Select where to redirect user for more information about cookies."
|
228 |
msgstr ""
|
229 |
"Seleziona dove indirizzare l'utente per ricevere maggiore informazioni sui "
|
230 |
"cookie"
|
231 |
|
232 |
-
#: ../cookie-notice.php:
|
233 |
msgid "-- select page --"
|
234 |
msgstr "-- seleziona la pagina --"
|
235 |
|
236 |
-
#: ../cookie-notice.php:
|
237 |
msgid "Select from one of your site's pages"
|
238 |
msgstr "Seleziona una delle pagine del tuo sito"
|
239 |
|
240 |
-
#: ../cookie-notice.php:
|
241 |
msgid "Enter the full URL starting with http://"
|
242 |
msgstr "Inserisci la URL completa compresiva di http://"
|
243 |
|
244 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
msgid "The ammount of time that cookie should be stored for."
|
246 |
msgstr ""
|
247 |
"Seleziona l'ammontare del tempo per il quale i cookie verrano mantenuti."
|
248 |
|
249 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
250 |
msgid "Select location for your cookie notice."
|
251 |
msgstr "Seleziona la posizione della tua notifica cookie"
|
252 |
|
253 |
-
#: ../cookie-notice.php:
|
254 |
msgid "Cookie notice acceptance animation."
|
255 |
msgstr "Animazione della accettazione notifica cookie"
|
256 |
|
257 |
-
#: ../cookie-notice.php:
|
258 |
msgid "Choose buttons style."
|
259 |
msgstr "Scegli lo stile del bottone."
|
260 |
|
261 |
-
#: ../cookie-notice.php:
|
262 |
msgid "Support"
|
263 |
msgstr "Supporto"
|
264 |
|
265 |
-
#: ../cookie-notice.php:
|
266 |
msgid "Settings"
|
267 |
msgstr "Impostazioni"
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Cookie Notice\n"
|
4 |
+
"POT-Creation-Date: 2015-06-01 12:01+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-06-01 12:13+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: dFactory <info@dfactory.eu>\n"
|
8 |
+
"Language: it_IT\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.6.10\n"
|
13 |
"X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
+
#: ../cookie-notice.php:121
|
20 |
msgid "Top"
|
21 |
msgstr "In alto"
|
22 |
|
23 |
+
#: ../cookie-notice.php:122
|
24 |
msgid "Bottom"
|
25 |
msgstr "In basso"
|
26 |
|
27 |
+
#: ../cookie-notice.php:126 ../cookie-notice.php:162
|
28 |
msgid "None"
|
29 |
msgstr "Nessuno"
|
30 |
|
31 |
+
#: ../cookie-notice.php:127
|
32 |
msgid "WordPress"
|
33 |
msgstr "WordPress"
|
34 |
|
35 |
+
#: ../cookie-notice.php:128
|
36 |
msgid "Bootstrap"
|
37 |
msgstr "Bootstrap"
|
38 |
|
39 |
+
#: ../cookie-notice.php:132
|
40 |
msgid "Enable"
|
41 |
msgstr "Abilita"
|
42 |
|
43 |
+
#: ../cookie-notice.php:133
|
44 |
msgid "Disable"
|
45 |
msgstr "Disabilita"
|
46 |
|
47 |
+
#: ../cookie-notice.php:137
|
48 |
msgid "Custom link"
|
49 |
msgstr "Link personalizzato"
|
50 |
|
51 |
+
#: ../cookie-notice.php:138
|
52 |
msgid "Page link"
|
53 |
msgstr "Link alla pagina"
|
54 |
|
55 |
+
#: ../cookie-notice.php:147
|
56 |
msgid "Text color"
|
57 |
msgstr "Colore del testo"
|
58 |
|
59 |
+
#: ../cookie-notice.php:148
|
60 |
msgid "Bar color"
|
61 |
msgstr "Colore della barra"
|
62 |
|
63 |
+
#: ../cookie-notice.php:152
|
64 |
msgid "1 day"
|
65 |
msgstr "1 giorno"
|
66 |
|
67 |
+
#: ../cookie-notice.php:153
|
68 |
msgid "1 week"
|
69 |
msgstr "1 settimana"
|
70 |
|
71 |
+
#: ../cookie-notice.php:154
|
72 |
msgid "1 month"
|
73 |
msgstr "1 mese"
|
74 |
|
75 |
+
#: ../cookie-notice.php:155
|
76 |
msgid "3 months"
|
77 |
msgstr "3 Mesi"
|
78 |
|
79 |
+
#: ../cookie-notice.php:156
|
80 |
msgid "6 months"
|
81 |
msgstr "6 Mesi"
|
82 |
|
83 |
+
#: ../cookie-notice.php:157
|
84 |
msgid "1 year"
|
85 |
msgstr "1 anno"
|
86 |
|
87 |
+
#: ../cookie-notice.php:158
|
88 |
msgid "infinity"
|
89 |
msgstr "infinito"
|
90 |
|
91 |
+
#: ../cookie-notice.php:163
|
92 |
msgid "Fade"
|
93 |
msgstr "Dissolvenza"
|
94 |
|
95 |
+
#: ../cookie-notice.php:164
|
96 |
msgid "Slide"
|
97 |
msgstr "Slittamento"
|
98 |
|
99 |
+
#: ../cookie-notice.php:168
|
100 |
+
msgid "Header"
|
101 |
+
msgstr "Header"
|
102 |
+
|
103 |
+
#: ../cookie-notice.php:169
|
104 |
+
msgid "Footer"
|
105 |
+
msgstr "Footer"
|
106 |
+
|
107 |
+
#: ../cookie-notice.php:188
|
108 |
msgid ""
|
109 |
"We use cookies to ensure that we give you the best experience on our "
|
110 |
"website. If you continue to use this site we will assume that you are happy "
|
114 |
"esperienza sul nostro sito. Se continui ad utilizzare questo sito noi "
|
115 |
"assumiamo che tu ne sia felice."
|
116 |
|
117 |
+
#: ../cookie-notice.php:189
|
118 |
msgid "Ok"
|
119 |
msgstr "Ok"
|
120 |
|
121 |
+
#: ../cookie-notice.php:190
|
122 |
msgid "Read more"
|
123 |
msgstr "Leggi di più"
|
124 |
|
125 |
+
#: ../cookie-notice.php:216 ../cookie-notice.php:226 ../cookie-notice.php:229
|
|
|
126 |
msgid "Cookie Notice"
|
127 |
msgstr "Notifica Cookie"
|
128 |
|
129 |
+
#: ../cookie-notice.php:231
|
130 |
msgid "Need support?"
|
131 |
msgstr "Hai bisogno di supporto?"
|
132 |
|
133 |
+
#: ../cookie-notice.php:232
|
134 |
msgid ""
|
135 |
"If you are having problems with this plugin, please talk about them in the"
|
136 |
msgstr "Se hai incontrato problemi con questo plugin, per favore parlane nel"
|
137 |
|
138 |
+
#: ../cookie-notice.php:232
|
139 |
msgid "Support forum"
|
140 |
msgstr "Forum di supporto"
|
141 |
|
142 |
+
#: ../cookie-notice.php:234
|
143 |
msgid "Do you like this plugin?"
|
144 |
msgstr "Ti piace questo plugin?"
|
145 |
|
146 |
+
#: ../cookie-notice.php:241
|
147 |
msgid "Rate it 5"
|
148 |
msgstr "Valutalo con 5"
|
149 |
|
150 |
+
#: ../cookie-notice.php:241
|
151 |
msgid "on WordPress.org"
|
152 |
msgstr "su WordPress.org"
|
153 |
|
154 |
+
#: ../cookie-notice.php:242
|
155 |
msgid "Blog about it & link to the"
|
156 |
msgstr "Scrivi su di esso e inserisci il link alla"
|
157 |
|
158 |
+
#: ../cookie-notice.php:242
|
159 |
msgid "plugin page"
|
160 |
msgstr "pagina del plugin"
|
161 |
|
162 |
+
#: ../cookie-notice.php:243
|
163 |
msgid "Check out our other"
|
164 |
msgstr "Dai una occhiata ai nostri "
|
165 |
|
166 |
+
#: ../cookie-notice.php:243
|
167 |
msgid "WordPress plugins"
|
168 |
msgstr "Plugin di WordPress"
|
169 |
|
170 |
+
#: ../cookie-notice.php:269
|
171 |
msgid "Configuration"
|
172 |
msgstr "Configurazione"
|
173 |
|
174 |
+
#: ../cookie-notice.php:270
|
175 |
msgid "Message"
|
176 |
msgstr "Messaggio"
|
177 |
|
178 |
+
#: ../cookie-notice.php:271 ../cookie-notice.php:348
|
179 |
msgid "Button text"
|
180 |
msgstr "Testo del bottone"
|
181 |
|
182 |
+
#: ../cookie-notice.php:272
|
183 |
msgid "More info"
|
184 |
msgstr "Maggiori informazioni"
|
185 |
|
186 |
+
#: ../cookie-notice.php:273
|
187 |
+
msgid "Link target"
|
188 |
+
msgstr "Destinazione del link"
|
189 |
+
|
190 |
+
#: ../cookie-notice.php:274
|
191 |
msgid "Cookie expiry"
|
192 |
msgstr "Scadenza del cookie"
|
193 |
|
194 |
+
#: ../cookie-notice.php:275
|
195 |
+
msgid "Script placement"
|
196 |
+
msgstr "Posizionamento script"
|
197 |
+
|
198 |
+
#: ../cookie-notice.php:276
|
199 |
msgid "Deactivation"
|
200 |
msgstr "Disattivazione"
|
201 |
|
202 |
+
#: ../cookie-notice.php:279
|
203 |
msgid "Design"
|
204 |
msgstr "Design"
|
205 |
|
206 |
+
#: ../cookie-notice.php:280
|
207 |
msgid "Position"
|
208 |
msgstr "Posizione"
|
209 |
|
210 |
+
#: ../cookie-notice.php:281
|
211 |
msgid "Animation"
|
212 |
msgstr "Animazione"
|
213 |
|
214 |
+
#: ../cookie-notice.php:282
|
215 |
msgid "Button style"
|
216 |
msgstr "Stile del bottone"
|
217 |
|
218 |
+
#: ../cookie-notice.php:283
|
219 |
msgid "Colors"
|
220 |
msgstr "Colori"
|
221 |
|
222 |
+
#: ../cookie-notice.php:301
|
223 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
224 |
msgstr ""
|
225 |
"Abilita se vuoi che tutti i dati del plugin vengano eliminati con la "
|
226 |
"disattivazione."
|
227 |
|
228 |
+
#: ../cookie-notice.php:313
|
229 |
msgid "Enter the cookie notice message."
|
230 |
msgstr "Inserisci il messaggio di notifica cookie"
|
231 |
|
232 |
+
#: ../cookie-notice.php:324
|
233 |
+
msgid ""
|
234 |
+
"The text of the option to accept the usage of the cookies and make the "
|
235 |
+
"notification disappear."
|
236 |
msgstr ""
|
237 |
+
"Il testo dell'opzione per accettare l'uso dei cookie e far sparire la "
|
238 |
+
"notifica."
|
239 |
|
240 |
+
#: ../cookie-notice.php:344
|
241 |
msgid "Enable or Disable Read more button."
|
242 |
msgstr "Abilita o Disabilita il bottone Leggi di più"
|
243 |
|
244 |
+
#: ../cookie-notice.php:361
|
245 |
msgid "Select where to redirect user for more information about cookies."
|
246 |
msgstr ""
|
247 |
"Seleziona dove indirizzare l'utente per ricevere maggiore informazioni sui "
|
248 |
"cookie"
|
249 |
|
250 |
+
#: ../cookie-notice.php:364
|
251 |
msgid "-- select page --"
|
252 |
msgstr "-- seleziona la pagina --"
|
253 |
|
254 |
+
#: ../cookie-notice.php:373
|
255 |
msgid "Select from one of your site's pages"
|
256 |
msgstr "Seleziona una delle pagine del tuo sito"
|
257 |
|
258 |
+
#: ../cookie-notice.php:377
|
259 |
msgid "Enter the full URL starting with http://"
|
260 |
msgstr "Inserisci la URL completa compresiva di http://"
|
261 |
|
262 |
+
#: ../cookie-notice.php:396
|
263 |
+
msgid "Select the link target for more info page."
|
264 |
+
msgstr ""
|
265 |
+
"Selezionare la destinazione del link per la pagina di informazioni "
|
266 |
+
"aggiuntive."
|
267 |
+
|
268 |
+
#: ../cookie-notice.php:416
|
269 |
msgid "The ammount of time that cookie should be stored for."
|
270 |
msgstr ""
|
271 |
"Seleziona l'ammontare del tempo per il quale i cookie verrano mantenuti."
|
272 |
|
273 |
+
#: ../cookie-notice.php:434
|
274 |
+
msgid "Select where all the plugin scripts should be placed."
|
275 |
+
msgstr "Seleziona dove tutti gli script del plugin debbono essere posizionati"
|
276 |
+
|
277 |
+
#: ../cookie-notice.php:454
|
278 |
msgid "Select location for your cookie notice."
|
279 |
msgstr "Seleziona la posizione della tua notifica cookie"
|
280 |
|
281 |
+
#: ../cookie-notice.php:474
|
282 |
msgid "Cookie notice acceptance animation."
|
283 |
msgstr "Animazione della accettazione notifica cookie"
|
284 |
|
285 |
+
#: ../cookie-notice.php:494
|
286 |
msgid "Choose buttons style."
|
287 |
msgstr "Scegli lo stile del bottone."
|
288 |
|
289 |
+
#: ../cookie-notice.php:622
|
290 |
msgid "Support"
|
291 |
msgstr "Supporto"
|
292 |
|
293 |
+
#: ../cookie-notice.php:644
|
294 |
msgid "Settings"
|
295 |
msgstr "Impostazioni"
|
296 |
+
|
297 |
+
#~ msgid "The text to show on the button when cookies have not been accepted"
|
298 |
+
#~ msgstr ""
|
299 |
+
#~ "Il testo da mostrare sul bottone quando i cookie non sono stati accettati"
|
languages/cookie-notice-pl_PL.mo
CHANGED
Binary file
|
languages/cookie-notice-pl_PL.po
CHANGED
@@ -1,109 +1,102 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Cookie Notice\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
|
7 |
"Language-Team: dFactory <info@dfactory.eu>\n"
|
8 |
-
"Language:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
13 |
"X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
|
|
16 |
"X-Poedit-SearchPath-0: ..\n"
|
17 |
|
18 |
-
#: ../cookie-notice.php:
|
19 |
msgid "Top"
|
20 |
msgstr "Na górze"
|
21 |
|
22 |
-
#: ../cookie-notice.php:
|
23 |
msgid "Bottom"
|
24 |
msgstr "Na dole"
|
25 |
|
26 |
-
#: ../cookie-notice.php:
|
27 |
msgid "None"
|
28 |
msgstr "Brak"
|
29 |
|
30 |
-
#: ../cookie-notice.php:
|
31 |
msgid "WordPress"
|
32 |
msgstr "WordPress"
|
33 |
|
34 |
-
#: ../cookie-notice.php:
|
35 |
msgid "Bootstrap"
|
36 |
msgstr "Bootstrap"
|
37 |
|
38 |
-
#: ../cookie-notice.php:
|
39 |
-
msgid "Enable"
|
40 |
-
msgstr "Włącz"
|
41 |
-
|
42 |
-
#: ../cookie-notice.php:123
|
43 |
-
msgid "Disable"
|
44 |
-
msgstr "Wyłącz"
|
45 |
-
|
46 |
-
#: ../cookie-notice.php:127
|
47 |
msgid "Custom link"
|
48 |
msgstr "Własny link"
|
49 |
|
50 |
-
#: ../cookie-notice.php:
|
51 |
msgid "Page link"
|
52 |
msgstr "Link do strony"
|
53 |
|
54 |
-
#: ../cookie-notice.php:
|
55 |
msgid "Text color"
|
56 |
msgstr "Kolor tekstu"
|
57 |
|
58 |
-
#: ../cookie-notice.php:
|
59 |
msgid "Bar color"
|
60 |
msgstr "Kolor tła"
|
61 |
|
62 |
-
#: ../cookie-notice.php:
|
63 |
msgid "1 day"
|
64 |
msgstr "1 dzień"
|
65 |
|
66 |
-
#: ../cookie-notice.php:
|
67 |
msgid "1 week"
|
68 |
msgstr "1 tydzień"
|
69 |
|
70 |
-
#: ../cookie-notice.php:
|
71 |
msgid "1 month"
|
72 |
msgstr "1 miesiąc"
|
73 |
|
74 |
-
#: ../cookie-notice.php:
|
75 |
msgid "3 months"
|
76 |
msgstr "3 miesiące"
|
77 |
|
78 |
-
#: ../cookie-notice.php:
|
79 |
msgid "6 months"
|
80 |
msgstr "6 miesięcy"
|
81 |
|
82 |
-
#: ../cookie-notice.php:
|
83 |
msgid "1 year"
|
84 |
msgstr "1 rok"
|
85 |
|
86 |
-
#: ../cookie-notice.php:
|
87 |
msgid "infinity"
|
88 |
msgstr "W nieskończoność"
|
89 |
|
90 |
-
#: ../cookie-notice.php:
|
91 |
msgid "Fade"
|
92 |
msgstr "Zanikanie"
|
93 |
|
94 |
-
#: ../cookie-notice.php:
|
95 |
msgid "Slide"
|
96 |
msgstr "Przesuwanie"
|
97 |
|
98 |
-
#: ../cookie-notice.php:
|
99 |
msgid "Header"
|
100 |
msgstr "W nagłówku"
|
101 |
|
102 |
-
#: ../cookie-notice.php:
|
103 |
msgid "Footer"
|
104 |
msgstr "W stopce"
|
105 |
|
106 |
-
#: ../cookie-notice.php:
|
107 |
msgid ""
|
108 |
"We use cookies to ensure that we give you the best experience on our "
|
109 |
"website. If you continue to use this site we will assume that you are happy "
|
@@ -112,182 +105,248 @@ msgstr ""
|
|
112 |
"Ta strona korzysta z ciasteczek aby świadczyć usługi na najwyższym poziomie. "
|
113 |
"Dalsze korzystanie ze strony oznacza, że zgadzasz się na ich użycie."
|
114 |
|
115 |
-
#: ../cookie-notice.php:
|
116 |
msgid "Ok"
|
117 |
msgstr "Zamknij"
|
118 |
|
119 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
120 |
msgid "Read more"
|
121 |
msgstr "Dowiedz się więcej"
|
122 |
|
123 |
-
#: ../cookie-notice.php:
|
124 |
-
#: ../cookie-notice.php:230
|
125 |
msgid "Cookie Notice"
|
126 |
msgstr "Ciasteczka"
|
127 |
|
128 |
-
#: ../cookie-notice.php:
|
129 |
msgid "Need support?"
|
130 |
msgstr "Potrzebujesz pomocy?"
|
131 |
|
132 |
-
#: ../cookie-notice.php:
|
133 |
msgid ""
|
134 |
"If you are having problems with this plugin, please talk about them in the"
|
135 |
msgstr "Jeśli masz jakieś problemy z tą wtyczką, powiedz o nich"
|
136 |
|
137 |
-
#: ../cookie-notice.php:
|
138 |
msgid "Support forum"
|
139 |
msgstr "Forum pomocy"
|
140 |
|
141 |
-
#: ../cookie-notice.php:
|
142 |
msgid "Do you like this plugin?"
|
143 |
msgstr "Lubisz tę wtyczkę?"
|
144 |
|
145 |
-
#: ../cookie-notice.php:
|
146 |
msgid "Rate it 5"
|
147 |
msgstr "Oceń ją na 5"
|
148 |
|
149 |
-
#: ../cookie-notice.php:
|
150 |
msgid "on WordPress.org"
|
151 |
msgstr "na WordPress.org"
|
152 |
|
153 |
-
#: ../cookie-notice.php:
|
154 |
msgid "Blog about it & link to the"
|
155 |
msgstr "Napisz o niej i dodaj link"
|
156 |
|
157 |
-
#: ../cookie-notice.php:
|
158 |
msgid "plugin page"
|
159 |
msgstr "do strony wtyczki"
|
160 |
|
161 |
-
#: ../cookie-notice.php:
|
162 |
msgid "Check out our other"
|
163 |
msgstr "Sprawdż nasze inne"
|
164 |
|
165 |
-
#: ../cookie-notice.php:
|
166 |
msgid "WordPress plugins"
|
167 |
msgstr "wtyczki do WordPressa"
|
168 |
|
169 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
170 |
msgid "Configuration"
|
171 |
msgstr "Konfiguracja"
|
172 |
|
173 |
-
#: ../cookie-notice.php:
|
174 |
msgid "Message"
|
175 |
msgstr "Wiadomość"
|
176 |
|
177 |
-
#: ../cookie-notice.php:
|
178 |
msgid "Button text"
|
179 |
msgstr "Tekst przycisku"
|
180 |
|
181 |
-
#: ../cookie-notice.php:275
|
182 |
-
msgid "More info"
|
183 |
-
msgstr "Więcej informacji"
|
184 |
-
|
185 |
#: ../cookie-notice.php:276
|
|
|
|
|
|
|
|
|
186 |
msgid "Link target"
|
187 |
msgstr "Cel linku"
|
188 |
|
189 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
190 |
msgid "Cookie expiry"
|
191 |
msgstr "Wygasanie cookie"
|
192 |
|
193 |
-
#: ../cookie-notice.php:
|
194 |
msgid "Script placement"
|
195 |
msgstr "Pozycja skryptów"
|
196 |
|
197 |
-
#: ../cookie-notice.php:
|
198 |
msgid "Deactivation"
|
199 |
msgstr "Deaktywacja"
|
200 |
|
201 |
-
#: ../cookie-notice.php:
|
202 |
msgid "Design"
|
203 |
msgstr "Wygląd"
|
204 |
|
205 |
-
#: ../cookie-notice.php:
|
206 |
msgid "Position"
|
207 |
msgstr "Pozycja"
|
208 |
|
209 |
-
#: ../cookie-notice.php:
|
210 |
msgid "Animation"
|
211 |
msgstr "Animacja"
|
212 |
|
213 |
-
#: ../cookie-notice.php:
|
214 |
msgid "Button style"
|
215 |
msgstr "Styl przycisku"
|
216 |
|
217 |
-
#: ../cookie-notice.php:
|
218 |
msgid "Colors"
|
219 |
msgstr "Kolorystyka"
|
220 |
|
221 |
-
#: ../cookie-notice.php:
|
222 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
223 |
msgstr ""
|
224 |
"Włącz jeśli chcesz usunąć wszystkie dane wtyczki podczas jej deaktywacji."
|
225 |
|
226 |
-
#: ../cookie-notice.php:
|
227 |
msgid "Enter the cookie notice message."
|
228 |
msgstr "Wpisz treść informacji o ciasteczkach."
|
229 |
|
230 |
-
#: ../cookie-notice.php:
|
231 |
msgid ""
|
232 |
"The text of the option to accept the usage of the cookies and make the "
|
233 |
"notification disappear."
|
234 |
msgstr "Treść przycisku do akceptacji ciasteczek i zamknięcia powiadomienia ."
|
235 |
|
236 |
-
#: ../cookie-notice.php:
|
237 |
-
msgid "
|
238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
|
240 |
-
#: ../cookie-notice.php:
|
241 |
msgid "Select where to redirect user for more information about cookies."
|
242 |
msgstr ""
|
243 |
"Wybierz dokąd przekierować użytkownika aby uzyskał więcej informacji o "
|
244 |
"ciasteczkach."
|
245 |
|
246 |
-
#: ../cookie-notice.php:
|
247 |
msgid "-- select page --"
|
248 |
msgstr "-- wybierz stronę --"
|
249 |
|
250 |
-
#: ../cookie-notice.php:
|
251 |
msgid "Select from one of your site's pages"
|
252 |
msgstr "Wybierz jedną z istniejących stron."
|
253 |
|
254 |
-
#: ../cookie-notice.php:
|
255 |
msgid "Enter the full URL starting with http://"
|
256 |
msgstr "Podaj pełny adres URL zaczynający się od http://"
|
257 |
|
258 |
-
#: ../cookie-notice.php:
|
259 |
msgid "Select the link target for more info page."
|
260 |
msgstr "Wybierz cel linku dla strony z dodatkowymi informacjami."
|
261 |
|
262 |
-
#: ../cookie-notice.php:
|
263 |
msgid "The ammount of time that cookie should be stored for."
|
264 |
msgstr "Okres czasu przez jaki będzie przechowywane ciasteczko."
|
265 |
|
266 |
-
#: ../cookie-notice.php:
|
267 |
msgid "Select where all the plugin scripts should be placed."
|
268 |
msgstr ""
|
269 |
"Wybierz w którym miejscu strony powinny być umieszczone skrypty wtyczki."
|
270 |
|
271 |
-
#: ../cookie-notice.php:
|
272 |
msgid "Select location for your cookie notice."
|
273 |
msgstr "Wybierz pozycję wiadomości o ciasteczkach."
|
274 |
|
275 |
-
#: ../cookie-notice.php:
|
276 |
msgid "Cookie notice acceptance animation."
|
277 |
msgstr "Animacja po akceptacji ciasteczek."
|
278 |
|
279 |
-
#: ../cookie-notice.php:
|
280 |
msgid "Choose buttons style."
|
281 |
msgstr "Wybierz styl dla przycisków."
|
282 |
|
283 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
284 |
msgid "Support"
|
285 |
msgstr "Forum pomocy"
|
286 |
|
287 |
-
#: ../cookie-notice.php:
|
288 |
msgid "Settings"
|
289 |
msgstr "Ustawienia"
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
#~ msgid "The text to show on the button when cookies have not been accepted"
|
292 |
#~ msgstr ""
|
293 |
#~ "Tekst przycisku, który będzie wyświetlany gdy ciasteczka nie zostały "
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Cookie Notice\n"
|
4 |
+
"POT-Creation-Date: 2015-06-01 19:54+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-06-01 19:58+0100\n"
|
6 |
"Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
|
7 |
"Language-Team: dFactory <info@dfactory.eu>\n"
|
8 |
+
"Language: pl_PL\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.1\n"
|
13 |
"X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
+
#: ../cookie-notice.php:123
|
20 |
msgid "Top"
|
21 |
msgstr "Na górze"
|
22 |
|
23 |
+
#: ../cookie-notice.php:124
|
24 |
msgid "Bottom"
|
25 |
msgstr "Na dole"
|
26 |
|
27 |
+
#: ../cookie-notice.php:128 ../cookie-notice.php:159
|
28 |
msgid "None"
|
29 |
msgstr "Brak"
|
30 |
|
31 |
+
#: ../cookie-notice.php:129
|
32 |
msgid "WordPress"
|
33 |
msgstr "WordPress"
|
34 |
|
35 |
+
#: ../cookie-notice.php:130
|
36 |
msgid "Bootstrap"
|
37 |
msgstr "Bootstrap"
|
38 |
|
39 |
+
#: ../cookie-notice.php:134
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
msgid "Custom link"
|
41 |
msgstr "Własny link"
|
42 |
|
43 |
+
#: ../cookie-notice.php:135
|
44 |
msgid "Page link"
|
45 |
msgstr "Link do strony"
|
46 |
|
47 |
+
#: ../cookie-notice.php:144
|
48 |
msgid "Text color"
|
49 |
msgstr "Kolor tekstu"
|
50 |
|
51 |
+
#: ../cookie-notice.php:145
|
52 |
msgid "Bar color"
|
53 |
msgstr "Kolor tła"
|
54 |
|
55 |
+
#: ../cookie-notice.php:149
|
56 |
msgid "1 day"
|
57 |
msgstr "1 dzień"
|
58 |
|
59 |
+
#: ../cookie-notice.php:150
|
60 |
msgid "1 week"
|
61 |
msgstr "1 tydzień"
|
62 |
|
63 |
+
#: ../cookie-notice.php:151
|
64 |
msgid "1 month"
|
65 |
msgstr "1 miesiąc"
|
66 |
|
67 |
+
#: ../cookie-notice.php:152
|
68 |
msgid "3 months"
|
69 |
msgstr "3 miesiące"
|
70 |
|
71 |
+
#: ../cookie-notice.php:153
|
72 |
msgid "6 months"
|
73 |
msgstr "6 miesięcy"
|
74 |
|
75 |
+
#: ../cookie-notice.php:154
|
76 |
msgid "1 year"
|
77 |
msgstr "1 rok"
|
78 |
|
79 |
+
#: ../cookie-notice.php:155
|
80 |
msgid "infinity"
|
81 |
msgstr "W nieskończoność"
|
82 |
|
83 |
+
#: ../cookie-notice.php:160
|
84 |
msgid "Fade"
|
85 |
msgstr "Zanikanie"
|
86 |
|
87 |
+
#: ../cookie-notice.php:161
|
88 |
msgid "Slide"
|
89 |
msgstr "Przesuwanie"
|
90 |
|
91 |
+
#: ../cookie-notice.php:165
|
92 |
msgid "Header"
|
93 |
msgstr "W nagłówku"
|
94 |
|
95 |
+
#: ../cookie-notice.php:166
|
96 |
msgid "Footer"
|
97 |
msgstr "W stopce"
|
98 |
|
99 |
+
#: ../cookie-notice.php:185
|
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 "
|
105 |
"Ta strona korzysta z ciasteczek aby świadczyć usługi na najwyższym poziomie. "
|
106 |
"Dalsze korzystanie ze strony oznacza, że zgadzasz się na ich użycie."
|
107 |
|
108 |
+
#: ../cookie-notice.php:186
|
109 |
msgid "Ok"
|
110 |
msgstr "Zamknij"
|
111 |
|
112 |
+
#: ../cookie-notice.php:187
|
113 |
+
msgid "No"
|
114 |
+
msgstr "Nie"
|
115 |
+
|
116 |
+
#: ../cookie-notice.php:188
|
117 |
msgid "Read more"
|
118 |
msgstr "Dowiedz się więcej"
|
119 |
|
120 |
+
#: ../cookie-notice.php:215 ../cookie-notice.php:225 ../cookie-notice.php:228
|
|
|
121 |
msgid "Cookie Notice"
|
122 |
msgstr "Ciasteczka"
|
123 |
|
124 |
+
#: ../cookie-notice.php:230
|
125 |
msgid "Need support?"
|
126 |
msgstr "Potrzebujesz pomocy?"
|
127 |
|
128 |
+
#: ../cookie-notice.php:231
|
129 |
msgid ""
|
130 |
"If you are having problems with this plugin, please talk about them in the"
|
131 |
msgstr "Jeśli masz jakieś problemy z tą wtyczką, powiedz o nich"
|
132 |
|
133 |
+
#: ../cookie-notice.php:231
|
134 |
msgid "Support forum"
|
135 |
msgstr "Forum pomocy"
|
136 |
|
137 |
+
#: ../cookie-notice.php:233
|
138 |
msgid "Do you like this plugin?"
|
139 |
msgstr "Lubisz tę wtyczkę?"
|
140 |
|
141 |
+
#: ../cookie-notice.php:240
|
142 |
msgid "Rate it 5"
|
143 |
msgstr "Oceń ją na 5"
|
144 |
|
145 |
+
#: ../cookie-notice.php:240
|
146 |
msgid "on WordPress.org"
|
147 |
msgstr "na WordPress.org"
|
148 |
|
149 |
+
#: ../cookie-notice.php:241
|
150 |
msgid "Blog about it & link to the"
|
151 |
msgstr "Napisz o niej i dodaj link"
|
152 |
|
153 |
+
#: ../cookie-notice.php:241
|
154 |
msgid "plugin page"
|
155 |
msgstr "do strony wtyczki"
|
156 |
|
157 |
+
#: ../cookie-notice.php:242
|
158 |
msgid "Check out our other"
|
159 |
msgstr "Sprawdż nasze inne"
|
160 |
|
161 |
+
#: ../cookie-notice.php:242
|
162 |
msgid "WordPress plugins"
|
163 |
msgstr "wtyczki do WordPressa"
|
164 |
|
165 |
+
#: ../cookie-notice.php:257
|
166 |
+
msgid "Reset to defaults"
|
167 |
+
msgstr "Resetuj do domyślnych"
|
168 |
+
|
169 |
+
#: ../cookie-notice.php:273
|
170 |
msgid "Configuration"
|
171 |
msgstr "Konfiguracja"
|
172 |
|
173 |
+
#: ../cookie-notice.php:274
|
174 |
msgid "Message"
|
175 |
msgstr "Wiadomość"
|
176 |
|
177 |
+
#: ../cookie-notice.php:275
|
178 |
msgid "Button text"
|
179 |
msgstr "Tekst przycisku"
|
180 |
|
|
|
|
|
|
|
|
|
181 |
#: ../cookie-notice.php:276
|
182 |
+
msgid "More info link"
|
183 |
+
msgstr "Dodatkowe informacje"
|
184 |
+
|
185 |
+
#: ../cookie-notice.php:277
|
186 |
msgid "Link target"
|
187 |
msgstr "Cel linku"
|
188 |
|
189 |
+
#: ../cookie-notice.php:278
|
190 |
+
msgid "Refuse button"
|
191 |
+
msgstr "Przycisk odmowy"
|
192 |
+
|
193 |
+
#: ../cookie-notice.php:279
|
194 |
msgid "Cookie expiry"
|
195 |
msgstr "Wygasanie cookie"
|
196 |
|
197 |
+
#: ../cookie-notice.php:280
|
198 |
msgid "Script placement"
|
199 |
msgstr "Pozycja skryptów"
|
200 |
|
201 |
+
#: ../cookie-notice.php:281
|
202 |
msgid "Deactivation"
|
203 |
msgstr "Deaktywacja"
|
204 |
|
205 |
+
#: ../cookie-notice.php:284
|
206 |
msgid "Design"
|
207 |
msgstr "Wygląd"
|
208 |
|
209 |
+
#: ../cookie-notice.php:285
|
210 |
msgid "Position"
|
211 |
msgstr "Pozycja"
|
212 |
|
213 |
+
#: ../cookie-notice.php:286
|
214 |
msgid "Animation"
|
215 |
msgstr "Animacja"
|
216 |
|
217 |
+
#: ../cookie-notice.php:287
|
218 |
msgid "Button style"
|
219 |
msgstr "Styl przycisku"
|
220 |
|
221 |
+
#: ../cookie-notice.php:288
|
222 |
msgid "Colors"
|
223 |
msgstr "Kolorystyka"
|
224 |
|
225 |
+
#: ../cookie-notice.php:296
|
226 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
227 |
msgstr ""
|
228 |
"Włącz jeśli chcesz usunąć wszystkie dane wtyczki podczas jej deaktywacji."
|
229 |
|
230 |
+
#: ../cookie-notice.php:306
|
231 |
msgid "Enter the cookie notice message."
|
232 |
msgstr "Wpisz treść informacji o ciasteczkach."
|
233 |
|
234 |
+
#: ../cookie-notice.php:317
|
235 |
msgid ""
|
236 |
"The text of the option to accept the usage of the cookies and make the "
|
237 |
"notification disappear."
|
238 |
msgstr "Treść przycisku do akceptacji ciasteczek i zamknięcia powiadomienia ."
|
239 |
|
240 |
+
#: ../cookie-notice.php:327
|
241 |
+
msgid ""
|
242 |
+
"Give to the user the possibility to refuse third party non functional "
|
243 |
+
"cookies."
|
244 |
+
msgstr "Zezwól użytkownikowi na odmowę używania nie funkcjonalnych ciasteczek."
|
245 |
+
|
246 |
+
#: ../cookie-notice.php:331
|
247 |
+
msgid ""
|
248 |
+
"The text of the option to refuse the usage of the cookies. To get the cookie "
|
249 |
+
"notice status use <code>cn_cookies_accepted()</code> function."
|
250 |
+
msgstr ""
|
251 |
+
"Treść opcji odmowy korzystania z ciasteczek. Aby uzyskać status akceptacji "
|
252 |
+
"ciasteczek użyj funkcji <code>cn_cookies_accepted()</code>."
|
253 |
+
|
254 |
+
#: ../cookie-notice.php:343
|
255 |
+
msgid "Enable Read more link."
|
256 |
+
msgstr "Włącz przycisk do dodatkowych informacji."
|
257 |
+
|
258 |
+
#: ../cookie-notice.php:348
|
259 |
+
msgid "The text of the more info button."
|
260 |
+
msgstr "Treść przycisku do dodatkowych informacji."
|
261 |
|
262 |
+
#: ../cookie-notice.php:360
|
263 |
msgid "Select where to redirect user for more information about cookies."
|
264 |
msgstr ""
|
265 |
"Wybierz dokąd przekierować użytkownika aby uzyskał więcej informacji o "
|
266 |
"ciasteczkach."
|
267 |
|
268 |
+
#: ../cookie-notice.php:363
|
269 |
msgid "-- select page --"
|
270 |
msgstr "-- wybierz stronę --"
|
271 |
|
272 |
+
#: ../cookie-notice.php:372
|
273 |
msgid "Select from one of your site's pages"
|
274 |
msgstr "Wybierz jedną z istniejących stron."
|
275 |
|
276 |
+
#: ../cookie-notice.php:376
|
277 |
msgid "Enter the full URL starting with http://"
|
278 |
msgstr "Podaj pełny adres URL zaczynający się od http://"
|
279 |
|
280 |
+
#: ../cookie-notice.php:396
|
281 |
msgid "Select the link target for more info page."
|
282 |
msgstr "Wybierz cel linku dla strony z dodatkowymi informacjami."
|
283 |
|
284 |
+
#: ../cookie-notice.php:416
|
285 |
msgid "The ammount of time that cookie should be stored for."
|
286 |
msgstr "Okres czasu przez jaki będzie przechowywane ciasteczko."
|
287 |
|
288 |
+
#: ../cookie-notice.php:433
|
289 |
msgid "Select where all the plugin scripts should be placed."
|
290 |
msgstr ""
|
291 |
"Wybierz w którym miejscu strony powinny być umieszczone skrypty wtyczki."
|
292 |
|
293 |
+
#: ../cookie-notice.php:452
|
294 |
msgid "Select location for your cookie notice."
|
295 |
msgstr "Wybierz pozycję wiadomości o ciasteczkach."
|
296 |
|
297 |
+
#: ../cookie-notice.php:471
|
298 |
msgid "Cookie notice acceptance animation."
|
299 |
msgstr "Animacja po akceptacji ciasteczek."
|
300 |
|
301 |
+
#: ../cookie-notice.php:490
|
302 |
msgid "Choose buttons style."
|
303 |
msgstr "Wybierz styl dla przycisków."
|
304 |
|
305 |
+
#: ../cookie-notice.php:571
|
306 |
+
msgid "Settings restored to defaults."
|
307 |
+
msgstr "Ustawienia zostały przywrócone do domyślnych."
|
308 |
+
|
309 |
+
#: ../cookie-notice.php:654
|
310 |
msgid "Support"
|
311 |
msgstr "Forum pomocy"
|
312 |
|
313 |
+
#: ../cookie-notice.php:669
|
314 |
msgid "Settings"
|
315 |
msgstr "Ustawienia"
|
316 |
|
317 |
+
#: ../cookie-notice.php:703
|
318 |
+
msgid "Are you sure you want to reset these settings to defaults?"
|
319 |
+
msgstr "Jesteś pewny, że chcesz przywrócić te ustawienia do domyślnych?"
|
320 |
+
|
321 |
+
#~ msgid ""
|
322 |
+
#~ "The text of the option to refuse the usage of the cookies. To get the "
|
323 |
+
#~ "cookie status use <code>cn_cookies_accepted()</code> function."
|
324 |
+
#~ msgstr ""
|
325 |
+
#~ "Treść przycisku do domowy używania ciasteczek. Aby uzyskać status ci"
|
326 |
+
|
327 |
+
#~ msgid ""
|
328 |
+
#~ "The text of the option to refuse the usage of the cookies. To get the "
|
329 |
+
#~ "cookie status in your theme use <code>cn_cookies_accepted()</code> "
|
330 |
+
#~ "function."
|
331 |
+
#~ msgstr ""
|
332 |
+
#~ "Treść przycisku do odmowy korzystania z ciasteczek. Aby uzyskać status "
|
333 |
+
#~ "ciasteczek użyj funkcjo <code>cn_cookies_accepted()</code>."
|
334 |
+
|
335 |
+
#~ msgid "Enable Read more link button."
|
336 |
+
#~ msgstr "Włącz link do dodatkowych informacji."
|
337 |
+
|
338 |
+
#~ msgid "Enable"
|
339 |
+
#~ msgstr "Włącz"
|
340 |
+
|
341 |
+
#~ msgid "Disable"
|
342 |
+
#~ msgstr "Wyłącz"
|
343 |
+
|
344 |
+
#~ msgid "More info"
|
345 |
+
#~ msgstr "Więcej informacji"
|
346 |
+
|
347 |
+
#~ msgid "Enable or Disable Read more button."
|
348 |
+
#~ msgstr "Włącz lub wyłącz przycisk z linkiem do dodatkowych informacji."
|
349 |
+
|
350 |
#~ msgid "The text to show on the button when cookies have not been accepted"
|
351 |
#~ msgstr ""
|
352 |
#~ "Tekst przycisku, który będzie wyświetlany gdy ciasteczka nie zostały "
|
languages/cookie-notice.pot
CHANGED
@@ -1,7 +1,8 @@
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Cookie Notice\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
"PO-Revision-Date: 2015-03-24 11:30+0100\n"
|
6 |
"Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
|
7 |
"Language-Team: dFactory <info@dfactory.eu>\n"
|
@@ -9,275 +10,302 @@ msgstr ""
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
13 |
"X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"X-Poedit-SearchPath-0: ..\n"
|
17 |
|
18 |
-
#: ../cookie-notice.php:
|
19 |
msgid "Top"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: ../cookie-notice.php:
|
23 |
msgid "Bottom"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: ../cookie-notice.php:
|
27 |
msgid "None"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: ../cookie-notice.php:
|
31 |
msgid "WordPress"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: ../cookie-notice.php:
|
35 |
msgid "Bootstrap"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: ../cookie-notice.php:
|
39 |
-
msgid "Enable"
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: ../cookie-notice.php:123
|
43 |
-
msgid "Disable"
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#: ../cookie-notice.php:127
|
47 |
msgid "Custom link"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: ../cookie-notice.php:
|
51 |
msgid "Page link"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: ../cookie-notice.php:
|
55 |
msgid "Text color"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: ../cookie-notice.php:
|
59 |
msgid "Bar color"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: ../cookie-notice.php:
|
63 |
msgid "1 day"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: ../cookie-notice.php:
|
67 |
msgid "1 week"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: ../cookie-notice.php:
|
71 |
msgid "1 month"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: ../cookie-notice.php:
|
75 |
msgid "3 months"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: ../cookie-notice.php:
|
79 |
msgid "6 months"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: ../cookie-notice.php:
|
83 |
msgid "1 year"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: ../cookie-notice.php:
|
87 |
msgid "infinity"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: ../cookie-notice.php:
|
91 |
msgid "Fade"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: ../cookie-notice.php:
|
95 |
msgid "Slide"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: ../cookie-notice.php:
|
99 |
msgid "Header"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: ../cookie-notice.php:
|
103 |
msgid "Footer"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: ../cookie-notice.php:
|
107 |
msgid ""
|
108 |
"We use cookies to ensure that we give you the best experience on our "
|
109 |
"website. If you continue to use this site we will assume that you are happy "
|
110 |
"with it."
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: ../cookie-notice.php:
|
114 |
msgid "Ok"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
118 |
msgid "Read more"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: ../cookie-notice.php:
|
122 |
-
#: ../cookie-notice.php:230
|
123 |
msgid "Cookie Notice"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: ../cookie-notice.php:
|
127 |
msgid "Need support?"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: ../cookie-notice.php:
|
131 |
msgid ""
|
132 |
"If you are having problems with this plugin, please talk about them in the"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: ../cookie-notice.php:
|
136 |
msgid "Support forum"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: ../cookie-notice.php:
|
140 |
msgid "Do you like this plugin?"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: ../cookie-notice.php:
|
144 |
msgid "Rate it 5"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: ../cookie-notice.php:
|
148 |
msgid "on WordPress.org"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: ../cookie-notice.php:
|
152 |
msgid "Blog about it & link to the"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: ../cookie-notice.php:
|
156 |
msgid "plugin page"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: ../cookie-notice.php:
|
160 |
msgid "Check out our other"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: ../cookie-notice.php:
|
164 |
msgid "WordPress plugins"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: ../cookie-notice.php:
|
168 |
-
msgid "
|
169 |
msgstr ""
|
170 |
|
171 |
#: ../cookie-notice.php:273
|
172 |
-
msgid "
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: ../cookie-notice.php:274
|
176 |
-
msgid "
|
177 |
msgstr ""
|
178 |
|
179 |
#: ../cookie-notice.php:275
|
180 |
-
msgid "
|
181 |
msgstr ""
|
182 |
|
183 |
#: ../cookie-notice.php:276
|
184 |
-
msgid "
|
185 |
msgstr ""
|
186 |
|
187 |
#: ../cookie-notice.php:277
|
188 |
-
msgid "
|
189 |
msgstr ""
|
190 |
|
191 |
#: ../cookie-notice.php:278
|
192 |
-
msgid "
|
193 |
msgstr ""
|
194 |
|
195 |
#: ../cookie-notice.php:279
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
msgid "Deactivation"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: ../cookie-notice.php:
|
200 |
msgid "Design"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: ../cookie-notice.php:
|
204 |
msgid "Position"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: ../cookie-notice.php:
|
208 |
msgid "Animation"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: ../cookie-notice.php:
|
212 |
msgid "Button style"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: ../cookie-notice.php:
|
216 |
msgid "Colors"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: ../cookie-notice.php:
|
220 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: ../cookie-notice.php:
|
224 |
msgid "Enter the cookie notice message."
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: ../cookie-notice.php:
|
228 |
msgid ""
|
229 |
"The text of the option to accept the usage of the cookies and make the "
|
230 |
"notification disappear."
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: ../cookie-notice.php:
|
234 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: ../cookie-notice.php:
|
238 |
msgid "Select where to redirect user for more information about cookies."
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: ../cookie-notice.php:
|
242 |
msgid "-- select page --"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: ../cookie-notice.php:
|
246 |
msgid "Select from one of your site's pages"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: ../cookie-notice.php:
|
250 |
msgid "Enter the full URL starting with http://"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: ../cookie-notice.php:
|
254 |
msgid "Select the link target for more info page."
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: ../cookie-notice.php:
|
258 |
msgid "The ammount of time that cookie should be stored for."
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: ../cookie-notice.php:
|
262 |
msgid "Select where all the plugin scripts should be placed."
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: ../cookie-notice.php:
|
266 |
msgid "Select location for your cookie notice."
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: ../cookie-notice.php:
|
270 |
msgid "Cookie notice acceptance animation."
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: ../cookie-notice.php:
|
274 |
msgid "Choose buttons style."
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
278 |
msgid "Support"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: ../cookie-notice.php:
|
282 |
msgid "Settings"
|
283 |
msgstr ""
|
|
|
|
|
|
|
|
1 |
+
#, fuzzy
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Cookie Notice\n"
|
5 |
+
"POT-Creation-Date: 2015-06-01 19:53+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"
|
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.1\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:123
|
20 |
msgid "Top"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: ../cookie-notice.php:124
|
24 |
msgid "Bottom"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: ../cookie-notice.php:128 ../cookie-notice.php:159
|
28 |
msgid "None"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: ../cookie-notice.php:129
|
32 |
msgid "WordPress"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: ../cookie-notice.php:130
|
36 |
msgid "Bootstrap"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: ../cookie-notice.php:134
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
msgid "Custom link"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: ../cookie-notice.php:135
|
44 |
msgid "Page link"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../cookie-notice.php:144
|
48 |
msgid "Text color"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../cookie-notice.php:145
|
52 |
msgid "Bar color"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: ../cookie-notice.php:149
|
56 |
msgid "1 day"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: ../cookie-notice.php:150
|
60 |
msgid "1 week"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../cookie-notice.php:151
|
64 |
msgid "1 month"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: ../cookie-notice.php:152
|
68 |
msgid "3 months"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: ../cookie-notice.php:153
|
72 |
msgid "6 months"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../cookie-notice.php:154
|
76 |
msgid "1 year"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../cookie-notice.php:155
|
80 |
msgid "infinity"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: ../cookie-notice.php:160
|
84 |
msgid "Fade"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: ../cookie-notice.php:161
|
88 |
msgid "Slide"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: ../cookie-notice.php:165
|
92 |
msgid "Header"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: ../cookie-notice.php:166
|
96 |
msgid "Footer"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: ../cookie-notice.php:185
|
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:186
|
107 |
msgid "Ok"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: ../cookie-notice.php:187
|
111 |
+
msgid "No"
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: ../cookie-notice.php:188
|
115 |
msgid "Read more"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: ../cookie-notice.php:215 ../cookie-notice.php:225 ../cookie-notice.php:228
|
|
|
119 |
msgid "Cookie Notice"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: ../cookie-notice.php:230
|
123 |
msgid "Need support?"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: ../cookie-notice.php:231
|
127 |
msgid ""
|
128 |
"If you are having problems with this plugin, please talk about them in the"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: ../cookie-notice.php:231
|
132 |
msgid "Support forum"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: ../cookie-notice.php:233
|
136 |
msgid "Do you like this plugin?"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: ../cookie-notice.php:240
|
140 |
msgid "Rate it 5"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: ../cookie-notice.php:240
|
144 |
msgid "on WordPress.org"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: ../cookie-notice.php:241
|
148 |
msgid "Blog about it & link to the"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: ../cookie-notice.php:241
|
152 |
msgid "plugin page"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: ../cookie-notice.php:242
|
156 |
msgid "Check out our other"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: ../cookie-notice.php:242
|
160 |
msgid "WordPress plugins"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: ../cookie-notice.php:257
|
164 |
+
msgid "Reset to defaults"
|
165 |
msgstr ""
|
166 |
|
167 |
#: ../cookie-notice.php:273
|
168 |
+
msgid "Configuration"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: ../cookie-notice.php:274
|
172 |
+
msgid "Message"
|
173 |
msgstr ""
|
174 |
|
175 |
#: ../cookie-notice.php:275
|
176 |
+
msgid "Button text"
|
177 |
msgstr ""
|
178 |
|
179 |
#: ../cookie-notice.php:276
|
180 |
+
msgid "More info link"
|
181 |
msgstr ""
|
182 |
|
183 |
#: ../cookie-notice.php:277
|
184 |
+
msgid "Link target"
|
185 |
msgstr ""
|
186 |
|
187 |
#: ../cookie-notice.php:278
|
188 |
+
msgid "Refuse button"
|
189 |
msgstr ""
|
190 |
|
191 |
#: ../cookie-notice.php:279
|
192 |
+
msgid "Cookie expiry"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: ../cookie-notice.php:280
|
196 |
+
msgid "Script placement"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: ../cookie-notice.php:281
|
200 |
msgid "Deactivation"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: ../cookie-notice.php:284
|
204 |
msgid "Design"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: ../cookie-notice.php:285
|
208 |
msgid "Position"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: ../cookie-notice.php:286
|
212 |
msgid "Animation"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: ../cookie-notice.php:287
|
216 |
msgid "Button style"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: ../cookie-notice.php:288
|
220 |
msgid "Colors"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: ../cookie-notice.php:296
|
224 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: ../cookie-notice.php:306
|
228 |
msgid "Enter the cookie notice message."
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: ../cookie-notice.php:317
|
232 |
msgid ""
|
233 |
"The text of the option to accept the usage of the cookies and make the "
|
234 |
"notification disappear."
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: ../cookie-notice.php:327
|
238 |
+
msgid ""
|
239 |
+
"Give to the user the possibility to refuse third party non functional "
|
240 |
+
"cookies."
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: ../cookie-notice.php:331
|
244 |
+
msgid ""
|
245 |
+
"The text of the option to refuse the usage of the cookies. To get the "
|
246 |
+
"cookie notice status use <code>cn_cookies_accepted()</code> function."
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#: ../cookie-notice.php:343
|
250 |
+
msgid "Enable Read more link."
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: ../cookie-notice.php:348
|
254 |
+
msgid "The text of the more info button."
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: ../cookie-notice.php:360
|
258 |
msgid "Select where to redirect user for more information about cookies."
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: ../cookie-notice.php:363
|
262 |
msgid "-- select page --"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: ../cookie-notice.php:372
|
266 |
msgid "Select from one of your site's pages"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: ../cookie-notice.php:376
|
270 |
msgid "Enter the full URL starting with http://"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: ../cookie-notice.php:396
|
274 |
msgid "Select the link target for more info page."
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: ../cookie-notice.php:416
|
278 |
msgid "The ammount of time that cookie should be stored for."
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: ../cookie-notice.php:433
|
282 |
msgid "Select where all the plugin scripts should be placed."
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: ../cookie-notice.php:452
|
286 |
msgid "Select location for your cookie notice."
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: ../cookie-notice.php:471
|
290 |
msgid "Cookie notice acceptance animation."
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: ../cookie-notice.php:490
|
294 |
msgid "Choose buttons style."
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: ../cookie-notice.php:571
|
298 |
+
msgid "Settings restored to defaults."
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: ../cookie-notice.php:654
|
302 |
msgid "Support"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: ../cookie-notice.php:669
|
306 |
msgid "Settings"
|
307 |
msgstr ""
|
308 |
+
|
309 |
+
#: ../cookie-notice.php:703
|
310 |
+
msgid "Are you sure you want to reset these settings to defaults?"
|
311 |
+
msgstr ""
|
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.2.
|
7 |
-
Stable tag: 1.2.
|
8 |
License: MIT License
|
9 |
License URI: http://opensource.org/licenses/MIT
|
10 |
|
@@ -21,6 +21,7 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
|
|
21 |
* Customize the cookie message
|
22 |
* Redirect users to specified page for more cookie information
|
23 |
* Set cookie expiry
|
|
|
24 |
* Select the position of the cookie message box
|
25 |
* Animate the message box after cookie is accepted
|
26 |
* Select bottons style from None, WordPress and Bootstrap
|
@@ -28,6 +29,18 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
|
|
28 |
* WPML and Polylang compatible
|
29 |
* .pot file for translations included
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
= Translations: =
|
32 |
|
33 |
* Croatian - by [Marko Beus](http://www.markobeus.com/)
|
@@ -46,11 +59,6 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
|
|
46 |
* Spanish - by Fernando Blasco
|
47 |
* Swedish - by [Daniel Storgards](http://www.danielstorgards.com/)
|
48 |
|
49 |
-
= Get involved =
|
50 |
-
|
51 |
-
Feel free to contribute to the source code on the [dFactory GitHub Repository](https://github.com/dfactoryplugins).
|
52 |
-
|
53 |
-
|
54 |
== Installation ==
|
55 |
|
56 |
1. Install Cookie Notice either via the WordPress.org plugin directory, or by uploading the files to your server
|
@@ -67,6 +75,11 @@ No questions yet.
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
|
|
|
|
|
|
|
|
|
|
70 |
= 1.2.23 =
|
71 |
* New: Finnish translation, thanks to [Daniel Storgards](www.danielstorgards.com)
|
72 |
|
@@ -165,5 +178,6 @@ Initial release
|
|
165 |
|
166 |
== Upgrade Notice ==
|
167 |
|
168 |
-
= 1.2.
|
169 |
-
* New:
|
|
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.2.2
|
7 |
+
Stable tag: 1.2.24
|
8 |
License: MIT License
|
9 |
License URI: http://opensource.org/licenses/MIT
|
10 |
|
21 |
* Customize the cookie message
|
22 |
* Redirect users to specified page for more cookie information
|
23 |
* Set cookie expiry
|
24 |
+
|
25 |
* Select the position of the cookie message box
|
26 |
* Animate the message box after cookie is accepted
|
27 |
* Select bottons style from None, WordPress and Bootstrap
|
29 |
* WPML and Polylang compatible
|
30 |
* .pot file for translations included
|
31 |
|
32 |
+
= Usage: =
|
33 |
+
|
34 |
+
If you'd like to code a functionality depending on the cookie notice value use the function below:
|
35 |
+
|
36 |
+
`if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) {
|
37 |
+
// Your third-party non functional code here
|
38 |
+
}`
|
39 |
+
|
40 |
+
= Get involved =
|
41 |
+
|
42 |
+
Feel free to contribute to the source code on the [dFactory GitHub Repository](https://github.com/dfactoryplugins).
|
43 |
+
|
44 |
= Translations: =
|
45 |
|
46 |
* Croatian - by [Marko Beus](http://www.markobeus.com/)
|
59 |
* Spanish - by Fernando Blasco
|
60 |
* Swedish - by [Daniel Storgards](http://www.danielstorgards.com/)
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
== Installation ==
|
63 |
|
64 |
1. Install Cookie Notice either via the WordPress.org plugin directory, or by uploading the files to your server
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 1.2.24 =
|
79 |
+
* New: Option to refuse to accept cookies
|
80 |
+
* New: setCookieNotice custom jQuery event
|
81 |
+
* Tweak: Italian translation updated, thanks to Luca Speranza
|
82 |
+
|
83 |
= 1.2.23 =
|
84 |
* New: Finnish translation, thanks to [Daniel Storgards](www.danielstorgards.com)
|
85 |
|
178 |
|
179 |
== Upgrade Notice ==
|
180 |
|
181 |
+
= 1.2.24 =
|
182 |
+
* New: Option to refuse to accept cookies
|
183 |
+
* New: setCookieNotice custom jQuery event
|