Version Description
Release Date: May 27th, 2015
Dev time: 20h
- Fixed duble alert box in admin when options are saved
- Add options for mouse scroll event
- Added options for add margin at top of the page if topbar is used
- Added advanced options for set Cookie name and Cookie value for an eventual migration to this plugin
Download this release
Release Info
Developer | overclokk |
Plugin | Italy Cookie Choices (for EU Cookie Law) |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.2.0
- italy-cookie-choices.php +252 -5
- js/cookiechoices.js +10 -19
- js/cookiechoices.php +1 -1
- lang/italy-cookie-choices-it_IT.mo +0 -0
- lang/italy-cookie-choices-it_IT.po +84 -25
- lang/italy-cookie-choices.pot +79 -23
- readme.txt +19 -1
- screenshot-1.jpg +0 -0
- screenshot-1.png +0 -0
- screenshot-2.jpg +0 -0
- screenshot-2.png +0 -0
- screenshot-3.jpg +0 -0
- screenshot-3.png +0 -0
- screenshot-4.jpg +0 -0
- screenshot-4.png +0 -0
italy-cookie-choices.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Italy Cookie Choices
|
4 |
* Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
|
5 |
* Description: Minimal code to make sure your website repect the Italian coockie law
|
6 |
-
* Version: 1.
|
7 |
* Author: Enea Overclokk
|
8 |
* Author URI: https://plus.google.com/u/0/communities/109254048492234113886
|
9 |
* Text Domain: italy-cookie-choices
|
@@ -82,6 +82,18 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
82 |
*/
|
83 |
private $options = array();
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
/**
|
86 |
* [__construct description]
|
87 |
*/
|
@@ -134,7 +146,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
134 |
?>
|
135 |
<div class="wrap">
|
136 |
|
137 |
-
<?php settings_errors(); ?>
|
138 |
|
139 |
<form action='options.php' method='post'>
|
140 |
|
@@ -220,6 +232,17 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
220 |
'setting_section'
|
221 |
);
|
222 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
/**
|
224 |
*
|
225 |
*/
|
@@ -264,6 +287,59 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
264 |
'setting_section'
|
265 |
);
|
266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
/**
|
268 |
*
|
269 |
*/
|
@@ -333,6 +409,24 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
333 |
|
334 |
}
|
335 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
/**
|
337 |
* Textarea for the message to display
|
338 |
* @return string
|
@@ -402,6 +496,92 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
402 |
|
403 |
}
|
404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
/**
|
406 |
* Sanitize data
|
407 |
* @param array $input Data to sanitize
|
@@ -417,6 +597,9 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
417 |
if( isset( $input['banner'] ) )
|
418 |
$new_input['banner'] = $input['banner'];
|
419 |
|
|
|
|
|
|
|
420 |
if( isset( $input['text'] ) )
|
421 |
$new_input['text'] = sanitize_text_field( $input['text'] );
|
422 |
|
@@ -429,6 +612,32 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
429 |
if( isset( $input['button_text'] ) )
|
430 |
$new_input['button_text'] = sanitize_text_field( $input['button_text'] );
|
431 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
return $new_input;
|
433 |
|
434 |
}
|
@@ -455,6 +664,8 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
455 |
else
|
456 |
$banner = '';
|
457 |
|
|
|
|
|
458 |
/**
|
459 |
* Snippet for display banner
|
460 |
* @uses json_encode Funzione usate per il testo del messaggio.
|
@@ -464,8 +675,44 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
464 |
*/
|
465 |
$banner = 'document.addEventListener("DOMContentLoaded", function(event) {cookieChoices.showCookieConsent' . $banner . '(' . wp_json_encode( $this->options['text'] ) . ', "' . esc_js( $this->options['button_text'] ) . '", "' . esc_js( $this->options['anchor_text'] ) . '", "' . esc_url( $this->options['url'] ) . '");});';
|
466 |
|
467 |
-
|
468 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
469 |
|
470 |
/**
|
471 |
* Noscript snippet in case browser has JavaScript disabled
|
@@ -473,7 +720,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
473 |
*/
|
474 |
$noscript = '<noscript><style>html{margin-top:35px}</style><div id="cookieChoiceInfo" style="position:absolute;width:100%;margin:0px;left:0px;top:0px;padding:4px;z-index:9999;text-align:center;background-color:rgb(238, 238, 238);"><span>' . wp_json_encode( $this->options['text'] ) . '</span><a href="' . esc_url( $this->options['url'] ) . '" target="_blank" style="margin-left:8px;">' . esc_js( $this->options['anchor_text'] ) . '</a><a id="cookieChoiceDismiss" href="#" style="margin-left:24px;display:none;">' . esc_js( $this->options['button_text'] ) . '</a></div></div></noscript>';
|
475 |
|
476 |
-
echo '<!-- Italy Cookie Choices
|
477 |
require 'js/cookiechoices.php';
|
478 |
echo $banner . '</script>' . $noscript;
|
479 |
|
3 |
* Plugin Name: Italy Cookie Choices
|
4 |
* Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
|
5 |
* Description: Minimal code to make sure your website repect the Italian coockie law
|
6 |
+
* Version: 1.2.0
|
7 |
* Author: Enea Overclokk
|
8 |
* Author URI: https://plus.google.com/u/0/communities/109254048492234113886
|
9 |
* Text Domain: italy-cookie-choices
|
82 |
*/
|
83 |
private $options = array();
|
84 |
|
85 |
+
/**
|
86 |
+
* Default Cookie name
|
87 |
+
* @var string
|
88 |
+
*/
|
89 |
+
private $cookieName = 'displayCookieConsent';
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Default cookie value
|
93 |
+
* @var string
|
94 |
+
*/
|
95 |
+
private $cookieVal = 'y';
|
96 |
+
|
97 |
/**
|
98 |
* [__construct description]
|
99 |
*/
|
146 |
?>
|
147 |
<div class="wrap">
|
148 |
|
149 |
+
<?php //settings_errors('italy_cookie_id'); ?>
|
150 |
|
151 |
<form action='options.php' method='post'>
|
152 |
|
232 |
'setting_section'
|
233 |
);
|
234 |
|
235 |
+
/**
|
236 |
+
* Checkbox for scroll event
|
237 |
+
*/
|
238 |
+
add_settings_field(
|
239 |
+
'scroll',
|
240 |
+
__( 'Mouse scroll event', 'italy-cookie-choices' ),
|
241 |
+
array( $this, 'italy_cl_option_scroll'),
|
242 |
+
'italy_cl_options_group',
|
243 |
+
'setting_section'
|
244 |
+
);
|
245 |
+
|
246 |
/**
|
247 |
*
|
248 |
*/
|
287 |
'setting_section'
|
288 |
);
|
289 |
|
290 |
+
/**
|
291 |
+
* Settings sections for Style
|
292 |
+
*/
|
293 |
+
add_settings_section(
|
294 |
+
'style_setting_section',
|
295 |
+
__( 'Style settings', 'italy-cookie-choices' ),
|
296 |
+
array( $this, 'italy_cl_style_settings_section_callback'),
|
297 |
+
'italy_cl_options_group'
|
298 |
+
);
|
299 |
+
|
300 |
+
/**
|
301 |
+
* Checkbox for activation
|
302 |
+
*/
|
303 |
+
add_settings_field(
|
304 |
+
'html_margin',
|
305 |
+
__( 'HTML top margin', 'italy-cookie-choices' ),
|
306 |
+
array( $this, 'italy_cl_option_html_margin'),
|
307 |
+
'italy_cl_options_group',
|
308 |
+
'style_setting_section'
|
309 |
+
);
|
310 |
+
|
311 |
+
/**
|
312 |
+
* Settings sections for Advanced options
|
313 |
+
*/
|
314 |
+
add_settings_section(
|
315 |
+
'advanced_setting_section',
|
316 |
+
__( 'Advanced settngs', 'italy-cookie-choices' ),
|
317 |
+
array( $this, 'italy_cl_advanced_settings_section_callback'),
|
318 |
+
'italy_cl_options_group'
|
319 |
+
);
|
320 |
+
|
321 |
+
/**
|
322 |
+
*
|
323 |
+
*/
|
324 |
+
add_settings_field(
|
325 |
+
'cookie_name',
|
326 |
+
__( 'Cookie name', 'italy-cookie-choices' ),
|
327 |
+
array( $this, 'italy_cl_option_cookie_name'),
|
328 |
+
'italy_cl_options_group',
|
329 |
+
'advanced_setting_section'
|
330 |
+
);
|
331 |
+
|
332 |
+
/**
|
333 |
+
*
|
334 |
+
*/
|
335 |
+
add_settings_field(
|
336 |
+
'cookie_value',
|
337 |
+
__( 'Cookie value', 'italy-cookie-choices' ),
|
338 |
+
array( $this, 'italy_cl_option_cookie_value'),
|
339 |
+
'italy_cl_options_group',
|
340 |
+
'advanced_setting_section'
|
341 |
+
);
|
342 |
+
|
343 |
/**
|
344 |
*
|
345 |
*/
|
409 |
|
410 |
}
|
411 |
|
412 |
+
/**
|
413 |
+
* Snippet for checkbox
|
414 |
+
* @return strimg Activate banner in front-end Default doesn't display
|
415 |
+
*/
|
416 |
+
public function italy_cl_option_scroll($args) {
|
417 |
+
|
418 |
+
$scroll = ( isset( $this->options['scroll'] ) ) ? $this->options['scroll'] : '' ;
|
419 |
+
?>
|
420 |
+
|
421 |
+
<input type='checkbox' name='italy_cookie_choices[scroll]' <?php checked( $scroll, 1 ); ?> value='1'>
|
422 |
+
<label for="italy_cookie_choices[scroll]">
|
423 |
+
<?php _e( 'Accepts disclosures on mouse scroll event', 'italy-cookie-choices' ); ?>
|
424 |
+
</label>
|
425 |
+
|
426 |
+
<?php
|
427 |
+
|
428 |
+
}
|
429 |
+
|
430 |
/**
|
431 |
* Textarea for the message to display
|
432 |
* @return string
|
496 |
|
497 |
}
|
498 |
|
499 |
+
/**
|
500 |
+
* NUOVA SETTINGS SECTIONS PER LO STIILE
|
501 |
+
*/
|
502 |
+
|
503 |
+
/**
|
504 |
+
* [italy_cl_settings_section_callback description]
|
505 |
+
* @return [type] [description]
|
506 |
+
*/
|
507 |
+
public function italy_cl_style_settings_section_callback() {
|
508 |
+
|
509 |
+
_e( 'Customize your style settings', 'italy-cookie-choices' );
|
510 |
+
|
511 |
+
}
|
512 |
+
|
513 |
+
/**
|
514 |
+
* Snippet for checkbox
|
515 |
+
* @return strimg Activate banner in front-end Default doesn't display
|
516 |
+
*/
|
517 |
+
public function italy_cl_option_html_margin($args) {
|
518 |
+
|
519 |
+
$html_margin = ( isset( $this->options['html_margin'] ) ) ? $this->options['html_margin'] : '' ;
|
520 |
+
|
521 |
+
?>
|
522 |
+
|
523 |
+
<input type='checkbox' name='italy_cookie_choices[html_margin]' <?php checked( $html_margin, 1 ); ?> value='1'>
|
524 |
+
<label for="italy_cookie_choices[html_margin]">
|
525 |
+
<?php _e( 'Add a page top margin for info top bar', 'italy-cookie-choices' ); ?>
|
526 |
+
</label>
|
527 |
+
|
528 |
+
<?php
|
529 |
+
|
530 |
+
}
|
531 |
+
|
532 |
+
|
533 |
+
/**
|
534 |
+
* NUOVA SETTINGS SECTIONS PER LE OPZIONI AVANZATE
|
535 |
+
*/
|
536 |
+
|
537 |
+
/**
|
538 |
+
* [italy_cl_settings_section_callback description]
|
539 |
+
* @return [type] [description]
|
540 |
+
*/
|
541 |
+
public function italy_cl_advanced_settings_section_callback() {
|
542 |
+
|
543 |
+
_e( 'Customize your advanced settings', 'italy-cookie-choices' );
|
544 |
+
|
545 |
+
}
|
546 |
+
|
547 |
+
/**
|
548 |
+
* Snippet for cookie name
|
549 |
+
* @return strimg Activate banner in front-end Default doesn't display
|
550 |
+
*/
|
551 |
+
public function italy_cl_option_cookie_name($args) {
|
552 |
+
|
553 |
+
$cookie_name = ( isset( $this->options['cookie_name'] ) ) ? $this->options['cookie_name'] : '' ;
|
554 |
+
|
555 |
+
?>
|
556 |
+
<input type="text" id="italy_cookie_choices[cookie_name]" name="italy_cookie_choices[cookie_name]" value="<?php echo esc_attr( $cookie_name ); ?>" placeholder="<?php echo esc_attr( $this->cookieName ); ?>" />
|
557 |
+
|
558 |
+
<label for="italy_cookie_choices[cookie_name]">
|
559 |
+
<?php _e( 'Insert your cookie name (Default: displayCookieConsent)', 'italy-cookie-choices' ); ?>
|
560 |
+
</label>
|
561 |
+
|
562 |
+
<?php
|
563 |
+
|
564 |
+
}
|
565 |
+
|
566 |
+
/**
|
567 |
+
* Snippet for cookie value
|
568 |
+
* @return strimg Activate banner in front-end Default doesn't display
|
569 |
+
*/
|
570 |
+
public function italy_cl_option_cookie_value($args) {
|
571 |
+
|
572 |
+
$cookie_value = ( isset( $this->options['cookie_value'] ) ) ? $this->options['cookie_value'] : $this->cookieVal ;
|
573 |
+
|
574 |
+
?>
|
575 |
+
<input type="text" id="italy_cookie_choices[cookie_value]" name="italy_cookie_choices[cookie_value]" value="<?php echo esc_attr( $cookie_value ); ?>" placeholder="<?php echo esc_attr( $this->cookieVal ); ?>" />
|
576 |
+
|
577 |
+
<label for="italy_cookie_choices[cookie_value]">
|
578 |
+
<?php _e( 'Insert your cookie value (Default: y)', 'italy-cookie-choices' ); ?>
|
579 |
+
</label>
|
580 |
+
|
581 |
+
<?php
|
582 |
+
|
583 |
+
}
|
584 |
+
|
585 |
/**
|
586 |
* Sanitize data
|
587 |
* @param array $input Data to sanitize
|
597 |
if( isset( $input['banner'] ) )
|
598 |
$new_input['banner'] = $input['banner'];
|
599 |
|
600 |
+
if( isset( $input['scroll'] ) )
|
601 |
+
$new_input['scroll'] = $input['scroll'];
|
602 |
+
|
603 |
if( isset( $input['text'] ) )
|
604 |
$new_input['text'] = sanitize_text_field( $input['text'] );
|
605 |
|
612 |
if( isset( $input['button_text'] ) )
|
613 |
$new_input['button_text'] = sanitize_text_field( $input['button_text'] );
|
614 |
|
615 |
+
/**
|
616 |
+
* Sezione per lo stile
|
617 |
+
*/
|
618 |
+
if( isset( $input['html_margin'] ) )
|
619 |
+
$new_input['html_margin'] = $input['html_margin'];
|
620 |
+
|
621 |
+
/**
|
622 |
+
* Sezione per le opzioni avanzate
|
623 |
+
* Esempio per add_settings_error()
|
624 |
+
* @link https://wordpress.org/support/topic/how-to-use-add_settings_error-for-nested-options-array?replies=2
|
625 |
+
* @link http://pastebin.com/K4kJ0DNG
|
626 |
+
*/
|
627 |
+
if( empty( $input['cookie_name'] ) ){
|
628 |
+
add_settings_error( 'italy_cookie_id', 'cookie_name_ID', __('Cookie name field it can\'t be empty. Restored default name.', 'italy-cookie-choices' ), 'error');
|
629 |
+
$new_input['cookie_name'] = $this->cookieName;
|
630 |
+
}
|
631 |
+
else
|
632 |
+
$new_input['cookie_name'] = sanitize_text_field( $input['cookie_name'] );
|
633 |
+
|
634 |
+
if( empty( $input['cookie_value'] ) ){
|
635 |
+
add_settings_error( 'italy_cookie_id', 'cookie_name_ID', __('Cookie value field it can\'t be empty. Restored default value.', 'italy-cookie-choices' ), 'error');
|
636 |
+
$new_input['cookie_value'] = $this->cookieVal;
|
637 |
+
}
|
638 |
+
else
|
639 |
+
$new_input['cookie_value'] = sanitize_text_field( $input['cookie_value'] );
|
640 |
+
|
641 |
return $new_input;
|
642 |
|
643 |
}
|
664 |
else
|
665 |
$banner = '';
|
666 |
|
667 |
+
$scroll = ( isset( $this->options['scroll'] ) ) ? $this->options['scroll'] : '' ;
|
668 |
+
|
669 |
/**
|
670 |
* Snippet for display banner
|
671 |
* @uses json_encode Funzione usate per il testo del messaggio.
|
675 |
*/
|
676 |
$banner = 'document.addEventListener("DOMContentLoaded", function(event) {cookieChoices.showCookieConsent' . $banner . '(' . wp_json_encode( $this->options['text'] ) . ', "' . esc_js( $this->options['button_text'] ) . '", "' . esc_js( $this->options['anchor_text'] ) . '", "' . esc_url( $this->options['url'] ) . '");});';
|
677 |
|
678 |
+
/**
|
679 |
+
* ADVANCED OPTIONS
|
680 |
+
*/
|
681 |
+
/**
|
682 |
+
* Cookie name
|
683 |
+
* @var string
|
684 |
+
*/
|
685 |
+
$cookie_name = ( isset( $this->options['cookie_name'] ) ) ? $this->options['cookie_name'] : $this->cookieName ;
|
686 |
+
|
687 |
+
/**
|
688 |
+
* Cookie value
|
689 |
+
* @var string/bolean
|
690 |
+
*/
|
691 |
+
$cookie_value = ( isset( $this->options['cookie_value'] ) ) ? $this->options['cookie_value'] : $this->cookieVal ;
|
692 |
+
|
693 |
+
/**
|
694 |
+
* Se l'optione è selezionata aggiunge un margine per non nascondere il contenuto dalla top bar
|
695 |
+
* @var string
|
696 |
+
*/
|
697 |
+
$style = '<style>.icc{margin-top:36px}</style>';
|
698 |
+
|
699 |
+
/**
|
700 |
+
* If is set hmll_margin checkbox in admin panel then add margin-top to HTML tag
|
701 |
+
* @var [type]
|
702 |
+
*/
|
703 |
+
$htmlM = ( isset( $this->options['html_margin'] ) ) ? $this->options['html_margin'] : '' ;
|
704 |
+
|
705 |
+
/**
|
706 |
+
* Declarations of JS variables and set parameters
|
707 |
+
* var elPos = Gestisce la Posizione banner nella funzione _createHeaderElement
|
708 |
+
* var infoClass = aggiunge una classe personalizzata per il link info
|
709 |
+
* var closeClass = aggiunge una classe personalizzata per il link di accettazione
|
710 |
+
* var htmlM = Aggiunge un margine a HTML per la top bar
|
711 |
+
* var coNA = cookie name
|
712 |
+
* var coVA = cookie val
|
713 |
+
* @var string
|
714 |
+
*/
|
715 |
+
$jsVariables = 'var coNA="' . $cookie_name . '",coVA="' . $cookie_value . '";scroll="' . $scroll . '",elPos="fixed",infoClass="",closeClass="",htmlM="' . $htmlM . '";';
|
716 |
|
717 |
/**
|
718 |
* Noscript snippet in case browser has JavaScript disabled
|
720 |
*/
|
721 |
$noscript = '<noscript><style>html{margin-top:35px}</style><div id="cookieChoiceInfo" style="position:absolute;width:100%;margin:0px;left:0px;top:0px;padding:4px;z-index:9999;text-align:center;background-color:rgb(238, 238, 238);"><span>' . wp_json_encode( $this->options['text'] ) . '</span><a href="' . esc_url( $this->options['url'] ) . '" target="_blank" style="margin-left:8px;">' . esc_js( $this->options['anchor_text'] ) . '</a><a id="cookieChoiceDismiss" href="#" style="margin-left:24px;display:none;">' . esc_js( $this->options['button_text'] ) . '</a></div></div></noscript>';
|
722 |
|
723 |
+
echo '<!-- Italy Cookie Choices -->' . $style . '<script>' . $jsVariables;
|
724 |
require 'js/cookiechoices.php';
|
725 |
echo $banner . '</script>' . $noscript;
|
726 |
|
js/cookiechoices.js
CHANGED
@@ -14,22 +14,6 @@
|
|
14 |
limitations under the License.
|
15 |
*/
|
16 |
|
17 |
-
/**
|
18 |
-
* Posizione banner nella funzione _createHeaderElement
|
19 |
-
* @type {String}
|
20 |
-
*/
|
21 |
-
var elPos = 'fixed';
|
22 |
-
/**
|
23 |
-
* Classe aggiuntiva per il link info
|
24 |
-
* @type {String}
|
25 |
-
*/
|
26 |
-
var infoClass = '';
|
27 |
-
/**
|
28 |
-
* Classe aggiuntiva per il link di accettazione
|
29 |
-
* @type {String}
|
30 |
-
*/
|
31 |
-
var closeClass = '';
|
32 |
-
|
33 |
(function(window) {
|
34 |
|
35 |
if (!!window.cookieChoices) {
|
@@ -37,16 +21,21 @@ var closeClass = '';
|
|
37 |
}
|
38 |
|
39 |
var document = window.document;
|
|
|
40 |
// IE8 does not support textContent, so we should fallback to innerText.
|
41 |
var supportsTextContent = 'textContent' in document.body;
|
42 |
|
43 |
var cookieChoices = (function() {
|
44 |
|
45 |
-
var cookieName = 'displayCookieConsent';
|
|
|
46 |
var cookieConsentId = 'cookieChoiceInfo';
|
47 |
var dismissLinkId = 'cookieChoiceDismiss';
|
48 |
|
49 |
function _createHeaderElement(cookieText, dismissText, linkText, linkHref) {
|
|
|
|
|
|
|
50 |
var butterBarStyles = 'position:' + elPos + ';width:100%;background-color:#eee;' +
|
51 |
'margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:center;';
|
52 |
|
@@ -133,6 +122,7 @@ var closeClass = '';
|
|
133 |
}
|
134 |
|
135 |
function _dismissLinkClick() {
|
|
|
136 |
_saveUserPreference();
|
137 |
_removeCookieConsent();
|
138 |
return false;
|
@@ -149,7 +139,7 @@ var closeClass = '';
|
|
149 |
document.body.appendChild(fragment.cloneNode(true));
|
150 |
document.getElementById(dismissLinkId).onclick = _dismissLinkClick;
|
151 |
// document.onclick = _dismissLinkClick;
|
152 |
-
document.onscroll = _dismissLinkClick;
|
153 |
}
|
154 |
}
|
155 |
|
@@ -172,7 +162,8 @@ var closeClass = '';
|
|
172 |
// Set the cookie expiry to one year after today.
|
173 |
var expiryDate = new Date();
|
174 |
expiryDate.setFullYear(expiryDate.getFullYear() + 1);
|
175 |
-
document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
|
|
|
176 |
}
|
177 |
|
178 |
function _shouldDisplayConsent() {
|
14 |
limitations under the License.
|
15 |
*/
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
(function(window) {
|
18 |
|
19 |
if (!!window.cookieChoices) {
|
21 |
}
|
22 |
|
23 |
var document = window.document;
|
24 |
+
var html = document.documentElement;//Per aggiungere un margin-top al tag HTML
|
25 |
// IE8 does not support textContent, so we should fallback to innerText.
|
26 |
var supportsTextContent = 'textContent' in document.body;
|
27 |
|
28 |
var cookieChoices = (function() {
|
29 |
|
30 |
+
// var cookieName = 'displayCookieConsent';
|
31 |
+
var cookieName = coNA;
|
32 |
var cookieConsentId = 'cookieChoiceInfo';
|
33 |
var dismissLinkId = 'cookieChoiceDismiss';
|
34 |
|
35 |
function _createHeaderElement(cookieText, dismissText, linkText, linkHref) {
|
36 |
+
|
37 |
+
if( htmlM ) html.className += ' icc';
|
38 |
+
|
39 |
var butterBarStyles = 'position:' + elPos + ';width:100%;background-color:#eee;' +
|
40 |
'margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:center;';
|
41 |
|
122 |
}
|
123 |
|
124 |
function _dismissLinkClick() {
|
125 |
+
if ( htmlM ) html.classList.remove("icc");
|
126 |
_saveUserPreference();
|
127 |
_removeCookieConsent();
|
128 |
return false;
|
139 |
document.body.appendChild(fragment.cloneNode(true));
|
140 |
document.getElementById(dismissLinkId).onclick = _dismissLinkClick;
|
141 |
// document.onclick = _dismissLinkClick;
|
142 |
+
if (scroll) document.onscroll = _dismissLinkClick;
|
143 |
}
|
144 |
}
|
145 |
|
162 |
// Set the cookie expiry to one year after today.
|
163 |
var expiryDate = new Date();
|
164 |
expiryDate.setFullYear(expiryDate.getFullYear() + 1);
|
165 |
+
// document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
|
166 |
+
document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString();
|
167 |
}
|
168 |
|
169 |
function _shouldDisplayConsent() {
|
js/cookiechoices.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
!function(a){if(a.cookieChoices)return a.cookieChoices;var b=a.document,c=b.documentElement,d="textContent"in b.body,e=function(){function a(a,d,e,f){htmlM&&(c.className+=" icc");var j="position:"+elPos+";width:100%;background-color:#eee;margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:center;",k=b.createElement("div");return k.id=r,k.style.cssText=j,k.appendChild(g(a)),e&&f&&k.appendChild(i(e,f)),k.appendChild(h(d)),k}function e(a,c,d,e){var f="position:fixed;width:100%;height:100%;z-index:999;top:0;left:0;opacity:0.5;filter:alpha(opacity=50);background-color:#ccc;",j="z-index:1000;position:fixed;left:50%;top:50%",k="position:relative;left:-50%;margin-top:-25%;background-color:#fff;padding:20px;box-shadow:4px 4px 25px #888;",l=b.createElement("div");l.id=r;var m=b.createElement("div");m.style.cssText=f;var n=b.createElement("div");n.style.cssText=k;var o=b.createElement("div");o.style.cssText=j;var p=h(c);return p.style.display="block",p.style.textAlign="right",p.style.marginTop="8px",n.appendChild(g(a)),d&&e&&n.appendChild(i(d,e)),n.appendChild(p),o.appendChild(n),l.appendChild(m),l.appendChild(o),l}function f(a,b){d?a.textContent=b:a.innerText=b}function g(a){var c=b.createElement("span");return f(c,a),c}function h(a){var c=b.createElement("a");return f(c,a),c.id=s,c.className=closeClass,c.href="#",c.style.marginLeft="24px",c}function i(a,c){var d=b.createElement("a");return f(d,a),d.className=infoClass,d.href=c,d.target="_blank",d.style.marginLeft="8px",d}function j(){return htmlM&&c.classList.remove("icc"),o(),n(),!1}function k(c,d,f,g,h){if(p()){n();var i=h?e(c,d,f,g):a(c,d,f,g),k=b.createDocumentFragment();k.appendChild(i),b.body.appendChild(k.cloneNode(!0)),b.getElementById(s).onclick=j,scroll&&(b.onscroll=j)}}function l(a,b,c,d){k(a,b,c,d,!1)}function m(a,b,c,d){k(a,b,c,d,!0)}function n(){var a=b.getElementById(r);null!==a&&a.parentNode.removeChild(a)}function o(){var a=new Date;a.setFullYear(a.getFullYear()+1),b.cookie=q+"="+coVA+"; expires="+a.toGMTString()}function p(){return!b.cookie.match(new RegExp(q+"=([^;]+)"))}var q=coNA,r="cookieChoiceInfo",s="cookieChoiceDismiss",t={};return t.showCookieConsentBar=l,t.showCookieConsentDialog=m,t}();return a.cookieChoices=e,e}(this);
|
lang/italy-cookie-choices-it_IT.mo
CHANGED
Binary file
|
lang/italy-cookie-choices-it_IT.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: italy-cookie-choices\n"
|
4 |
-
"POT-Creation-Date: 2015-05-
|
5 |
-
"PO-Revision-Date: 2015-05-
|
6 |
"Last-Translator: Enea Overclokk <info@overclokk.net>\n"
|
7 |
"Language-Team: info@overclokk.net\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.8\n"
|
13 |
"X-Poedit-Basepath: ..\\\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
@@ -18,93 +18,152 @@ msgstr ""
|
|
18 |
"X-Poedit-SearchPathExcluded-0: node_modules\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: .git\n"
|
20 |
|
21 |
-
#: italy-cookie-choices.php:
|
22 |
msgid "Italy Cookie Choices Dashboard"
|
23 |
msgstr "Pannello di Italy Cookie Choices"
|
24 |
|
25 |
-
#: italy-cookie-choices.php:
|
26 |
msgid "You do not have sufficient permissions to access this page."
|
27 |
msgstr "Non hai abbastanza permessi per visualizzare questa pagina."
|
28 |
|
29 |
-
#: italy-cookie-choices.php:
|
30 |
msgid "Italy Cookie Choices options page"
|
31 |
msgstr "Pagina opzioni per Italy Cookie Choices"
|
32 |
|
33 |
-
#: italy-cookie-choices.php:
|
34 |
msgid "Activate"
|
35 |
msgstr "Attiva"
|
36 |
|
37 |
-
#: italy-cookie-choices.php:
|
38 |
msgid "Where display the banner"
|
39 |
msgstr "Dove mostrare il banner"
|
40 |
|
41 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
42 |
msgid "Text to display"
|
43 |
msgstr "Testo da mostrare"
|
44 |
|
45 |
-
#: italy-cookie-choices.php:
|
46 |
msgid "URL for cookie policy"
|
47 |
msgstr "URL per la cookie policy"
|
48 |
|
49 |
-
#: italy-cookie-choices.php:
|
50 |
msgid "Anchor text for URL"
|
51 |
msgstr "Anchor text per la URL"
|
52 |
|
53 |
-
#: italy-cookie-choices.php:
|
54 |
msgid "Button text"
|
55 |
msgstr "Testo per il bottone"
|
56 |
|
57 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
msgid "Customize your banner for cookie law"
|
59 |
msgstr "Personalizza il banner per la Cookie Law"
|
60 |
|
61 |
-
#: italy-cookie-choices.php:
|
62 |
msgid "Display banner for Cookie Law in front-end"
|
63 |
msgstr "Visualizza il banner nel front-end"
|
64 |
|
65 |
-
#: italy-cookie-choices.php:
|
66 |
msgid "Top Bar (Default, Display a top bar wth your message)"
|
67 |
msgstr "Top Bar (Default, verrà visualizzata una barra in cima alla pagina)"
|
68 |
|
69 |
-
#: italy-cookie-choices.php:
|
70 |
msgid "Dialog (Display an overlay with your message)"
|
71 |
msgstr "Dialog (Visualizza un popup con il tuo messaggio)"
|
72 |
|
73 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
74 |
msgid "Your short cookie policy"
|
75 |
msgstr "La tua informativa breve"
|
76 |
|
77 |
-
#: italy-cookie-choices.php:
|
78 |
msgid ""
|
79 |
"People will see this notice only the first time that they enter your site"
|
80 |
msgstr ""
|
81 |
"Le persone visualizzeranno il messaggio la prima volta che visiteranno il "
|
82 |
"tuo sito"
|
83 |
|
84 |
-
#: italy-cookie-choices.php:
|
85 |
msgid "e.g. http://www.aboutcookies.org/"
|
86 |
msgstr "es: http://www.aboutcookies.org/"
|
87 |
|
88 |
-
#: italy-cookie-choices.php:
|
89 |
msgid "Insert here the link to your policy page"
|
90 |
msgstr "Inserisci il link alla tua pagina con l'informativa estesa"
|
91 |
|
92 |
-
#: italy-cookie-choices.php:
|
93 |
msgid "e.g. More Info"
|
94 |
msgstr "es: Maggiori informazioni"
|
95 |
|
96 |
-
#: italy-cookie-choices.php:
|
97 |
msgid "Insert here anchor text for the link"
|
98 |
msgstr "Inserisci qui l'anchor text per il link"
|
99 |
|
100 |
-
#: italy-cookie-choices.php:
|
101 |
msgid "e.g. Close"
|
102 |
msgstr "es: Chiudi"
|
103 |
|
104 |
-
#: italy-cookie-choices.php:
|
105 |
msgid "Insert here name of button (e.g. \"Close\") "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
msgstr ""
|
107 |
-
"
|
|
|
108 |
|
109 |
#~ msgid "More Info"
|
110 |
#~ msgstr "Più info"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: italy-cookie-choices\n"
|
4 |
+
"POT-Creation-Date: 2015-05-27 17:38+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-05-27 17:43+0100\n"
|
6 |
"Last-Translator: Enea Overclokk <info@overclokk.net>\n"
|
7 |
"Language-Team: info@overclokk.net\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.8.1\n"
|
13 |
"X-Poedit-Basepath: ..\\\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
"X-Poedit-SearchPathExcluded-0: node_modules\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: .git\n"
|
20 |
|
21 |
+
#: italy-cookie-choices.php:130
|
22 |
msgid "Italy Cookie Choices Dashboard"
|
23 |
msgstr "Pannello di Italy Cookie Choices"
|
24 |
|
25 |
+
#: italy-cookie-choices.php:144
|
26 |
msgid "You do not have sufficient permissions to access this page."
|
27 |
msgstr "Non hai abbastanza permessi per visualizzare questa pagina."
|
28 |
|
29 |
+
#: italy-cookie-choices.php:207
|
30 |
msgid "Italy Cookie Choices options page"
|
31 |
msgstr "Pagina opzioni per Italy Cookie Choices"
|
32 |
|
33 |
+
#: italy-cookie-choices.php:217
|
34 |
msgid "Activate"
|
35 |
msgstr "Attiva"
|
36 |
|
37 |
+
#: italy-cookie-choices.php:229
|
38 |
msgid "Where display the banner"
|
39 |
msgstr "Dove mostrare il banner"
|
40 |
|
41 |
+
#: italy-cookie-choices.php:240
|
42 |
+
msgid "Mouse scroll event"
|
43 |
+
msgstr "Evento scroll del mouse"
|
44 |
+
|
45 |
+
#: italy-cookie-choices.php:251
|
46 |
msgid "Text to display"
|
47 |
msgstr "Testo da mostrare"
|
48 |
|
49 |
+
#: italy-cookie-choices.php:262
|
50 |
msgid "URL for cookie policy"
|
51 |
msgstr "URL per la cookie policy"
|
52 |
|
53 |
+
#: italy-cookie-choices.php:273
|
54 |
msgid "Anchor text for URL"
|
55 |
msgstr "Anchor text per la URL"
|
56 |
|
57 |
+
#: italy-cookie-choices.php:284
|
58 |
msgid "Button text"
|
59 |
msgstr "Testo per il bottone"
|
60 |
|
61 |
+
#: italy-cookie-choices.php:295
|
62 |
+
msgid "Style settings"
|
63 |
+
msgstr "Impostazioni per lo stile"
|
64 |
+
|
65 |
+
#: italy-cookie-choices.php:305
|
66 |
+
msgid "HTML top margin"
|
67 |
+
msgstr "Margine alto per HTML"
|
68 |
+
|
69 |
+
#: italy-cookie-choices.php:316
|
70 |
+
msgid "Advanced settngs"
|
71 |
+
msgstr "Opzioni avanzate"
|
72 |
+
|
73 |
+
#: italy-cookie-choices.php:326
|
74 |
+
msgid "Cookie name"
|
75 |
+
msgstr "Nome del Cookie"
|
76 |
+
|
77 |
+
#: italy-cookie-choices.php:337
|
78 |
+
msgid "Cookie value"
|
79 |
+
msgstr "Valore del Cookie"
|
80 |
+
|
81 |
+
#: italy-cookie-choices.php:362
|
82 |
msgid "Customize your banner for cookie law"
|
83 |
msgstr "Personalizza il banner per la Cookie Law"
|
84 |
|
85 |
+
#: italy-cookie-choices.php:377
|
86 |
msgid "Display banner for Cookie Law in front-end"
|
87 |
msgstr "Visualizza il banner nel front-end"
|
88 |
|
89 |
+
#: italy-cookie-choices.php:397
|
90 |
msgid "Top Bar (Default, Display a top bar wth your message)"
|
91 |
msgstr "Top Bar (Default, verrà visualizzata una barra in cima alla pagina)"
|
92 |
|
93 |
+
#: italy-cookie-choices.php:405
|
94 |
msgid "Dialog (Display an overlay with your message)"
|
95 |
msgstr "Dialog (Visualizza un popup con il tuo messaggio)"
|
96 |
|
97 |
+
#: italy-cookie-choices.php:423
|
98 |
+
msgid "Accepts disclosures on mouse scroll event"
|
99 |
+
msgstr "Accetta l'informativa sull'evento scroll del mouse"
|
100 |
+
|
101 |
+
#: italy-cookie-choices.php:438
|
102 |
msgid "Your short cookie policy"
|
103 |
msgstr "La tua informativa breve"
|
104 |
|
105 |
+
#: italy-cookie-choices.php:441
|
106 |
msgid ""
|
107 |
"People will see this notice only the first time that they enter your site"
|
108 |
msgstr ""
|
109 |
"Le persone visualizzeranno il messaggio la prima volta che visiteranno il "
|
110 |
"tuo sito"
|
111 |
|
112 |
+
#: italy-cookie-choices.php:455
|
113 |
msgid "e.g. http://www.aboutcookies.org/"
|
114 |
msgstr "es: http://www.aboutcookies.org/"
|
115 |
|
116 |
+
#: italy-cookie-choices.php:458
|
117 |
msgid "Insert here the link to your policy page"
|
118 |
msgstr "Inserisci il link alla tua pagina con l'informativa estesa"
|
119 |
|
120 |
+
#: italy-cookie-choices.php:472
|
121 |
msgid "e.g. More Info"
|
122 |
msgstr "es: Maggiori informazioni"
|
123 |
|
124 |
+
#: italy-cookie-choices.php:475
|
125 |
msgid "Insert here anchor text for the link"
|
126 |
msgstr "Inserisci qui l'anchor text per il link"
|
127 |
|
128 |
+
#: italy-cookie-choices.php:489
|
129 |
msgid "e.g. Close"
|
130 |
msgstr "es: Chiudi"
|
131 |
|
132 |
+
#: italy-cookie-choices.php:492
|
133 |
msgid "Insert here name of button (e.g. \"Close\") "
|
134 |
+
msgstr "Inserisci il testo del link per chiudere il popup/banner (es: Chiudi)"
|
135 |
+
|
136 |
+
#: italy-cookie-choices.php:509
|
137 |
+
msgid "Customize your style settings"
|
138 |
+
msgstr "Personalizza le impostazioni per lo stile"
|
139 |
+
|
140 |
+
#: italy-cookie-choices.php:525
|
141 |
+
msgid "Add a page top margin for info top bar"
|
142 |
+
msgstr "Aggiunge un margine nella parte alta della pagine solo per la topbar"
|
143 |
+
|
144 |
+
#: italy-cookie-choices.php:543
|
145 |
+
msgid "Customize your advanced settings"
|
146 |
+
msgstr "Personalizza le impostazioni avanzate"
|
147 |
+
|
148 |
+
#: italy-cookie-choices.php:559
|
149 |
+
msgid "Insert your cookie name (Default: displayCookieConsent)"
|
150 |
+
msgstr "Inserisci il nome del tuo Cookie (Default: displayCookieConsent)"
|
151 |
+
|
152 |
+
#: italy-cookie-choices.php:578
|
153 |
+
msgid "Insert your cookie value (Default: y)"
|
154 |
+
msgstr "Inserisci il valore del tuo Cookie (Default: y)"
|
155 |
+
|
156 |
+
#: italy-cookie-choices.php:628
|
157 |
+
msgid "Cookie name field it can't be empty. Restored default name."
|
158 |
+
msgstr ""
|
159 |
+
"Il campo del nome del Cookie non può essere vuoto. Ripristinato il nome di "
|
160 |
+
"default."
|
161 |
+
|
162 |
+
#: italy-cookie-choices.php:635
|
163 |
+
msgid "Cookie value field it can't be empty. Restored default value."
|
164 |
msgstr ""
|
165 |
+
"Il campo del valore del Cookie non può essere vuoto. Ripristinato il valore "
|
166 |
+
"di default."
|
167 |
|
168 |
#~ msgid "More Info"
|
169 |
#~ msgstr "Più info"
|
lang/italy-cookie-choices.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Italy Cookie Choices\n"
|
5 |
-
"POT-Creation-Date: 2015-05-
|
6 |
"PO-Revision-Date: 2015-05-21 20:22+0100\n"
|
7 |
"Last-Translator: Enea Overclokk <info@overclokk.net>\n"
|
8 |
"Language-Team: info@overclokk.net\n"
|
@@ -10,7 +10,7 @@ msgstr ""
|
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Generator: Poedit 1.8\n"
|
14 |
"X-Poedit-Basepath: ..\\\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
@@ -19,86 +19,142 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-0: node_modules\n"
|
20 |
"X-Poedit-SearchPathExcluded-1: .git\n"
|
21 |
|
22 |
-
#: italy-cookie-choices.php:
|
23 |
msgid "Italy Cookie Choices Dashboard"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: italy-cookie-choices.php:
|
27 |
msgid "You do not have sufficient permissions to access this page."
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: italy-cookie-choices.php:
|
31 |
msgid "Italy Cookie Choices options page"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: italy-cookie-choices.php:
|
35 |
msgid "Activate"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: italy-cookie-choices.php:
|
39 |
msgid "Where display the banner"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
43 |
msgid "Text to display"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: italy-cookie-choices.php:
|
47 |
msgid "URL for cookie policy"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: italy-cookie-choices.php:
|
51 |
msgid "Anchor text for URL"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: italy-cookie-choices.php:
|
55 |
msgid "Button text"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
msgid "Customize your banner for cookie law"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: italy-cookie-choices.php:
|
63 |
msgid "Display banner for Cookie Law in front-end"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: italy-cookie-choices.php:
|
67 |
msgid "Top Bar (Default, Display a top bar wth your message)"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: italy-cookie-choices.php:
|
71 |
msgid "Dialog (Display an overlay with your message)"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
75 |
msgid "Your short cookie policy"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: italy-cookie-choices.php:
|
79 |
msgid "People will see this notice only the first time that they enter your site"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: italy-cookie-choices.php:
|
83 |
msgid "e.g. http://www.aboutcookies.org/"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: italy-cookie-choices.php:
|
87 |
msgid "Insert here the link to your policy page"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: italy-cookie-choices.php:
|
91 |
msgid "e.g. More Info"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: italy-cookie-choices.php:
|
95 |
msgid "Insert here anchor text for the link"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: italy-cookie-choices.php:
|
99 |
msgid "e.g. Close"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: italy-cookie-choices.php:
|
103 |
msgid "Insert here name of button (e.g. \"Close\") "
|
104 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Italy Cookie Choices\n"
|
5 |
+
"POT-Creation-Date: 2015-05-27 17:38+0100\n"
|
6 |
"PO-Revision-Date: 2015-05-21 20:22+0100\n"
|
7 |
"Last-Translator: Enea Overclokk <info@overclokk.net>\n"
|
8 |
"Language-Team: info@overclokk.net\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-Basepath: ..\\\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
19 |
"X-Poedit-SearchPathExcluded-0: node_modules\n"
|
20 |
"X-Poedit-SearchPathExcluded-1: .git\n"
|
21 |
|
22 |
+
#: italy-cookie-choices.php:130
|
23 |
msgid "Italy Cookie Choices Dashboard"
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: italy-cookie-choices.php:144
|
27 |
msgid "You do not have sufficient permissions to access this page."
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: italy-cookie-choices.php:207
|
31 |
msgid "Italy Cookie Choices options page"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: italy-cookie-choices.php:217
|
35 |
msgid "Activate"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: italy-cookie-choices.php:229
|
39 |
msgid "Where display the banner"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: italy-cookie-choices.php:240
|
43 |
+
msgid "Mouse scroll event"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: italy-cookie-choices.php:251
|
47 |
msgid "Text to display"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: italy-cookie-choices.php:262
|
51 |
msgid "URL for cookie policy"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: italy-cookie-choices.php:273
|
55 |
msgid "Anchor text for URL"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: italy-cookie-choices.php:284
|
59 |
msgid "Button text"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: italy-cookie-choices.php:295
|
63 |
+
msgid "Style settings"
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: italy-cookie-choices.php:305
|
67 |
+
msgid "HTML top margin"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: italy-cookie-choices.php:316
|
71 |
+
msgid "Advanced settngs"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: italy-cookie-choices.php:326
|
75 |
+
msgid "Cookie name"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: italy-cookie-choices.php:337
|
79 |
+
msgid "Cookie value"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: italy-cookie-choices.php:362
|
83 |
msgid "Customize your banner for cookie law"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: italy-cookie-choices.php:377
|
87 |
msgid "Display banner for Cookie Law in front-end"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: italy-cookie-choices.php:397
|
91 |
msgid "Top Bar (Default, Display a top bar wth your message)"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: italy-cookie-choices.php:405
|
95 |
msgid "Dialog (Display an overlay with your message)"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: italy-cookie-choices.php:423
|
99 |
+
msgid "Accepts disclosures on mouse scroll event"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: italy-cookie-choices.php:438
|
103 |
msgid "Your short cookie policy"
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: italy-cookie-choices.php:441
|
107 |
msgid "People will see this notice only the first time that they enter your site"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: italy-cookie-choices.php:455
|
111 |
msgid "e.g. http://www.aboutcookies.org/"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: italy-cookie-choices.php:458
|
115 |
msgid "Insert here the link to your policy page"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: italy-cookie-choices.php:472
|
119 |
msgid "e.g. More Info"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: italy-cookie-choices.php:475
|
123 |
msgid "Insert here anchor text for the link"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: italy-cookie-choices.php:489
|
127 |
msgid "e.g. Close"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: italy-cookie-choices.php:492
|
131 |
msgid "Insert here name of button (e.g. \"Close\") "
|
132 |
msgstr ""
|
133 |
+
|
134 |
+
#: italy-cookie-choices.php:509
|
135 |
+
msgid "Customize your style settings"
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#: italy-cookie-choices.php:525
|
139 |
+
msgid "Add a page top margin for info top bar"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: italy-cookie-choices.php:543
|
143 |
+
msgid "Customize your advanced settings"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: italy-cookie-choices.php:559
|
147 |
+
msgid "Insert your cookie name (Default: displayCookieConsent)"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: italy-cookie-choices.php:578
|
151 |
+
msgid "Insert your cookie value (Default: y)"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: italy-cookie-choices.php:628
|
155 |
+
msgid "Cookie name field it can't be empty. Restored default name."
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: italy-cookie-choices.php:635
|
159 |
+
msgid "Cookie value field it can't be empty. Restored default value."
|
160 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: compliance, cookie law, cookies, eu cookie law, eu law, eu privacy directive, privacy, privacy directive, notification, privacy law, cookie law banner, implied consent
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.3.0
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -42,6 +42,14 @@ will not be shown again.
|
|
42 |
|
43 |
Probably, you already have visited the site before, so you accepted the use of cookies and the plugin installed a cookie in your browser to know it. If you want to test if the plugin is working properly, try removing the cookies `displayCookieConsent` from your web browser or navigating in incognito mode. If you think that the plugin is not working properly, just open an issue here https://github.com/overclokk/italy-cookie-choices/issues and I will check it for you.
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
== Screenshots ==
|
46 |
|
47 |
1. Italy Cookie Choices Options Menu
|
@@ -51,6 +59,16 @@ Probably, you already have visited the site before, so you accepted the use of c
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
= 1.1.3 =
|
55 |
Release Date: May 26th, 2015
|
56 |
|
4 |
Tags: compliance, cookie law, cookies, eu cookie law, eu law, eu privacy directive, privacy, privacy directive, notification, privacy law, cookie law banner, implied consent
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.3.0
|
7 |
+
Stable tag: 1.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
42 |
|
43 |
Probably, you already have visited the site before, so you accepted the use of cookies and the plugin installed a cookie in your browser to know it. If you want to test if the plugin is working properly, try removing the cookies `displayCookieConsent` from your web browser or navigating in incognito mode. If you think that the plugin is not working properly, just open an issue here https://github.com/overclokk/italy-cookie-choices/issues and I will check it for you.
|
44 |
|
45 |
+
= Does it work in static HTML pages? =
|
46 |
+
|
47 |
+
Yes, simply copy the snippet generate by "Italy Cookie Choses for WordPress" and put in your HTML footer before </body> tag
|
48 |
+
|
49 |
+
= I use Async JS and CSS plugin, but the banner doesn't display =
|
50 |
+
|
51 |
+
You have to uncheck the "Detect <script> tags in wp_footer" in Async JS and CSS plugin settings page and refresh page.
|
52 |
+
|
53 |
== Screenshots ==
|
54 |
|
55 |
1. Italy Cookie Choices Options Menu
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 1.2.0 =
|
63 |
+
Release Date: May 27th, 2015
|
64 |
+
|
65 |
+
Dev time: 20h
|
66 |
+
|
67 |
+
* [Fixed duble alert box in admin when options are saved](https://github.com/overclokk/italy-cookie-choices/issues/13)
|
68 |
+
* [Add options for mouse scroll event](https://github.com/overclokk/italy-cookie-choices/issues/19)
|
69 |
+
* [Added options for add margin at top of the page if topbar is used](https://github.com/overclokk/italy-cookie-choices/issues/6)
|
70 |
+
* Added advanced options for set Cookie name and Cookie value for an eventual migration to this plugin
|
71 |
+
|
72 |
= 1.1.3 =
|
73 |
Release Date: May 26th, 2015
|
74 |
|
screenshot-1.jpg
DELETED
Binary file
|
screenshot-1.png
ADDED
Binary file
|
screenshot-2.jpg
DELETED
Binary file
|
screenshot-2.png
ADDED
Binary file
|
screenshot-3.jpg
DELETED
Binary file
|
screenshot-3.png
ADDED
Binary file
|
screenshot-4.jpg
DELETED
Binary file
|
screenshot-4.png
ADDED
Binary file
|