Italy Cookie Choices (for EU Cookie Law) - Version 2.1.0

Version Description

Release Date: June 5th, 2015

Dev time: 100h

  • Added new third part cookie eraser functionality (much more powerful :-))
  • New options for select banner template
  • Added Bottom bar stile
  • Fixed scroll issue
  • New options for accepting on second view
  • Fixed some issue
  • Now compatibility with PHP 5.3.29
Download this release

Release Info

Developer overclokk
Plugin Icon Italy Cookie Choices (for EU Cookie Law)
Version 2.1.0
Comparing to
See all releases

Code changes from version 2.0.0 to 2.1.0

italy-cookie-choices.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Italy Cookie Choices
4
  * Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
5
  * Description: Minimal code to make sure your website repect the Italian coockie law
6
- * Version: 2.0.0
7
  * Author: Enea Overclokk
8
  * Author URI: https://plus.google.com/u/0/communities/109254048492234113886
9
  * Text Domain: italy-cookie-choices
@@ -56,6 +56,12 @@ if ( !defined( 'ITALY_COOKIE_CHOICES_PLUGIN_PATH' ) )
56
  if ( !defined( 'ITALY_COOKIE_CHOICES_BASENAME' ) )
57
  define('ITALY_COOKIE_CHOICES_BASENAME', plugin_basename( ITALY_COOKIE_CHOICES_FILE ));
58
 
 
 
 
 
 
 
59
 
60
  /**
61
  *
@@ -106,6 +112,12 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
106
  */
107
  private $valore = '';
108
 
 
 
 
 
 
 
109
  /**
110
  * Array with embed found
111
  * @var array
@@ -136,17 +148,51 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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
@@ -184,6 +230,18 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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
@@ -201,15 +259,32 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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 ) . '&nbsp;&nbsp;<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
@@ -221,6 +296,81 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
221
  }
222
  }
223
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  /**
225
  * Add page for italy-cookie-choices admin page
226
  */
@@ -347,6 +497,17 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
347
  'setting_section'
348
  );
349
 
 
 
 
 
 
 
 
 
 
 
 
350
  /**
351
  * Checkbox for reload page
352
  */
@@ -412,6 +573,17 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
412
  'italy_cl_options_group'
413
  );
414
 
 
 
 
 
 
 
 
 
 
 
 
415
  /**
416
  * Checkbox for activation
417
  */
@@ -450,7 +622,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
450
  */
451
  add_settings_section(
452
  'advanced_setting_section',
453
- __( 'Advanced settngs', 'italy-cookie-choices' ),
454
  array( $this, 'italy_cl_advanced_settings_section_callback'),
455
  'italy_cl_options_group'
456
  );
@@ -510,6 +682,17 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
510
  'advanced_setting_section'
511
  );
512
 
 
 
 
 
 
 
 
 
 
 
 
513
  /**
514
  * Function for content message text
515
  */
@@ -520,7 +703,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
520
  'italy_cl_options_group',
521
  'advanced_setting_section'
522
  );
523
-
524
  /**
525
  * Function for button text in message
526
  */
@@ -586,7 +769,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
586
  <input name="italy_cookie_choices[banner]" type="radio" value="1" id="radio_1" <?php checked( '1', $banner ); ?> />
587
 
588
  <label for="radio_1">
589
- <?php _e( 'Top Bar (Default, Display a top bar wth your message)', 'italy-cookie-choices' ); ?>
590
  </label>
591
 
592
  <br>
@@ -596,6 +779,16 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
596
  <label for="radio_2">
597
  <?php _e( 'Dialog (Display an overlay with your message)', 'italy-cookie-choices' ); ?>
598
  </label>
 
 
 
 
 
 
 
 
 
 
599
 
600
  <?php
601
 
@@ -619,6 +812,26 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
619
 
620
  }
621
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
622
  /**
623
  * Snippet for reload
624
  * @return strimg Reload page after click
@@ -630,7 +843,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
630
 
631
  <input type='checkbox' name='italy_cookie_choices[reload]' <?php checked( $reload, 1 ); ?> value='1'>
632
  <label for="italy_cookie_choices[reload]">
633
- <?php _e( 'Refresh page after button click', 'italy-cookie-choices' ); ?>
634
  </label>
635
 
636
  <?php
@@ -732,7 +945,30 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
732
 
733
  <input type='checkbox' name='italy_cookie_choices[html_margin]' <?php checked( $html_margin, 1 ); ?> value='1'>
734
  <label for="italy_cookie_choices[html_margin]">
735
- <?php _e( 'Add a page top margin for info top bar', 'italy-cookie-choices' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
736
  </label>
737
 
738
  <?php
@@ -878,19 +1114,27 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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
@@ -901,10 +1145,31 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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' ); ?>
@@ -920,8 +1185,10 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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' ); ?>
@@ -949,6 +1216,9 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
949
  if( isset( $input['scroll'] ) )
950
  $new_input['scroll'] = $input['scroll'];
951
 
 
 
 
952
  if( isset( $input['reload'] ) )
953
  $new_input['reload'] = $input['reload'];
954
 
@@ -969,7 +1239,10 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
969
  */
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'] ) )
@@ -1012,11 +1285,17 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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
 
@@ -1082,6 +1361,21 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
1082
  return $content;
1083
  }
1084
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1085
  /**
1086
  * Erase third part in widget area
1087
  * @param [type] $instance [description]
@@ -1089,29 +1383,11 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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
1116
  * @link https://www.cookiechoices.org/
1117
  */
@@ -1128,12 +1404,27 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
1128
  /**
1129
  * Select what kind of banner to display
1130
  */
1131
- if ( $this->options['banner'] === '1' || !empty( $this->options['slug'] ) && ( is_page( $this->options['slug'] ) || is_single( $this->options['slug'] ) ) )
1132
- $banner = 'Bar';
1133
- elseif ( $this->options['banner'] === '2' )
 
 
 
 
1134
  $banner = 'Dialog';
1135
- else
 
 
 
 
 
 
 
 
1136
  $banner = '';
 
 
 
1137
 
1138
  /**
1139
  * Accept on scroll
@@ -1177,6 +1468,12 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
1177
  */
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
@@ -1215,7 +1512,7 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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
@@ -1223,9 +1520,15 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
1223
  */
1224
  $noscript = '<noscript><style>html{margin-top:35px}</style><div id="cookieChoiceInfo" style="position:absolute;width:100%;margin:0px;left:0px;top:0px;padding:4px;z-index:9999;text-align:center;background-color:rgb(238, 238, 238);"><span>' . wp_json_encode( $this->options['text'] ) . '</span><a href="' . esc_url( $this->options['url'] ) . '" target="_blank" style="margin-left:8px;">' . esc_js( $this->options['anchor_text'] ) . '</a><a id="cookieChoiceDismiss" href="#" style="margin-left:24px;display:none;">' . esc_js( $this->options['button_text'] ) . '</a></div></div></noscript>';
1225
 
1226
- echo '<!-- Italy Cookie Choices -->' . $style . '<script>' . $jsVariables;
1227
- require 'js/cookiechoices.php';
1228
- echo $banner . '</script>' . $noscript;
 
 
 
 
 
 
1229
 
1230
  }
1231
 
@@ -1239,11 +1542,11 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
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
 
1249
- new Italy_Cookie_Choices;
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.1.0
7
  * Author: Enea Overclokk
8
  * Author URI: https://plus.google.com/u/0/communities/109254048492234113886
9
  * Text Domain: italy-cookie-choices
56
  if ( !defined( 'ITALY_COOKIE_CHOICES_BASENAME' ) )
57
  define('ITALY_COOKIE_CHOICES_BASENAME', plugin_basename( ITALY_COOKIE_CHOICES_FILE ));
58
 
59
+ /**
60
+ * Example = F:\xampp\htdocs\italystrap\wp-content\plugins\italy-cookie-choices
61
+ */
62
+ if ( !defined( 'ITALY_COOKIE_CHOICES_DIRNAME' ) )
63
+ define('ITALY_COOKIE_CHOICES_DIRNAME', dirname( ITALY_COOKIE_CHOICES_FILE ));
64
+
65
 
66
  /**
67
  *
112
  */
113
  private $valore = '';
114
 
115
+ /**
116
+ * Inizialize banner template to default
117
+ * @var string
118
+ */
119
+ private $js_template = 'default';
120
+
121
  /**
122
  * Array with embed found
123
  * @var array
148
 
149
  $this->options = get_option( 'italy_cookie_choices' );
150
 
151
+ /**
152
+ * Check for second view option
153
+ * @var bol
154
+ */
155
+ $secondViewOpt = ( isset( $this->options['secondView'] ) ) ? $this->options['secondView'] : '' ;
156
+
157
+ /*
158
+ * Set cookie if the user agree navigating through the pages of the site
159
+ */
160
+ $secondView = false;
161
+
162
+ if(
163
+ // if is an HTML request (alternative methods???)
164
+ (strpos($_SERVER["HTTP_ACCEPT"],'html') !== false) &&
165
+ //if the page isn't privacy page
166
+ ($_SERVER['REQUEST_URI']!=$this->options['slug']) &&
167
+ //if HTTP_REFERER is set
168
+ (isset($_SERVER['HTTP_REFERER'])) &&
169
+ //if isn't refresh
170
+ (parse_url($_SERVER['HTTP_REFERER'], PHP_URL_PATH)!=$_SERVER['REQUEST_URI']) &&
171
+ //if referrer is not privacy page (to be evaluated)
172
+ (parse_url($_SERVER['HTTP_REFERER'], PHP_URL_PATH)!=$this->options['slug']) &&
173
+ //if the cookie is not already set
174
+ (!isset( $_COOKIE[ $this->options['cookie_name'] ] )) &&
175
+ //if the referer is in the same domain
176
+ (parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST)==$_SERVER['HTTP_HOST']) &&
177
+ // If the secondView options is checked
178
+ ( $secondViewOpt )
179
+ ) {
180
+ setcookie($this->options['cookie_name'], $this->options['cookie_value'], time()+(3600*24*365), '/');
181
+ $secondView = true;
182
+ }
183
+
184
  /**
185
  * Shortcode to put a button in policy page
186
  */
187
  add_shortcode( 'accept_button', array( $this, 'accept_button' ) );
188
 
189
+ if ( !isset( $_COOKIE[ $this->options['cookie_name'] ] ) && !$secondView ){
190
 
191
+ // W3TC Disable Caching
192
+ if ( !defined( 'DONOTCACHEPAGE' ) )
193
+ define('DONOTCACHEPAGE', true);
194
+ if ( !defined( 'SID' ) )
195
+ define('SID', true);
196
 
197
  /**
198
  * Background color for banner
230
  */
231
  $widget_block = ( isset( $this->options['widget_block'] ) ) ? $this->options['widget_block'] : '' ;
232
 
233
+ /**
234
+ * Checkbox for third part cookie in all page (except head and footer)
235
+ * @var bol
236
+ */
237
+ $all_block = ( isset( $this->options['all_block'] ) ) ? $this->options['all_block'] : '' ;
238
+
239
+ /**
240
+ * Checkbox custom scripts block
241
+ * @var bol
242
+ */
243
+ $custom_script_block = ( isset( $this->options['custom_script_block'] ) ) ? $this->options['custom_script_block'] : '' ;
244
+
245
  /**
246
  * Text to put inside locked post and widget contents
247
  * including the button text
259
  * Replacement for regex
260
  * @var string
261
  */
262
+ // $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="cookieChoices.removeCookieConsent()">Try it</button></div><!-- $0 --></div>';
263
  //
264
+ $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 ) . '&nbsp;&nbsp;<button onclick="cookieChoices.removeCookieConsent()" 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>';
265
 
266
  if ($block)
267
  add_filter( 'the_content', array( $this, 'AutoErase' ), 11);
268
 
269
  if ( $widget_block )
270
+ add_filter( 'widget_display_callback', array( $this, 'WidgetErase' ), 11, 3 );
271
+
272
+ if ( $all_block ) {
273
+ //add_action('wp_footer', array( $this, 'catchBody' ), -1000000);
274
+ add_action('wp_head', array( $this, 'bufferBodyStart' ), 1000000);
275
+ add_action('wp_footer', array( $this, 'bufferBodyEnd' ), -1000000);
276
+ }
277
+ if( $custom_script_block !== '' ) {
278
+ add_action('template_redirect', array( $this, 'bufferHeadStart' ), 2);
279
+ add_action('wp_head', array( $this, 'bufferHeadEnd' ), 99999);
280
+ add_action('wp_footer', array( $this, 'bufferFooterStart' ), -99998);
281
+ add_action('shutdown', array( $this, 'bufferFooterEnd' ), -1000000);
282
+ } else {
283
+ /**
284
+ * Function for print cookiechoiches inline
285
+ */
286
+ add_action( 'wp_footer', array( $this, 'print_script_inline'), -99999 );
287
+ }
288
 
