Version Description
Release Date: June 5th, 2015
Dev time: 60h
- Merged Third part cookie eraser and Italy Cookie Choices
- Added new input for banner background color and text color
- Added input for text and button in embed block content and widget
- Added shortcode button for policy page [accept_button]
Download this release
Release Info
Developer | overclokk |
Plugin | Italy Cookie Choices (for EU Cookie Law) |
Version | 2.0.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 2.0.0
- admin/js/script.min.js +1 -0
- admin/js/src/script.js +26 -0
- italy-cookie-choices.php +435 -40
- js/cookiechoices.bak2 +279 -0
- js/cookiechoices.js +136 -14
- js/cookiechoices.php +1 -1
- lang/italy-cookie-choices-it_IT.mo +0 -0
- lang/italy-cookie-choices-it_IT.po +86 -44
- lang/italy-cookie-choices.pot +83 -43
- readme.txt +32 -11
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
admin/js/script.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery.noConflict()(function(a){"use strict";a(document).ready(function(){a(function(){var b={defaultColor:"#fff"};a(".color-field").wpColorPicker(b)})})});
|
admin/js/src/script.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// if( typeof jQuery != "undefined" )
|
2 |
+
jQuery.noConflict()(function($){
|
3 |
+
"use strict";
|
4 |
+
$(document).ready(function() {
|
5 |
+
/**
|
6 |
+
* Snippet per il color picker di WordPress
|
7 |
+
*/
|
8 |
+
$(function() {
|
9 |
+
var options = {
|
10 |
+
// you can declare a default color here,
|
11 |
+
// or in the data-default-color attribute on the input
|
12 |
+
defaultColor: '#fff',
|
13 |
+
// a callback to fire whenever the color changes to a valid color
|
14 |
+
// change: function(event, ui){},
|
15 |
+
// a callback to fire when the input is emptied or an invalid color
|
16 |
+
// clear: function() {},
|
17 |
+
// hide the color picker controls on load
|
18 |
+
// hide: true,
|
19 |
+
// show a group of common colors beneath the square
|
20 |
+
// or, supply an array of colors to customize further
|
21 |
+
// palettes: true
|
22 |
+
};
|
23 |
+
$('.color-field').wpColorPicker(options);
|
24 |
+
});
|
25 |
+
});
|
26 |
+
});
|
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:
|
7 |
* Author: Enea Overclokk
|
8 |
* Author URI: https://plus.google.com/u/0/communities/109254048492234113886
|
9 |
* Text Domain: italy-cookie-choices
|
@@ -94,6 +94,24 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
94 |
*/
|
95 |
private $cookieVal = 'y';
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
/**
|
98 |
* [__construct description]
|
99 |
*/
|
@@ -105,20 +123,102 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
105 |
add_action( 'admin_menu', array( $this, 'addMenuPage') );
|
106 |
|
107 |
/**
|
108 |
-
*
|
109 |
*/
|
110 |
add_action( 'admin_init', array( $this, 'italy_cl_settings_init') );
|
111 |
|
112 |
/**
|
113 |
-
*
|
114 |
*/
|
115 |
-
add_action( '
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
}
|
123 |
|
124 |
/**
|
@@ -180,18 +280,20 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
180 |
*/
|
181 |
$this->default_options = array(
|
182 |
|
183 |
-
'text'
|
184 |
-
'url'
|
185 |
-
'anchor_text'
|
186 |
-
'button_text'
|
187 |
-
'cookie_name'
|
188 |
-
'cookie_value'
|
|
|
|
|
189 |
|
190 |
);
|
191 |
|
192 |
/**
|
193 |
-
*
|
194 |
-
* @var
|
195 |
*/
|
196 |
$this->options = get_option( 'italy_cookie_choices' );
|
197 |
|
@@ -202,7 +304,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
202 |
add_option( 'italy_cookie_choices', $this->default_options );
|
203 |
|
204 |
/**
|
205 |
-
*
|
206 |
*/
|
207 |
add_settings_section(
|
208 |
'setting_section',
|
@@ -257,7 +359,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
257 |
);
|
258 |
|
259 |
/**
|
260 |
-
*
|
261 |
*/
|
262 |
add_settings_field(
|
263 |
'text',
|
@@ -268,7 +370,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
268 |
);
|
269 |
|
270 |
/**
|
271 |
-
*
|
272 |
*/
|
273 |
add_settings_field(
|
274 |
'url',
|
@@ -279,7 +381,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
279 |
);
|
280 |
|
281 |
/**
|
282 |
-
*
|
283 |
*/
|
284 |
add_settings_field(
|
285 |
'anchor_text',
|
@@ -290,7 +392,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
290 |
);
|
291 |
|
292 |
/**
|
293 |
-
*
|
294 |
*/
|
295 |
add_settings_field(
|
296 |
'button_text',
|
@@ -319,7 +421,29 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
319 |
array( $this, 'italy_cl_option_html_margin'),
|
320 |
'italy_cl_options_group',
|
321 |
'style_setting_section'
|
322 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
|
324 |
/**
|
325 |
* Settings sections for Advanced options
|
@@ -332,7 +456,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
332 |
);
|
333 |
|
334 |
/**
|
335 |
-
*
|
336 |
*/
|
337 |
add_settings_field(
|
338 |
'cookie_name',
|
@@ -343,7 +467,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
343 |
);
|
344 |
|
345 |
/**
|
346 |
-
*
|
347 |
*/
|
348 |
add_settings_field(
|
349 |
'cookie_value',
|
@@ -354,7 +478,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
354 |
);
|
355 |
|
356 |
/**
|
357 |
-
*
|
358 |
*/
|
359 |
add_settings_field(
|
360 |
'slug',
|
@@ -365,7 +489,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
365 |
);
|
366 |
|
367 |
/**
|
368 |
-
* Checkbox for
|
369 |
*/
|
370 |
add_settings_field(
|
371 |
'target',
|
@@ -376,7 +500,40 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
376 |
);
|
377 |
|
378 |
/**
|
379 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
*/
|
381 |
register_setting(
|
382 |
'italy_cl_options_group',
|
@@ -389,8 +546,8 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
389 |
|
390 |
|
391 |
/**
|
392 |
-
*
|
393 |
-
* @return
|
394 |
*/
|
395 |
public function italy_cl_settings_section_callback() {
|
396 |
|
@@ -550,12 +707,12 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
550 |
}
|
551 |
|
552 |
/**
|
553 |
-
* NUOVA SETTINGS SECTIONS PER LO
|
554 |
*/
|
555 |
|
556 |
/**
|
557 |
-
*
|
558 |
-
* @return
|
559 |
*/
|
560 |
public function italy_cl_style_settings_section_callback() {
|
561 |
|
@@ -582,14 +739,54 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
582 |
|
583 |
}
|
584 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
|
586 |
/**
|
587 |
* NUOVA SETTINGS SECTIONS PER LE OPZIONI AVANZATE
|
588 |
*/
|
589 |
|
590 |
/**
|
591 |
-
*
|
592 |
-
* @return
|
593 |
*/
|
594 |
public function italy_cl_advanced_settings_section_callback() {
|
595 |
|
@@ -674,6 +871,66 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
674 |
|
675 |
}
|
676 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
677 |
/**
|
678 |
* Sanitize data
|
679 |
* @param array $input Data to sanitize
|
@@ -713,6 +970,16 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
713 |
if( isset( $input['html_margin'] ) )
|
714 |
$new_input['html_margin'] = $input['html_margin'];
|
715 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
716 |
/**
|
717 |
* Sezione per le opzioni avanzate
|
718 |
* Esempio per add_settings_error()
|
@@ -739,10 +1006,110 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
739 |
if( isset( $input['target'] ) )
|
740 |
$new_input['target'] = $input['target'];
|
741 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
742 |
return $new_input;
|
743 |
|
744 |
}
|
745 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
746 |
/**
|
747 |
* Print script inline
|
748 |
* @return string Print script inline
|
@@ -750,7 +1117,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
750 |
*/
|
751 |
public function print_script_inline(){
|
752 |
|
753 |
-
$this->options = get_option( 'italy_cookie_choices' );
|
754 |
|
755 |
/**
|
756 |
* If is not active exit
|
@@ -811,7 +1178,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
811 |
$style = '<style>.icc{margin-top:36px}</style>';
|
812 |
|
813 |
/**
|
814 |
-
* If is set
|
815 |
* @var bol
|
816 |
*/
|
817 |
$htmlM = ( isset( $this->options['html_margin'] ) ) ? $this->options['html_margin'] : '' ;
|
@@ -821,7 +1188,19 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
821 |
* @var bol
|
822 |
*/
|
823 |
$target = ( isset( $this->options['target'] ) ) ? $this->options['target'] : '' ;
|
824 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
825 |
/**
|
826 |
* Declarations of JS variables and set parameters
|
827 |
* var elPos = Gestisce la Posizione banner nella funzione _createHeaderElement
|
@@ -832,9 +1211,11 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
832 |
* var coVA = cookie val
|
833 |
* var rel = Setto il reload per la pagina all'accettazione
|
834 |
* var tar = Target -blank
|
|
|
|
|
835 |
* @var string
|
836 |
*/
|
837 |
-
$jsVariables = 'var coNA="' . $cookie_name . '",coVA="' . $cookie_value . '";scroll="' . $scroll . '",elPos="fixed",infoClass="",closeClass="",htmlM="' . $htmlM . '",rel="' . $reload . '",tar="' . $target . '";';
|
838 |
|
839 |
/**
|
840 |
* Noscript snippet in case browser has JavaScript disabled
|
@@ -848,6 +1229,20 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
|
|
848 |
|
849 |
}
|
850 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
851 |
}// class
|
852 |
}//endif
|
853 |
|
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: 2.0.0
|
7 |
* Author: Enea Overclokk
|
8 |
* Author URI: https://plus.google.com/u/0/communities/109254048492234113886
|
9 |
* Text Domain: italy-cookie-choices
|
94 |
*/
|
95 |
private $cookieVal = 'y';
|
96 |
|
97 |
+
/**
|
98 |
+
* Pattern for searching embed code in content and widget
|
99 |
+
* @var string
|
100 |
+
*/
|
101 |
+
private $pattern = '#<iframe.*?\/iframe>|<embed.*?>|<script.*?\/script>#is';
|
102 |
+
|
103 |
+
/**
|
104 |
+
* Snippet for replacements
|
105 |
+
* @var string
|
106 |
+
*/
|
107 |
+
private $valore = '';
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Array with embed found
|
111 |
+
* @var array
|
112 |
+
*/
|
113 |
+
public $js_array = array();
|
114 |
+
|
115 |
/**
|
116 |
* [__construct description]
|
117 |
*/
|
123 |
add_action( 'admin_menu', array( $this, 'addMenuPage') );
|
124 |
|
125 |
/**
|
126 |
+
* Init settings
|
127 |
*/
|
128 |
add_action( 'admin_init', array( $this, 'italy_cl_settings_init') );
|
129 |
|
130 |
/**
|
131 |
+
* Add color picker in admin menù
|
132 |
*/
|
133 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_color_picker') );
|
134 |
+
|
135 |
+
if ( !is_admin() ) {
|
136 |
+
|
137 |
+
$this->options = get_option( 'italy_cookie_choices' );
|
138 |
+
|
139 |
+
/**
|
140 |
+
* Shortcode to put a button in policy page
|
141 |
+
*/
|
142 |
+
add_shortcode( 'accept_button', array( $this, 'accept_button' ) );
|
143 |
+
|
144 |
+
if ( !isset( $_COOKIE[ $this->options['cookie_name'] ] ) ){
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Function for print cookiechoiches inline
|
148 |
+
*/
|
149 |
+
add_action( 'wp_footer', array( $this, 'print_script_inline'), '9' );
|
150 |
+
|
151 |
+
/**
|
152 |
+
* Background color for banner
|
153 |
+
* @var string
|
154 |
+
*/
|
155 |
+
$banner_bg = ( isset( $this->options['banner_bg'] ) ) ? $this->options['banner_bg'] : '' ;
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Color for text
|
159 |
+
* @var string
|
160 |
+
*/
|
161 |
+
$banner_text_color = ( isset( $this->options['banner_text_color'] ) ) ? $this->options['banner_text_color'] : '' ;
|
162 |
+
|
163 |
+
/**
|
164 |
+
* Text for banner
|
165 |
+
* @var string
|
166 |
+
*/
|
167 |
+
$text = ( isset( $this->options['text'] ) ) ? $this->options['text'] : '' ;
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Text for buttom
|
171 |
+
* @var [type]
|
172 |
+
*/
|
173 |
+
$button_text = ( isset( $this->options['button_text'] ) ) ? $this->options['button_text'] : '' ;
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Checkbox for third part cookie in content
|
177 |
+
* @var bol
|
178 |
+
*/
|
179 |
+
$block = ( isset( $this->options['block'] ) ) ? $this->options['block'] : '' ;
|
180 |
+
|
181 |
+
/**
|
182 |
+
* Checkbox for third part cookie in widget
|
183 |
+
* @var bol
|
184 |
+
*/
|
185 |
+
$widget_block = ( isset( $this->options['widget_block'] ) ) ? $this->options['widget_block'] : '' ;
|
186 |
+
|
187 |
+
/**
|
188 |
+
* Text to put inside locked post and widget contents
|
189 |
+
* including the button text
|
190 |
+
* @var string
|
191 |
+
*/
|
192 |
+
$content_message_text = ( isset( $this->options['content_message_text'] ) ) ? $this->options['content_message_text'] : '' ;
|
193 |
+
|
194 |
+
/**
|
195 |
+
* Text for button in locked content and widget
|
196 |
+
* @var string
|
197 |
+
*/
|
198 |
+
$content_message_button_text = ( isset( $this->options['content_message_button_text'] ) ) ? $this->options['content_message_button_text'] : '' ;
|
199 |
+
|
200 |
+
/**
|
201 |
+
* Replacement for regex
|
202 |
+
* @var string
|
203 |
+
*/
|
204 |
+
// $this->valore = '<div class="el"><div style="padding:10px;margin-bottom: 18px;color: #b94a48;background-color: #f2dede;border: 1px solid #eed3d7; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;">' . esc_attr( $this->options['text'] ) . '<button onclick="allowCookie()">Try it</button></div><!-- $0 --></div>';
|
205 |
+
//
|
206 |
+
$this->valore = '<div class="el"><div style="padding:10px;margin-bottom: 18px;color:'.esc_attr( $banner_text_color ).';background-color:' . esc_attr( $banner_bg ) . ';text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);">' . esc_attr( $content_message_text ) . ' <button onclick="allowCookie()" style="color: '.esc_attr( $banner_text_color ).';padding: 3px;font-size: 12px;line-height: 12px;text-decoration: none;text-transform: uppercase;margin:0;display: inline-block;font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid ' . esc_attr( $banner_text_color ) . ';background: rgba(255, 255, 255, 0.03);">' . esc_attr( $content_message_button_text ) . '</button></div><cookie></div>';
|
207 |
+
|
208 |
+
if ($block)
|
209 |
+
add_filter( 'the_content', array( $this, 'AutoErase' ), 11);
|
210 |
+
|
211 |
+
if ( $widget_block )
|
212 |
+
add_filter('widget_display_callback', array( $this, 'WidgetErase' ), 11, 3);
|
213 |
+
|
214 |
+
/**
|
215 |
+
* Only for debug
|
216 |
+
*/
|
217 |
+
// var_dump($_COOKIE);
|
218 |
+
// var_dump(headers_list());
|
219 |
+
|
220 |
+
}
|
221 |
+
}
|
222 |
}
|
223 |
|
224 |
/**
|
280 |
*/
|
281 |
$this->default_options = array(
|
282 |
|
283 |
+
'text' => '',
|
284 |
+
'url' => '',
|
285 |
+
'anchor_text' => '',
|
286 |
+
'button_text' => '',
|
287 |
+
'cookie_name' => $this->cookieName,
|
288 |
+
'cookie_value' => $this->cookieVal,
|
289 |
+
'content_message_text' => '',
|
290 |
+
'content_message_button_text' => ''
|
291 |
|
292 |
);
|
293 |
|
294 |
/**
|
295 |
+
* All options in array
|
296 |
+
* @var array
|
297 |
*/
|
298 |
$this->options = get_option( 'italy_cookie_choices' );
|
299 |
|
304 |
add_option( 'italy_cookie_choices', $this->default_options );
|
305 |
|
306 |
/**
|
307 |
+
* Section options page
|
308 |
*/
|
309 |
add_settings_section(
|
310 |
'setting_section',
|
359 |
);
|
360 |
|
361 |
/**
|
362 |
+
* Input for short policy text
|
363 |
*/
|
364 |
add_settings_field(
|
365 |
'text',
|
370 |
);
|
371 |
|
372 |
/**
|
373 |
+
* Input for url policy page
|
374 |
*/
|
375 |
add_settings_field(
|
376 |
'url',
|
381 |
);
|
382 |
|
383 |
/**
|
384 |
+
* Input for anchor text
|
385 |
*/
|
386 |
add_settings_field(
|
387 |
'anchor_text',
|
392 |
);
|
393 |
|
394 |
/**
|
395 |
+
* Input for button text
|
396 |
*/
|
397 |
add_settings_field(
|
398 |
'button_text',
|
421 |
array( $this, 'italy_cl_option_html_margin'),
|
422 |
'italy_cl_options_group',
|
423 |
'style_setting_section'
|
424 |
+
);
|
425 |
+
|
426 |
+
/**
|
427 |
+
* Background color for banner
|
428 |
+
*/
|
429 |
+
add_settings_field(
|
430 |
+
'banner_bg',
|
431 |
+
__( 'Banner Background color', 'italy-cookie-choices' ),
|
432 |
+
array( $this, 'italy_cl_option_banner_bg'),
|
433 |
+
'italy_cl_options_group',
|
434 |
+
'style_setting_section'
|
435 |
+
);
|
436 |
+
|
437 |
+
/**
|
438 |
+
* Color for text in banner
|
439 |
+
*/
|
440 |
+
add_settings_field(
|
441 |
+
'banner_text_color',
|
442 |
+
__( 'Banner text color', 'italy-cookie-choices' ),
|
443 |
+
array( $this, 'italy_cl_option_banner_text_color'),
|
444 |
+
'italy_cl_options_group',
|
445 |
+
'style_setting_section'
|
446 |
+
);
|
447 |
|
448 |
/**
|
449 |
* Settings sections for Advanced options
|
456 |
);
|
457 |
|
458 |
/**
|
459 |
+
* cookie name
|
460 |
*/
|
461 |
add_settings_field(
|
462 |
'cookie_name',
|
467 |
);
|
468 |
|
469 |
/**
|
470 |
+
* cookie value
|
471 |
*/
|
472 |
add_settings_field(
|
473 |
'cookie_value',
|
478 |
);
|
479 |
|
480 |
/**
|
481 |
+
* Cookie policy page slug
|
482 |
*/
|
483 |
add_settings_field(
|
484 |
'slug',
|
489 |
);
|
490 |
|
491 |
/**
|
492 |
+
* Checkbox for open in new page
|
493 |
*/
|
494 |
add_settings_field(
|
495 |
'target',
|
500 |
);
|
501 |
|
502 |
/**
|
503 |
+
* Checkbox for activation third part cookie eraser
|
504 |
+
*/
|
505 |
+
add_settings_field(
|
506 |
+
'block',
|
507 |
+
__( 'Third part cookie block (beta)', 'italy-cookie-choices' ),
|
508 |
+
array( $this, 'italy_cl_option_block'),
|
509 |
+
'italy_cl_options_group',
|
510 |
+
'advanced_setting_section'
|
511 |
+
);
|
512 |
+
|
513 |
+
/**
|
514 |
+
* Function for content message text
|
515 |
+
*/
|
516 |
+
add_settings_field(
|
517 |
+
'content_message_text',
|
518 |
+
__( 'Text message for locked embedded content', 'italy-cookie-choices' ),
|
519 |
+
array( $this, 'italy_cl_option_content_message_text'),
|
520 |
+
'italy_cl_options_group',
|
521 |
+
'advanced_setting_section'
|
522 |
+
);
|
523 |
+
|
524 |
+
/**
|
525 |
+
* Function for button text in message
|
526 |
+
*/
|
527 |
+
add_settings_field(
|
528 |
+
'content_message_button_text',
|
529 |
+
__( 'Button text to activate locked embedded content', 'italy-cookie-choices' ),
|
530 |
+
array( $this, 'italy_cl_option_content_message_button_text'),
|
531 |
+
'italy_cl_options_group',
|
532 |
+
'advanced_setting_section'
|
533 |
+
);
|
534 |
+
|
535 |
+
/**
|
536 |
+
* Register setting
|
537 |
*/
|
538 |
register_setting(
|
539 |
'italy_cl_options_group',
|
546 |
|
547 |
|
548 |
/**
|
549 |
+
* Display message in plugin control panel
|
550 |
+
* @return string Return message
|
551 |
*/
|
552 |
public function italy_cl_settings_section_callback() {
|
553 |
|
707 |
}
|
708 |
|
709 |
/**
|
710 |
+
* NUOVA SETTINGS SECTIONS PER LO STILE
|
711 |
*/
|
712 |
|
713 |
/**
|
714 |
+
* Display message in stile plugin panel
|
715 |
+
* @return string
|
716 |
*/
|
717 |
public function italy_cl_style_settings_section_callback() {
|
718 |
|
739 |
|
740 |
}
|
741 |
|
742 |
+
/**
|
743 |
+
* Snippet for checkbox
|
744 |
+
* @return strimg Activate banner in front-end Default doesn't display
|
745 |
+
*/
|
746 |
+
public function italy_cl_option_banner_bg($args) {
|
747 |
+
|
748 |
+
$banner_bg = ( isset( $this->options['banner_bg'] ) ) ? $this->options['banner_bg'] : '' ;
|
749 |
+
|
750 |
+
?>
|
751 |
+
|
752 |
+
<input type="text" id="italy_cookie_choices[banner_bg]" name="italy_cookie_choices[banner_bg]" value="<?php echo esc_attr( $banner_bg ); ?>" placeholder="<?php echo esc_attr( $banner_bg ); ?>" class="color-field" data-default-color="#fff"/>
|
753 |
+
|
754 |
+
|
755 |
+
<label for="italy_cookie_choices[banner_bg]">
|
756 |
+
<?php _e( 'Custom Background color for banner', 'italy-cookie-choices' ); ?>
|
757 |
+
</label>
|
758 |
+
|
759 |
+
<?php
|
760 |
+
|
761 |
+
}
|
762 |
+
|
763 |
+
/**
|
764 |
+
* Snippet for banner text color
|
765 |
+
* @return strimg Activate banner in front-end Default doesn't display
|
766 |
+
*/
|
767 |
+
public function italy_cl_option_banner_text_color($args) {
|
768 |
+
|
769 |
+
$banner_text_color = ( isset( $this->options['banner_text_color'] ) ) ? $this->options['banner_text_color'] : '' ;
|
770 |
+
|
771 |
+
?>
|
772 |
+
|
773 |
+
<input type="text" id="italy_cookie_choices[banner_text_color]" name="italy_cookie_choices[banner_text_color]" value="<?php echo esc_attr( $banner_text_color ); ?>" placeholder="<?php echo esc_attr( $banner_text_color ); ?>" class="color-field" data-default-color="#000"/>
|
774 |
+
|
775 |
+
<label for="italy_cookie_choices[banner_text_color]">
|
776 |
+
<?php _e( 'Custom text color for banner', 'italy-cookie-choices' ); ?>
|
777 |
+
</label>
|
778 |
+
|
779 |
+
<?php
|
780 |
+
|
781 |
+
}
|
782 |
|
783 |
/**
|
784 |
* NUOVA SETTINGS SECTIONS PER LE OPZIONI AVANZATE
|
785 |
*/
|
786 |
|
787 |
/**
|
788 |
+
* Display message in plugin advanced setting section
|
789 |
+
* @return string
|
790 |
*/
|
791 |
public function italy_cl_advanced_settings_section_callback() {
|
792 |
|
871 |
|
872 |
}
|
873 |
|
874 |
+
/**
|
875 |
+
* Snippet for target checkbox
|
876 |
+
* @return strimg Activate for open policy page in new tab
|
877 |
+
* Default open in same tab
|
878 |
+
*/
|
879 |
+
public function italy_cl_option_block($args) {
|
880 |
+
|
881 |
+
$block = ( isset( $this->options['block'] ) ) ? $this->options['block'] : '' ;
|
882 |
+
$widget_block = ( isset( $this->options['widget_block'] ) ) ? $this->options['widget_block'] : '' ;
|
883 |
+
|
884 |
+
?>
|
885 |
+
|
886 |
+
<input type='checkbox' name='italy_cookie_choices[block]' <?php checked( $block, 1 ); ?> value='1'>
|
887 |
+
<label for="italy_cookie_choices[block]">
|
888 |
+
<?php _e( 'Cookie from any embed in your content (Beta)', 'italy-cookie-choices' ); ?>
|
889 |
+
</label>
|
890 |
+
<br>
|
891 |
+
<input type='checkbox' name='italy_cookie_choices[widget_block]' <?php checked( $widget_block, 1 ); ?> value='1'>
|
892 |
+
<label for="italy_cookie_choices[widget_block]">
|
893 |
+
<?php _e( 'Cookie from any embed in your widget area (Beta)', 'italy-cookie-choices' ); ?>
|
894 |
+
</label>
|
895 |
+
|
896 |
+
<?php
|
897 |
+
|
898 |
+
}
|
899 |
+
|
900 |
+
/**
|
901 |
+
* Textarea for content_message_text
|
902 |
+
* @return string
|
903 |
+
*/
|
904 |
+
public function italy_cl_option_content_message_text($args) {
|
905 |
+
|
906 |
+
?>
|
907 |
+
<textarea rows="5" cols="70" name="italy_cookie_choices[content_message_text]" id="italy_cookie_choices[content_message_text]" placeholder="<?php _e( 'Your lock message for embedded contents inside posts, pages and widgets', 'italy-cookie-choices' ) ?>" ><?php echo esc_textarea( $this->options['content_message_text'] ); ?></textarea>
|
908 |
+
<br>
|
909 |
+
<label for="italy_cookie_choices[content_message_text]">
|
910 |
+
<?php echo __( 'People will see this notice only the first time that they enter your site', 'italy-cookie-choices' ); ?>
|
911 |
+
</label>
|
912 |
+
|
913 |
+
<?php
|
914 |
+
|
915 |
+
}
|
916 |
+
|
917 |
+
/**
|
918 |
+
* Input for content_message_button_text
|
919 |
+
* @return string
|
920 |
+
*/
|
921 |
+
public function italy_cl_option_content_message_button_text($args) {
|
922 |
+
|
923 |
+
?>
|
924 |
+
<input type="text" id="italy_cookie_choices[content_message_button_text]" name="italy_cookie_choices[content_message_button_text]" value="<?php echo esc_attr( $this->options['content_message_button_text'] ); ?>" placeholder="<?php _e( 'e.g. Close', 'italy-cookie-choices' ) ?>" />
|
925 |
+
|
926 |
+
<label for="italy_cookie_choices[content_message_button_text]">
|
927 |
+
<?php echo __( 'Insert here name of button (e.g. "Close") ', 'italy-cookie-choices' ); ?>
|
928 |
+
</label>
|
929 |
+
|
930 |
+
<?php
|
931 |
+
|
932 |
+
}
|
933 |
+
|
934 |
/**
|
935 |
* Sanitize data
|
936 |
* @param array $input Data to sanitize
|
970 |
if( isset( $input['html_margin'] ) )
|
971 |
$new_input['html_margin'] = $input['html_margin'];
|
972 |
|
973 |
+
if( empty( $input['banner_bg'] ) )
|
974 |
+
$new_input['banner_bg'] = '#fff';
|
975 |
+
elseif ( isset( $input['banner_bg'] ) )
|
976 |
+
$new_input['banner_bg'] = sanitize_text_field( $input['banner_bg'] );
|
977 |
+
|
978 |
+
if( empty( $input['banner_text_color'] ) )
|
979 |
+
$new_input['banner_text_color'] = '#000';
|
980 |
+
elseif ( isset( $input['banner_text_color'] ) )
|
981 |
+
$new_input['banner_text_color'] = sanitize_text_field( $input['banner_text_color'] );
|
982 |
+
|
983 |
/**
|
984 |
* Sezione per le opzioni avanzate
|
985 |
* Esempio per add_settings_error()
|
1006 |
if( isset( $input['target'] ) )
|
1007 |
$new_input['target'] = $input['target'];
|
1008 |
|
1009 |
+
if( isset( $input['block'] ) )
|
1010 |
+
$new_input['block'] = $input['block'];
|
1011 |
+
|
1012 |
+
if( isset( $input['widget_block'] ) )
|
1013 |
+
$new_input['widget_block'] = $input['widget_block'];
|
1014 |
+
|
1015 |
+
if( isset( $input['content_message_text'] ) )
|
1016 |
+
$new_input['content_message_text'] = $input['content_message_text'];
|
1017 |
+
|
1018 |
+
if( isset( $input['content_message_button_text'] ) )
|
1019 |
+
$new_input['content_message_button_text'] = $input['content_message_button_text'];
|
1020 |
+
|
1021 |
return $new_input;
|
1022 |
|
1023 |
}
|
1024 |
|
1025 |
+
/**
|
1026 |
+
* Function for color picker in admin
|
1027 |
+
* @param string $hook_suffix Hook for script
|
1028 |
+
* @return Append script
|
1029 |
+
* @link https://make.wordpress.org/core/2012/11/30/new-color-picker-in-wp-3-5/
|
1030 |
+
* @link http://code.tutsplus.com/articles/how-to-use-wordpress-color-picker-api--wp-33067
|
1031 |
+
*/
|
1032 |
+
public function enqueue_color_picker( $hook_suffix ) {
|
1033 |
+
|
1034 |
+
// first check that $hook_suffix is appropriate for your admin page
|
1035 |
+
wp_enqueue_style( 'wp-color-picker' );
|
1036 |
+
|
1037 |
+
// wp_enqueue_script( 'jquery' );
|
1038 |
+
|
1039 |
+
wp_enqueue_script(
|
1040 |
+
'italy-cookie-choices-script',
|
1041 |
+
plugins_url('admin/js/src/script.js', ITALY_COOKIE_CHOICES_FILE ),
|
1042 |
+
array(
|
1043 |
+
// 'jquery',
|
1044 |
+
'wp-color-picker'
|
1045 |
+
),
|
1046 |
+
null,
|
1047 |
+
true
|
1048 |
+
);
|
1049 |
+
|
1050 |
+
}
|
1051 |
+
|
1052 |
+
/**
|
1053 |
+
* Function for matching embed
|
1054 |
+
* @param string $pattern Pattern
|
1055 |
+
* @param string $content Content
|
1056 |
+
* @return array Array with embed found
|
1057 |
+
*/
|
1058 |
+
public function matches( $pattern, $content ){
|
1059 |
+
|
1060 |
+
preg_match_all( $this->pattern, $content, $matches );
|
1061 |
+
|
1062 |
+
/**
|
1063 |
+
* Memorizzo gli embed trovati e li appendo all'array $js_array
|
1064 |
+
* @var [type]
|
1065 |
+
*/
|
1066 |
+
if ( !empty( $matches[0] ) )
|
1067 |
+
$this->js_array = array_merge( $this->js_array, $matches[0] );
|
1068 |
+
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
/**
|
1072 |
+
* Erase third part embed
|
1073 |
+
* @param string $content Article content
|
1074 |
+
*/
|
1075 |
+
public function AutoErase( $content ) {
|
1076 |
+
|
1077 |
+
$this->matches( $this->pattern, $content );
|
1078 |
+
|
1079 |
+
$content = preg_replace( $this->pattern, $this->valore , $content);
|
1080 |
+
|
1081 |
+
|
1082 |
+
return $content;
|
1083 |
+
}
|
1084 |
+
|
1085 |
+
/**
|
1086 |
+
* Erase third part in widget area
|
1087 |
+
* @param [type] $instance [description]
|
1088 |
+
* @param [type] $widget [description]
|
1089 |
+
* @param [type] $args [description]
|
1090 |
+
*/
|
1091 |
+
public function WidgetErase($instance, $widget, $args){
|
1092 |
+
|
1093 |
+
$fnFixArray = function($v) use (&$fnFixArray){
|
1094 |
+
if(is_array($v) or is_object($v)){
|
1095 |
+
foreach($v as $k1=>&$v1){
|
1096 |
+
$v1 = $fnFixArray($v1);
|
1097 |
+
}
|
1098 |
+
return $v;
|
1099 |
+
}
|
1100 |
+
|
1101 |
+
if(!is_string($v) or empty($v)) return $v;
|
1102 |
+
|
1103 |
+
$this->matches( $this->pattern, $v );
|
1104 |
+
|
1105 |
+
return preg_replace( $this->pattern, $this->valore , $v);
|
1106 |
+
|
1107 |
+
};
|
1108 |
+
|
1109 |
+
return $fnFixArray($instance);
|
1110 |
+
|
1111 |
+
}
|
1112 |
+
|
1113 |
/**
|
1114 |
* Print script inline
|
1115 |
* @return string Print script inline
|
1117 |
*/
|
1118 |
public function print_script_inline(){
|
1119 |
|
1120 |
+
// $this->options = get_option( 'italy_cookie_choices' );
|
1121 |
|
1122 |
/**
|
1123 |
* If is not active exit
|
1178 |
$style = '<style>.icc{margin-top:36px}</style>';
|
1179 |
|
1180 |
/**
|
1181 |
+
* If is set html_margin checkbox in admin panel then add margin-top to HTML tag
|
1182 |
* @var bol
|
1183 |
*/
|
1184 |
$htmlM = ( isset( $this->options['html_margin'] ) ) ? $this->options['html_margin'] : '' ;
|
1188 |
* @var bol
|
1189 |
*/
|
1190 |
$target = ( isset( $this->options['target'] ) ) ? $this->options['target'] : '' ;
|
1191 |
+
|
1192 |
+
/**
|
1193 |
+
* Colore dello sfondo della dialog/topbar
|
1194 |
+
* @var string
|
1195 |
+
*/
|
1196 |
+
$banner_bg = ( isset( $this->options['banner_bg'] ) ) ? esc_attr( $this->options['banner_bg'] ) : '' ;
|
1197 |
+
|
1198 |
+
/**
|
1199 |
+
* Colore del font della dialog/topbar
|
1200 |
+
* @var string
|
1201 |
+
*/
|
1202 |
+
$banner_text_color = ( isset( $this->options['banner_text_color'] ) ) ? esc_attr( $this->options['banner_text_color'] ) : '' ;
|
1203 |
+
|
1204 |
/**
|
1205 |
* Declarations of JS variables and set parameters
|
1206 |
* var elPos = Gestisce la Posizione banner nella funzione _createHeaderElement
|
1211 |
* var coVA = cookie val
|
1212 |
* var rel = Setto il reload per la pagina all'accettazione
|
1213 |
* var tar = Target -blank
|
1214 |
+
* var bgB = Colore del background della topbar/dialog
|
1215 |
+
* var btcB = Colore del font della topbar/dialog
|
1216 |
* @var string
|
1217 |
*/
|
1218 |
+
$jsVariables = 'var coNA="' . $cookie_name . '",coVA="' . $cookie_value . '";scroll="' . $scroll . '",elPos="fixed",infoClass="",closeClass="",htmlM="' . $htmlM . '",rel="' . $reload . '",tar="' . $target . '",bgB="' . $banner_bg . '",btcB="' . $banner_text_color . '",jsArr = ' . wp_json_encode( $this->js_array ) . ';';
|
1219 |
|
1220 |
/**
|
1221 |
* Noscript snippet in case browser has JavaScript disabled
|
1229 |
|
1230 |
}
|
1231 |
|
1232 |
+
/**
|
1233 |
+
* Shortcode per stampare il bottone nella pagina della policy
|
1234 |
+
* @param array $atts Array con gli attributi dello shortcode
|
1235 |
+
* @param string $content content of shortcode
|
1236 |
+
* @return string Button per l'accettazione
|
1237 |
+
*/
|
1238 |
+
public function accept_button( $atts, $content = null ) {
|
1239 |
+
|
1240 |
+
$button_text = ( isset( $this->options['button_text'] ) ) ? $this->options['button_text'] : '' ;
|
1241 |
+
|
1242 |
+
return '<span class="el"><button onclick="allowCookie()">' . esc_attr( $button_text ) . '</button></span>';
|
1243 |
+
|
1244 |
+
}
|
1245 |
+
|
1246 |
}// class
|
1247 |
}//endif
|
1248 |
|
js/cookiechoices.bak2
ADDED
@@ -0,0 +1,279 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
Copyright 2014 Google Inc. All rights reserved.
|
3 |
+
|
4 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
+
you may not use this file except in compliance with the License.
|
6 |
+
You may obtain a copy of the License at
|
7 |
+
|
8 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
9 |
+
|
10 |
+
Unless required by applicable law or agreed to in writing, software
|
11 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
+
See the License for the specific language governing permissions and
|
14 |
+
limitations under the License.
|
15 |
+
*/
|
16 |
+
|
17 |
+
function allowCookie() {
|
18 |
+
|
19 |
+
cookieChoices.removeCookieConsent();
|
20 |
+
|
21 |
+
var x=document.getElementsByClassName("el");
|
22 |
+
|
23 |
+
// var patt = new RegExp("<script.*?\/script>");
|
24 |
+
var patt = new RegExp("<script.*?");
|
25 |
+
|
26 |
+
var i;
|
27 |
+
for (i = 0; i < x.length; i++) {
|
28 |
+
|
29 |
+
x[i].removeChild(x[i].childNodes[0]);
|
30 |
+
|
31 |
+
// console.log(jsArr[i]);
|
32 |
+
|
33 |
+
var res = patt.test(jsArr[i]);
|
34 |
+
// console.log(res);
|
35 |
+
|
36 |
+
if (res) {
|
37 |
+
// console.log(jsArr[i]);
|
38 |
+
|
39 |
+
|
40 |
+
var regexURL = /<script.*?src="(.*?)"/;
|
41 |
+
|
42 |
+
var URL = regexURL.test(jsArr[i]);
|
43 |
+
|
44 |
+
if (URL) {
|
45 |
+
URL = regexURL.exec(jsArr[i]);
|
46 |
+
loadJS(URL[1]);
|
47 |
+
}
|
48 |
+
|
49 |
+
|
50 |
+
var regex = /<script\b[^>]*>([\s\S]*?)<\/script>/gm;
|
51 |
+
|
52 |
+
var code = regex.exec(jsArr[i]);
|
53 |
+
|
54 |
+
if ( code[1] ) appendJS(code[1]);
|
55 |
+
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
} else {
|
60 |
+
|
61 |
+
var str = x[i].innerHTML;
|
62 |
+
// var res = str.replace(/<!--(.*?)-->/g, "$1");
|
63 |
+
// Prendo l\'array creato e all\'accettazione ogni valore è messo al suo posto
|
64 |
+
res = str.replace(/<cookie>/g, jsArr[i]);
|
65 |
+
x[i].innerHTML = res;
|
66 |
+
}
|
67 |
+
|
68 |
+
// var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear()+1);document.cookie=cookieName+"=; expires="+expiryDate.toGMTString()+"; path=/";
|
69 |
+
|
70 |
+
// var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear() + 1);
|
71 |
+
// document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
|
72 |
+
// document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
|
73 |
+
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
function loadJS(file) {
|
78 |
+
// DOM: Create the script element
|
79 |
+
var jsElm = document.createElement("script");
|
80 |
+
// set the type attribute
|
81 |
+
jsElm.type = "application/javascript";
|
82 |
+
// make the script element load file
|
83 |
+
jsElm.src = file;
|
84 |
+
// finally insert the element to the body element in order to load the script
|
85 |
+
document.body.appendChild(jsElm);
|
86 |
+
}
|
87 |
+
|
88 |
+
function appendJS(script){
|
89 |
+
var s = document.createElement("script");
|
90 |
+
s.type = "text/javascript";
|
91 |
+
var code = script;
|
92 |
+
try {
|
93 |
+
s.appendChild(document.createTextNode(code));
|
94 |
+
document.body.appendChild(s);
|
95 |
+
} catch (e) {
|
96 |
+
s.text = code;
|
97 |
+
document.body.appendChild(s);
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
+
|
107 |
+
(function(window) {
|
108 |
+
|
109 |
+
if (!!window.cookieChoices) {
|
110 |
+
return window.cookieChoices;
|
111 |
+
}
|
112 |
+
|
113 |
+
var document = window.document;
|
114 |
+
var html = document.documentElement;//Per aggiungere un margin-top al tag HTML
|
115 |
+
// IE8 does not support textContent, so we should fallback to innerText.
|
116 |
+
var supportsTextContent = 'textContent' in document.body;
|
117 |
+
|
118 |
+
var cookieChoices = (function() {
|
119 |
+
|
120 |
+
// var cookieName = 'displayCookieConsent';
|
121 |
+
var cookieName = coNA;
|
122 |
+
var cookieConsentId = 'cookieChoiceInfo';
|
123 |
+
var dismissLinkId = 'cookieChoiceDismiss';
|
124 |
+
|
125 |
+
function _createHeaderElement(cookieText, dismissText, linkText, linkHref) {
|
126 |
+
|
127 |
+
if( htmlM ) html.className += ' icc';
|
128 |
+
|
129 |
+
var butterBarStyles = 'position:' + elPos + ';width:100%;background-color:' + bgB + ';' +
|
130 |
+
'margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:center;';
|
131 |
+
|
132 |
+
var cookieConsentElement = document.createElement('div');
|
133 |
+
cookieConsentElement.id = cookieConsentId;
|
134 |
+
cookieConsentElement.style.cssText = butterBarStyles;
|
135 |
+
cookieConsentElement.appendChild(_createConsentText(cookieText));
|
136 |
+
|
137 |
+
if (!!linkText && !!linkHref) {
|
138 |
+
cookieConsentElement.appendChild(_createInformationLink(linkText, linkHref));
|
139 |
+
}
|
140 |
+
cookieConsentElement.appendChild(_createDismissLink(dismissText));
|
141 |
+
return cookieConsentElement;
|
142 |
+
}
|
143 |
+
|
144 |
+
function _createDialogElement(cookieText, dismissText, linkText, linkHref) {
|
145 |
+
var glassStyle = 'position:fixed;width:100%;height:100%;z-index:999;' +
|
146 |
+
'top:0;left:0;opacity:0.5;filter:alpha(opacity=50);' +
|
147 |
+
'background-color:#ccc;';
|
148 |
+
var dialogStyle = 'z-index:9999;position:fixed;left:50%;top:50%;bottom:0%;';
|
149 |
+
var contentStyle = 'position:relative;left:-50%;margin-top:-25%;' +
|
150 |
+
'background-color:' + bgB + ';padding:20px;box-shadow:4px 4px 25px #888;';
|
151 |
+
|
152 |
+
var cookieConsentElement = document.createElement('div');
|
153 |
+
cookieConsentElement.id = cookieConsentId;
|
154 |
+
|
155 |
+
var glassPanel = document.createElement('div');
|
156 |
+
glassPanel.style.cssText = glassStyle;
|
157 |
+
|
158 |
+
var content = document.createElement('div');
|
159 |
+
content.style.cssText = contentStyle;
|
160 |
+
|
161 |
+
var dialog = document.createElement('div');
|
162 |
+
dialog.style.cssText = dialogStyle;
|
163 |
+
|
164 |
+
var dismissLink = _createDismissLink(dismissText);
|
165 |
+
dismissLink.style.display = 'block';
|
166 |
+
dismissLink.style.textAlign = 'right';
|
167 |
+
dismissLink.style.marginTop = '8px';
|
168 |
+
|
169 |
+
content.appendChild(_createConsentText(cookieText));
|
170 |
+
if (!!linkText && !!linkHref) {
|
171 |
+
content.appendChild(_createInformationLink(linkText, linkHref));
|
172 |
+
}
|
173 |
+
content.appendChild(dismissLink);
|
174 |
+
dialog.appendChild(content);
|
175 |
+
cookieConsentElement.appendChild(glassPanel);
|
176 |
+
cookieConsentElement.appendChild(dialog);
|
177 |
+
return cookieConsentElement;
|
178 |
+
}
|
179 |
+
|
180 |
+
function _setElementText(element, text) {
|
181 |
+
if (supportsTextContent) {
|
182 |
+
element.textContent = text;
|
183 |
+
} else {
|
184 |
+
element.innerText = text;
|
185 |
+
}
|
186 |
+
}
|
187 |
+
|
188 |
+
function _createConsentText(cookieText) {
|
189 |
+
var consentText = document.createElement('span');
|
190 |
+
_setElementText(consentText, cookieText);
|
191 |
+
return consentText;
|
192 |
+
}
|
193 |
+
|
194 |
+
function _createDismissLink(dismissText) {
|
195 |
+
var dismissLink = document.createElement('a');
|
196 |
+
_setElementText(dismissLink, dismissText);
|
197 |
+
dismissLink.id = dismissLinkId;
|
198 |
+
dismissLink.className = closeClass;
|
199 |
+
dismissLink.href = '#';
|
200 |
+
dismissLink.style.marginLeft = '24px';
|
201 |
+
return dismissLink;
|
202 |
+
}
|
203 |
+
|
204 |
+
function _createInformationLink(linkText, linkHref) {
|
205 |
+
var infoLink = document.createElement('a');
|
206 |
+
_setElementText(infoLink, linkText);
|
207 |
+
infoLink.className = infoClass;
|
208 |
+
infoLink.href = linkHref;
|
209 |
+
if (tar) infoLink.target = '_blank';
|
210 |
+
infoLink.style.marginLeft = '8px';
|
211 |
+
return infoLink;
|
212 |
+
}
|
213 |
+
|
214 |
+
function _dismissLinkClick() {
|
215 |
+
if ( htmlM ) html.classList.remove("icc");
|
216 |
+
_saveUserPreference();
|
217 |
+
_removeCookieConsent();
|
218 |
+
if ( rel ) document.location.reload();
|
219 |
+
return false;
|
220 |
+
}
|
221 |
+
|
222 |
+
function _showCookieConsent(cookieText, dismissText, linkText, linkHref, isDialog) {
|
223 |
+
if (_shouldDisplayConsent()) {
|
224 |
+
_removeCookieConsent();
|
225 |
+
var consentElement = (isDialog) ?
|
226 |
+
_createDialogElement(cookieText, dismissText, linkText, linkHref) :
|
227 |
+
_createHeaderElement(cookieText, dismissText, linkText, linkHref);
|
228 |
+
var fragment = document.createDocumentFragment();
|
229 |
+
fragment.appendChild(consentElement);
|
230 |
+
document.body.appendChild(fragment.cloneNode(true));
|
231 |
+
document.getElementById(dismissLinkId).onclick = _dismissLinkClick;
|
232 |
+
// document.onclick = _dismissLinkClick;
|
233 |
+
if (scroll) document.onscroll = _dismissLinkClick;
|
234 |
+
}
|
235 |
+
}
|
236 |
+
|
237 |
+
function showCookieConsentBar(cookieText, dismissText, linkText, linkHref) {
|
238 |
+
_showCookieConsent(cookieText, dismissText, linkText, linkHref, false);
|
239 |
+
}
|
240 |
+
|
241 |
+
function showCookieConsentDialog(cookieText, dismissText, linkText, linkHref) {
|
242 |
+
_showCookieConsent(cookieText, dismissText, linkText, linkHref, true);
|
243 |
+
}
|
244 |
+
|
245 |
+
function _removeCookieConsent() {
|
246 |
+
var cookieChoiceElement = document.getElementById(cookieConsentId);
|
247 |
+
if (cookieChoiceElement !== null) {
|
248 |
+
cookieChoiceElement.parentNode.removeChild(cookieChoiceElement);
|
249 |
+
}
|
250 |
+
}
|
251 |
+
|
252 |
+
function removeCookieConsent(){
|
253 |
+
// _removeCookieConsent();
|
254 |
+
_dismissLinkClick();
|
255 |
+
}
|
256 |
+
|
257 |
+
function _saveUserPreference() {
|
258 |
+
// Set the cookie expiry to one year after today.
|
259 |
+
var expiryDate = new Date();
|
260 |
+
expiryDate.setFullYear(expiryDate.getFullYear() + 1);
|
261 |
+
// document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
|
262 |
+
document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
|
263 |
+
}
|
264 |
+
|
265 |
+
function _shouldDisplayConsent() {
|
266 |
+
// Display the header only if the cookie has not been set.
|
267 |
+
return !document.cookie.match(new RegExp(cookieName + '=([^;]+)'));
|
268 |
+
}
|
269 |
+
|
270 |
+
var exports = {};
|
271 |
+
exports.showCookieConsentBar = showCookieConsentBar;
|
272 |
+
exports.showCookieConsentDialog = showCookieConsentDialog;
|
273 |
+
exports.removeCookieConsent = removeCookieConsent;
|
274 |
+
return exports;
|
275 |
+
})();
|
276 |
+
|
277 |
+
window.cookieChoices = cookieChoices;
|
278 |
+
return cookieChoices;
|
279 |
+
})(this);
|
js/cookiechoices.js
CHANGED
@@ -14,6 +14,90 @@
|
|
14 |
limitations under the License.
|
15 |
*/
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
(function(window) {
|
18 |
|
19 |
if (!!window.cookieChoices) {
|
@@ -36,28 +120,40 @@
|
|
36 |
|
37 |
if( htmlM ) html.className += ' icc';
|
38 |
|
39 |
-
var butterBarStyles = 'position:' + elPos + ';width:100%;background-color
|
40 |
-
'margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
var cookieConsentElement = document.createElement('div');
|
43 |
-
cookieConsentElement.id = cookieConsentId;
|
44 |
-
cookieConsentElement.style.cssText =
|
45 |
cookieConsentElement.appendChild(_createConsentText(cookieText));
|
|
|
46 |
|
47 |
if (!!linkText && !!linkHref) {
|
48 |
cookieConsentElement.appendChild(_createInformationLink(linkText, linkHref));
|
49 |
}
|
50 |
cookieConsentElement.appendChild(_createDismissLink(dismissText));
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
function _createDialogElement(cookieText, dismissText, linkText, linkHref) {
|
55 |
var glassStyle = 'position:fixed;width:100%;height:100%;z-index:999;' +
|
56 |
'top:0;left:0;opacity:0.5;filter:alpha(opacity=50);' +
|
57 |
'background-color:#ccc;';
|
58 |
-
var dialogStyle = 'z-index:
|
59 |
var contentStyle = 'position:relative;left:-50%;margin-top:-25%;' +
|
60 |
-
'background-color
|
61 |
|
62 |
var cookieConsentElement = document.createElement('div');
|
63 |
cookieConsentElement.id = cookieConsentId;
|
@@ -67,16 +163,22 @@
|
|
67 |
|
68 |
var content = document.createElement('div');
|
69 |
content.style.cssText = contentStyle;
|
70 |
-
|
|
|
|
|
|
|
71 |
var dialog = document.createElement('div');
|
72 |
dialog.style.cssText = dialogStyle;
|
73 |
|
74 |
var dismissLink = _createDismissLink(dismissText);
|
75 |
-
dismissLink.style.display = 'block';
|
76 |
-
dismissLink.style.textAlign = 'right';
|
77 |
-
dismissLink.style.marginTop = '8px';
|
78 |
|
79 |
content.appendChild(_createConsentText(cookieText));
|
|
|
|
|
|
|
80 |
if (!!linkText && !!linkHref) {
|
81 |
content.appendChild(_createInformationLink(linkText, linkHref));
|
82 |
}
|
@@ -95,6 +197,13 @@
|
|
95 |
}
|
96 |
}
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
function _createConsentText(cookieText) {
|
99 |
var consentText = document.createElement('span');
|
100 |
_setElementText(consentText, cookieText);
|
@@ -102,22 +211,29 @@
|
|
102 |
}
|
103 |
|
104 |
function _createDismissLink(dismissText) {
|
|
|
|
|
|
|
105 |
var dismissLink = document.createElement('a');
|
106 |
_setElementText(dismissLink, dismissText);
|
107 |
dismissLink.id = dismissLinkId;
|
108 |
dismissLink.className = closeClass;
|
109 |
dismissLink.href = '#';
|
110 |
-
dismissLink.style.marginLeft = '24px';
|
|
|
111 |
return dismissLink;
|
112 |
}
|
113 |
|
114 |
function _createInformationLink(linkText, linkHref) {
|
|
|
|
|
|
|
115 |
var infoLink = document.createElement('a');
|
116 |
_setElementText(infoLink, linkText);
|
117 |
infoLink.className = infoClass;
|
118 |
infoLink.href = linkHref;
|
119 |
if (tar) infoLink.target = '_blank';
|
120 |
-
infoLink.style.
|
121 |
return infoLink;
|
122 |
}
|
123 |
|
@@ -159,6 +275,11 @@
|
|
159 |
}
|
160 |
}
|
161 |
|
|
|
|
|
|
|
|
|
|
|
162 |
function _saveUserPreference() {
|
163 |
// Set the cookie expiry to one year after today.
|
164 |
var expiryDate = new Date();
|
@@ -175,9 +296,10 @@
|
|
175 |
var exports = {};
|
176 |
exports.showCookieConsentBar = showCookieConsentBar;
|
177 |
exports.showCookieConsentDialog = showCookieConsentDialog;
|
|
|
178 |
return exports;
|
179 |
})();
|
180 |
|
181 |
window.cookieChoices = cookieChoices;
|
182 |
return cookieChoices;
|
183 |
-
})(this);
|
14 |
limitations under the License.
|
15 |
*/
|
16 |
|
17 |
+
function allowCookie() {
|
18 |
+
|
19 |
+
cookieChoices.removeCookieConsent();
|
20 |
+
|
21 |
+
var x=document.getElementsByClassName("el");
|
22 |
+
|
23 |
+
// var patt = new RegExp("<script.*?\/script>");
|
24 |
+
var patt = new RegExp("<script.*?");
|
25 |
+
|
26 |
+
var i;
|
27 |
+
for (i = 0; i < x.length; i++) {
|
28 |
+
|
29 |
+
x[i].removeChild(x[i].childNodes[0]);
|
30 |
+
|
31 |
+
// console.log(jsArr[i]);
|
32 |
+
|
33 |
+
var res = patt.test(jsArr[i]);
|
34 |
+
// console.log(res);
|
35 |
+
|
36 |
+
if (res) {
|
37 |
+
// console.log(jsArr[i]);
|
38 |
+
|
39 |
+
|
40 |
+
var regexURL = /<script.*?src="(.*?)"/;
|
41 |
+
|
42 |
+
var URL = regexURL.test(jsArr[i]);
|
43 |
+
|
44 |
+
if (URL) {
|
45 |
+
URL = regexURL.exec(jsArr[i]);
|
46 |
+
loadJS(URL[1]);
|
47 |
+
}
|
48 |
+
|
49 |
+
|
50 |
+
var regex = /<script\b[^>]*>([\s\S]*?)<\/script>/gm;
|
51 |
+
|
52 |
+
var code = regex.exec(jsArr[i]);
|
53 |
+
|
54 |
+
if ( code[1] ) appendJS(code[1]);
|
55 |
+
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
} else {
|
60 |
+
|
61 |
+
var str = x[i].innerHTML;
|
62 |
+
// var res = str.replace(/<!--(.*?)-->/g, "$1");
|
63 |
+
// Prendo l\'array creato e all\'accettazione ogni valore è messo al suo posto
|
64 |
+
res = str.replace(/<cookie>/g, jsArr[i]);
|
65 |
+
x[i].innerHTML = res;
|
66 |
+
}
|
67 |
+
|
68 |
+
// var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear()+1);document.cookie=cookieName+"=; expires="+expiryDate.toGMTString()+"; path=/";
|
69 |
+
|
70 |
+
// var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear() + 1);
|
71 |
+
// document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
|
72 |
+
// document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
|
73 |
+
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
function loadJS(file) {
|
78 |
+
// DOM: Create the script element
|
79 |
+
var jsElm = document.createElement("script");
|
80 |
+
// set the type attribute
|
81 |
+
jsElm.type = "application/javascript";
|
82 |
+
// make the script element load file
|
83 |
+
jsElm.src = file;
|
84 |
+
// finally insert the element to the body element in order to load the script
|
85 |
+
document.body.appendChild(jsElm);
|
86 |
+
}
|
87 |
+
|
88 |
+
function appendJS(script){
|
89 |
+
var s = document.createElement("script");
|
90 |
+
s.type = "text/javascript";
|
91 |
+
var code = script;
|
92 |
+
try {
|
93 |
+
s.appendChild(document.createTextNode(code));
|
94 |
+
document.body.appendChild(s);
|
95 |
+
} catch (e) {
|
96 |
+
s.text = code;
|
97 |
+
document.body.appendChild(s);
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
(function(window) {
|
102 |
|
103 |
if (!!window.cookieChoices) {
|
120 |
|
121 |
if( htmlM ) html.className += ' icc';
|
122 |
|
123 |
+
var butterBarStyles = 'color:'+ btcB +';position:' + elPos + ';width:100%;background-color:' + bgB + ';' +
|
124 |
+
'margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:left;';
|
125 |
+
|
126 |
+
// Aggiungo contenitore esterno per migliorare il layout
|
127 |
+
var contenitore = document.createElement('div');
|
128 |
+
var contenutoContenitoreStyle = 'max-width:980px;margin-right:auto;margin-left:auto;padding:15px;';
|
129 |
+
contenitore.id = cookieConsentId;
|
130 |
+
contenitore.style.cssText = butterBarStyles;
|
131 |
|
132 |
var cookieConsentElement = document.createElement('div');
|
133 |
+
//cookieConsentElement.id = cookieConsentId;
|
134 |
+
cookieConsentElement.style.cssText = contenutoContenitoreStyle;
|
135 |
cookieConsentElement.appendChild(_createConsentText(cookieText));
|
136 |
+
cookieConsentElement.appendChild(_createSpace());
|
137 |
|
138 |
if (!!linkText && !!linkHref) {
|
139 |
cookieConsentElement.appendChild(_createInformationLink(linkText, linkHref));
|
140 |
}
|
141 |
cookieConsentElement.appendChild(_createDismissLink(dismissText));
|
142 |
+
|
143 |
+
// Inglobo contenuto in contenitore.
|
144 |
+
contenitore.appendChild(cookieConsentElement);
|
145 |
+
|
146 |
+
return contenitore;
|
147 |
+
//return cookieConsentElement;
|
148 |
}
|
149 |
|
150 |
function _createDialogElement(cookieText, dismissText, linkText, linkHref) {
|
151 |
var glassStyle = 'position:fixed;width:100%;height:100%;z-index:999;' +
|
152 |
'top:0;left:0;opacity:0.5;filter:alpha(opacity=50);' +
|
153 |
'background-color:#ccc;';
|
154 |
+
var dialogStyle = 'z-index:9999;position:fixed;left:50%;top:50%;bottom:0%;';
|
155 |
var contentStyle = 'position:relative;left:-50%;margin-top:-25%;' +
|
156 |
+
'background-color:' + bgB + ';padding:20px;box-shadow:4px 4px 25px #888;';
|
157 |
|
158 |
var cookieConsentElement = document.createElement('div');
|
159 |
cookieConsentElement.id = cookieConsentId;
|
163 |
|
164 |
var content = document.createElement('div');
|
165 |
content.style.cssText = contentStyle;
|
166 |
+
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
var dialog = document.createElement('div');
|
171 |
dialog.style.cssText = dialogStyle;
|
172 |
|
173 |
var dismissLink = _createDismissLink(dismissText);
|
174 |
+
//dismissLink.style.display = 'block';
|
175 |
+
//dismissLink.style.textAlign = 'right';
|
176 |
+
//dismissLink.style.marginTop = '8px';
|
177 |
|
178 |
content.appendChild(_createConsentText(cookieText));
|
179 |
+
|
180 |
+
content.appendChild(_createSpace());
|
181 |
+
|
182 |
if (!!linkText && !!linkHref) {
|
183 |
content.appendChild(_createInformationLink(linkText, linkHref));
|
184 |
}
|
197 |
}
|
198 |
}
|
199 |
|
200 |
+
function _createSpace(){
|
201 |
+
var hrStyle='clear:both;border-color:transparent;margin-top:5px;margin-bottom:5px';
|
202 |
+
var hr = document.createElement("hr");
|
203 |
+
hr.style.cssText = hrStyle;
|
204 |
+
return hr;
|
205 |
+
}
|
206 |
+
|
207 |
function _createConsentText(cookieText) {
|
208 |
var consentText = document.createElement('span');
|
209 |
_setElementText(consentText, cookieText);
|
211 |
}
|
212 |
|
213 |
function _createDismissLink(dismissText) {
|
214 |
+
var buttonStyle='color: '+ btcB +';padding: 7px 12px;font-size: 18px;line-height: 18px;text-decoration: none;text-transform: uppercase;margin:0;margin-bottom:2px;letter-spacing: 0.125em;' +
|
215 |
+
'display: inline-block;font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid '+ btcB +';background: rgba(255, 255, 255, 0.03);'
|
216 |
+
|
217 |
var dismissLink = document.createElement('a');
|
218 |
_setElementText(dismissLink, dismissText);
|
219 |
dismissLink.id = dismissLinkId;
|
220 |
dismissLink.className = closeClass;
|
221 |
dismissLink.href = '#';
|
222 |
+
//dismissLink.style.marginLeft = '24px';
|
223 |
+
dismissLink.style.cssText = buttonStyle;
|
224 |
return dismissLink;
|
225 |
}
|
226 |
|
227 |
function _createInformationLink(linkText, linkHref) {
|
228 |
+
var buttonStyle='color: '+ btcB +';padding: 7px 12px;font-size: 18px;line-height: 18px;text-decoration: none;text-transform: uppercase;margin-right: 20px;margin-bottom:2px;letter-spacing: 0.125em;' +
|
229 |
+
'display: inline-block;font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid '+ btcB +';background: rgba(255, 255, 255, 0.03);';
|
230 |
+
|
231 |
var infoLink = document.createElement('a');
|
232 |
_setElementText(infoLink, linkText);
|
233 |
infoLink.className = infoClass;
|
234 |
infoLink.href = linkHref;
|
235 |
if (tar) infoLink.target = '_blank';
|
236 |
+
infoLink.style.cssText = buttonStyle;
|
237 |
return infoLink;
|
238 |
}
|
239 |
|
275 |
}
|
276 |
}
|
277 |
|
278 |
+
function removeCookieConsent(){
|
279 |
+
// _removeCookieConsent();
|
280 |
+
_dismissLinkClick();
|
281 |
+
}
|
282 |
+
|
283 |
function _saveUserPreference() {
|
284 |
// Set the cookie expiry to one year after today.
|
285 |
var expiryDate = new Date();
|
296 |
var exports = {};
|
297 |
exports.showCookieConsentBar = showCookieConsentBar;
|
298 |
exports.showCookieConsentDialog = showCookieConsentDialog;
|
299 |
+
exports.removeCookieConsent = removeCookieConsent;
|
300 |
return exports;
|
301 |
})();
|
302 |
|
303 |
window.cookieChoices = cookieChoices;
|
304 |
return cookieChoices;
|
305 |
+
})(this);
|
js/cookiechoices.php
CHANGED
@@ -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
|
1 |
+
function allowCookie(){cookieChoices.removeCookieConsent();var a,b=document.getElementsByClassName("el"),c=new RegExp("<script.*?");for(a=0;a<b.length;a++){b[a].removeChild(b[a].childNodes[0]);var d=c.test(jsArr[a]);if(d){var e=/<script.*?src="(.*?)"/,f=e.test(jsArr[a]);f&&(f=e.exec(jsArr[a]),loadJS(f[1]));var g=/<script\b[^>]*>([\s\S]*?)<\/script>/gm,h=g.exec(jsArr[a]);h[1]&&appendJS(h[1])}else{var i=b[a].innerHTML;d=i.replace(/<cookie>/g,jsArr[a]),b[a].innerHTML=d}}}function loadJS(a){var b=document.createElement("script");b.type="application/javascript",b.src=a,document.body.appendChild(b)}function appendJS(a){var b=document.createElement("script");b.type="text/javascript";var c=a;try{b.appendChild(document.createTextNode(c)),document.body.appendChild(b)}catch(d){b.text=c,document.body.appendChild(b)}}!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 k="color:"+btcB+";position:"+elPos+";width:100%;background-color:"+bgB+";margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:left;",l=b.createElement("div"),m="max-width:980px;margin-right:auto;margin-left:auto;padding:15px;";l.id=t,l.style.cssText=k;var n=b.createElement("div");return n.style.cssText=m,n.appendChild(h(a)),n.appendChild(g()),e&&f&&n.appendChild(j(e,f)),n.appendChild(i(d)),l.appendChild(n),l}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;",k="z-index:9999;position:fixed;left:50%;top:50%;bottom:0%;",l="position:relative;left:-50%;margin-top:-25%;background-color:"+bgB+";padding:20px;box-shadow:4px 4px 25px #888;",m=b.createElement("div");m.id=t;var n=b.createElement("div");n.style.cssText=f;var o=b.createElement("div");o.style.cssText=l;var p=b.createElement("div");p.style.cssText=k;var q=i(c);return o.appendChild(h(a)),o.appendChild(g()),d&&e&&o.appendChild(j(d,e)),o.appendChild(q),p.appendChild(o),m.appendChild(n),m.appendChild(p),m}function f(a,b){d?a.textContent=b:a.innerText=b}function g(){var a="clear:both;border-color:transparent;margin-top:5px;margin-bottom:5px",c=b.createElement("hr");return c.style.cssText=a,c}function h(a){var c=b.createElement("span");return f(c,a),c}function i(a){var c="color: "+btcB+";padding: 7px 12px;font-size: 18px;line-height: 18px;text-decoration: none;text-transform: uppercase;margin:0;margin-bottom:2px;letter-spacing: 0.125em;display: inline-block;font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid "+btcB+";background: rgba(255, 255, 255, 0.03);",d=b.createElement("a");return f(d,a),d.id=u,d.className=closeClass,d.href="#",d.style.cssText=c,d}function j(a,c){var d="color: "+btcB+";padding: 7px 12px;font-size: 18px;line-height: 18px;text-decoration: none;text-transform: uppercase;margin-right: 20px;margin-bottom:2px;letter-spacing: 0.125em;display: inline-block;font-weight: normal; text-align: center; vertical-align: middle; cursor: pointer; border: 1px solid "+btcB+";background: rgba(255, 255, 255, 0.03);",e=b.createElement("a");return f(e,a),e.className=infoClass,e.href=c,tar&&(e.target="_blank"),e.style.cssText=d,e}function k(){return htmlM&&c.classList.remove("icc"),q(),o(),rel&&b.location.reload(),!1}function l(c,d,f,g,h){if(r()){o();var i=h?e(c,d,f,g):a(c,d,f,g),j=b.createDocumentFragment();j.appendChild(i),b.body.appendChild(j.cloneNode(!0)),b.getElementById(u).onclick=k,scroll&&(b.onscroll=k)}}function m(a,b,c,d){l(a,b,c,d,!1)}function n(a,b,c,d){l(a,b,c,d,!0)}function o(){var a=b.getElementById(t);null!==a&&a.parentNode.removeChild(a)}function p(){k()}function q(){var a=new Date;a.setFullYear(a.getFullYear()+1),b.cookie=s+"="+coVA+"; expires="+a.toGMTString()+";path=/"}function r(){return!b.cookie.match(new RegExp(s+"=([^;]+)"))}var s=coNA,t="cookieChoiceInfo",u="cookieChoiceDismiss",v={};return v.showCookieConsentBar=m,v.showCookieConsentDialog=n,v.removeCookieConsent=p,v}();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,8 +1,8 @@
|
|
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"
|
@@ -18,164 +18,192 @@ 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 "Mouse scroll event"
|
43 |
msgstr "Evento scroll del mouse"
|
44 |
|
45 |
-
#: italy-cookie-choices.php:
|
46 |
msgid "Refresh page"
|
47 |
msgstr "Aggiorna la pagina"
|
48 |
|
49 |
-
#: italy-cookie-choices.php:
|
50 |
msgid "Text to display"
|
51 |
msgstr "Testo da mostrare"
|
52 |
|
53 |
-
#: italy-cookie-choices.php:
|
54 |
msgid "URL for cookie policy"
|
55 |
msgstr "URL per la cookie policy"
|
56 |
|
57 |
-
#: italy-cookie-choices.php:
|
58 |
msgid "Anchor text for URL"
|
59 |
msgstr "Anchor text per la URL"
|
60 |
|
61 |
-
#: italy-cookie-choices.php:
|
62 |
msgid "Button text"
|
63 |
msgstr "Testo per il bottone"
|
64 |
|
65 |
-
#: italy-cookie-choices.php:
|
66 |
msgid "Style settings"
|
67 |
msgstr "Impostazioni per lo stile"
|
68 |
|
69 |
-
#: italy-cookie-choices.php:
|
70 |
msgid "HTML top margin"
|
71 |
msgstr "Margine alto per HTML"
|
72 |
|
73 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
msgid "Advanced settngs"
|
75 |
msgstr "Opzioni avanzate"
|
76 |
|
77 |
-
#: italy-cookie-choices.php:
|
78 |
msgid "Cookie name"
|
79 |
msgstr "Nome del Cookie"
|
80 |
|
81 |
-
#: italy-cookie-choices.php:
|
82 |
msgid "Cookie value"
|
83 |
msgstr "Valore del Cookie"
|
84 |
|
85 |
-
#: italy-cookie-choices.php:
|
86 |
msgid "Cookie policy page slug"
|
87 |
msgstr "Slug pagina Cookie policy"
|
88 |
|
89 |
-
#: italy-cookie-choices.php:
|
90 |
msgid "Open policy in new page"
|
91 |
msgstr "Apri in una nuova pagina"
|
92 |
|
93 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
msgid "Customize your banner for cookie law"
|
95 |
msgstr "Personalizza il banner per la Cookie Law"
|
96 |
|
97 |
-
#: italy-cookie-choices.php:
|
98 |
msgid "Display banner for Cookie Law in front-end"
|
99 |
msgstr "Visualizza il banner nel front-end"
|
100 |
|
101 |
-
#: italy-cookie-choices.php:
|
102 |
msgid "Top Bar (Default, Display a top bar wth your message)"
|
103 |
msgstr "Top Bar (Default, verrà visualizzata una barra in cima alla pagina)"
|
104 |
|
105 |
-
#: italy-cookie-choices.php:
|
106 |
msgid "Dialog (Display an overlay with your message)"
|
107 |
msgstr "Dialog (Visualizza un popup con il tuo messaggio)"
|
108 |
|
109 |
-
#: italy-cookie-choices.php:
|
110 |
msgid "Accepts disclosures on mouse scroll event"
|
111 |
msgstr "Accetta l'informativa sull'evento scroll del mouse"
|
112 |
|
113 |
-
#: italy-cookie-choices.php:
|
114 |
msgid "Refresh page after button click"
|
115 |
msgstr ""
|
116 |
"Aggiorna la pagina dopo il click sul link di accettazione (Usare con "
|
117 |
"parsimonia se hai il sito molto lento, es 5'')"
|
118 |
|
119 |
-
#: italy-cookie-choices.php:
|
120 |
msgid "Your short cookie policy"
|
121 |
msgstr "La tua informativa breve"
|
122 |
|
123 |
-
#: italy-cookie-choices.php:
|
124 |
msgid ""
|
125 |
"People will see this notice only the first time that they enter your site"
|
126 |
msgstr ""
|
127 |
"Le persone visualizzeranno il messaggio la prima volta che visiteranno il "
|
128 |
"tuo sito"
|
129 |
|
130 |
-
#: italy-cookie-choices.php:
|
131 |
msgid "e.g. http://www.aboutcookies.org/"
|
132 |
msgstr "es: http://www.aboutcookies.org/"
|
133 |
|
134 |
-
#: italy-cookie-choices.php:
|
135 |
msgid "Insert here the link to your policy page"
|
136 |
msgstr "Inserisci il link alla tua pagina con l'informativa estesa"
|
137 |
|
138 |
-
#: italy-cookie-choices.php:
|
139 |
msgid "e.g. More Info"
|
140 |
msgstr "es: Maggiori informazioni"
|
141 |
|
142 |
-
#: italy-cookie-choices.php:
|
143 |
msgid "Insert here anchor text for the link"
|
144 |
msgstr "Inserisci qui l'anchor text per il link"
|
145 |
|
146 |
-
#: italy-cookie-choices.php:
|
147 |
msgid "e.g. Close"
|
148 |
msgstr "es: Chiudi"
|
149 |
|
150 |
-
#: italy-cookie-choices.php:
|
151 |
msgid "Insert here name of button (e.g. \"Close\") "
|
152 |
msgstr "Inserisci il testo del link per chiudere il popup/banner (es: Chiudi)"
|
153 |
|
154 |
-
#: italy-cookie-choices.php:
|
155 |
msgid "Customize your style settings"
|
156 |
msgstr "Personalizza le impostazioni per lo stile"
|
157 |
|
158 |
-
#: italy-cookie-choices.php:
|
159 |
msgid "Add a page top margin for info top bar"
|
160 |
msgstr "Aggiunge un margine nella parte alta della pagine solo per la topbar"
|
161 |
|
162 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
msgid "Customize your advanced settings"
|
164 |
msgstr "Personalizza le impostazioni avanzate"
|
165 |
|
166 |
-
#: italy-cookie-choices.php:
|
167 |
msgid "Insert your cookie name (Default: displayCookieConsent)"
|
168 |
msgstr "Inserisci il nome del tuo Cookie (Default: displayCookieConsent)"
|
169 |
|
170 |
-
#: italy-cookie-choices.php:
|
171 |
msgid "Insert your cookie value (Default: y)"
|
172 |
msgstr "Inserisci il valore del tuo Cookie (Default: y)"
|
173 |
|
174 |
-
#: italy-cookie-choices.php:
|
175 |
msgid "e.g. your-policy-url.html"
|
176 |
msgstr "es: la-tua-pagina-per-la-cookie-policy"
|
177 |
|
178 |
-
#: italy-cookie-choices.php:
|
179 |
msgid ""
|
180 |
"Insert your cookie policy page slug (e.g. your-policy-url), it will display "
|
181 |
"only topbar in your cookie policy page"
|
@@ -183,17 +211,31 @@ msgstr ""
|
|
183 |
"Inserisci lo slug della tua pagina per la Cookie policy, in questa pagina "
|
184 |
"verrà mostrata soltanto la topbar"
|
185 |
|
186 |
-
#: italy-cookie-choices.php:
|
187 |
msgid "Open your cookie policy page in new one"
|
188 |
msgstr "Apri la tua pagina per la Cookie policy in una nuova"
|
189 |
|
190 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
msgid "Cookie name field it can't be empty. Restored default name."
|
192 |
msgstr ""
|
193 |
"Il campo del nome del Cookie non può essere vuoto. Ripristinato il nome di "
|
194 |
"default."
|
195 |
|
196 |
-
#: italy-cookie-choices.php:
|
197 |
msgid "Cookie value field it can't be empty. Restored default value."
|
198 |
msgstr ""
|
199 |
"Il campo del valore del Cookie non può essere vuoto. Ripristinato il valore "
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: italy-cookie-choices\n"
|
4 |
+
"POT-Creation-Date: 2015-06-05 11:16+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-06-05 11:25+0100\n"
|
6 |
"Last-Translator: Enea Overclokk <info@overclokk.net>\n"
|
7 |
"Language-Team: info@overclokk.net\n"
|
8 |
"Language: it_IT\n"
|
18 |
"X-Poedit-SearchPathExcluded-0: node_modules\n"
|
19 |
"X-Poedit-SearchPathExcluded-1: .git\n"
|
20 |
|
21 |
+
#: italy-cookie-choices.php:230
|
22 |
msgid "Italy Cookie Choices Dashboard"
|
23 |
msgstr "Pannello di Italy Cookie Choices"
|
24 |
|
25 |
+
#: italy-cookie-choices.php:244
|
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:311
|
30 |
msgid "Italy Cookie Choices options page"
|
31 |
msgstr "Pagina opzioni per Italy Cookie Choices"
|
32 |
|
33 |
+
#: italy-cookie-choices.php:321
|
34 |
msgid "Activate"
|
35 |
msgstr "Attiva"
|
36 |
|
37 |
+
#: italy-cookie-choices.php:333
|
38 |
msgid "Where display the banner"
|
39 |
msgstr "Dove mostrare il banner"
|
40 |
|
41 |
+
#: italy-cookie-choices.php:344
|
42 |
msgid "Mouse scroll event"
|
43 |
msgstr "Evento scroll del mouse"
|
44 |
|
45 |
+
#: italy-cookie-choices.php:355
|
46 |
msgid "Refresh page"
|
47 |
msgstr "Aggiorna la pagina"
|
48 |
|
49 |
+
#: italy-cookie-choices.php:366
|
50 |
msgid "Text to display"
|
51 |
msgstr "Testo da mostrare"
|
52 |
|
53 |
+
#: italy-cookie-choices.php:377
|
54 |
msgid "URL for cookie policy"
|
55 |
msgstr "URL per la cookie policy"
|
56 |
|
57 |
+
#: italy-cookie-choices.php:388
|
58 |
msgid "Anchor text for URL"
|
59 |
msgstr "Anchor text per la URL"
|
60 |
|
61 |
+
#: italy-cookie-choices.php:399
|
62 |
msgid "Button text"
|
63 |
msgstr "Testo per il bottone"
|
64 |
|
65 |
+
#: italy-cookie-choices.php:410
|
66 |
msgid "Style settings"
|
67 |
msgstr "Impostazioni per lo stile"
|
68 |
|
69 |
+
#: italy-cookie-choices.php:420
|
70 |
msgid "HTML top margin"
|
71 |
msgstr "Margine alto per HTML"
|
72 |
|
73 |
+
#: italy-cookie-choices.php:431
|
74 |
+
msgid "Banner Background color"
|
75 |
+
msgstr "Colore di sfondo per il banner"
|
76 |
+
|
77 |
+
#: italy-cookie-choices.php:442
|
78 |
+
msgid "Banner text color"
|
79 |
+
msgstr "Colore per il testo del banner"
|
80 |
+
|
81 |
+
#: italy-cookie-choices.php:453
|
82 |
msgid "Advanced settngs"
|
83 |
msgstr "Opzioni avanzate"
|
84 |
|
85 |
+
#: italy-cookie-choices.php:463
|
86 |
msgid "Cookie name"
|
87 |
msgstr "Nome del Cookie"
|
88 |
|
89 |
+
#: italy-cookie-choices.php:474
|
90 |
msgid "Cookie value"
|
91 |
msgstr "Valore del Cookie"
|
92 |
|
93 |
+
#: italy-cookie-choices.php:485
|
94 |
msgid "Cookie policy page slug"
|
95 |
msgstr "Slug pagina Cookie policy"
|
96 |
|
97 |
+
#: italy-cookie-choices.php:496
|
98 |
msgid "Open policy in new page"
|
99 |
msgstr "Apri in una nuova pagina"
|
100 |
|
101 |
+
#: italy-cookie-choices.php:507
|
102 |
+
msgid "Third part cookie block (beta)"
|
103 |
+
msgstr "Blocco dei cookie di terze parti (Beta)"
|
104 |
+
|
105 |
+
#: italy-cookie-choices.php:518
|
106 |
+
msgid "Text message for locked embedded content"
|
107 |
+
msgstr "Testo per gli embed bloccati"
|
108 |
+
|
109 |
+
#: italy-cookie-choices.php:529
|
110 |
+
msgid "Button text to activate locked embedded content"
|
111 |
+
msgstr "Testo per il bottone di accettazione degli embed bloccati"
|
112 |
+
|
113 |
+
#: italy-cookie-choices.php:554
|
114 |
msgid "Customize your banner for cookie law"
|
115 |
msgstr "Personalizza il banner per la Cookie Law"
|
116 |
|
117 |
+
#: italy-cookie-choices.php:569
|
118 |
msgid "Display banner for Cookie Law in front-end"
|
119 |
msgstr "Visualizza il banner nel front-end"
|
120 |
|
121 |
+
#: italy-cookie-choices.php:589
|
122 |
msgid "Top Bar (Default, Display a top bar wth your message)"
|
123 |
msgstr "Top Bar (Default, verrà visualizzata una barra in cima alla pagina)"
|
124 |
|
125 |
+
#: italy-cookie-choices.php:597
|
126 |
msgid "Dialog (Display an overlay with your message)"
|
127 |
msgstr "Dialog (Visualizza un popup con il tuo messaggio)"
|
128 |
|
129 |
+
#: italy-cookie-choices.php:615
|
130 |
msgid "Accepts disclosures on mouse scroll event"
|
131 |
msgstr "Accetta l'informativa sull'evento scroll del mouse"
|
132 |
|
133 |
+
#: italy-cookie-choices.php:633
|
134 |
msgid "Refresh page after button click"
|
135 |
msgstr ""
|
136 |
"Aggiorna la pagina dopo il click sul link di accettazione (Usare con "
|
137 |
"parsimonia se hai il sito molto lento, es 5'')"
|
138 |
|
139 |
+
#: italy-cookie-choices.php:648
|
140 |
msgid "Your short cookie policy"
|
141 |
msgstr "La tua informativa breve"
|
142 |
|
143 |
+
#: italy-cookie-choices.php:651 italy-cookie-choices.php:910
|
144 |
msgid ""
|
145 |
"People will see this notice only the first time that they enter your site"
|
146 |
msgstr ""
|
147 |
"Le persone visualizzeranno il messaggio la prima volta che visiteranno il "
|
148 |
"tuo sito"
|
149 |
|
150 |
+
#: italy-cookie-choices.php:665
|
151 |
msgid "e.g. http://www.aboutcookies.org/"
|
152 |
msgstr "es: http://www.aboutcookies.org/"
|
153 |
|
154 |
+
#: italy-cookie-choices.php:668
|
155 |
msgid "Insert here the link to your policy page"
|
156 |
msgstr "Inserisci il link alla tua pagina con l'informativa estesa"
|
157 |
|
158 |
+
#: italy-cookie-choices.php:682
|
159 |
msgid "e.g. More Info"
|
160 |
msgstr "es: Maggiori informazioni"
|
161 |
|
162 |
+
#: italy-cookie-choices.php:685
|
163 |
msgid "Insert here anchor text for the link"
|
164 |
msgstr "Inserisci qui l'anchor text per il link"
|
165 |
|
166 |
+
#: italy-cookie-choices.php:699 italy-cookie-choices.php:924
|
167 |
msgid "e.g. Close"
|
168 |
msgstr "es: Chiudi"
|
169 |
|
170 |
+
#: italy-cookie-choices.php:702 italy-cookie-choices.php:927
|
171 |
msgid "Insert here name of button (e.g. \"Close\") "
|
172 |
msgstr "Inserisci il testo del link per chiudere il popup/banner (es: Chiudi)"
|
173 |
|
174 |
+
#: italy-cookie-choices.php:719
|
175 |
msgid "Customize your style settings"
|
176 |
msgstr "Personalizza le impostazioni per lo stile"
|
177 |
|
178 |
+
#: italy-cookie-choices.php:735
|
179 |
msgid "Add a page top margin for info top bar"
|
180 |
msgstr "Aggiunge un margine nella parte alta della pagine solo per la topbar"
|
181 |
|
182 |
+
#: italy-cookie-choices.php:756
|
183 |
+
msgid "Custom Background color for banner"
|
184 |
+
msgstr "Colore di sfondo per il banner"
|
185 |
+
|
186 |
+
#: italy-cookie-choices.php:776
|
187 |
+
msgid "Custom text color for banner"
|
188 |
+
msgstr "Colore del testo per il banner"
|
189 |
+
|
190 |
+
#: italy-cookie-choices.php:793
|
191 |
msgid "Customize your advanced settings"
|
192 |
msgstr "Personalizza le impostazioni avanzate"
|
193 |
|
194 |
+
#: italy-cookie-choices.php:809
|
195 |
msgid "Insert your cookie name (Default: displayCookieConsent)"
|
196 |
msgstr "Inserisci il nome del tuo Cookie (Default: displayCookieConsent)"
|
197 |
|
198 |
+
#: italy-cookie-choices.php:828
|
199 |
msgid "Insert your cookie value (Default: y)"
|
200 |
msgstr "Inserisci il valore del tuo Cookie (Default: y)"
|
201 |
|
202 |
+
#: italy-cookie-choices.php:844
|
203 |
msgid "e.g. your-policy-url.html"
|
204 |
msgstr "es: la-tua-pagina-per-la-cookie-policy"
|
205 |
|
206 |
+
#: italy-cookie-choices.php:847
|
207 |
msgid ""
|
208 |
"Insert your cookie policy page slug (e.g. your-policy-url), it will display "
|
209 |
"only topbar in your cookie policy page"
|
211 |
"Inserisci lo slug della tua pagina per la Cookie policy, in questa pagina "
|
212 |
"verrà mostrata soltanto la topbar"
|
213 |
|
214 |
+
#: italy-cookie-choices.php:867
|
215 |
msgid "Open your cookie policy page in new one"
|
216 |
msgstr "Apri la tua pagina per la Cookie policy in una nuova"
|
217 |
|
218 |
+
#: italy-cookie-choices.php:888
|
219 |
+
msgid "Cookie from any embed in your content (Beta)"
|
220 |
+
msgstr "Cookie di terze parti nel content di pagine/articoli (Beta)"
|
221 |
+
|
222 |
+
#: italy-cookie-choices.php:893
|
223 |
+
msgid "Cookie from any embed in your widget area (Beta)"
|
224 |
+
msgstr "Cookie di terze parti nei widget (Beta)"
|
225 |
+
|
226 |
+
#: italy-cookie-choices.php:907
|
227 |
+
msgid "Your lock message for embedded contents inside posts, pages and widgets"
|
228 |
+
msgstr ""
|
229 |
+
"Il tuo messaggio da visualizzare nel box per i contenuti bloccati "
|
230 |
+
"incorporati all'interno di pagine, articoli e widget"
|
231 |
+
|
232 |
+
#: italy-cookie-choices.php:990
|
233 |
msgid "Cookie name field it can't be empty. Restored default name."
|
234 |
msgstr ""
|
235 |
"Il campo del nome del Cookie non può essere vuoto. Ripristinato il nome di "
|
236 |
"default."
|
237 |
|
238 |
+
#: italy-cookie-choices.php:997
|
239 |
msgid "Cookie value field it can't be empty. Restored default value."
|
240 |
msgstr ""
|
241 |
"Il campo del valore del Cookie non può essere vuoto. Ripristinato il valore "
|
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"
|
@@ -19,170 +19,210 @@ 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 "Mouse scroll event"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: italy-cookie-choices.php:
|
47 |
msgid "Refresh page"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: italy-cookie-choices.php:
|
51 |
msgid "Text to display"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: italy-cookie-choices.php:
|
55 |
msgid "URL for cookie policy"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: italy-cookie-choices.php:
|
59 |
msgid "Anchor text for URL"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: italy-cookie-choices.php:
|
63 |
msgid "Button text"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: italy-cookie-choices.php:
|
67 |
msgid "Style settings"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: italy-cookie-choices.php:
|
71 |
msgid "HTML top margin"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
msgid "Advanced settngs"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: italy-cookie-choices.php:
|
79 |
msgid "Cookie name"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: italy-cookie-choices.php:
|
83 |
msgid "Cookie value"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: italy-cookie-choices.php:
|
87 |
msgid "Cookie policy page slug"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: italy-cookie-choices.php:
|
91 |
msgid "Open policy in new page"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
msgid "Customize your banner for cookie law"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: italy-cookie-choices.php:
|
99 |
msgid "Display banner for Cookie Law in front-end"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: italy-cookie-choices.php:
|
103 |
msgid "Top Bar (Default, Display a top bar wth your message)"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: italy-cookie-choices.php:
|
107 |
msgid "Dialog (Display an overlay with your message)"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: italy-cookie-choices.php:
|
111 |
msgid "Accepts disclosures on mouse scroll event"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: italy-cookie-choices.php:
|
115 |
msgid "Refresh page after button click"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: italy-cookie-choices.php:
|
119 |
msgid "Your short cookie policy"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: italy-cookie-choices.php:
|
123 |
msgid "People will see this notice only the first time that they enter your site"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: italy-cookie-choices.php:
|
127 |
msgid "e.g. http://www.aboutcookies.org/"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: italy-cookie-choices.php:
|
131 |
msgid "Insert here the link to your policy page"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: italy-cookie-choices.php:
|
135 |
msgid "e.g. More Info"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: italy-cookie-choices.php:
|
139 |
msgid "Insert here anchor text for the link"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: italy-cookie-choices.php:
|
143 |
msgid "e.g. Close"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: italy-cookie-choices.php:
|
147 |
msgid "Insert here name of button (e.g. \"Close\") "
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: italy-cookie-choices.php:
|
151 |
msgid "Customize your style settings"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: italy-cookie-choices.php:
|
155 |
msgid "Add a page top margin for info top bar"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
msgid "Customize your advanced settings"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: italy-cookie-choices.php:
|
163 |
msgid "Insert your cookie name (Default: displayCookieConsent)"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: italy-cookie-choices.php:
|
167 |
msgid "Insert your cookie value (Default: y)"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: italy-cookie-choices.php:
|
171 |
msgid "e.g. your-policy-url.html"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: italy-cookie-choices.php:
|
175 |
msgid "Insert your cookie policy page slug (e.g. your-policy-url), it will display only topbar in your cookie policy page"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: italy-cookie-choices.php:
|
179 |
msgid "Open your cookie policy page in new one"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: italy-cookie-choices.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
msgid "Cookie name field it can't be empty. Restored default name."
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: italy-cookie-choices.php:
|
187 |
msgid "Cookie value field it can't be empty. Restored default value."
|
188 |
msgstr ""
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Italy Cookie Choices\n"
|
5 |
+
"POT-Creation-Date: 2015-06-05 11:16+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"
|
19 |
"X-Poedit-SearchPathExcluded-0: node_modules\n"
|
20 |
"X-Poedit-SearchPathExcluded-1: .git\n"
|
21 |
|
22 |
+
#: italy-cookie-choices.php:230
|
23 |
msgid "Italy Cookie Choices Dashboard"
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: italy-cookie-choices.php:244
|
27 |
msgid "You do not have sufficient permissions to access this page."
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: italy-cookie-choices.php:311
|
31 |
msgid "Italy Cookie Choices options page"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: italy-cookie-choices.php:321
|
35 |
msgid "Activate"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: italy-cookie-choices.php:333
|
39 |
msgid "Where display the banner"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: italy-cookie-choices.php:344
|
43 |
msgid "Mouse scroll event"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: italy-cookie-choices.php:355
|
47 |
msgid "Refresh page"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: italy-cookie-choices.php:366
|
51 |
msgid "Text to display"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: italy-cookie-choices.php:377
|
55 |
msgid "URL for cookie policy"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: italy-cookie-choices.php:388
|
59 |
msgid "Anchor text for URL"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: italy-cookie-choices.php:399
|
63 |
msgid "Button text"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: italy-cookie-choices.php:410
|
67 |
msgid "Style settings"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: italy-cookie-choices.php:420
|
71 |
msgid "HTML top margin"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: italy-cookie-choices.php:431
|
75 |
+
msgid "Banner Background color"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: italy-cookie-choices.php:442
|
79 |
+
msgid "Banner text color"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: italy-cookie-choices.php:453
|
83 |
msgid "Advanced settngs"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: italy-cookie-choices.php:463
|
87 |
msgid "Cookie name"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: italy-cookie-choices.php:474
|
91 |
msgid "Cookie value"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: italy-cookie-choices.php:485
|
95 |
msgid "Cookie policy page slug"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: italy-cookie-choices.php:496
|
99 |
msgid "Open policy in new page"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: italy-cookie-choices.php:507
|
103 |
+
msgid "Third part cookie block (beta)"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: italy-cookie-choices.php:518
|
107 |
+
msgid "Text message for locked embedded content"
|
108 |
+
msgstr ""
|
109 |
+
|
110 |
+
#: italy-cookie-choices.php:529
|
111 |
+
msgid "Button text to activate locked embedded content"
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: italy-cookie-choices.php:554
|
115 |
msgid "Customize your banner for cookie law"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: italy-cookie-choices.php:569
|
119 |
msgid "Display banner for Cookie Law in front-end"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: italy-cookie-choices.php:589
|
123 |
msgid "Top Bar (Default, Display a top bar wth your message)"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: italy-cookie-choices.php:597
|
127 |
msgid "Dialog (Display an overlay with your message)"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: italy-cookie-choices.php:615
|
131 |
msgid "Accepts disclosures on mouse scroll event"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: italy-cookie-choices.php:633
|
135 |
msgid "Refresh page after button click"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: italy-cookie-choices.php:648
|
139 |
msgid "Your short cookie policy"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: italy-cookie-choices.php:651 italy-cookie-choices.php:910
|
143 |
msgid "People will see this notice only the first time that they enter your site"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: italy-cookie-choices.php:665
|
147 |
msgid "e.g. http://www.aboutcookies.org/"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: italy-cookie-choices.php:668
|
151 |
msgid "Insert here the link to your policy page"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: italy-cookie-choices.php:682
|
155 |
msgid "e.g. More Info"
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: italy-cookie-choices.php:685
|
159 |
msgid "Insert here anchor text for the link"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: italy-cookie-choices.php:699 italy-cookie-choices.php:924
|
163 |
msgid "e.g. Close"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: italy-cookie-choices.php:702 italy-cookie-choices.php:927
|
167 |
msgid "Insert here name of button (e.g. \"Close\") "
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: italy-cookie-choices.php:719
|
171 |
msgid "Customize your style settings"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: italy-cookie-choices.php:735
|
175 |
msgid "Add a page top margin for info top bar"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: italy-cookie-choices.php:756
|
179 |
+
msgid "Custom Background color for banner"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: italy-cookie-choices.php:776
|
183 |
+
msgid "Custom text color for banner"
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#: italy-cookie-choices.php:793
|
187 |
msgid "Customize your advanced settings"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: italy-cookie-choices.php:809
|
191 |
msgid "Insert your cookie name (Default: displayCookieConsent)"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: italy-cookie-choices.php:828
|
195 |
msgid "Insert your cookie value (Default: y)"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: italy-cookie-choices.php:844
|
199 |
msgid "e.g. your-policy-url.html"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: italy-cookie-choices.php:847
|
203 |
msgid "Insert your cookie policy page slug (e.g. your-policy-url), it will display only topbar in your cookie policy page"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: italy-cookie-choices.php:867
|
207 |
msgid "Open your cookie policy page in new one"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: italy-cookie-choices.php:888
|
211 |
+
msgid "Cookie from any embed in your content (Beta)"
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: italy-cookie-choices.php:893
|
215 |
+
msgid "Cookie from any embed in your widget area (Beta)"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: italy-cookie-choices.php:907
|
219 |
+
msgid "Your lock message for embedded contents inside posts, pages and widgets"
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: italy-cookie-choices.php:990
|
223 |
msgid "Cookie name field it can't be empty. Restored default name."
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: italy-cookie-choices.php:997
|
227 |
msgid "Cookie value field it can't be empty. Restored default value."
|
228 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,30 +1,36 @@
|
|
1 |
=== Italy Cookie Choices ===
|
2 |
-
Contributors: overclokk
|
3 |
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:
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Italy Cookie Choices allows you to easily comply with the european cookie law, showing
|
12 |
-
a notice to the user only the very first time that visits your website without degrading website performance.
|
|
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
19 |
|
20 |
-
The plugin will not add any CSS stylesheet or Javascript file but only inline script,
|
21 |
|
22 |
-
Notify any issue on github repository https://github.com/
|
23 |
|
24 |
= Anonymize Analytics IP =
|
25 |
|
26 |
Add `ga('set', 'anonymizeIp', true);` in your analytics snippet [AnonymizeIP](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#anonymizeIp)
|
27 |
|
|
|
|
|
|
|
|
|
28 |
== Installation ==
|
29 |
|
30 |
1. Upload `italy-cookie-choices` folder to the `/wp-content/plugins/` directory
|
@@ -35,7 +41,7 @@ Add `ga('set', 'anonymizeIp', true);` in your analytics snippet [AnonymizeIP](ht
|
|
35 |
|
36 |
= How does it work? =
|
37 |
|
38 |
-
When a user visit your site, the plugin will check if this user has been already there, checking for a cookie that the plugin self creates (it is just a session cookie, so it is not against the law). If the user has not this cookie, a message will be shown (you can configure where, how and what will be show). If the users keeps surfing in your
|
39 |
will not be shown again.
|
40 |
|
41 |
= Why am I not seeing the message? =
|
@@ -53,12 +59,24 @@ You have to uncheck the `Detect <script> tags in wp_footer` in Async JS and CSS
|
|
53 |
== Screenshots ==
|
54 |
|
55 |
1. Italy Cookie Choices Options Menu
|
56 |
-
2. Italy Cookie Choices top bar in front end
|
57 |
3. Italy Cookie Choices Options for Dialog box
|
58 |
4. Italy Cookie Choices Dialog Box in front end
|
|
|
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
= 1.2.3 =
|
63 |
Release Date: May 31th, 2015
|
64 |
|
@@ -136,6 +154,9 @@ Dev time: 50h
|
|
136 |
|
137 |
== Upgrade Notice ==
|
138 |
|
|
|
|
|
|
|
139 |
= 1.0.0 =
|
140 |
First release.
|
141 |
|
1 |
=== Italy Cookie Choices ===
|
2 |
+
Contributors: overclokk, Andrea Pernici
|
3 |
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, third party script, third party cookie
|
5 |
Requires at least: 4.1
|
6 |
Tested up to: 4.3.0
|
7 |
+
Stable tag: 2.0.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Italy Cookie Choices allows you to easily comply with the european cookie law, showing
|
12 |
+
a notice to the user only the very first time that visits your website without degrading website performance and remove all the occurence of third party embed inside posts, pages and widgets until consent.
|
13 |
+
Plugin requirement PHP >= 5.3 and WordPress >= 4.1
|
14 |
|
15 |
== Description ==
|
16 |
|
17 |
+
The Cookie Law is one of the most stupid law in the world. Maybe made by someone, who doesn't really understand how the web works.
|
18 |
+
|
19 |
+
Italy Cookie Choices allows you to easily comply with the european cookie law (and Italian too), showing a notice to the user only the very first time he visits your website.
|
20 |
+
Message, position and the style can be easily modified through the plugin menu.
|
21 |
|
22 |
+
The plugin will not add any CSS stylesheet or Javascript file but only inline script, so it doesn't make your website slower.
|
23 |
|
24 |
+
Notify any issue on github repository https://github.com/ItalyCookieChoices/italy-cookie-choices/issues
|
25 |
|
26 |
= Anonymize Analytics IP =
|
27 |
|
28 |
Add `ga('set', 'anonymizeIp', true);` in your analytics snippet [AnonymizeIP](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#anonymizeIp)
|
29 |
|
30 |
+
= Developer =
|
31 |
+
(Enea Overclokk)[http://www.overclokk.net/]
|
32 |
+
(Andrea Pernici)[https://www.andreapernici.com/]
|
33 |
+
|
34 |
== Installation ==
|
35 |
|
36 |
1. Upload `italy-cookie-choices` folder to the `/wp-content/plugins/` directory
|
41 |
|
42 |
= How does it work? =
|
43 |
|
44 |
+
When a user visit your site, the plugin will check if this user has been already there, checking for a cookie that the plugin self creates (it is just a session cookie, so it is not against the law). If the user has not this cookie, a message will be shown (you can configure where, how and what will be show). If the users keeps surfing in your website, now or withing the next month, it means that he accepted the use of cookies in your website, so this message
|
45 |
will not be shown again.
|
46 |
|
47 |
= Why am I not seeing the message? =
|
59 |
== Screenshots ==
|
60 |
|
61 |
1. Italy Cookie Choices Options Menu
|
62 |
+
2. Italy Cookie Choices top bar and embed block in front end
|
63 |
3. Italy Cookie Choices Options for Dialog box
|
64 |
4. Italy Cookie Choices Dialog Box in front end
|
65 |
+
5. Italy Cookie Choices Widget area
|
66 |
+
6. Italy Cookie Choices Content area
|
67 |
|
68 |
== Changelog ==
|
69 |
|
70 |
+
= 2.0.0 =
|
71 |
+
Release Date: June 5th, 2015
|
72 |
+
|
73 |
+
Dev time: 60h
|
74 |
+
|
75 |
+
* Merged Third part cookie eraser and Italy Cookie Choices
|
76 |
+
* Added new input for banner background color and text color
|
77 |
+
* Added input for text and button in embed block content and widget
|
78 |
+
* Added shortcode button for policy page [accept_button]
|
79 |
+
|
80 |
= 1.2.3 =
|
81 |
Release Date: May 31th, 2015
|
82 |
|
154 |
|
155 |
== Upgrade Notice ==
|
156 |
|
157 |
+
= 2.0.0 =
|
158 |
+
New: Third part cookie eraser
|
159 |
+
|
160 |
= 1.0.0 =
|
161 |
First release.
|
162 |
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-4.png
CHANGED
Binary file
|
screenshot-5.png
ADDED
Binary file
|
screenshot-6.png
ADDED
Binary file
|