289
  /**
290
  * Only for debug
296
  }
297
  }
298
 
299
+
300
+ public function removeCustomScript($buffer) {
301
+ $custom_script_block = ( isset( $this->options['custom_script_block'] ) ) ? $this->options['custom_script_block'] : '' ;
302
+ if($custom_script_block=='') {
303
+ return $buffer;
304
+ } else {
305
+ $custom_script_block = preg_replace( "/([\r|\n]*)<---------SEP--------->([\r|\n]*)/is", "<---------SEP--------->", $custom_script_block );
306
+ $custom_script_block_array = explode("<---------SEP--------->", $custom_script_block);
307
+ foreach($custom_script_block_array AS $single_script) {
308
+ $count_replace = 0;
309
+ $buffer = str_replace(trim($single_script), "<!-- removed from Italy Cookie Choices Plugin -->", $buffer, $count_replace);
310
+ if($count_replace>0)
311
+ $this->js_array[] = trim($single_script);
312
+ }
313
+ return $buffer;
314
+ }
315
+ }
316
+
317
+ public function bufferBodyStart() {
318
+ if (ob_get_contents())
319
+ ob_end_flush();
320
+ ob_start();
321
+
322
+ }
323
+
324
+ public function bufferBodyEnd() {
325
+ $buffer = ob_get_contents();
326
+ if (ob_get_contents())
327
+ ob_end_clean();
328
+ preg_match("/(.*)(<body.*)/s", $buffer, $matches);
329
+ $head = $matches[1];
330
+ $body = $matches[2];
331
+ $this->matches( $this->pattern, $body );
332
+ $body = preg_replace( $this->pattern, $this->valore , $body);
333
+ $buffer_new = $head.$body;
334
+ echo '<!-- ICCStartBody -->'.$buffer_new.'<!-- ICCEndBody -->';
335
+ }
336
+
337
+ public function bufferFooterStart() {
338
+ if (ob_get_contents())
339
+ ob_end_flush();
340
+ ob_start();
341
+ }
342
+
343
+ public function bufferFooterEnd() {
344
+ $buffer = ob_get_contents();
345
+ if (ob_get_contents())
346
+ ob_end_clean();
347
+ // if is an HTML request (alternative methods???)
348
+ if(strpos($_SERVER["HTTP_ACCEPT"],'html') !== false) {
349
+ $buffer_new = $this->removeCustomScript($buffer);
350
+ /**
351
+ * Function for print cookiechoiches inline
352
+ */
353
+ $this->print_script_inline();
354
+ echo '<!-- ICCStartFooter -->'.$buffer_new.'<!-- ICCEndFooter -->';
355
+ } else {
356
+ echo $buffer;
357
+ }
358
+ }
359
+
360
+ public function bufferHeadStart() {
361
+ if (ob_get_contents())
362
+ ob_end_flush();
363
+ ob_start();
364
+ }
365
+
366
+ public function bufferHeadEnd() {
367
+ $buffer = ob_get_contents();
368
+ if (ob_get_contents())
369
+ ob_end_clean();
370
+ $buffer_new = $this->removeCustomScript($buffer);
371
+ echo '<!-- ICCStartHead -->'.$buffer_new.'<!-- ICCEndHead -->';
372
+ }
373
+
374
  /**
375
  * Add page for italy-cookie-choices admin page
376
  */
497
  'setting_section'
498
  );
499
 
500
+ /**
501
+ * Checkbox for open in new page
502
+ */
503
+ add_settings_field(
504
+ 'secondView',
505
+ __( 'Accept on second view', 'italy-cookie-choices' ),
506
+ array( $this, 'italy_cl_option_secondView'),
507
+ 'italy_cl_options_group',
508
+ 'setting_section'
509
+ );
510
+
511
  /**
512
  * Checkbox for reload page
513
  */
573
  'italy_cl_options_group'
574
  );
575
 
576
+ /**
577
+ * Select box for js_template selection
578
+ */
579
+ add_settings_field(
580
+ 'js_template',
581
+ __( 'CookieChoices Template', 'italy-cookie-choices' ),
582
+ array( $this, 'italy_cl_option_js_template'),
583
+ 'italy_cl_options_group',
584
+ 'style_setting_section'
585
+ );
586
+
587
  /**
588
  * Checkbox for activation
589
  */
622
  */
623
  add_settings_section(
624
  'advanced_setting_section',
625
+ __( 'Advanced settings', 'italy-cookie-choices' ),
626
  array( $this, 'italy_cl_advanced_settings_section_callback'),
627
  'italy_cl_options_group'
628
  );
682
  'advanced_setting_section'
683
  );
684
 
685
+ /**
686
+ * Function for custom script block
687
+ */
688
+ add_settings_field(
689
+ 'custom_script_block',
690
+ __( 'Function for custom script block', 'italy-cookie-choices' ),
691
+ array( $this, 'italy_cl_option_custom_script_block'),
692
+ 'italy_cl_options_group',
693
+ 'advanced_setting_section'
694
+ );
695
+
696
  /**
697
  * Function for content message text
698
  */
703
  'italy_cl_options_group',
704
  'advanced_setting_section'
705
  );
706
+
707
  /**
708
  * Function for button text in message
709
  */
769
  <input name="italy_cookie_choices[banner]" type="radio" value="1" id="radio_1" <?php checked( '1', $banner ); ?> />
770
 
771
  <label for="radio_1">
772
+ <?php _e( 'Top Bar (Default, Display a top bar with your message)', 'italy-cookie-choices' ); ?>
773
  </label>
774
 
775
  <br>
779
  <label for="radio_2">
780
  <?php _e( 'Dialog (Display an overlay with your message)', 'italy-cookie-choices' ); ?>
781
  </label>
782
+
783
+ <br>
784
+
785
+ <input name="italy_cookie_choices[banner]" type="radio" value="3" id="radio_3" <?php checked( '3', $banner ); ?> />
786
+
787
+ <label for="radio_3">
788
+ <?php _e( 'Bottom Bar (Display a bar in the footer with your message)', 'italy-cookie-choices' ); ?>
789
+ </label>
790
+
791
+
792
 
793
  <?php
794
 
812
 
813
  }
814
 
815
+ /**
816
+ * Snippet for second view checkbox $secondView
817
+ * @return strimg Activate for accept on second view
818
+ * Default do nothing
819
+ */
820
+ public function italy_cl_option_secondView($args) {
821
+
822
+ $secondView = ( isset( $this->options['secondView'] ) ) ? $this->options['secondView'] : '' ;
823
+
824
+ ?>
825
+
826
+ <input type='checkbox' name='italy_cookie_choices[secondView]' <?php checked( $secondView, 1 ); ?> value='1'>
827
+ <label for="italy_cookie_choices[secondView]">
828
+ <?php _e( 'Activate accept on second view', 'italy-cookie-choices' ); ?>
829
+ </label>
830
+
831
+ <?php
832
+
833
+ }
834
+
835
  /**
836
  * Snippet for reload
837
  * @return strimg Reload page after click
843
 
844
  <input type='checkbox' name='italy_cookie_choices[reload]' <?php checked( $reload, 1 ); ?> value='1'>
845
  <label for="italy_cookie_choices[reload]">
846
+ <?php _e( 'Refresh page after button click (DEPRECATED)', 'italy-cookie-choices' ); ?>
847
  </label>
848
 
849
  <?php
945
 
946
  <input type='checkbox' name='italy_cookie_choices[html_margin]' <?php checked( $html_margin, 1 ); ?> value='1'>
947
  <label for="italy_cookie_choices[html_margin]">
948
+ <?php _e( 'Add a page top margin for info top bar, only for default topbar stile', 'italy-cookie-choices' ); ?>
949
+ </label>
950
+
951
+ <?php
952
+
953
+ }
954
+
955
+ /**
956
+ * Snippet for select
957
+ * @return strimg Chose the JS_Template to use.
958
+ */
959
+ public function italy_cl_option_js_template($args) {
960
+
961
+ $js_template = ( isset( $this->options['js_template'] ) ) ? $this->options['js_template'] : $this->js_template ;
962
+
963
+ ?>
964
+ <select name='italy_cookie_choices[js_template]'>
965
+ <option value="default" <?php if ($js_template === 'default') echo 'selected';?>>Default cookiechoices template (centered with text links)</option>
966
+ <option value="bigbutton" <?php if ($js_template === 'bigbutton') echo 'selected';?>>Centered container with left aligned text and big buttons</option>
967
+ <option value="smallbutton" <?php if ($js_template === 'smallbutton') echo 'selected';?>>Centered container with left aligned text and small buttons</option>
968
+ <!--<option value="custom" <?php if ($js_template === 'default') echo 'selected';?>>Custom CSS</option>-->
969
+ </select>
970
+ <label for="italy_cookie_choices[js_template]">
971
+ <?php _e( 'Select the template to use', 'italy-cookie-choices' ); ?>
972
  </label>
973
 
974
  <?php
1114
  */
1115
  public function italy_cl_option_block($args) {
1116
 
1117
+ $all_block = ( isset( $this->options['all_block'] ) ) ? $this->options['all_block'] : '' ;
1118
+
1119
+ $block = ( isset( $this->options['block'] ) && $all_block === '' ) ? $this->options['block'] : '' ;
1120
+
1121
+ $widget_block = ( isset( $this->options['widget_block'] ) && $all_block === '' ) ? $this->options['widget_block'] : '' ;
1122
 
1123
  ?>
1124
 
1125
  <input type='checkbox' name='italy_cookie_choices[block]' <?php checked( $block, 1 ); ?> value='1'>
1126
  <label for="italy_cookie_choices[block]">
1127
+ <?php _e( 'Cookie from any embed in your content (Beta) (DEPRECATED)', 'italy-cookie-choices' ); ?>
1128
  </label>
1129
  <br>
1130
  <input type='checkbox' name='italy_cookie_choices[widget_block]' <?php checked( $widget_block, 1 ); ?> value='1'>
1131
  <label for="italy_cookie_choices[widget_block]">
1132
+ <?php _e( 'Cookie from any embed in your widget area (Beta) (DEPRECATED)', 'italy-cookie-choices' ); ?>
1133
+ </label>
1134
+ <br>
1135
+ <input type='checkbox' name='italy_cookie_choices[all_block]' <?php checked( $all_block, 1 ); ?> value='1'>
1136
+ <label for="italy_cookie_choices[all_block]">
1137
+ <?php _e( 'Cookie from any embed in all body, except head and footer (Beta)', 'italy-cookie-choices' ); ?>
1138
  </label>
1139
 
1140
  <?php
1145
  * Textarea for content_message_text
1146
  * @return string
1147
  */
1148
+ public function italy_cl_option_custom_script_block($args) {
1149
+
1150
+ $custom_script_block = ( isset( $this->options['custom_script_block'] ) ) ? $this->options['custom_script_block'] : '' ;
1151
+
1152
+ ?>
1153
+ <textarea rows="5" cols="70" name="italy_cookie_choices[custom_script_block]" id="italy_cookie_choices[custom_script_block]" placeholder="<?php _e( '&lt;script src=&quot;http://domain.com/widget-example.js&quot;&gt;&lt;/script&gt;'."\n".'&lt;---------SEP---------&gt;'."\n".'&lt;script src=&quot;http://otherdomain.com/script-example.js&quot;&gt;&lt;/script&gt;'."\n".'&lt;---------SEP---------&gt;'."\n".'&lt;script src=&quot;http://lastdomain.com/gadget-example.js&quot;&gt;&lt;/script&gt;', 'italy-cookie-choices' ) ?>" ><?php echo esc_textarea( $custom_script_block ); ?></textarea>
1154
+ <br>
1155
+ <label for="italy_cookie_choices[custom_script_block]">
1156
+ <?php echo __( 'Scripts shown in the head and in the footer does not automatically blocked.<br />Split each script with <strong><em>&lt;---------SEP---------&gt;</em></strong>', 'italy-cookie-choices' ); ?>
1157
+ </label>
1158
+
1159
+ <?php
1160
+
1161
+ }
1162
+
1163
+ /**
1164
+ * Function for custom script block
1165
+ * @return string
1166
+ */
1167
  public function italy_cl_option_content_message_text($args) {
1168
 
1169
+ $content_message_text = ( isset( $this->options['content_message_text'] ) ) ? $this->options['content_message_text'] : '' ;
1170
+
1171
  ?>
1172
+ <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( $content_message_text ); ?></textarea>
1173
  <br>
1174
  <label for="italy_cookie_choices[content_message_text]">
1175
  <?php echo __( 'People will see this notice only the first time that they enter your site', 'italy-cookie-choices' ); ?>
1185
  */
1186
  public function italy_cl_option_content_message_button_text($args) {
1187
 
1188
+ $content_message_button_text = ( isset( $this->options['content_message_button_text'] ) ) ? $this->options['content_message_button_text'] : '' ;
1189
+
1190
  ?>
1191
+ <input type="text" id="italy_cookie_choices[content_message_button_text]" name="italy_cookie_choices[content_message_button_text]" value="<?php echo esc_attr( $content_message_button_text ); ?>" placeholder="<?php _e( 'e.g. Close', 'italy-cookie-choices' ) ?>" />
1192
 
1193
  <label for="italy_cookie_choices[content_message_button_text]">
1194
  <?php echo __( 'Insert here name of button (e.g. "Close") ', 'italy-cookie-choices' ); ?>
1216
  if( isset( $input['scroll'] ) )
1217
  $new_input['scroll'] = $input['scroll'];
1218
 
1219
+ if( isset( $input['secondView'] ) )
1220
+ $new_input['secondView'] = $input['secondView'];
1221
+
1222
  if( isset( $input['reload'] ) )
1223
  $new_input['reload'] = $input['reload'];
1224
 
1239
  */
1240
  if( isset( $input['html_margin'] ) )
1241
  $new_input['html_margin'] = $input['html_margin'];
1242
+
1243
+ if( isset( $input['js_template'] ) )
1244
+ $new_input['js_template'] = $input['js_template'];
1245
+
1246
  if( empty( $input['banner_bg'] ) )
1247
  $new_input['banner_bg'] = '#fff';
1248
  elseif ( isset( $input['banner_bg'] ) )
1285
  if( isset( $input['widget_block'] ) )
1286
  $new_input['widget_block'] = $input['widget_block'];
1287
 
1288
+ if( isset( $input['all_block'] ) )
1289
+ $new_input['all_block'] = $input['all_block'];
1290
+
1291
+ if( isset( $input['custom_script_block'] ) )
1292
+ $new_input['custom_script_block'] = $input['custom_script_block'];
1293
+
1294
  if( isset( $input['content_message_text'] ) )
1295
+ $new_input['content_message_text'] = sanitize_text_field( $input['content_message_text'] );
1296
 
1297
  if( isset( $input['content_message_button_text'] ) )
1298
+ $new_input['content_message_button_text'] = sanitize_text_field( $input['content_message_button_text'] );
1299
 
1300
  return $new_input;
1301
 
1361
  return $content;
1362
  }
1363
 
1364
+ private function fnFixArray($v) {
1365
+ if(is_array($v) or is_object($v)){
1366
+ foreach($v as $k1=>$v1){
1367
+ $v[$k1] = $this->fnFixArray($v1);
1368
+ }
1369
+ return $v;
1370
+ }
1371
+
1372
+ if(!is_string($v) or empty($v)) return $v;
1373
+
1374
+ $this->matches( $this->pattern, $v );
1375
+
1376
+ return preg_replace( $this->pattern, $this->valore , $v);
1377
+ }
1378
+
1379
  /**
1380
  * Erase third part in widget area
1381
  * @param [type] $instance [description]
1383
  * @param [type] $args [description]
1384
  */
1385
  public function WidgetErase($instance, $widget, $args){
1386
+ return $this->fnFixArray($instance);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1387
  }
1388
 
1389
  /**
1390
+ * Print script inline before </body>
1391
  * @return string Print script inline
1392
  * @link https://www.cookiechoices.org/
1393
  */
1404
  /**
1405
  * Select what kind of banner to display
1406
  */
1407
+ if ( $this->options['banner'] === '1' || !empty( $this->options['slug'] ) && ( is_page( $this->options['slug'] ) || is_single( $this->options['slug'] ) ) ){
1408
+
1409
+ $banner = 'Bar';
1410
+ $bPos = 'top:0';
1411
+
1412
+ } elseif ( $this->options['banner'] === '2' ) {
1413
+
1414
  $banner = 'Dialog';
1415
+ $bPos = 'top:0';
1416
+
1417
+ } elseif ( $this->options['banner'] === '3' ) {
1418
+
1419
+ $banner = 'Bar';
1420
+ $bPos = 'bottom:0';
1421
+
1422
+ } else {
1423
+
1424
  $banner = '';
1425
+ $bPos = 'top:0';
1426
+
1427
+ }
1428
 
1429
  /**
1430
  * Accept on scroll
1468
  */
1469
  $style = '<style>.icc{margin-top:36px}</style>';
1470
 
1471
+ /**
1472
+ * Js_Template vlue
1473
+ * @var string
1474
+ */
1475
+ $js_template = ( isset( $this->options['js_template'] ) ) ? $this->options['js_template'] : $this->js_template ;
1476
+
1477
  /**
1478
  * If is set html_margin checkbox in admin panel then add margin-top to HTML tag
1479
  * @var bol
1512
  * var btcB = Colore del font della topbar/dialog
1513
  * @var string
1514
  */
1515
+ $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 . '",bPos="' . $bPos . '",jsArr = ' . wp_json_encode( $this->js_array ) . ';';
1516
 
1517
  /**
1518
  * Noscript snippet in case browser has JavaScript disabled
1520
  */
1521
  $noscript = '<noscript><style>html{margin-top:35px}</style><div id="cookieChoiceInfo" style="position:absolute;width:100%;margin:0px;left:0px;top:0px;padding:4px;z-index:9999;text-align:center;background-color:rgb(238, 238, 238);"><span>' . wp_json_encode( $this->options['text'] ) . '</span><a href="' . esc_url( $this->options['url'] ) . '" target="_blank" style="margin-left:8px;">' . esc_js( $this->options['anchor_text'] ) . '</a><a id="cookieChoiceDismiss" href="#" style="margin-left:24px;display:none;">' . esc_js( $this->options['button_text'] ) . '</a></div></div></noscript>';
1522
 
1523
+ /**
1524
+ * Select wich file to use in debug mode
1525
+ * @var string
1526
+ */
1527
+ $fileJS = ( WP_DEBUG ) ? '/js/'.$js_template.'/cookiechoices.js' : '/js/'.$js_template.'/cookiechoices.php' ;
1528
+
1529
+ $output_html = '<!-- Italy Cookie Choices -->' . $style . '<script>' . $jsVariables . file_get_contents( ITALY_COOKIE_CHOICES_DIRNAME . $fileJS ) . $banner . '</script>' . $noscript;
1530
+
1531
+ echo $output_html;
1532
 
1533
  }
1534
 
1542
 
1543
  $button_text = ( isset( $this->options['button_text'] ) ) ? $this->options['button_text'] : '' ;
1544
 
1545
+ return '<span class="el"><button onclick="cookieChoices.removeCookieConsent()">' . esc_attr( $button_text ) . '</button></span>';
1546
 
1547
  }
1548
 
1549
  }// class
1550
  }//endif
1551
 
1552
+ new Italy_Cookie_Choices;
js/bigbutton/cookiechoices.js ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ var x=document.getElementsByClassName("el");
20
+
21
+ // var patt = new RegExp("<script.*?\/script>");
22
+ var patt = new RegExp("<script.*?");
23
+
24
+ var i;
25
+ for (i = 0; i < x.length; i++) {
26
+
27
+ x[i].removeChild(x[i].childNodes[0]);
28
+
29
+ // console.log(jsArr[i]);
30
+
31
+ var res = patt.test(jsArr[i]);
32
+ // console.log(res);
33
+
34
+ if (res) {
35
+ // console.log(jsArr[i]);
36
+
37
+ var regexURL = /<script.*?src="(.*?)"/;
38
+
39
+ var URL = regexURL.test(jsArr[i]);
40
+
41
+ if (URL) {
42
+ URL = regexURL.exec(jsArr[i]);
43
+ loadJS(URL[1]);
44
+ }
45
+
46
+ var regex = /<script\b[^>]*>([\s\S]*?)<\/script>/gm;
47
+
48
+ var code = regex.exec(jsArr[i]);
49
+
50
+ if ( code[1] ) appendJS(code[1]);
51
+
52
+ } else {
53
+
54
+ var str = x[i].innerHTML;
55
+ // var res = str.replace(/<!--(.*?)-->/g, "$1");
56
+ // Prendo l\'array creato e all\'accettazione ogni valore è messo al suo posto
57
+ res = str.replace(/<cookie>/g, jsArr[i]);
58
+ x[i].innerHTML = res;
59
+ }
60
+
61
+ // var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear()+1);document.cookie=cookieName+"=; expires="+expiryDate.toGMTString()+"; path=/";
62
+
63
+ // var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear() + 1);
64
+ // document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
65
+ // document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
66
+
67
+ }
68
+ }
69
+
70
+ function loadJS(file) {
71
+ // DOM: Create the script element
72
+ var jsElm = document.createElement("script");
73
+ // set the type attribute
74
+ jsElm.type = "application/javascript";
75
+ // make the script element load file
76
+ jsElm.src = file;
77
+ // finally insert the element to the body element in order to load the script
78
+ document.body.appendChild(jsElm);
79
+ }
80
+
81
+ function appendJS(script){
82
+ var s = document.createElement("script");
83
+ s.type = "text/javascript";
84
+ var code = script;
85
+ try {
86
+ s.appendChild(document.createTextNode(code));
87
+ document.body.appendChild(s);
88
+ } catch (e) {
89
+ s.text = code;
90
+ document.body.appendChild(s);
91
+ }
92
+ }
93
+
94
+ (function(window) {
95
+
96
+ if (!!window.cookieChoices) {
97
+ return window.cookieChoices;
98
+ }
99
+
100
+ var document = window.document;
101
+ var html = document.documentElement;//Per aggiungere un margin-top al tag HTML
102
+ // IE8 does not support textContent, so we should fallback to innerText.
103
+ var supportsTextContent = 'textContent' in document.body;
104
+
105
+ var cookieChoices = (function() {
106
+
107
+ // var cookieName = 'displayCookieConsent';
108
+ var cookieName = coNA;
109
+ var cookieConsentId = 'cookieChoiceInfo';
110
+ var dismissLinkId = 'cookieChoiceDismiss';
111
+
112
+ function _createHeaderElement(cookieText, dismissText, linkText, linkHref) {
113
+
114
+ if( htmlM ) html.className += ' icc';
115
+
116
+ var butterBarStyles = 'color:'+ btcB +';position:' + elPos + ';width:100%;background-color:' + bgB + ';' +
117
+ 'margin:0; left:0;'+bPos+';padding:4px;z-index:9999;text-align:left;';
118
+
119
+ // Aggiungo contenitore esterno per migliorare il layout
120
+ var contenitore = document.createElement('div');
121
+ var contenutoContenitoreStyle = 'max-width:980px;margin-right:auto;margin-left:auto;padding:15px;';
122
+ contenitore.id = cookieConsentId;
123
+ contenitore.style.cssText = butterBarStyles;
124
+
125
+ var cookieConsentElement = document.createElement('div');
126
+ //cookieConsentElement.id = cookieConsentId;
127
+ cookieConsentElement.style.cssText = contenutoContenitoreStyle;
128
+ cookieConsentElement.appendChild(_createConsentText(cookieText));
129
+ cookieConsentElement.appendChild(_createSpace());
130
+
131
+ if (!!linkText && !!linkHref) {
132
+ cookieConsentElement.appendChild(_createInformationLink(linkText, linkHref));
133
+ }
134
+ cookieConsentElement.appendChild(_createDismissLink(dismissText));
135
+
136
+ // Inglobo contenuto in contenitore.
137
+ contenitore.appendChild(cookieConsentElement);
138
+
139
+ return contenitore;
140
+ //return cookieConsentElement;
141
+ }
142
+
143
+ function _createDialogElement(cookieText, dismissText, linkText, linkHref) {
144
+ var glassStyle = 'position:fixed;width:100%;height:100%;z-index:999;' +
145
+ 'top:0;left:0;opacity:0.5;filter:alpha(opacity=50);' +
146
+ 'background-color:#ccc;';
147
+ var dialogStyle = 'z-index:9999;position:fixed;left:50%;top:50%;bottom:0%;';
148
+ var contentStyle = 'position:relative;left:-50%;margin-top:-25%;' +
149
+ 'background-color:' + bgB + ';padding:20px;box-shadow:4px 4px 25px #888;';
150
+
151
+ var cookieConsentElement = document.createElement('div');
152
+ cookieConsentElement.id = cookieConsentId;
153
+
154
+ var glassPanel = document.createElement('div');
155
+ glassPanel.style.cssText = glassStyle;
156
+
157
+ var content = document.createElement('div');
158
+ content.style.cssText = contentStyle;
159
+
160
+
161
+
162
+
163
+ var dialog = document.createElement('div');
164
+ dialog.style.cssText = dialogStyle;
165
+
166
+ var dismissLink = _createDismissLink(dismissText);
167
+ //dismissLink.style.display = 'block';
168
+ //dismissLink.style.textAlign = 'right';
169
+ //dismissLink.style.marginTop = '8px';
170
+
171
+ content.appendChild(_createConsentText(cookieText));
172
+
173
+ content.appendChild(_createSpace());
174
+
175
+ if (!!linkText && !!linkHref) {
176
+ content.appendChild(_createInformationLink(linkText, linkHref));
177
+ }
178
+ content.appendChild(dismissLink);
179
+ dialog.appendChild(content);
180
+ cookieConsentElement.appendChild(glassPanel);
181
+ cookieConsentElement.appendChild(dialog);
182
+ return cookieConsentElement;
183
+ }
184
+
185
+ function _setElementText(element, text) {
186
+ if (supportsTextContent) {
187
+ element.textContent = text;
188
+ } else {
189
+ element.innerText = text;
190
+ }
191
+ }
192
+
193
+ function _createSpace(){
194
+ var hrStyle='clear:both;border-color:transparent;margin-top:5px;margin-bottom:5px';
195
+ var hr = document.createElement("hr");
196
+ hr.style.cssText = hrStyle;
197
+ return hr;
198
+ }
199
+
200
+ function _createConsentText(cookieText) {
201
+ var consentText = document.createElement('span');
202
+ _setElementText(consentText, cookieText);
203
+ return consentText;
204
+ }
205
+
206
+ function _createDismissLink(dismissText) {
207
+ 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;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);';
208
+
209
+ var dismissLink = document.createElement('a');
210
+ _setElementText(dismissLink, dismissText);
211
+ dismissLink.id = dismissLinkId;
212
+ dismissLink.className = closeClass;
213
+ dismissLink.href = '#';
214
+ //dismissLink.style.marginLeft = '24px';
215
+ dismissLink.style.cssText = buttonStyle;
216
+ return dismissLink;
217
+ }
218
+
219
+ function _createInformationLink(linkText, linkHref) {
220
+ 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;' +
221
+ '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);';
222
+
223
+ var infoLink = document.createElement('a');
224
+ _setElementText(infoLink, linkText);
225
+ infoLink.className = infoClass;
226
+ infoLink.href = linkHref;
227
+ if (tar) infoLink.target = '_blank';
228
+ infoLink.style.cssText = buttonStyle;
229
+ return infoLink;
230
+ }
231
+
232
+ function _dismissLinkClick() {
233
+ if (_shouldDisplayConsent()) {
234
+ if ( htmlM ) html.classList.remove("icc");
235
+ allowCookie();
236
+ _saveUserPreference();
237
+ _removeCookieConsent();
238
+ }
239
+ if ( rel ) document.location.reload();
240
+ return false;
241
+ }
242
+
243
+ function _showCookieConsent(cookieText, dismissText, linkText, linkHref, isDialog) {
244
+ if (_shouldDisplayConsent()) {
245
+ // _removeCookieConsent();
246
+ var consentElement = (isDialog) ?
247
+ _createDialogElement(cookieText, dismissText, linkText, linkHref) :
248
+ _createHeaderElement(cookieText, dismissText, linkText, linkHref);
249
+ var fragment = document.createDocumentFragment();
250
+ fragment.appendChild(consentElement);
251
+ document.body.appendChild(fragment.cloneNode(true));
252
+ document.getElementById(dismissLinkId).onclick = _dismissLinkClick;
253
+ // document.onclick = _dismissLinkClick;
254
+ if (scroll) document.onscroll = _dismissLinkClick;
255
+ }
256
+ // if (scroll) document.onscroll = _dismissLinkClick;
257
+ }
258
+
259
+ function showCookieConsentBar(cookieText, dismissText, linkText, linkHref) {
260
+ _showCookieConsent(cookieText, dismissText, linkText, linkHref, false);
261
+ }
262
+
263
+ function showCookieConsentDialog(cookieText, dismissText, linkText, linkHref) {
264
+ _showCookieConsent(cookieText, dismissText, linkText, linkHref, true);
265
+ }
266
+
267
+ function _removeCookieConsent() {
268
+ var cookieChoiceElement = document.getElementById(cookieConsentId);
269
+ if (cookieChoiceElement !== null) {
270
+ cookieChoiceElement.parentNode.removeChild(cookieChoiceElement);
271
+ }
272
+ }
273
+
274
+ /**
275
+ * Funzione creata per poter essere usata onclick sul bottone
276
+ * @return {null} Elimina il banner e crea il cookie al click
277
+ */
278
+ function removeCookieConsent(){
279
+ _dismissLinkClick();
280
+ }
281
+
282
+ function _saveUserPreference() {
283
+ // Set the cookie expiry to one year after today.
284
+ var expiryDate = new Date();
285
+ expiryDate.setFullYear(expiryDate.getFullYear() + 1);
286
+ // document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
287
+ document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
288
+ }
289
+
290
+ function _shouldDisplayConsent() {
291
+ // Display the header only if the cookie has not been set.
292
+ return !document.cookie.match(new RegExp(cookieName + '=([^;]+)'));
293
+ }
294
+
295
+ var exports = {};
296
+ exports.showCookieConsentBar = showCookieConsentBar;
297
+ exports.showCookieConsentDialog = showCookieConsentDialog;
298
+ exports.removeCookieConsent = removeCookieConsent;
299
+ return exports;
300
+ })();
301
+
302
+ window.cookieChoices = cookieChoices;
303
+ return cookieChoices;
304
+ })(this);
js/bigbutton/cookiechoices.php ADDED
@@ -0,0 +1 @@
 
1
+ function allowCookie(){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;"+bPos+";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 r()&&(htmlM&&c.classList.remove("icc"),allowCookie(),q(),o()),rel&&b.location.reload(),!1}function l(c,d,f,g,h){if(r()){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);
js/cookiechoices.js CHANGED
@@ -13,11 +13,9 @@
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>");
@@ -28,7 +26,7 @@ function allowCookie() {
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);
@@ -36,7 +34,6 @@ function allowCookie() {
36
  if (res) {
37
  // console.log(jsArr[i]);
38
 
39
-
40
  var regexURL = /<script.*?src="(.*?)"/;
41
 
42
  var URL = regexURL.test(jsArr[i]);
@@ -46,16 +43,12 @@ function allowCookie() {
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;
@@ -211,8 +204,7 @@ function appendJS(script){
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);
@@ -238,16 +230,19 @@ function appendJS(script){
238
  }
239
 
240
  function _dismissLinkClick() {
241
- if ( htmlM ) html.classList.remove("icc");
242
- _saveUserPreference();
243
- _removeCookieConsent();
244
- if ( rel ) document.location.reload();
245
- return false;
 
 
 
246
  }
247
 
248
  function _showCookieConsent(cookieText, dismissText, linkText, linkHref, isDialog) {
249
  if (_shouldDisplayConsent()) {
250
- _removeCookieConsent();
251
  var consentElement = (isDialog) ?
252
  _createDialogElement(cookieText, dismissText, linkText, linkHref) :
253
  _createHeaderElement(cookieText, dismissText, linkText, linkHref);
@@ -258,6 +253,7 @@ function appendJS(script){
258
  // document.onclick = _dismissLinkClick;
259
  if (scroll) document.onscroll = _dismissLinkClick;
260
  }
 
261
  }
262
 
263
  function showCookieConsentBar(cookieText, dismissText, linkText, linkHref) {
@@ -275,8 +271,11 @@ function appendJS(script){
275
  }
276
  }
277
 
 
 
 
 
278
  function removeCookieConsent(){
279
- // _removeCookieConsent();
280
  _dismissLinkClick();
281
  }
282
 
@@ -302,4 +301,4 @@ function appendJS(script){
302
 
303
  window.cookieChoices = cookieChoices;
304
  return cookieChoices;
305
- })(this);
13
  See the License for the specific language governing permissions and
14
  limitations under the License.
15
  */
16
+ // console.log(jsArr);
17
  function allowCookie() {
18
 
 
 
19
  var x=document.getElementsByClassName("el");
20
 
21
  // var patt = new RegExp("<script.*?\/script>");
26
 
27
  x[i].removeChild(x[i].childNodes[0]);
28
 
29
+ console.log(jsArr[i]);
30
 
31
  var res = patt.test(jsArr[i]);
32
  // console.log(res);
34
  if (res) {
35
  // console.log(jsArr[i]);
36
 
 
37
  var regexURL = /<script.*?src="(.*?)"/;
38
 
39
  var URL = regexURL.test(jsArr[i]);
43
  loadJS(URL[1]);
44
  }
45
 
 
46
  var regex = /<script\b[^>]*>([\s\S]*?)<\/script>/gm;
47
 
48
  var code = regex.exec(jsArr[i]);
49
 
50
  if ( code[1] ) appendJS(code[1]);
51
 
 
 
 
52
  } else {
53
 
54
  var str = x[i].innerHTML;
204
  }
205
 
206
  function _createDismissLink(dismissText) {
207
+ 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;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);';
 
208
 
209
  var dismissLink = document.createElement('a');
210
  _setElementText(dismissLink, dismissText);
230
  }
231
 
232
  function _dismissLinkClick() {
233
+ if (_shouldDisplayConsent()) {
234
+ if ( htmlM ) html.classList.remove("icc");
235
+ allowCookie();
236
+ _saveUserPreference();
237
+ _removeCookieConsent();
238
+ }
239
+ if ( rel ) document.location.reload();
240
+ return false;
241
  }
242
 
243
  function _showCookieConsent(cookieText, dismissText, linkText, linkHref, isDialog) {
244
  if (_shouldDisplayConsent()) {
245
+ // _removeCookieConsent();
246
  var consentElement = (isDialog) ?
247
  _createDialogElement(cookieText, dismissText, linkText, linkHref) :
248
  _createHeaderElement(cookieText, dismissText, linkText, linkHref);
253
  // document.onclick = _dismissLinkClick;
254
  if (scroll) document.onscroll = _dismissLinkClick;
255
  }
256
+ // if (scroll) document.onscroll = _dismissLinkClick;
257
  }
258
 
259
  function showCookieConsentBar(cookieText, dismissText, linkText, linkHref) {
271
  }
272
  }
273
 
274
+ /**
275
+ * Funzione creata per poter essere usata onclick sul bottone
276
+ * @return {null} Elimina il banner e crea il cookie al click
277
+ */
278
  function removeCookieConsent(){
 
279
  _dismissLinkClick();
280
  }
281
 
301
 
302
  window.cookieChoices = cookieChoices;
303
  return cookieChoices;
304
+ })(this);
js/cookiechoices.php CHANGED
@@ -1 +1 @@
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);
1
+ function allowCookie(){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"),allowCookie(),q(),o(),rel&&b.location.reload(),!1}function l(c,d,f,g,h){if(r()){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);
js/default/cookiechoices.js ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ var x=document.getElementsByClassName("el");
20
+
21
+ // var patt = new RegExp("<script.*?\/script>");
22
+ var patt = new RegExp("<script.*?");
23
+
24
+ var i;
25
+ for (i = 0; i < x.length; i++) {
26
+
27
+ x[i].removeChild(x[i].childNodes[0]);
28
+
29
+ // console.log(jsArr[i]);
30
+
31
+ var res = patt.test(jsArr[i]);
32
+ // console.log(res);
33
+
34
+ if (res) {
35
+ // console.log(jsArr[i]);
36
+
37
+ var regexURL = /<script.*?src="(.*?)"/;
38
+
39
+ var URL = regexURL.test(jsArr[i]);
40
+
41
+ if (URL) {
42
+ URL = regexURL.exec(jsArr[i]);
43
+ loadJS(URL[1]);
44
+ }
45
+
46
+ var regex = /<script\b[^>]*>([\s\S]*?)<\/script>/gm;
47
+
48
+ var code = regex.exec(jsArr[i]);
49
+
50
+ if ( code[1] ) appendJS(code[1]);
51
+
52
+ } else {
53
+
54
+ var str = x[i].innerHTML;
55
+ // var res = str.replace(/<!--(.*?)-->/g, "$1");
56
+ // Prendo l\'array creato e all\'accettazione ogni valore � messo al suo posto
57
+ res = str.replace(/<cookie>/g, jsArr[i]);
58
+ x[i].innerHTML = res;
59
+ }
60
+
61
+ // var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear()+1);document.cookie=cookieName+"=; expires="+expiryDate.toGMTString()+"; path=/";
62
+
63
+ // var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear() + 1);
64
+ // document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
65
+ // document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
66
+
67
+ }
68
+ }
69
+
70
+ function loadJS(file) {
71
+ // DOM: Create the script element
72
+ var jsElm = document.createElement("script");
73
+ // set the type attribute
74
+ jsElm.type = "application/javascript";
75
+ // make the script element load file
76
+ jsElm.src = file;
77
+ // finally insert the element to the body element in order to load the script
78
+ document.body.appendChild(jsElm);
79
+ }
80
+
81
+ function appendJS(script){
82
+ var s = document.createElement("script");
83
+ s.type = "text/javascript";
84
+ var code = script;
85
+ try {
86
+ s.appendChild(document.createTextNode(code));
87
+ document.body.appendChild(s);
88
+ } catch (e) {
89
+ s.text = code;
90
+ document.body.appendChild(s);
91
+ }
92
+ }
93
+
94
+ (function(window) {
95
+
96
+ if (!!window.cookieChoices) {
97
+ return window.cookieChoices;
98
+ }
99
+
100
+ var document = window.document;
101
+ var html = document.documentElement;//Per aggiungere un margin-top al tag HTML
102
+ // IE8 does not support textContent, so we should fallback to innerText.
103
+ var supportsTextContent = 'textContent' in document.body;
104
+
105
+ var cookieChoices = (function() {
106
+
107
+ // var cookieName = 'displayCookieConsent';
108
+ var cookieName = coNA;
109
+ var cookieConsentId = 'cookieChoiceInfo';
110
+ var dismissLinkId = 'cookieChoiceDismiss';
111
+
112
+ function _createHeaderElement(cookieText, dismissText, linkText, linkHref) {
113
+
114
+ if( htmlM ) html.className += ' icc';
115
+
116
+ var butterBarStyles = 'color:'+ btcB +';position:' + elPos + ';width:100%;background-color:' + bgB + ';' +
117
+ 'margin:0; left:0;'+bPos+';padding:4px;z-index:9999;text-align:center;';
118
+
119
+ // Aggiungo contenitore esterno per migliorare il layout
120
+ //var contenitore = document.createElement('div');
121
+ //var contenutoContenitoreStyle = 'max-width:980px;margin-right:auto;margin-left:auto;padding:15px;';
122
+ //contenitore.id = cookieConsentId;
123
+ //contenitore.style.cssText = butterBarStyles;
124
+
125
+ var cookieConsentElement = document.createElement('div');
126
+ cookieConsentElement.id = cookieConsentId;
127
+ cookieConsentElement.style.cssText = butterBarStyles;
128
+ cookieConsentElement.appendChild(_createConsentText(cookieText));
129
+ //cookieConsentElement.appendChild(_createSpace());
130
+
131
+ if (!!linkText && !!linkHref) {
132
+ cookieConsentElement.appendChild(_createInformationLink(linkText, linkHref));
133
+ }
134
+ cookieConsentElement.appendChild(_createDismissLink(dismissText));
135
+
136
+ // Inglobo contenuto in contenitore.
137
+ //contenitore.appendChild(cookieConsentElement);
138
+
139
+ //return contenitore;
140
+ return cookieConsentElement;
141
+ }
142
+
143
+ function _createDialogElement(cookieText, dismissText, linkText, linkHref) {
144
+ var glassStyle = 'position:fixed;width:100%;height:100%;z-index:999;' +
145
+ 'top:0;left:0;opacity:0.5;filter:alpha(opacity=50);' +
146
+ 'background-color:#ccc;';
147
+ var dialogStyle = 'z-index:9999;position:fixed;left:50%;top:50%;bottom:0%;';
148
+ var contentStyle = 'position:relative;left:-50%;margin-top:-25%;' +
149
+ 'background-color:' + bgB + ';padding:20px;box-shadow:4px 4px 25px #888;';
150
+
151
+ var cookieConsentElement = document.createElement('div');
152
+ cookieConsentElement.id = cookieConsentId;
153
+
154
+ var glassPanel = document.createElement('div');
155
+ glassPanel.style.cssText = glassStyle;
156
+
157
+ var content = document.createElement('div');
158
+ content.style.cssText = contentStyle;
159
+
160
+
161
+
162
+
163
+ var dialog = document.createElement('div');
164
+ dialog.style.cssText = dialogStyle;
165
+
166
+ var dismissLink = _createDismissLink(dismissText);
167
+ dismissLink.style.display = 'block';
168
+ dismissLink.style.textAlign = 'right';
169
+ dismissLink.style.marginTop = '8px';
170
+
171
+ content.appendChild(_createConsentText(cookieText));
172
+
173
+ //content.appendChild(_createSpace());
174
+
175
+ if (!!linkText && !!linkHref) {
176
+ content.appendChild(_createInformationLink(linkText, linkHref));
177
+ }
178
+ content.appendChild(dismissLink);
179
+ dialog.appendChild(content);
180
+ cookieConsentElement.appendChild(glassPanel);
181
+ cookieConsentElement.appendChild(dialog);
182
+ return cookieConsentElement;
183
+ }
184
+
185
+ function _setElementText(element, text) {
186
+ if (supportsTextContent) {
187
+ element.textContent = text;
188
+ } else {
189
+ element.innerText = text;
190
+ }
191
+ }
192
+
193
+ /* function _createSpace(){
194
+ var hrStyle='clear:both;border-color:transparent;margin-top:5px;margin-bottom:5px';
195
+ var hr = document.createElement("hr");
196
+ hr.style.cssText = hrStyle;
197
+ return hr;
198
+ }*/
199
+
200
+ function _createConsentText(cookieText) {
201
+ var consentText = document.createElement('span');
202
+ _setElementText(consentText, cookieText);
203
+ return consentText;
204
+ }
205
+
206
+ function _createDismissLink(dismissText) {
207
+ //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;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);';
208
+
209
+ var dismissLink = document.createElement('a');
210
+ _setElementText(dismissLink, dismissText);
211
+ dismissLink.id = dismissLinkId;
212
+ dismissLink.className = closeClass;
213
+ dismissLink.href = '#';
214
+ dismissLink.style.marginLeft = '24px';
215
+ //dismissLink.style.cssText = buttonStyle;
216
+ return dismissLink;
217
+ }
218
+
219
+ function _createInformationLink(linkText, linkHref) {
220
+ /*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;' +
221
+ '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);';
222
+ */
223
+ var infoLink = document.createElement('a');
224
+ _setElementText(infoLink, linkText);
225
+ infoLink.className = infoClass;
226
+ infoLink.href = linkHref;
227
+ if (tar) infoLink.target = '_blank';
228
+ //infoLink.style.cssText = buttonStyle;
229
+ return infoLink;
230
+ }
231
+
232
+ function _dismissLinkClick() {
233
+ if (_shouldDisplayConsent()) {
234
+ if ( htmlM ) html.classList.remove("icc");
235
+ allowCookie();
236
+ _saveUserPreference();
237
+ _removeCookieConsent();
238
+ }
239
+ if ( rel ) document.location.reload();
240
+ return false;
241
+ }
242
+
243
+ function _showCookieConsent(cookieText, dismissText, linkText, linkHref, isDialog) {
244
+ if (_shouldDisplayConsent()) {
245
+ // _removeCookieConsent();
246
+ var consentElement = (isDialog) ?
247
+ _createDialogElement(cookieText, dismissText, linkText, linkHref) :
248
+ _createHeaderElement(cookieText, dismissText, linkText, linkHref);
249
+ var fragment = document.createDocumentFragment();
250
+ fragment.appendChild(consentElement);
251
+ document.body.appendChild(fragment.cloneNode(true));
252
+ document.getElementById(dismissLinkId).onclick = _dismissLinkClick;
253
+ // document.onclick = _dismissLinkClick;
254
+ if (scroll) document.onscroll = _dismissLinkClick;
255
+ }
256
+ // if (scroll) document.onscroll = _dismissLinkClick;
257
+ }
258
+
259
+ function showCookieConsentBar(cookieText, dismissText, linkText, linkHref) {
260
+ _showCookieConsent(cookieText, dismissText, linkText, linkHref, false);
261
+ }
262
+
263
+ function showCookieConsentDialog(cookieText, dismissText, linkText, linkHref) {
264
+ _showCookieConsent(cookieText, dismissText, linkText, linkHref, true);
265
+ }
266
+
267
+ function _removeCookieConsent() {
268
+ var cookieChoiceElement = document.getElementById(cookieConsentId);
269
+ if (cookieChoiceElement !== null) {
270
+ cookieChoiceElement.parentNode.removeChild(cookieChoiceElement);
271
+ }
272
+ }
273
+
274
+ /**
275
+ * Funzione creata per poter essere usata onclick sul bottone
276
+ * @return {null} Elimina il banner e crea il cookie al click
277
+ */
278
+ function removeCookieConsent(){
279
+ _dismissLinkClick();
280
+ }
281
+
282
+ function _saveUserPreference() {
283
+ // Set the cookie expiry to one year after today.
284
+ var expiryDate = new Date();
285
+ expiryDate.setFullYear(expiryDate.getFullYear() + 1);
286
+ // document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
287
+ document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
288
+ }
289
+
290
+ function _shouldDisplayConsent() {
291
+ // Display the header only if the cookie has not been set.
292
+ return !document.cookie.match(new RegExp(cookieName + '=([^;]+)'));
293
+ }
294
+
295
+ var exports = {};
296
+ exports.showCookieConsentBar = showCookieConsentBar;
297
+ exports.showCookieConsentDialog = showCookieConsentDialog;
298
+ exports.removeCookieConsent = removeCookieConsent;
299
+ return exports;
300
+ })();
301
+
302
+ window.cookieChoices = cookieChoices;
303
+ return cookieChoices;
304
+ })(this);
js/default/cookiechoices.php ADDED
@@ -0,0 +1 @@
 
1
+ function allowCookie(){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 j="color:"+btcB+";position:"+elPos+";width:100%;background-color:"+bgB+";margin:0; left:0;"+bPos+";padding:4px;z-index:9999;text-align:center;",k=b.createElement("div");return k.id=s,k.style.cssText=j,k.appendChild(g(a)),e&&f&&k.appendChild(i(e,f)),k.appendChild(h(d)),k}function e(a,c,d,e){var f="position:fixed;width:100%;height:100%;z-index:999;top:0;left:0;opacity:0.5;filter:alpha(opacity=50);background-color:#ccc;",j="z-index:9999;position:fixed;left:50%;top:50%;bottom:0%;",k="position:relative;left:-50%;margin-top:-25%;background-color:"+bgB+";padding:20px;box-shadow:4px 4px 25px #888;",l=b.createElement("div");l.id=s;var m=b.createElement("div");m.style.cssText=f;var n=b.createElement("div");n.style.cssText=k;var o=b.createElement("div");o.style.cssText=j;var p=h(c);return p.style.display="block",p.style.textAlign="right",p.style.marginTop="8px",n.appendChild(g(a)),d&&e&&n.appendChild(i(d,e)),n.appendChild(p),o.appendChild(n),l.appendChild(m),l.appendChild(o),l}function f(a,b){d?a.textContent=b:a.innerText=b}function g(a){var c=b.createElement("span");return f(c,a),c}function h(a){var c=b.createElement("a");return f(c,a),c.id=t,c.className=closeClass,c.href="#",c.style.marginLeft="24px",c}function i(a,c){var d=b.createElement("a");return f(d,a),d.className=infoClass,d.href=c,tar&&(d.target="_blank"),d}function j(){return q()&&(htmlM&&c.classList.remove("icc"),allowCookie(),p(),n()),rel&&b.location.reload(),!1}function k(c,d,f,g,h){if(q()){var i=h?e(c,d,f,g):a(c,d,f,g),k=b.createDocumentFragment();k.appendChild(i),b.body.appendChild(k.cloneNode(!0)),b.getElementById(t).onclick=j,scroll&&(b.onscroll=j)}}function l(a,b,c,d){k(a,b,c,d,!1)}function m(a,b,c,d){k(a,b,c,d,!0)}function n(){var a=b.getElementById(s);null!==a&&a.parentNode.removeChild(a)}function o(){j()}function p(){var a=new Date;a.setFullYear(a.getFullYear()+1),b.cookie=r+"="+coVA+"; expires="+a.toGMTString()+";path=/"}function q(){return!b.cookie.match(new RegExp(r+"=([^;]+)"))}var r=coNA,s="cookieChoiceInfo",t="cookieChoiceDismiss",u={};return u.showCookieConsentBar=l,u.showCookieConsentDialog=m,u.removeCookieConsent=o,u}();return a.cookieChoices=e,e}(this);
js/smallbutton/cookiechoices.js ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ var x=document.getElementsByClassName("el");
20
+
21
+ // var patt = new RegExp("<script.*?\/script>");
22
+ var patt = new RegExp("<script.*?");
23
+
24
+ var i;
25
+ for (i = 0; i < x.length; i++) {
26
+
27
+ x[i].removeChild(x[i].childNodes[0]);
28
+
29
+ // console.log(jsArr[i]);
30
+
31
+ var res = patt.test(jsArr[i]);
32
+ // console.log(res);
33
+
34
+ if (res) {
35
+ // console.log(jsArr[i]);
36
+
37
+ var regexURL = /<script.*?src="(.*?)"/;
38
+
39
+ var URL = regexURL.test(jsArr[i]);
40
+
41
+ if (URL) {
42
+ URL = regexURL.exec(jsArr[i]);
43
+ loadJS(URL[1]);
44
+ }
45
+
46
+ var regex = /<script\b[^>]*>([\s\S]*?)<\/script>/gm;
47
+
48
+ var code = regex.exec(jsArr[i]);
49
+
50
+ if ( code[1] ) appendJS(code[1]);
51
+
52
+ } else {
53
+
54
+ var str = x[i].innerHTML;
55
+ // var res = str.replace(/<!--(.*?)-->/g, "$1");
56
+ // Prendo l\'array creato e all\'accettazione ogni valore è messo al suo posto
57
+ res = str.replace(/<cookie>/g, jsArr[i]);
58
+ x[i].innerHTML = res;
59
+ }
60
+
61
+ // var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear()+1);document.cookie=cookieName+"=; expires="+expiryDate.toGMTString()+"; path=/";
62
+
63
+ // var cookieName=coNA;var expiryDate=new Date();expiryDate.setFullYear(expiryDate.getFullYear() + 1);
64
+ // document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
65
+ // document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
66
+
67
+ }
68
+ }
69
+
70
+ function loadJS(file) {
71
+ // DOM: Create the script element
72
+ var jsElm = document.createElement("script");
73
+ // set the type attribute
74
+ jsElm.type = "application/javascript";
75
+ // make the script element load file
76
+ jsElm.src = file;
77
+ // finally insert the element to the body element in order to load the script
78
+ document.body.appendChild(jsElm);
79
+ }
80
+
81
+ function appendJS(script){
82
+ var s = document.createElement("script");
83
+ s.type = "text/javascript";
84
+ var code = script;
85
+ try {
86
+ s.appendChild(document.createTextNode(code));
87
+ document.body.appendChild(s);
88
+ } catch (e) {
89
+ s.text = code;
90
+ document.body.appendChild(s);
91
+ }
92
+ }
93
+
94
+ (function(window) {
95
+
96
+ if (!!window.cookieChoices) {
97
+ return window.cookieChoices;
98
+ }
99
+
100
+ var document = window.document;
101
+ var html = document.documentElement;//Per aggiungere un margin-top al tag HTML
102
+ // IE8 does not support textContent, so we should fallback to innerText.
103
+ var supportsTextContent = 'textContent' in document.body;
104
+
105
+ var cookieChoices = (function() {
106
+
107
+ // var cookieName = 'displayCookieConsent';
108
+ var cookieName = coNA;
109
+ var cookieConsentId = 'cookieChoiceInfo';
110
+ var dismissLinkId = 'cookieChoiceDismiss';
111
+
112
+ function _createHeaderElement(cookieText, dismissText, linkText, linkHref) {
113
+
114
+ if( htmlM ) html.className += ' icc';
115
+
116
+ var butterBarStyles = 'color:'+ btcB +';position:' + elPos + ';width:100%;background-color:' + bgB + ';' +
117
+ 'margin:0; left:0;'+bPos+';padding:2px;z-index:9999;text-align:left;';
118
+
119
+ // Aggiungo contenitore esterno per migliorare il layout
120
+ var contenitore = document.createElement('div');
121
+ var contenutoContenitoreStyle = 'max-width:980px;margin-right:auto;margin-left:auto;padding:15px;';
122
+ contenitore.id = cookieConsentId;
123
+ contenitore.style.cssText = butterBarStyles;
124
+
125
+ var cookieConsentElement = document.createElement('div');
126
+ //cookieConsentElement.id = cookieConsentId;
127
+ cookieConsentElement.style.cssText = contenutoContenitoreStyle;
128
+ cookieConsentElement.appendChild(_createConsentText(cookieText));
129
+ cookieConsentElement.appendChild(_createSpace());
130
+
131
+ if (!!linkText && !!linkHref) {
132
+ cookieConsentElement.appendChild(_createInformationLink(linkText, linkHref));
133
+ }
134
+ cookieConsentElement.appendChild(_createDismissLink(dismissText));
135
+
136
+ // Inglobo contenuto in contenitore.
137
+ contenitore.appendChild(cookieConsentElement);
138
+
139
+ return contenitore;
140
+ //return cookieConsentElement;
141
+ }
142
+
143
+ function _createDialogElement(cookieText, dismissText, linkText, linkHref) {
144
+ var glassStyle = 'position:fixed;width:100%;height:100%;z-index:999;' +
145
+ 'top:0;left:0;opacity:0.5;filter:alpha(opacity=50);' +
146
+ 'background-color:#ccc;';
147
+ var dialogStyle = 'z-index:9999;position:fixed;left:50%;top:50%;bottom:0%;';
148
+ var contentStyle = 'position:relative;left:-50%;margin-top:-25%;' +
149
+ 'background-color:' + bgB + ';padding:20px;box-shadow:4px 4px 25px #888;';
150
+
151
+ var cookieConsentElement = document.createElement('div');
152
+ cookieConsentElement.id = cookieConsentId;
153
+
154
+ var glassPanel = document.createElement('div');
155
+ glassPanel.style.cssText = glassStyle;
156
+
157
+ var content = document.createElement('div');
158
+ content.style.cssText = contentStyle;
159
+
160
+
161
+
162
+
163
+ var dialog = document.createElement('div');
164
+ dialog.style.cssText = dialogStyle;
165
+
166
+ var dismissLink = _createDismissLink(dismissText);
167
+ //dismissLink.style.display = 'block';
168
+ //dismissLink.style.textAlign = 'right';
169
+ //dismissLink.style.marginTop = '8px';
170
+
171
+ content.appendChild(_createConsentText(cookieText));
172
+
173
+ content.appendChild(_createSpace());
174
+
175
+ if (!!linkText && !!linkHref) {
176
+ content.appendChild(_createInformationLink(linkText, linkHref));
177
+ }
178
+ content.appendChild(dismissLink);
179
+ dialog.appendChild(content);
180
+ cookieConsentElement.appendChild(glassPanel);
181
+ cookieConsentElement.appendChild(dialog);
182
+ return cookieConsentElement;
183
+ }
184
+
185
+ function _setElementText(element, text) {
186
+ if (supportsTextContent) {
187
+ element.textContent = text;
188
+ } else {
189
+ element.innerText = text;
190
+ }
191
+ }
192
+
193
+ function _createSpace(){
194
+ var hrStyle='clear:both;border-color:transparent;margin-top:5px;margin-bottom:5px';
195
+ var hr = document.createElement("hr");
196
+ hr.style.cssText = hrStyle;
197
+ return hr;
198
+ }
199
+
200
+ function _createConsentText(cookieText) {
201
+ var consentText = document.createElement('span');
202
+ _setElementText(consentText, cookieText);
203
+ return consentText;
204
+ }
205
+
206
+ function _createDismissLink(dismissText) {
207
+ var buttonStyle='color: '+ btcB +';padding: 3px 7px;font-size: 14px;line-height: 14px;text-decoration: none;text-transform: uppercase;margin:0;margin-bottom:2px;letter-spacing: 0.115em;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);';
208
+
209
+ var dismissLink = document.createElement('a');
210
+ _setElementText(dismissLink, dismissText);
211
+ dismissLink.id = dismissLinkId;
212
+ dismissLink.className = closeClass;
213
+ dismissLink.href = '#';
214
+ //dismissLink.style.marginLeft = '24px';
215
+ dismissLink.style.cssText = buttonStyle;
216
+ return dismissLink;
217
+ }
218
+
219
+ function _createInformationLink(linkText, linkHref) {
220
+ var buttonStyle='color: '+ btcB +';padding: 3px 7px;font-size: 14px;line-height: 14px;text-decoration: none;text-transform: uppercase;margin-right: 20px;margin-bottom:2px;letter-spacing: 0.115em;' +
221
+ '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);';
222
+
223
+ var infoLink = document.createElement('a');
224
+ _setElementText(infoLink, linkText);
225
+ infoLink.className = infoClass;
226
+ infoLink.href = linkHref;
227
+ if (tar) infoLink.target = '_blank';
228
+ infoLink.style.cssText = buttonStyle;
229
+ return infoLink;
230
+ }
231
+
232
+ function _dismissLinkClick() {
233
+ if (_shouldDisplayConsent()) {
234
+ if ( htmlM ) html.classList.remove("icc");
235
+ allowCookie();
236
+ _saveUserPreference();
237
+ _removeCookieConsent();
238
+ }
239
+ if ( rel ) document.location.reload();
240
+ return false;
241
+ }
242
+
243
+ function _showCookieConsent(cookieText, dismissText, linkText, linkHref, isDialog) {
244
+ if (_shouldDisplayConsent()) {
245
+ // _removeCookieConsent();
246
+ var consentElement = (isDialog) ?
247
+ _createDialogElement(cookieText, dismissText, linkText, linkHref) :
248
+ _createHeaderElement(cookieText, dismissText, linkText, linkHref);
249
+ var fragment = document.createDocumentFragment();
250
+ fragment.appendChild(consentElement);
251
+ document.body.appendChild(fragment.cloneNode(true));
252
+ document.getElementById(dismissLinkId).onclick = _dismissLinkClick;
253
+ // document.onclick = _dismissLinkClick;
254
+ if (scroll) document.onscroll = _dismissLinkClick;
255
+ }
256
+ // if (scroll) document.onscroll = _dismissLinkClick;
257
+ }
258
+
259
+ function showCookieConsentBar(cookieText, dismissText, linkText, linkHref) {
260
+ _showCookieConsent(cookieText, dismissText, linkText, linkHref, false);
261
+ }
262
+
263
+ function showCookieConsentDialog(cookieText, dismissText, linkText, linkHref) {
264
+ _showCookieConsent(cookieText, dismissText, linkText, linkHref, true);
265
+ }
266
+
267
+ function _removeCookieConsent() {
268
+ var cookieChoiceElement = document.getElementById(cookieConsentId);
269
+ if (cookieChoiceElement !== null) {
270
+ cookieChoiceElement.parentNode.removeChild(cookieChoiceElement);
271
+ }
272
+ }
273
+
274
+ /**
275
+ * Funzione creata per poter essere usata onclick sul bottone
276
+ * @return {null} Elimina il banner e crea il cookie al click
277
+ */
278
+ function removeCookieConsent(){
279
+ _dismissLinkClick();
280
+ }
281
+
282
+ function _saveUserPreference() {
283
+ // Set the cookie expiry to one year after today.
284
+ var expiryDate = new Date();
285
+ expiryDate.setFullYear(expiryDate.getFullYear() + 1);
286
+ // document.cookie = cookieName + '=y; expires=' + expiryDate.toGMTString();
287
+ document.cookie = cookieName + '=' + coVA + '; expires=' + expiryDate.toGMTString() + ';path=/';
288
+ }
289
+
290
+ function _shouldDisplayConsent() {
291
+ // Display the header only if the cookie has not been set.
292
+ return !document.cookie.match(new RegExp(cookieName + '=([^;]+)'));
293
+ }
294
+
295
+ var exports = {};
296
+ exports.showCookieConsentBar = showCookieConsentBar;
297
+ exports.showCookieConsentDialog = showCookieConsentDialog;
298
+ exports.removeCookieConsent = removeCookieConsent;
299
+ return exports;
300
+ })();
301
+
302
+ window.cookieChoices = cookieChoices;
303
+ return cookieChoices;
304
+ })(this);
js/smallbutton/cookiechoices.php ADDED
@@ -0,0 +1 @@
 
1
+ function allowCookie(){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;"+bPos+";padding:2px;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: 3px 7px;font-size: 14px;line-height: 14px;text-decoration: none;text-transform: uppercase;margin:0;margin-bottom:2px;letter-spacing: 0.115em;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: 3px 7px;font-size: 14px;line-height: 14px;text-decoration: none;text-transform: uppercase;margin-right: 20px;margin-bottom:2px;letter-spacing: 0.115em;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 r()&&(htmlM&&c.classList.remove("icc"),allowCookie(),q(),o()),rel&&b.location.reload(),!1}function l(c,d,f,g,h){if(r()){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-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,192 +18,216 @@ msgstr ""
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,35 +235,88 @@ msgstr ""
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 "
242
  "di default."
243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
  #~ msgid "More Info"
245
  #~ msgstr "Più info"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: italy-cookie-choices\n"
4
+ "POT-Creation-Date: 2015-06-08 14:19+0100\n"
5
+ "PO-Revision-Date: 2015-06-08 14:27+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:380
22
  msgid "Italy Cookie Choices Dashboard"
23
  msgstr "Pannello di Italy Cookie Choices"
24
 
25
+ #: italy-cookie-choices.php:394
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:461
30
  msgid "Italy Cookie Choices options page"
31
  msgstr "Pagina opzioni per Italy Cookie Choices"
32
 
33
+ #: italy-cookie-choices.php:471
34
  msgid "Activate"
35
  msgstr "Attiva"
36
 
37
+ #: italy-cookie-choices.php:483
38
  msgid "Where display the banner"
39
  msgstr "Dove mostrare il banner"
40
 
41
+ #: italy-cookie-choices.php:494
42
  msgid "Mouse scroll event"
43
  msgstr "Evento scroll del mouse"
44
 
45
+ #: italy-cookie-choices.php:505
46
+ msgid "Accept on second view"
47
+ msgstr "Accettazione continuando la navigazione"
48
+
49
+ #: italy-cookie-choices.php:516
50
  msgid "Refresh page"
51
  msgstr "Aggiorna la pagina"
52
 
53
+ #: italy-cookie-choices.php:527
54
  msgid "Text to display"
55
  msgstr "Testo da mostrare"
56
 
57
+ #: italy-cookie-choices.php:538
58
  msgid "URL for cookie policy"
59
  msgstr "URL per la cookie policy"
60
 
61
+ #: italy-cookie-choices.php:549
62
  msgid "Anchor text for URL"
63
  msgstr "Anchor text per la URL"
64
 
65
+ #: italy-cookie-choices.php:560
66
  msgid "Button text"
67
  msgstr "Testo per il bottone"
68
 
69
+ #: italy-cookie-choices.php:571
70
  msgid "Style settings"
71
  msgstr "Impostazioni per lo stile"
72
 
73
+ #: italy-cookie-choices.php:581
74
+ msgid "CookieChoices Template"
75
+ msgstr "CookieChoices Template"
76
+
77
+ #: italy-cookie-choices.php:592
78
  msgid "HTML top margin"
79
  msgstr "Margine alto per HTML"
80
 
81
+ #: italy-cookie-choices.php:603
82
  msgid "Banner Background color"
83
  msgstr "Colore di sfondo per il banner"
84
 
85
+ #: italy-cookie-choices.php:614
86
  msgid "Banner text color"
87
  msgstr "Colore per il testo del banner"
88
 
89
+ #: italy-cookie-choices.php:625
90
+ msgid "Advanced settings"
91
  msgstr "Opzioni avanzate"
92
 
93
+ #: italy-cookie-choices.php:635
94
  msgid "Cookie name"
95
  msgstr "Nome del Cookie"
96
 
97
+ #: italy-cookie-choices.php:646
98
  msgid "Cookie value"
99
  msgstr "Valore del Cookie"
100
 
101
+ #: italy-cookie-choices.php:657
102
  msgid "Cookie policy page slug"
103
  msgstr "Slug pagina Cookie policy"
104
 
105
+ #: italy-cookie-choices.php:668
106
  msgid "Open policy in new page"
107
  msgstr "Apri in una nuova pagina"
108
 
109
+ #: italy-cookie-choices.php:679
110
  msgid "Third part cookie block (beta)"
111
  msgstr "Blocco dei cookie di terze parti (Beta)"
112
 
113
+ #: italy-cookie-choices.php:690
114
+ msgid "Function for custom script block"
115
+ msgstr "Script presonalizzati"
116
+
117
+ #: italy-cookie-choices.php:701
118
  msgid "Text message for locked embedded content"
119
  msgstr "Testo per gli embed bloccati"
120
 
121
+ #: italy-cookie-choices.php:712
122
  msgid "Button text to activate locked embedded content"
123
  msgstr "Testo per il bottone di accettazione degli embed bloccati"
124
 
125
+ #: italy-cookie-choices.php:737
126
  msgid "Customize your banner for cookie law"
127
  msgstr "Personalizza il banner per la Cookie Law"
128
 
129
+ #: italy-cookie-choices.php:752
130
  msgid "Display banner for Cookie Law in front-end"
131
+ msgstr ""
132
+ "Visualizza il banner sul tuo sito web, se non attivi non viene mostrato "
133
+ "nulla."
134
 
135
+ #: italy-cookie-choices.php:772
136
+ msgid "Top Bar (Default, Display a top bar with your message)"
137
+ msgstr "Top Bar (Default, Visualizza una top bar con il tuo messaggio)"
138
 
139
+ #: italy-cookie-choices.php:780
140
  msgid "Dialog (Display an overlay with your message)"
141
  msgstr "Dialog (Visualizza un popup con il tuo messaggio)"
142
 
143
+ #: italy-cookie-choices.php:788
144
+ msgid "Bottom Bar (Display a bar in the footer with your message)"
145
+ msgstr "Bottom Bar (Visualizza una barra nel footer con il tuo messaggio)"
146
+
147
+ #: italy-cookie-choices.php:808
148
  msgid "Accepts disclosures on mouse scroll event"
149
  msgstr "Accetta l'informativa sull'evento scroll del mouse"
150
 
151
+ #: italy-cookie-choices.php:828
152
+ msgid "Activate accept on second view"
153
+ msgstr "Attiva l'accettzazione se l'utente continua la navigazione"
154
+
155
+ #: italy-cookie-choices.php:846
156
+ msgid "Refresh page after button click (DEPRECATED)"
157
+ msgstr "Aggiorna la pagina dopo l'accettazione (DEPRECATA)"
158
 
159
+ #: italy-cookie-choices.php:861
160
  msgid "Your short cookie policy"
161
  msgstr "La tua informativa breve"
162
 
163
+ #: italy-cookie-choices.php:864 italy-cookie-choices.php:1175
164
  msgid ""
165
  "People will see this notice only the first time that they enter your site"
166
  msgstr ""
167
  "Le persone visualizzeranno il messaggio la prima volta che visiteranno il "
168
  "tuo sito"
169
 
170
+ #: italy-cookie-choices.php:878
171
  msgid "e.g. http://www.aboutcookies.org/"
172
  msgstr "es: http://www.aboutcookies.org/"
173
 
174
+ #: italy-cookie-choices.php:881
175
  msgid "Insert here the link to your policy page"
176
  msgstr "Inserisci il link alla tua pagina con l'informativa estesa"
177
 
178
+ #: italy-cookie-choices.php:895
179
  msgid "e.g. More Info"
180
  msgstr "es: Maggiori informazioni"
181
 
182
+ #: italy-cookie-choices.php:898
183
  msgid "Insert here anchor text for the link"
184
  msgstr "Inserisci qui l'anchor text per il link"
185
 
186
+ #: italy-cookie-choices.php:912 italy-cookie-choices.php:1191
187
  msgid "e.g. Close"
188
  msgstr "es: Chiudi"
189
 
190
+ #: italy-cookie-choices.php:915 italy-cookie-choices.php:1194
191
  msgid "Insert here name of button (e.g. \"Close\") "
192
  msgstr "Inserisci il testo del link per chiudere il popup/banner (es: Chiudi)"
193
 
194
+ #: italy-cookie-choices.php:932
195
  msgid "Customize your style settings"
196
  msgstr "Personalizza le impostazioni per lo stile"
197
 
198
+ #: italy-cookie-choices.php:948
199
+ msgid "Add a page top margin for info top bar, only for default topbar stile"
200
+ msgstr "Aggiungi un margine in cima alla pagina, solo per la topbar di default"
201
+
202
+ #: italy-cookie-choices.php:971
203
+ msgid "Select the template to use"
204
+ msgstr "Seleziona il template che vuoi usare"
205
 
206
+ #: italy-cookie-choices.php:992
207
  msgid "Custom Background color for banner"
208
  msgstr "Colore di sfondo per il banner"
209
 
210
+ #: italy-cookie-choices.php:1012
211
  msgid "Custom text color for banner"
212
  msgstr "Colore del testo per il banner"
213
 
214
+ #: italy-cookie-choices.php:1029
215
  msgid "Customize your advanced settings"
216
  msgstr "Personalizza le impostazioni avanzate"
217
 
218
+ #: italy-cookie-choices.php:1045
219
  msgid "Insert your cookie name (Default: displayCookieConsent)"
220
  msgstr "Inserisci il nome del tuo Cookie (Default: displayCookieConsent)"
221
 
222
+ #: italy-cookie-choices.php:1064
223
  msgid "Insert your cookie value (Default: y)"
224
  msgstr "Inserisci il valore del tuo Cookie (Default: y)"
225
 
226
+ #: italy-cookie-choices.php:1080
227
  msgid "e.g. your-policy-url.html"
228
  msgstr "es: la-tua-pagina-per-la-cookie-policy"
229
 
230
+ #: italy-cookie-choices.php:1083
231
  msgid ""
232
  "Insert your cookie policy page slug (e.g. your-policy-url), it will display "
233
  "only topbar in your cookie policy page"
235
  "Inserisci lo slug della tua pagina per la Cookie policy, in questa pagina "
236
  "verrà mostrata soltanto la topbar"
237
 
238
+ #: italy-cookie-choices.php:1103
239
  msgid "Open your cookie policy page in new one"
240
  msgstr "Apri la tua pagina per la Cookie policy in una nuova"
241
 
242
+ #: italy-cookie-choices.php:1127
243
+ msgid "Cookie from any embed in your content (Beta) (DEPRECATED)"
244
+ msgstr "Cookie da tutti gli embed nel tuo contenuto (Beta) (DEPRECATA)"
245
 
246
+ #: italy-cookie-choices.php:1132
247
+ msgid "Cookie from any embed in your widget area (Beta) (DEPRECATED)"
248
+ msgstr "Cookie da tutti gli embed nei tuoi widget (Beta) (DEPRECATA)"
249
 
250
+ #: italy-cookie-choices.php:1137
251
+ msgid "Cookie from any embed in all body, except head and footer (Beta)"
252
+ msgstr ""
253
+ "Cookie da tutti gli embed nella tua pagina, eccetto head e footer (Beta)"
254
+
255
+ #: italy-cookie-choices.php:1153
256
+ msgid ""
257
+ "&lt;script src=&quot;http://domain.com/widget-example.js&quot;&gt;&lt;/"
258
+ "script&gt;\n"
259
+ "&lt;---------SEP---------&gt;\n"
260
+ "&lt;script src=&quot;http://otherdomain.com/script-example.js&quot;&gt;&lt;/"
261
+ "script&gt;\n"
262
+ "&lt;---------SEP---------&gt;\n"
263
+ "&lt;script src=&quot;http://lastdomain.com/gadget-example.js&quot;&gt;&lt;/"
264
+ "script&gt;"
265
+ msgstr ""
266
+ "&lt;script src=&quot;http://domain.com/widget-example.js&quot;&gt;&lt;/"
267
+ "script&gt;\n"
268
+ "&lt;---------SEP---------&gt;\n"
269
+ "&lt;script src=&quot;http://otherdomain.com/script-example.js&quot;&gt;&lt;/"
270
+ "script&gt;\n"
271
+ "&lt;---------SEP---------&gt;\n"
272
+ "&lt;script src=&quot;http://lastdomain.com/gadget-example.js&quot;&gt;&lt;/"
273
+ "script&gt;"
274
+
275
+ #: italy-cookie-choices.php:1156
276
+ msgid ""
277
+ "Scripts shown in the head and in the footer does not automatically blocked."
278
+ "<br />Split each script with <strong><em>&lt;---------SEP---------&gt;</em></"
279
+ "strong>"
280
+ msgstr ""
281
+ "Script inseriti nella head e nel footer non automaticmente bloccati.<br /"
282
+ ">Split each script with <strong><em>&lt;---------SEP---------&gt;</em></"
283
+ "strong>"
284
+
285
+ #: italy-cookie-choices.php:1172
286
  msgid "Your lock message for embedded contents inside posts, pages and widgets"
287
  msgstr ""
288
  "Il tuo messaggio da visualizzare nel box per i contenuti bloccati "
289
  "incorporati all'interno di pagine, articoli e widget"
290
 
291
+ #: italy-cookie-choices.php:1263
292
  msgid "Cookie name field it can't be empty. Restored default name."
293
  msgstr ""
294
  "Il campo del nome del Cookie non può essere vuoto. Ripristinato il nome di "
295
  "default."
296
 
297
+ #: italy-cookie-choices.php:1270
298
  msgid "Cookie value field it can't be empty. Restored default value."
299
  msgstr ""
300
  "Il campo del valore del Cookie non può essere vuoto. Ripristinato il valore "
301
  "di default."
302
 
303
+ #~ msgid "Top Bar (Default, Display a top bar wth your message)"
304
+ #~ msgstr "Top Bar (Default, verrà visualizzata una barra in cima alla pagina)"
305
+
306
+ #~ msgid "Refresh page after button click"
307
+ #~ msgstr ""
308
+ #~ "Aggiorna la pagina dopo il click sul link di accettazione (Usare con "
309
+ #~ "parsimonia se hai il sito molto lento, es 5'')"
310
+
311
+ #~ msgid "Add a page top margin for info top bar"
312
+ #~ msgstr ""
313
+ #~ "Aggiunge un margine nella parte alta della pagine solo per la topbar"
314
+
315
+ #~ msgid "Cookie from any embed in your content (Beta)"
316
+ #~ msgstr "Cookie di terze parti nel content di pagine/articoli (Beta)"
317
+
318
+ #~ msgid "Cookie from any embed in your widget area (Beta)"
319
+ #~ msgstr "Cookie di terze parti nei widget (Beta)"
320
+
321
  #~ msgid "More Info"
322
  #~ msgstr "Più info"
lang/italy-cookie-choices-ro_RO.mo ADDED
Binary file
lang/italy-cookie-choices-ro_RO.po ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-08 11:00+0100\n"
6
+ "Last-Translator: Florin Lungu <me@florinlungu.it>\n"
7
+ "Language-Team: info@overclokk.net\n"
8
+ "Language: ro_RO\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.4\n"
13
+ "X-Poedit-Basepath: ..\\\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e\n"
17
+ "X-Poedit-SearchPathExcluded-0: node_modules\n"
18
+ "X-Poedit-SearchPathExcluded-1: .git\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #: italy-cookie-choices.php:230
22
+ msgid "Italy Cookie Choices Dashboard"
23
+ msgstr "Panoul de control Italy Cookie Choices"
24
+
25
+ #: italy-cookie-choices.php:244
26
+ msgid "You do not have sufficient permissions to access this page."
27
+ msgstr "Nu ai destule autorizații pentru a vedea această pagină."
28
+
29
+ #: italy-cookie-choices.php:311
30
+ msgid "Italy Cookie Choices options page"
31
+ msgstr "Pagina cu opțiuni pentru Italy Cookie Choices"
32
+
33
+ #: italy-cookie-choices.php:321
34
+ msgid "Activate"
35
+ msgstr "Activează"
36
+
37
+ #: italy-cookie-choices.php:333
38
+ msgid "Where display the banner"
39
+ msgstr "Unde sa vizualizezi banner-ul"
40
+
41
+ #: italy-cookie-choices.php:344
42
+ msgid "Mouse scroll event"
43
+ msgstr "Acțiune scroll de mouse"
44
+
45
+ #: italy-cookie-choices.php:355
46
+ msgid "Refresh page"
47
+ msgstr "Actualizează pagina"
48
+
49
+ #: italy-cookie-choices.php:366
50
+ msgid "Text to display"
51
+ msgstr "Textul pentru afișare"
52
+
53
+ #: italy-cookie-choices.php:377
54
+ msgid "URL for cookie policy"
55
+ msgstr "URL pentru politica cookie"
56
+
57
+ #: italy-cookie-choices.php:388
58
+ msgid "Anchor text for URL"
59
+ msgstr "Ancora text pentru URL"
60
+
61
+ #: italy-cookie-choices.php:399
62
+ msgid "Button text"
63
+ msgstr "Text-ul pentru buton"
64
+
65
+ #: italy-cookie-choices.php:410
66
+ msgid "Style settings"
67
+ msgstr "Setări de stil"
68
+
69
+ #: italy-cookie-choices.php:420
70
+ msgid "HTML top margin"
71
+ msgstr "Marginea înaltă pentru HTML"
72
+
73
+ #: italy-cookie-choices.php:431
74
+ msgid "Banner Background color"
75
+ msgstr "Culoare de background pentru banner "
76
+
77
+ #: italy-cookie-choices.php:442
78
+ msgid "Banner text color"
79
+ msgstr "Culoarea text-ului din banner"
80
+
81
+ #: italy-cookie-choices.php:453
82
+ msgid "Advanced settings"
83
+ msgstr "Setări avansate"
84
+
85
+ #: italy-cookie-choices.php:463
86
+ msgid "Cookie name"
87
+ msgstr "Nume Cookie"
88
+
89
+ #: italy-cookie-choices.php:474
90
+ msgid "Cookie value"
91
+ msgstr "Valoare Cookie"
92
+
93
+ #: italy-cookie-choices.php:485
94
+ msgid "Cookie policy page slug"
95
+ msgstr "Slug pentru pagina de Politica Cookie"
96
+
97
+ #: italy-cookie-choices.php:496
98
+ msgid "Open policy in new page"
99
+ msgstr "Deschide politica de cookie in o pagina nouă"
100
+
101
+ #: italy-cookie-choices.php:507
102
+ msgid "Third part cookie block (beta)"
103
+ msgstr "Blochează cookie-urile externe"
104
+
105
+ #: italy-cookie-choices.php:518
106
+ msgid "Text message for locked embedded content"
107
+ msgstr "Mesaj pentru conținuturile încorporate blocate"
108
+
109
+ #: italy-cookie-choices.php:529
110
+ msgid "Button text to activate locked embedded content"
111
+ msgstr "Textul butonului pentru a activa conținutul încorporat blocat"
112
+
113
+ #: italy-cookie-choices.php:554
114
+ msgid "Customize your banner for cookie law"
115
+ msgstr "Personalizează banner-ul pentru Cookie Law"
116
+
117
+ #: italy-cookie-choices.php:569
118
+ msgid "Display banner for Cookie Law in front-end"
119
+ msgstr "Visualizează banner-ul in 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, va fi vizualizată o bară în partea înaltă a paginii)"
124
+
125
+ #: italy-cookie-choices.php:597
126
+ msgid "Dialog (Display an overlay with your message)"
127
+ msgstr "Dialog (Visualizează un pop-up cu text-ul tău)"
128
+
129
+ #: italy-cookie-choices.php:615
130
+ msgid "Accepts disclosures on mouse scroll event"
131
+ msgstr "Acceptă informativa cu scroll de mouse"
132
+
133
+ #: italy-cookie-choices.php:633
134
+ msgid "Refresh page after button click"
135
+ msgstr "Actualizează pagina după click pe buton"
136
+
137
+ #: italy-cookie-choices.php:648
138
+ msgid "Your short cookie policy"
139
+ msgstr "Informativa ta scurtă despre cookie"
140
+
141
+ #: italy-cookie-choices.php:651 italy-cookie-choices.php:910
142
+ msgid ""
143
+ "People will see this notice only the first time that they enter your site"
144
+ msgstr "Persoanele v-or vedea mesajul doar prima dată când vizită site-ul tău"
145
+
146
+ #: italy-cookie-choices.php:665
147
+ msgid "e.g. http://www.aboutcookies.org/"
148
+ msgstr "De exemplu: http://www.aboutcookies.org/"
149
+
150
+ #: italy-cookie-choices.php:668
151
+ msgid "Insert here the link to your policy page"
152
+ msgstr "Introduce link-ul la pagina ta cu informativa extinsă"
153
+
154
+ #: italy-cookie-choices.php:682
155
+ msgid "e.g. More Info"
156
+ msgstr "De exemplu: Mai multe informații"
157
+
158
+ #: italy-cookie-choices.php:685
159
+ msgid "Insert here anchor text for the link"
160
+ msgstr "Introdu aici ancora text pentru link"
161
+
162
+ #: italy-cookie-choices.php:699 italy-cookie-choices.php:924
163
+ msgid "e.g. Close"
164
+ msgstr "De exemplu: Închide"
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
+ "Introduce textul link-ului pentru închiderea pop-upului/banner-ului (ex: "
170
+ "Închide)"
171
+
172
+ #: italy-cookie-choices.php:719
173
+ msgid "Customize your style settings"
174
+ msgstr "Personalizează setările de stil"
175
+
176
+ #: italy-cookie-choices.php:735
177
+ msgid "Add a page top margin for info top bar"
178
+ msgstr "Adăuga o margine în partea înaltă a paginii doar pentru bara înaltă"
179
+
180
+ #: italy-cookie-choices.php:756
181
+ msgid "Custom Background color for banner"
182
+ msgstr "Culoare personalizată pentru background-ul bannerului"
183
+
184
+ #: italy-cookie-choices.php:776
185
+ msgid "Custom text color for banner"
186
+ msgstr "Culoare personalizată pentru culoarea textului în banner"
187
+
188
+ #: italy-cookie-choices.php:793
189
+ msgid "Customize your advanced settings"
190
+ msgstr "Personalizează setările avansate"
191
+
192
+ #: italy-cookie-choices.php:809
193
+ msgid "Insert your cookie name (Default: displayCookieConsent)"
194
+ msgstr "Introduceți numele Cookie-ului tău (Default: displayCookieConsent)"
195
+
196
+ #: italy-cookie-choices.php:828
197
+ msgid "Insert your cookie value (Default: y)"
198
+ msgstr "Introduceți valoarea Cookie-ului (Default: y)"
199
+
200
+ #: italy-cookie-choices.php:844
201
+ msgid "e.g. your-policy-url.html"
202
+ msgstr "ex: link-politica-ta.html"
203
+
204
+ #: italy-cookie-choices.php:847
205
+ msgid ""
206
+ "Insert your cookie policy page slug (e.g. your-policy-url), it will display "
207
+ "only topbar in your cookie policy page"
208
+ msgstr ""
209
+ "Introduce slug-ul paginii tale pentru politica cookie-urilor (ex: link-"
210
+ "politica-ta), acesta va vizualiza doar bara din sus în pagina despre "
211
+ "politica cookie-urilor"
212
+
213
+ #: italy-cookie-choices.php:867
214
+ msgid "Open your cookie policy page in new one"
215
+ msgstr "Deschide pagina cookie-urilor în una noua"
216
+
217
+ #: italy-cookie-choices.php:888
218
+ msgid "Cookie from any embed in your content (Beta)"
219
+ msgstr "Cookie din orice conținut încorporat în pagina ta (Beta)"
220
+
221
+ #: italy-cookie-choices.php:893
222
+ msgid "Cookie from any embed in your widget area (Beta)"
223
+ msgstr "Cookie din orice conținut încorporat în zona widget-urilor"
224
+
225
+ #: italy-cookie-choices.php:907
226
+ msgid "Your lock message for embedded contents inside posts, pages and widgets"
227
+ msgstr ""
228
+ "Mesajul tău de blocare pentru conținuturile încorporate în postări, pagini "
229
+ "și widget-uri"
230
+
231
+ #: italy-cookie-choices.php:990
232
+ msgid "Cookie name field it can't be empty. Restored default name."
233
+ msgstr "Numele Cookie-ului nu poate fi lăsat gol. Resetat numele de default."
234
+
235
+ #: italy-cookie-choices.php:997
236
+ msgid "Cookie value field it can't be empty. Restored default value."
237
+ msgstr ""
238
+ "Valoarea Cookie-ului nu poate fi lăsat gol. Resetată valoarea de default"
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-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,210 +19,251 @@ msgstr ""
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 ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Italy Cookie Choices\n"
5
+ "POT-Creation-Date: 2015-06-08 14:19+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:380
23
  msgid "Italy Cookie Choices Dashboard"
24
  msgstr ""
25
 
26
+ #: italy-cookie-choices.php:394
27
  msgid "You do not have sufficient permissions to access this page."
28
  msgstr ""
29
 
30
+ #: italy-cookie-choices.php:461
31
  msgid "Italy Cookie Choices options page"
32
  msgstr ""
33
 
34
+ #: italy-cookie-choices.php:471
35
  msgid "Activate"
36
  msgstr ""
37
 
38
+ #: italy-cookie-choices.php:483
39
  msgid "Where display the banner"
40
  msgstr ""
41
 
42
+ #: italy-cookie-choices.php:494
43
  msgid "Mouse scroll event"
44
  msgstr ""
45
 
46
+ #: italy-cookie-choices.php:505
47
+ msgid "Accept on second view"
48
+ msgstr ""
49
+
50
+ #: italy-cookie-choices.php:516
51
  msgid "Refresh page"
52
  msgstr ""
53
 
54
+ #: italy-cookie-choices.php:527
55
  msgid "Text to display"
56
  msgstr ""
57
 
58
+ #: italy-cookie-choices.php:538
59
  msgid "URL for cookie policy"
60
  msgstr ""
61
 
62
+ #: italy-cookie-choices.php:549
63
  msgid "Anchor text for URL"
64
  msgstr ""
65
 
66
+ #: italy-cookie-choices.php:560
67
  msgid "Button text"
68
  msgstr ""
69
 
70
+ #: italy-cookie-choices.php:571
71
  msgid "Style settings"
72
  msgstr ""
73
 
74
+ #: italy-cookie-choices.php:581
75
+ msgid "CookieChoices Template"
76
+ msgstr ""
77
+
78
+ #: italy-cookie-choices.php:592
79
  msgid "HTML top margin"
80
  msgstr ""
81
 
82
+ #: italy-cookie-choices.php:603
83
  msgid "Banner Background color"
84
  msgstr ""
85
 
86
+ #: italy-cookie-choices.php:614
87
  msgid "Banner text color"
88
  msgstr ""
89
 
90
+ #: italy-cookie-choices.php:625
91
+ msgid "Advanced settings"
92
  msgstr ""
93
 
94
+ #: italy-cookie-choices.php:635
95
  msgid "Cookie name"
96
  msgstr ""
97
 
98
+ #: italy-cookie-choices.php:646
99
  msgid "Cookie value"
100
  msgstr ""
101
 
102
+ #: italy-cookie-choices.php:657
103
  msgid "Cookie policy page slug"
104
  msgstr ""
105
 
106
+ #: italy-cookie-choices.php:668
107
  msgid "Open policy in new page"
108
  msgstr ""
109
 
110
+ #: italy-cookie-choices.php:679
111
  msgid "Third part cookie block (beta)"
112
  msgstr ""
113
 
114
+ #: italy-cookie-choices.php:690
115
+ msgid "Function for custom script block"
116
+ msgstr ""
117
+
118
+ #: italy-cookie-choices.php:701
119
  msgid "Text message for locked embedded content"
120
  msgstr ""
121
 
122
+ #: italy-cookie-choices.php:712
123
  msgid "Button text to activate locked embedded content"
124
  msgstr ""
125
 
126
+ #: italy-cookie-choices.php:737
127
  msgid "Customize your banner for cookie law"
128
  msgstr ""
129
 
130
+ #: italy-cookie-choices.php:752
131
  msgid "Display banner for Cookie Law in front-end"
132
  msgstr ""
133
 
134
+ #: italy-cookie-choices.php:772
135
+ msgid "Top Bar (Default, Display a top bar with your message)"
136
  msgstr ""
137
 
138
+ #: italy-cookie-choices.php:780
139
  msgid "Dialog (Display an overlay with your message)"
140
  msgstr ""
141
 
142
+ #: italy-cookie-choices.php:788
143
+ msgid "Bottom Bar (Display a bar in the footer with your message)"
144
+ msgstr ""
145
+
146
+ #: italy-cookie-choices.php:808
147
  msgid "Accepts disclosures on mouse scroll event"
148
  msgstr ""
149
 
150
+ #: italy-cookie-choices.php:828
151
+ msgid "Activate accept on second view"
152
+ msgstr ""
153
+
154
+ #: italy-cookie-choices.php:846
155
+ msgid "Refresh page after button click (DEPRECATED)"
156
  msgstr ""
157
 
158
+ #: italy-cookie-choices.php:861
159
  msgid "Your short cookie policy"
160
  msgstr ""
161
 
162
+ #: italy-cookie-choices.php:864 italy-cookie-choices.php:1175
163
  msgid "People will see this notice only the first time that they enter your site"
164
  msgstr ""
165
 
166
+ #: italy-cookie-choices.php:878
167
  msgid "e.g. http://www.aboutcookies.org/"
168
  msgstr ""
169
 
170
+ #: italy-cookie-choices.php:881
171
  msgid "Insert here the link to your policy page"
172
  msgstr ""
173
 
174
+ #: italy-cookie-choices.php:895
175
  msgid "e.g. More Info"
176
  msgstr ""
177
 
178
+ #: italy-cookie-choices.php:898
179
  msgid "Insert here anchor text for the link"
180
  msgstr ""
181
 
182
+ #: italy-cookie-choices.php:912 italy-cookie-choices.php:1191
183
  msgid "e.g. Close"
184
  msgstr ""
185
 
186
+ #: italy-cookie-choices.php:915 italy-cookie-choices.php:1194
187
  msgid "Insert here name of button (e.g. \"Close\") "
188
  msgstr ""
189
 
190
+ #: italy-cookie-choices.php:932
191
  msgid "Customize your style settings"
192
  msgstr ""
193
 
194
+ #: italy-cookie-choices.php:948
195
+ msgid "Add a page top margin for info top bar, only for default topbar stile"
196
+ msgstr ""
197
+
198
+ #: italy-cookie-choices.php:971
199
+ msgid "Select the template to use"
200
  msgstr ""
201
 
202
+ #: italy-cookie-choices.php:992
203
  msgid "Custom Background color for banner"
204
  msgstr ""
205
 
206
+ #: italy-cookie-choices.php:1012
207
  msgid "Custom text color for banner"
208
  msgstr ""
209
 
210
+ #: italy-cookie-choices.php:1029
211
  msgid "Customize your advanced settings"
212
  msgstr ""
213
 
214
+ #: italy-cookie-choices.php:1045
215
  msgid "Insert your cookie name (Default: displayCookieConsent)"
216
  msgstr ""
217
 
218
+ #: italy-cookie-choices.php:1064
219
  msgid "Insert your cookie value (Default: y)"
220
  msgstr ""
221
 
222
+ #: italy-cookie-choices.php:1080
223
  msgid "e.g. your-policy-url.html"
224
  msgstr ""
225
 
226
+ #: italy-cookie-choices.php:1083
227
  msgid "Insert your cookie policy page slug (e.g. your-policy-url), it will display only topbar in your cookie policy page"
228
  msgstr ""
229
 
230
+ #: italy-cookie-choices.php:1103
231
  msgid "Open your cookie policy page in new one"
232
  msgstr ""
233
 
234
+ #: italy-cookie-choices.php:1127
235
+ msgid "Cookie from any embed in your content (Beta) (DEPRECATED)"
236
+ msgstr ""
237
+
238
+ #: italy-cookie-choices.php:1132
239
+ msgid "Cookie from any embed in your widget area (Beta) (DEPRECATED)"
240
+ msgstr ""
241
+
242
+ #: italy-cookie-choices.php:1137
243
+ msgid "Cookie from any embed in all body, except head and footer (Beta)"
244
+ msgstr ""
245
+
246
+ #: italy-cookie-choices.php:1153
247
+ msgid ""
248
+ "&lt;script src=&quot;http://domain.com/widget-example.js&quot;&gt;&lt;/script&gt;\n"
249
+ "&lt;---------SEP---------&gt;\n"
250
+ "&lt;script src=&quot;http://otherdomain.com/script-example.js&quot;&gt;&lt;/script&gt;\n"
251
+ "&lt;---------SEP---------&gt;\n"
252
+ "&lt;script src=&quot;http://lastdomain.com/gadget-example.js&quot;&gt;&lt;/script&gt;"
253
  msgstr ""
254
 
255
+ #: italy-cookie-choices.php:1156
256
+ msgid "Scripts shown in the head and in the footer does not automatically blocked.<br />Split each script with <strong><em>&lt;---------SEP---------&gt;</em></strong>"
257
  msgstr ""
258
 
259
+ #: italy-cookie-choices.php:1172
260
  msgid "Your lock message for embedded contents inside posts, pages and widgets"
261
  msgstr ""
262
 
263
+ #: italy-cookie-choices.php:1263
264
  msgid "Cookie name field it can't be empty. Restored default name."
265
  msgstr ""
266
 
267
+ #: italy-cookie-choices.php:1270
268
  msgid "Cookie value field it can't be empty. Restored default value."
269
  msgstr ""
readme.txt CHANGED
@@ -1,10 +1,10 @@
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
 
@@ -21,16 +21,31 @@ 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
@@ -67,6 +82,19 @@ You have to uncheck the `Detect <script> tags in wp_footer` in Async JS and CSS
67
 
68
  == Changelog ==
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  = 2.0.0 =
71
  Release Date: June 5th, 2015
72
 
@@ -154,6 +182,9 @@ Dev time: 50h
154
 
155
  == Upgrade Notice ==
156
 
 
 
 
157
  = 2.0.0 =
158
  New: Third part cookie eraser
159
 
@@ -164,6 +195,7 @@ First release.
164
 
165
  * English: default, always included.
166
  * Italian: Italiano, sempre incluso.
 
167
 
168
  *Note:* This plugins is localized/ translateable by default. This is very important for all users worldwide. So please contribute your language to the plugin to make it even more useful. For translating I recommend the awesome ["Codestyling Localization" plugin](http://wordpress.org/extend/plugins/codestyling-localization/) and for validating the ["Poedit Editor"](http://www.poedit.net/).
169
 
1
  === Italy Cookie Choices ===
2
+ Contributors: overclokk, andreapernici, cardinaleandrea
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.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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
+ Now you can block all cookies with new Third Part Cookie Eraser, activated it and let me now if you have any issue
25
+
26
+ For your custom script (eg: analytics, custom script in footer, social script, ecc) you can add them in new text area `Function for custom script block`, add them one per line and split each script with `<---------SEP--------->`
27
+
28
+ Eg:
29
+ ```
30
+ <script>console.log('Your custom script');</script>
31
+ <---------SEP--------->
32
+ <script async src="//192.168.1.10/italystrap/js.js"></script>
33
+ ```
34
+
35
+ Please, notify any issue on github repository https://github.com/ItalyCookieChoices/italy-cookie-choices/issues
36
 
37
  = Anonymize Analytics IP =
38
 
39
  Add `ga('set', 'anonymizeIp', true);` in your analytics snippet [AnonymizeIP](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#anonymizeIp)
40
 
41
  = Developer =
42
+
43
  (Enea Overclokk)[http://www.overclokk.net/]
44
+
45
  (Andrea Pernici)[https://www.andreapernici.com/]
46
 
47
+ [Andrea Cardinale](https://www.andrea-cardinale.it/)
48
+
49
  == Installation ==
50
 
51
  1. Upload `italy-cookie-choices` folder to the `/wp-content/plugins/` directory
82
 
83
  == Changelog ==
84
 
85
+ = 2.1.0 =
86
+ Release Date: June 5th, 2015
87
+
88
+ Dev time: 100h
89
+
90
+ * Added new third part cookie eraser functionality (much more powerful :-))
91
+ * New options for select banner template
92
+ * Added Bottom bar stile
93
+ * Fixed scroll issue
94
+ * New options for accepting on second view
95
+ * Fixed some issue
96
+ * [Now compatibility with PHP 5.3.29](https://github.com/ItalyCookieChoices/italy-cookie-choices/issues/42)
97
+
98
  = 2.0.0 =
99
  Release Date: June 5th, 2015
100
 
182
 
183
  == Upgrade Notice ==
184
 
185
+ = 2.1.0 =
186
+ More functionality added, please, see the plugin's admin page
187
+
188
  = 2.0.0 =
189
  New: Third part cookie eraser
190
 
195
 
196
  * English: default, always included.
197
  * Italian: Italiano, sempre incluso.
198
+ * Romanian:
199
 
200
  *Note:* This plugins is localized/ translateable by default. This is very important for all users worldwide. So please contribute your language to the plugin to make it even more useful. For translating I recommend the awesome ["Codestyling Localization" plugin](http://wordpress.org/extend/plugins/codestyling-localization/) and for validating the ["Poedit Editor"](http://www.poedit.net/).
201
 
screenshot-1.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file