iubenda Cookie Solution for GDPR - Version 1.15.4

Version Description

  • New: Option to block custom scripts and iframes
  • Tweak: Update and extend the list of blocked scripts including Google Site Search, Google oAuth, Linkedin widgets, PayPal widgets, Freshchat, Uservoice , AdRoll, Olark, Segment, Kissmetrics, Mixpanel, Pingdom, Bing and Elevio
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 iubenda Cookie Solution for GDPR
Version 1.15.4
Comparing to
See all releases

Code changes from version 1.15.3 to 1.15.4

css/admin.css CHANGED
@@ -31,10 +31,22 @@
31
  #iub_parser_engine_container > div:not(:last-child) {
32
  margin-bottom: 10px;
33
  }
34
- #iubenda-tabs #contextual-help-back {
 
 
 
 
 
 
 
 
 
35
  right: 0;
36
- border-top: 1px solid #e1e1e1;
37
- border-bottom: 1px solid #e1e1e1;
 
 
 
38
  }
39
  #iubenda-tabs .help-tab-content {
40
  margin-right: 0;
31
  #iub_parser_engine_container > div:not(:last-child) {
32
  margin-bottom: 10px;
33
  }
34
+ #iubenda-tabs .contextual-help-wrap {
35
+ overflow: auto;
36
+ margin: 0;
37
+ position: relative;
38
+ }
39
+ #iubenda-tabs .contextual-help-back {
40
+ position: absolute;
41
+ top: 0;
42
+ bottom: 0;
43
+ left: 150px;
44
  right: 0;
45
+ border: 1px solid #e1e1e1;
46
+ background: #f6fbfd;
47
+ }
48
+ #iubenda-tabs .contextual-help-columns {
49
+ position: relative;
50
  }
51
  #iubenda-tabs .help-tab-content {
52
  margin-right: 0;
iubenda-cookie-class/README.md CHANGED
@@ -1,7 +1,5 @@
1
  # Read Me
2
 
3
- [![GitHub release](https://img.shields.io/github/release/iubenda/iubenda-cookie-class.svg)](https://github.com/iubenda/iubenda-cookie-class/releases/tag/2.0.3)
4
-
5
  ***PHP class for the iubenda cookie law solution***
6
 
7
  If you have European users you need to obtain and manage consent for the use of most cookies.
@@ -22,19 +20,49 @@ This class works with the iubenda Cookie Law Solution and allows you to block th
22
 
23
  The class is currently able to detect and automatically block the following scripts:
24
 
25
- * Facebook widgets
26
- * Twitter widgets
27
- * Google+ widgets
28
  * Google AdSense
29
- * YouTube widgets
 
 
 
 
 
 
 
 
30
  * Vimeo
31
- * AddThis widgets
32
  * ShareThis widgets
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  It also allows the manual blocking of all other resources without direct intervention on the actual scripts. Read more about the [prior blocking functionality here](https://www.iubenda.com/en/help/1229-cookie-law-solution-preventing-code-execution-that-could-install-cookies).
 
35
  * * *
36
- Here is an example of the PHP class integration:
37
 
 
38
  ```php
39
  function iubenda_system( $html, $type = 'page' ) {
40
  if ( empty( $html ) )
@@ -73,11 +101,12 @@ As a last step the script invokes the `get_converted_page()` of the Page object
73
  ## Changelog
74
 
75
  ##### 3.1.0
76
- * Tweak: Update and extend the list of blocked scripts
 
77
 
78
  ##### 3.0.0
79
  * Tweak: Update and unify iubenda parsing engine
80
 
81
  ### License
82
 
83
- This project is licensed under the GPl 3 license.
1
  # Read Me
2
 
 
 
3
  ***PHP class for the iubenda cookie law solution***
4
 
5
  If you have European users you need to obtain and manage consent for the use of most cookies.
20
 
21
  The class is currently able to detect and automatically block the following scripts:
22
 
23
+ * Google Analytics
24
+ * Google Maps
 
25
  * Google AdSense
26
+ * Google ReCaptcha
27
+ * Google Site Search
28
+ * Google Tag Manager
29
+ * Google oAuth
30
+ * Google+ widgets
31
+ * Twitter widgets
32
+ * Facebook widgets
33
+ * Facebook Comments
34
+ * YouTube
35
  * Vimeo
36
+ * Linkedin widgets
37
  * ShareThis widgets
38
+ * Instagram widgets
39
+ * AddThis widgets
40
+ * Pinterest widgets
41
+ * PayPal widgets
42
+ * Disqus
43
+ * Optimizely
44
+ * Neodata
45
+ * Criteo
46
+ * Outbrain
47
+ * Headway
48
+ * Codepen
49
+ * Freshchat
50
+ * Uservoice
51
+ * AdRoll
52
+ * Olark
53
+ * Segment
54
+ * Kissmetrics
55
+ * Mixpanel
56
+ * Pingdom
57
+ * Bing
58
+ * Elevio
59
+
60
 
61
  It also allows the manual blocking of all other resources without direct intervention on the actual scripts. Read more about the [prior blocking functionality here](https://www.iubenda.com/en/help/1229-cookie-law-solution-preventing-code-execution-that-could-install-cookies).
62
+
63
  * * *
 
64
 
65
+ Here is an example of the PHP class integration:
66
  ```php
67
  function iubenda_system( $html, $type = 'page' ) {
68
  if ( empty( $html ) )
101
  ## Changelog
102
 
103
  ##### 3.1.0
104
+ * Tweak: Update and extend the list of blocked scripts including Google Site Search, Google oAuth, Linkedin widgets, PayPal widgets, Pinterest, AddThis, Disqus, Optimizely, Neodata, Criteo, Outbrain, Headway, Codepen, Freshchat, Uservoice
105
+ , AdRoll, Olark, Segment, Kissmetrics, Mixpanel, Pingdom, Bing and Elevio
106
 
107
  ##### 3.0.0
108
  * Tweak: Update and unify iubenda parsing engine
109
 
110
  ### License
111
 
112
+ This project is licensed under the GPl 3 license.
iubenda-cookie-class/iubenda.class.php CHANGED
@@ -28,23 +28,32 @@ class iubendaParser {
28
  public $auto_script_tags = array(
29
  // google
30
  'apis.google.com/js/plusone.js',
 
31
  'apis.google.com/js/platform.js',
 
 
32
  'googlesyndication.com/pagead/js/adsbygoogle.js',
33
  'googlesyndication.com/pagead/show_ads.js',
34
  'googleadservices.com/pagead/conversion.js',
 
35
  'google.com/recaptcha/',
36
  'www.youtube.com/iframe_api',
37
  'window.adsbygoogle',
38
  // twitter
39
  'platform.twitter.com/widgets.js',
 
40
  // facebook
41
  'connect.facebook.net',
 
 
42
  // sharethis
43
  'sharethis.com/button/buttons.js',
44
  // addthis
45
  'addthis.com/js/',
46
  // disqus
47
  'disqus.com/embed.js',
 
 
48
  // scorecardresearch
49
  'scorecardresearch.com/beacon.js',
50
  // neodata
@@ -70,17 +79,44 @@ class iubendaParser {
70
  // codepen
71
  'codepen.io',
72
  // freshchat
73
- 'wchat.freshchat.com'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  );
75
 
76
  // iframes
77
  public $auto_iframe_tags = array(
78
  // google
79
- 'youtube.com',
80
  'apis.google.com',
81
  'maps.google.it/maps',
82
  'www.google.com/maps/embed',
 
83
  'window.adsbygoogle',
 
 
84
  // twitter
85
  'platform.twitter.com',
86
  // facebook
28
  public $auto_script_tags = array(
29
  // google
30
  'apis.google.com/js/plusone.js',
31
+ 'apis.google.com/js/client/plusone.js',
32
  'apis.google.com/js/platform.js',
33
+ 'apis.google.com/js/api.js', // oauth
34
+ 'cse.google.com/cse.js', // site search
35
  'googlesyndication.com/pagead/js/adsbygoogle.js',
36
  'googlesyndication.com/pagead/show_ads.js',
37
  'googleadservices.com/pagead/conversion.js',
38
+ 'googletagmanager.com/gtm.js',
39
  'google.com/recaptcha/',
40
  'www.youtube.com/iframe_api',
41
  'window.adsbygoogle',
42
  // twitter
43
  'platform.twitter.com/widgets.js',
44
+ 'static.ads-twitter.com',
45
  // facebook
46
  'connect.facebook.net',
47
+ // instagram
48
+ 'instawidget.net/js/instawidget.js',
49
  // sharethis
50
  'sharethis.com/button/buttons.js',
51
  // addthis
52
  'addthis.com/js/',
53
  // disqus
54
  'disqus.com/embed.js',
55
+ // linkedin
56
+ 'platform.linkedin.com/in.js',
57
  // scorecardresearch
58
  'scorecardresearch.com/beacon.js',
59
  // neodata
79
  // codepen
80
  'codepen.io',
81
  // freshchat
82
+ 'wchat.freshchat.com',
83
+ // uservoice
84
+ 'widget.uservoice.com',
85
+ 'UserVoice.push',
86
+ // adroll
87
+ 's.adroll.com',
88
+ // olark
89
+ 'static.olark.com/jsclient/loader0.js',
90
+ // cxense
91
+ 'scdn.cxense.com',
92
+ // segment
93
+ 'cdn.segment.io/analytics.js',
94
+ 'cdn.segment.com/analytics.js',
95
+ // kissmetrics
96
+ 'i.kissmetrics.com/i.js',
97
+ // mixpanel
98
+ 'cdn.mxpnl.com',
99
+ // pingdom
100
+ 'rum-static.pingdom.net/prum.min.js',
101
+ // bing
102
+ 'bat.bing.com',
103
+ // elevio
104
+ 'cdn.elev.io',
105
+ // paypal
106
+ 'paypalobjects.com/js/external/api.js', // paypal login
107
+ 'paypalobjects.com/api/checkout.js', // paypal checkout
108
  );
109
 
110
  // iframes
111
  public $auto_iframe_tags = array(
112
  // google
 
113
  'apis.google.com',
114
  'maps.google.it/maps',
115
  'www.google.com/maps/embed',
116
+ 'googletagmanager.com/ns.html',
117
  'window.adsbygoogle',
118
+ // youtube
119
+ 'youtube.com',
120
  // twitter
121
  'platform.twitter.com',
122
  // facebook
iubenda_cookie_solution.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: iubenda Cookie Solution for GDPR
4
  Plugin URI: https://www.iubenda.com
5
  Description: iubenda Cookie Solution allows you to make your website GDPR compliant and manage all aspects of cookie law on WP.
6
- Version: 1.15.3
7
  Author: iubenda
8
  Author URI: https://www.iubenda.com
9
  License: MIT License
@@ -35,7 +35,7 @@ $iubenda_cookie_law_solution = new iubenda_Cookie_Law_Solution();
35
  * iubenda_Cookie_Law_Solution final class.
36
  *
37
  * @class iubenda_Cookie_Law_Solution
38
- * @version 1.15.2
39
  */
40
  class iubenda_Cookie_Law_Solution {
41
 
@@ -49,9 +49,11 @@ class iubenda_Cookie_Law_Solution {
49
  'output_feed' => true, // iubenda_output_feed
50
  'code_default' => false, // iubenda-code-default,
51
  'menu_position' => 'topmenu',
 
 
52
  'deactivation' => false
53
  );
54
- public $version = '1.15.3';
55
  public $no_html = false;
56
  public $links = array();
57
  public $multilang = false;
@@ -74,7 +76,6 @@ class iubenda_Cookie_Law_Solution {
74
  add_action( 'admin_init', array( $this, 'admin_page_redirect' ), 20 );
75
  add_action( 'admin_menu', array( $this, 'admin_menu_options' ) );
76
  add_action( 'admin_notices', array( $this, 'settings_errors' ) );
77
- // add_action( 'admin_menu', array( $this, 'save_options' ), 9 );
78
  add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
79
  add_action( 'plugins_loaded', array( $this, 'init' ) );
80
  add_action( 'after_setup_theme', array( $this, 'register_shortcode' ) );
@@ -383,32 +384,35 @@ class iubenda_Cookie_Law_Solution {
383
  $iubenda_code .= $this->options['code_' . ICL_LANGUAGE_CODE];
384
 
385
  // no code for current language, use default
386
- if ( ! $iubenda_code ) {
387
  $iubenda_code .= $this->options['code_default'];
388
- }
389
  } else
390
  $iubenda_code .= $this->options['code_default'];
391
 
392
- $iubenda_code .= "\n
393
- <script>
394
- var iCallback = function() {};
395
-
396
- if ( typeof _iub.csConfiguration != 'undefined' ) {
397
- if ( 'callback' in _iub.csConfiguration ) {
398
- if ( 'onConsentGiven' in _iub.csConfiguration.callback )
399
- iCallback = _iub.csConfiguration.callback.onConsentGiven;
400
 
401
- _iub.csConfiguration.callback.onConsentGiven = function() {
402
- iCallback();
403
-
404
- /* separator */
405
- jQuery('noscript._no_script_iub').each(function (a, b) { var el = jQuery(b); el.after(el.html()); });
 
 
 
 
 
 
406
  }
407
  }
408
- }
409
- </script>";
410
 
411
- echo $iubenda_code;
 
412
  }
413
 
414
  /**
@@ -461,7 +465,7 @@ class iubenda_Cookie_Law_Solution {
461
  return $output;
462
 
463
  // check whether to run parser or not
464
- if ( ! $this->options['parse'] || ( iubendaParser::consent_given() && $this->options['skip_parsing'] ) || iubendaParser::bot_detected() || $_POST || $this->no_html )
465
  return $output;
466
 
467
  $startime = microtime( true );
@@ -469,7 +473,7 @@ class iubenda_Cookie_Law_Solution {
469
 
470
  // experimental class
471
  if ( $this->options['parser_engine'] == 'new' ) {
472
- $iubenda = new iubendaParser( mb_convert_encoding( $output, 'HTML-ENTITIES', 'UTF-8' ), array( 'type' => 'faster' ) );
473
 
474
  // render output
475
  $output = $iubenda->parse();
@@ -478,7 +482,7 @@ class iubenda_Cookie_Law_Solution {
478
  $output .= '<!-- Parsed with iubenda experimental class in ' . round( microtime( true ) - $startime, 4 ) . ' sec. -->';
479
  // default class
480
  } else {
481
- $iubenda = new iubendaParser( $output, array( 'type' => 'page' ) );
482
 
483
  // render output
484
  $output = $iubenda->parse();
@@ -501,6 +505,7 @@ class iubenda_Cookie_Law_Solution {
501
  add_settings_section( 'iubenda_cookie_law_solution', '', '', 'iubenda_cookie_law_solution' );
502
  add_settings_field( 'iub_code', __( 'Code', 'iubenda-cookie-law-solution' ), array( $this, 'iub_code' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
503
  add_settings_field( 'iub_parse', __( 'Scripts blocking', 'iubenda-cookie-law-solution' ), array( $this, 'iub_parse' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
 
504
  add_settings_field( 'iub_ctype', __( 'Content type', 'iubenda-cookie-law-solution' ), array( $this, 'iub_ctype' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
505
  add_settings_field( 'iub_output_feed', __( 'RSS feed', 'iubenda-cookie-law-solution' ), array( $this, 'iub_output_feed' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
506
  add_settings_field( 'iub_menu_position', __( 'Menu position', 'iubenda-cookie-law-solution' ), array( $this, 'iub_menu_position' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
@@ -529,14 +534,14 @@ class iubenda_Cookie_Law_Solution {
529
  // multilang support
530
  if ( $this->multilang && ! empty( $this->languages ) ) {
531
  echo '
532
- <div id="contextual-help-wrap" class="hidden" tabindex="-1" style="display: block;">
533
- <div id="contextual-help-back"></div>
534
- <div id="contextual-help-columns">
535
  <div class="contextual-help-tabs">
536
  <ul>';
537
  foreach ( $this->languages as $lang_id => $lang_name ) {
538
  echo '
539
- <li id="tab-link-overview" class="' . ( $this->lang_default == $lang_id ? 'active' : '' ) . '">
540
  <a href="#tab-panel-' . $lang_id . '" aria-controls="tab-panel-' . $lang_id . '">' . $lang_name . '</a>
541
  </li>';
542
  }
@@ -544,7 +549,7 @@ class iubenda_Cookie_Law_Solution {
544
  </ul>
545
  </div>
546
 
547
- <div class="contextual-help-tabs-wrap">';
548
  foreach ( $this->languages as $lang_id => $lang_name ) {
549
  // get code for the language
550
  $code = ! empty( $this->options['code_' . $lang_id] ) ? html_entity_decode( trim( wp_kses( $this->options['code_' . $lang_id], $this->get_allowed_html() ) ) ) : '';
@@ -570,6 +575,40 @@ class iubenda_Cookie_Law_Solution {
570
  }
571
  }
572
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
573
  /**
574
  * Parsing option.
575
  *
@@ -677,6 +716,28 @@ class iubenda_Cookie_Law_Solution {
677
  $input['code_default'] = ! empty( $input['code_default'] ) ? wp_kses( $input['code_default'], $this->get_allowed_html() ) : '';
678
  }
679
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
680
  add_settings_error( 'iub_settings_errors', 'iub_settings_updated', __( 'Settings saved.', 'iubenda-cookie-law-solution' ), 'updated' );
681
  // reset options
682
  } elseif ( isset( $_POST['reset_iubenda_options'] ) ) {
3
  Plugin Name: iubenda Cookie Solution for GDPR
4
  Plugin URI: https://www.iubenda.com
5
  Description: iubenda Cookie Solution allows you to make your website GDPR compliant and manage all aspects of cookie law on WP.
6
+ Version: 1.15.4
7
  Author: iubenda
8
  Author URI: https://www.iubenda.com
9
  License: MIT License
35
  * iubenda_Cookie_Law_Solution final class.
36
  *
37
  * @class iubenda_Cookie_Law_Solution
38
+ * @version 1.15.3
39
  */
40
  class iubenda_Cookie_Law_Solution {
41
 
49
  'output_feed' => true, // iubenda_output_feed
50
  'code_default' => false, // iubenda-code-default,
51
  'menu_position' => 'topmenu',
52
+ 'custom_scripts' => array(),
53
+ 'custom_iframes' => array(),
54
  'deactivation' => false
55
  );
56
+ public $version = '1.15.4';
57
  public $no_html = false;
58
  public $links = array();
59
  public $multilang = false;
76
  add_action( 'admin_init', array( $this, 'admin_page_redirect' ), 20 );
77
  add_action( 'admin_menu', array( $this, 'admin_menu_options' ) );
78
  add_action( 'admin_notices', array( $this, 'settings_errors' ) );
 
79
  add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
80
  add_action( 'plugins_loaded', array( $this, 'init' ) );
81
  add_action( 'after_setup_theme', array( $this, 'register_shortcode' ) );
384
  $iubenda_code .= $this->options['code_' . ICL_LANGUAGE_CODE];
385
 
386
  // no code for current language, use default
387
+ if ( ! $iubenda_code )
388
  $iubenda_code .= $this->options['code_default'];
 
389
  } else
390
  $iubenda_code .= $this->options['code_default'];
391
 
392
+ $iubenda_code = trim( $iubenda_code );
393
+
394
+ if ( $iubenda_code !== '' ) {
395
+ $iubenda_code .= "\n
396
+ <script>
397
+ var iCallback = function() {};
 
 
398
 
399
+ if ( typeof _iub.csConfiguration != 'undefined' ) {
400
+ if ( 'callback' in _iub.csConfiguration ) {
401
+ if ( 'onConsentGiven' in _iub.csConfiguration.callback )
402
+ iCallback = _iub.csConfiguration.callback.onConsentGiven;
403
+
404
+ _iub.csConfiguration.callback.onConsentGiven = function() {
405
+ iCallback();
406
+
407
+ /* separator */
408
+ jQuery('noscript._no_script_iub').each(function (a, b) { var el = jQuery(b); el.after(el.html()); });
409
+ }
410
  }
411
  }
412
+ </script>";
 
413
 
414
+ echo $iubenda_code;
415
+ }
416
  }
417
 
418
  /**
465
  return $output;
466
 
467
  // check whether to run parser or not
468
+ if ( ! ( $this->options['parse'] && ( ! iubendaParser::consent_given() || ( iubendaParser::consent_given() && ! $this->options['skip_parsing'] ) ) ) || iubendaParser::bot_detected() || $_POST || $this->no_html )
469
  return $output;
470
 
471
  $startime = microtime( true );
473
 
474
  // experimental class
475
  if ( $this->options['parser_engine'] == 'new' ) {
476
+ $iubenda = new iubendaParser( mb_convert_encoding( $output, 'HTML-ENTITIES', 'UTF-8' ), array( 'type' => 'faster', 'scripts' => $this->options['custom_scripts'], 'iframes' => $this->options['custom_iframes'] ) );
477
 
478
  // render output
479
  $output = $iubenda->parse();
482
  $output .= '<!-- Parsed with iubenda experimental class in ' . round( microtime( true ) - $startime, 4 ) . ' sec. -->';
483
  // default class
484
  } else {
485
+ $iubenda = new iubendaParser( $output, array( 'type' => 'page', 'scripts' => $this->options['custom_scripts'], 'iframes' => $this->options['custom_iframes'] ) );
486
 
487
  // render output
488
  $output = $iubenda->parse();
505
  add_settings_section( 'iubenda_cookie_law_solution', '', '', 'iubenda_cookie_law_solution' );
506
  add_settings_field( 'iub_code', __( 'Code', 'iubenda-cookie-law-solution' ), array( $this, 'iub_code' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
507
  add_settings_field( 'iub_parse', __( 'Scripts blocking', 'iubenda-cookie-law-solution' ), array( $this, 'iub_parse' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
508
+ add_settings_field( 'iub_custom_scripts', __( 'Custom scripts', 'iubenda-cookie-law-solution' ), array( $this, 'iub_custom_scripts' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
509
  add_settings_field( 'iub_ctype', __( 'Content type', 'iubenda-cookie-law-solution' ), array( $this, 'iub_ctype' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
510
  add_settings_field( 'iub_output_feed', __( 'RSS feed', 'iubenda-cookie-law-solution' ), array( $this, 'iub_output_feed' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
511
  add_settings_field( 'iub_menu_position', __( 'Menu position', 'iubenda-cookie-law-solution' ), array( $this, 'iub_menu_position' ), 'iubenda_cookie_law_solution', 'iubenda_cookie_law_solution' );
534
  // multilang support
535
  if ( $this->multilang && ! empty( $this->languages ) ) {
536
  echo '
537
+ <div id="contextual-help-wrap" class="contextual-help-wrap hidden" tabindex="-1" style="display: block;">
538
+ <div id="contextual-help-back" class="contextual-help-back"></div>
539
+ <div id="contextual-help-columns" class="contextual-help-columns">
540
  <div class="contextual-help-tabs">
541
  <ul>';
542
  foreach ( $this->languages as $lang_id => $lang_name ) {
543
  echo '
544
+ <li class="' . ( $this->lang_default == $lang_id ? 'active' : '' ) . '">
545
  <a href="#tab-panel-' . $lang_id . '" aria-controls="tab-panel-' . $lang_id . '">' . $lang_name . '</a>
546
  </li>';
547
  }
549
  </ul>
550
  </div>
551
 
552
+ <div id="contextual-help-tabs-wrap" class="contextual-help-tabs-wrap">';
553
  foreach ( $this->languages as $lang_id => $lang_name ) {
554
  // get code for the language
555
  $code = ! empty( $this->options['code_' . $lang_id] ) ? html_entity_decode( trim( wp_kses( $this->options['code_' . $lang_id], $this->get_allowed_html() ) ) ) : '';
575
  }
576
  }
577
 
578
+ /**
579
+ * Custom scripts option.
580
+ *
581
+ * @return void
582
+ */
583
+ public function iub_custom_scripts() {
584
+ echo '
585
+ <div id="contextual-help-wrap-2" class="contextual-help-wrap hidden" tabindex="-1" style="display: block;">
586
+ <div id="contextual-help-back-2" class="contextual-help-back"></div>
587
+ <div id="contextual-help-columns-2" class="contextual-help-columns">
588
+ <div class="contextual-help-tabs">
589
+ <ul>
590
+ <li class="active">
591
+ <a href="#tab-panel-scripts" aria-controls="tab-panel-scripts">' . esc_html__( 'Scripts', 'iubenda-cookie-law-solution' ) . '</a>
592
+ </li>
593
+ <li>
594
+ <a href="#tab-panel-iframes" aria-controls="tab-panel-iframes">' . esc_html__( 'Iframes', 'iubenda-cookie-law-solution' ) . '</a>
595
+ </li>
596
+ </ul>
597
+ </div>
598
+ <div id="contextual-help-tabs-wrap-2" class="contextual-help-tabs-wrap">
599
+ <div id="tab-panel-scripts" class="help-tab-content active">
600
+ <textarea name="iubenda_cookie_law_solution[custom_scripts]" class="large-text" cols="50" rows="10">' . esc_textarea( implode( "\n", $this->options['custom_scripts'] ) ) . '</textarea>
601
+ <p class="description">' . __( 'Enter a list of custom scripts (one per line).', 'iubenda-cookie-law-solution' ) . '</p>
602
+ </div>
603
+ <div id="tab-panel-iframes" class="help-tab-content">
604
+ <textarea name="iubenda_cookie_law_solution[custom_iframes]" class="large-text" cols="50" rows="10">' . esc_textarea( implode( "\n", $this->options['custom_iframes'] ) ) . '</textarea>
605
+ <p class="description">' . __( 'Enter a list of custom iframes (one per line).', 'iubenda-cookie-law-solution' ) . '</p>
606
+ </div>
607
+ </div>
608
+ </div>
609
+ </div>';
610
+ }
611
+
612
  /**
613
  * Parsing option.
614
  *
716
  $input['code_default'] = ! empty( $input['code_default'] ) ? wp_kses( $input['code_default'], $this->get_allowed_html() ) : '';
717
  }
718
 
719
+ // scripts
720
+ if ( isset( $input['custom_scripts'] ) ) {
721
+ $input['custom_scripts'] = trim( $input['custom_scripts'] );
722
+
723
+ if ( ! empty( $input['custom_scripts'] ) )
724
+ $input['custom_scripts'] = array_map( 'trim', explode( "\n", str_replace( "\r", '', $input['custom_scripts'] ) ) );
725
+ else
726
+ $input['custom_scripts'] = array();
727
+ } else
728
+ $input['custom_scripts'] = array();
729
+
730
+ // iframes
731
+ if ( isset( $input['custom_iframes'] ) ) {
732
+ $input['custom_iframes'] = trim( $input['custom_iframes'] );
733
+
734
+ if ( ! empty( $input['custom_iframes'] ) )
735
+ $input['custom_iframes'] = array_map( 'trim', explode( "\n", str_replace( "\r", '', $input['custom_iframes'] ) ) );
736
+ else
737
+ $input['custom_iframes'] = array();
738
+ } else
739
+ $input['custom_iframes'] = array();
740
+
741
  add_settings_error( 'iub_settings_errors', 'iub_settings_updated', __( 'Settings saved.', 'iubenda-cookie-law-solution' ), 'updated' );
742
  // reset options
743
  } elseif ( isset( $_POST['reset_iubenda_options'] ) ) {
js/admin.js CHANGED
@@ -1,21 +1,48 @@
1
  ( function ( $ ) {
2
 
3
- $( document ).ready( function () {
4
-
5
- // read more option
6
- $( '#iub_parse' ).change( function () {
7
- if ( $( this ).is(':checked') ) {
8
- $( '#iub_parser_engine_container' ).slideDown( 'fast' );
9
- } else {
10
- $( '#iub_parser_engine_container' ).slideUp( 'fast' );
11
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  } );
13
-
14
- // move notices
15
- var errors = $( '.settings-error' ).detach();
16
-
17
- $( '.iubenda-link' ).after( errors );
18
-
19
- } );
20
 
21
  } )( jQuery );
1
  ( function ( $ ) {
2
 
3
+ $( document ).ready( function () {
4
+
5
+ // read more option
6
+ $( '#iub_parse' ).change( function () {
7
+ if ( $( this ).is( ':checked' ) ) {
8
+ $( '#iub_parser_engine_container' ).slideDown( 'fast' );
9
+ } else {
10
+ $( '#iub_parser_engine_container' ).slideUp( 'fast' );
11
+ }
12
+ } );
13
+
14
+ // move notices
15
+ var errors = $( '.settings-error' ).detach();
16
+
17
+ $( '.iubenda-link' ).after( errors );
18
+
19
+ /**
20
+ * Help tabs.
21
+ */
22
+ $( '.contextual-help-tabs a' ).off( 'click' ).click( function ( e ) {
23
+ var link = $( this ),
24
+ panel,
25
+ panelParent;
26
+
27
+ e.preventDefault();
28
+
29
+ // don't do anything if the click is for the tab already showing.
30
+ if ( link.is( '.active a' ) )
31
+ return false;
32
+
33
+ panelParent = link.closest( '.contextual-help-wrap' );
34
+
35
+ // links
36
+ $( panelParent ).find( '.contextual-help-tabs .active' ).removeClass( 'active' );
37
+ link.parent( 'li' ).addClass( 'active' );
38
+
39
+ panel = $( link.attr( 'href' ) );
40
+
41
+ // panels
42
+ $( panelParent ).find( '.help-tab-content' ).not( panel ).removeClass( 'active' ).hide();
43
+ panel.addClass( 'active' ).show();
44
+ } );
45
+
46
  } );
 
 
 
 
 
 
 
47
 
48
  } )( jQuery );
languages/iubenda-cookie-law-solution-it_IT.mo CHANGED
Binary file
languages/iubenda-cookie-law-solution-it_IT.po CHANGED
@@ -1,59 +1,71 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Iubenda Cookie Solution\n"
4
- "POT-Creation-Date: 2018-09-28 09:53+0200\n"
5
- "PO-Revision-Date: 2018-09-28 10:45+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: it\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 2.1.1\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: __\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: iubenda_cookie_solution.php:502
20
  msgid "Code"
21
  msgstr "Codice"
22
 
23
- #: iubenda_cookie_solution.php:503
24
  msgid "Scripts blocking"
25
  msgstr "Blocco preventivo dei codici"
26
 
27
- #: iubenda_cookie_solution.php:504
 
 
 
 
28
  msgid "Content type"
29
  msgstr "Tipo di contenuto"
30
 
31
- #: iubenda_cookie_solution.php:505
32
  msgid "RSS feed"
33
  msgstr "Feed RSS"
34
 
35
- #: iubenda_cookie_solution.php:506
36
  msgid "Menu position"
37
  msgstr "Posizione menu"
38
 
39
- #: iubenda_cookie_solution.php:507
40
  msgid "Deactivation"
41
  msgstr "Disattivazione"
42
 
43
- #: iubenda_cookie_solution.php:557
44
  #, php-format
45
  msgid "Enter the iubenda code for %s."
46
  msgstr "Inserire il codice di iubenda per %s."
47
 
48
- #: iubenda_cookie_solution.php:568
49
  msgid "Enter the iubenda code."
50
  msgstr "Inserire il codice di iubenda."
51
 
52
- #: iubenda_cookie_solution.php:581
 
 
 
 
 
 
 
 
53
  msgid "Automatically block scripts detected by the plugin."
54
  msgstr "Blocca automaticamente gli script rilevati dal plugin."
55
 
56
- #: iubenda_cookie_solution.php:582
57
  #, php-format
58
  msgid ""
59
  "see <a href=\"%s\" target=\"_blank\">our documentation</a> for the list of "
@@ -62,26 +74,26 @@ msgstr ""
62
  "visita <a href=\"%s\" target=\"_blank\">la nostra documentazione</a> per la "
63
  "lista degli script rilevati automaticamente dal plugin."
64
 
65
- #: iubenda_cookie_solution.php:585
66
  msgid "Primary"
67
  msgstr "Prima"
68
 
69
- #: iubenda_cookie_solution.php:586
70
  msgid "Secondary"
71
  msgstr "Seconda"
72
 
73
- #: iubenda_cookie_solution.php:587
74
  msgid "Select parsing engine."
75
  msgstr "Seleziona il motore di parsing."
76
 
77
- #: iubenda_cookie_solution.php:590
78
  msgid ""
79
  "Leave scripts untouched on the page if the user has already given consent"
80
  msgstr ""
81
  "Lascia gli script intatti sulla pagina se l'utente ha già prestato il "
82
  "consenso"
83
 
84
- #: iubenda_cookie_solution.php:591
85
  msgid ""
86
  "improves performance, highly recommended, to be deactivated only if your "
87
  "site uses a caching system"
@@ -89,7 +101,7 @@ msgstr ""
89
  "migliora le prestazioni, altamente consigliato, da disattivare solo qualora "
90
  "il tuo sito utilizzi un sistema di cache"
91
 
92
- #: iubenda_cookie_solution.php:605
93
  msgid ""
94
  "Restrict the plugin to run only for requests that have \"Content-type: "
95
  "text / html\" (recommended)"
@@ -97,19 +109,19 @@ msgstr ""
97
  "Restringi l'esecuzione del plugin alle sole richieste che presentano "
98
  "\"Content-type: text/html\" (consigliato)"
99
 
100
- #: iubenda_cookie_solution.php:617
101
  msgid "Do not run the plugin inside the RSS feed (recommended)"
102
  msgstr "Non eseguire il plugin all'interno dei Feed RSS (consigliato)"
103
 
104
- #: iubenda_cookie_solution.php:629
105
  msgid "Top menu"
106
  msgstr "Menu principale"
107
 
108
- #: iubenda_cookie_solution.php:630
109
  msgid "Submenu"
110
  msgstr "Sottomenu"
111
 
112
- #: iubenda_cookie_solution.php:631
113
  msgid ""
114
  "Select whether to display iubenda in a top admin menu or the Settings "
115
  "submenu."
@@ -117,24 +129,24 @@ msgstr ""
117
  "Scegli se visualizzare iubenda in una voce di menu principale del pannello "
118
  "admin o in un sottomenu della scheda Impostazioni."
119
 
120
- #: iubenda_cookie_solution.php:643
121
  msgid "Delete all plugin data upon deactivation?"
122
  msgstr ""
123
  "Vuoi eliminare tutti i dati del plugin al momento della disattivazione?"
124
 
125
- #: iubenda_cookie_solution.php:680
126
  msgid "Settings saved."
127
  msgstr "Impostazioni salvate."
128
 
129
- #: iubenda_cookie_solution.php:691
130
  msgid "Settings restored to defaults."
131
  msgstr "Impostazioni di default ripristinate."
132
 
133
- #: iubenda_cookie_solution.php:737
134
  msgid "You don't have permission to access this page."
135
  msgstr "Non disponi dell'autorizzazione per accedere a questa pagina."
136
 
137
- #: iubenda_cookie_solution.php:746
138
  msgid ""
139
  "This plugin is the easiest and most comprehensive way to adapt your "
140
  "WordPress site to the European cookie law. Upon your user's first visit, the "
@@ -152,11 +164,11 @@ msgstr ""
152
  "il semplice scroll (il metodo più efficace) e la riattivazione senza il "
153
  "refresh della pagina."
154
 
155
- #: iubenda_cookie_solution.php:749
156
  msgid "Would you like to know more about the cookie law?"
157
  msgstr "Vuoi capire di più sulla cookie law?"
158
 
159
- #: iubenda_cookie_solution.php:750
160
  #, php-format
161
  msgid ""
162
  "Read our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">complete "
@@ -165,11 +177,11 @@ msgstr ""
165
  "Consulta la nostra <a href=\"%s\" class=\"iubenda-url\" target=\"_blank"
166
  "\">guida completa alla cookie law</a>"
167
 
168
- #: iubenda_cookie_solution.php:753
169
  msgid "What is the full functionality of the plugin?"
170
  msgstr "Qual è la completa funzionalità del plugin?"
171
 
172
- #: iubenda_cookie_solution.php:754
173
  #, php-format
174
  msgid ""
175
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">plugin page."
@@ -178,11 +190,11 @@ msgstr ""
178
  "Visita la <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">nostra "
179
  "pagina dedicata</a> al plugin"
180
 
181
- #: iubenda_cookie_solution.php:757
182
  msgid "Enter the iubenda code for the Cookie Solution below."
183
  msgstr "Inserisci qui sotto il codice di iubenda per la Cookie Solution."
184
 
185
- #: iubenda_cookie_solution.php:758
186
  #, php-format
187
  msgid ""
188
  "In order to run the plugin, you need to enter the iubenda code that "
@@ -195,15 +207,15 @@ msgstr ""
195
  "codice può essere generato su www.iubenda.com, <a href=\"%s\" class="
196
  "\"iubenda-url\" target=\"_blank\">seguendo questa guida.</a>"
197
 
198
- #: iubenda_cookie_solution.php:769
199
  msgid "Reset to defaults"
200
  msgstr "Ripristina le impostazioni di default"
201
 
202
- #: iubenda_cookie_solution.php:775
203
  msgid "Need support for this plugin?"
204
  msgstr "Hai bisogno di supporto su questo plugin?"
205
 
206
- #: iubenda_cookie_solution.php:776
207
  #, php-format
208
  msgid ""
209
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">support "
@@ -212,13 +224,13 @@ msgstr ""
212
  "Visita il nostro <a href=\"%s\" class=\"iubenda-url\" target=\"_blank"
213
  "\">forum di supporto</a>"
214
 
215
- #: iubenda_cookie_solution.php:779
216
  msgid "Want to try a beta version of this plugin with the latest features?"
217
  msgstr ""
218
  "Vuoi provare una versione Beta di questo plugin, con le funzionalità più "
219
  "recenti?"
220
 
221
- #: iubenda_cookie_solution.php:780
222
  #, php-format
223
  msgid ""
224
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Iubenda Cookie Solution\n"
4
+ "POT-Creation-Date: 2018-12-05 13:47+0100\n"
5
+ "PO-Revision-Date: 2019-01-08 10:45+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: it\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 2.2\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: __\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: iubenda_cookie_solution.php:503
20
  msgid "Code"
21
  msgstr "Codice"
22
 
23
+ #: iubenda_cookie_solution.php:504
24
  msgid "Scripts blocking"
25
  msgstr "Blocco preventivo dei codici"
26
 
27
+ #: iubenda_cookie_solution.php:505
28
+ msgid "Custom scripts"
29
+ msgstr "Scripts personalizzati"
30
+
31
+ #: iubenda_cookie_solution.php:506
32
  msgid "Content type"
33
  msgstr "Tipo di contenuto"
34
 
35
+ #: iubenda_cookie_solution.php:507
36
  msgid "RSS feed"
37
  msgstr "Feed RSS"
38
 
39
+ #: iubenda_cookie_solution.php:508
40
  msgid "Menu position"
41
  msgstr "Posizione menu"
42
 
43
+ #: iubenda_cookie_solution.php:509
44
  msgid "Deactivation"
45
  msgstr "Disattivazione"
46
 
47
+ #: iubenda_cookie_solution.php:559
48
  #, php-format
49
  msgid "Enter the iubenda code for %s."
50
  msgstr "Inserire il codice di iubenda per %s."
51
 
52
+ #: iubenda_cookie_solution.php:570
53
  msgid "Enter the iubenda code."
54
  msgstr "Inserire il codice di iubenda."
55
 
56
+ #: iubenda_cookie_solution.php:598
57
+ msgid "Enter a list of custom scripts (one per line)."
58
+ msgstr "Inserire una lista di script personalizzati (uno per riga)."
59
+
60
+ #: iubenda_cookie_solution.php:602
61
+ msgid "Enter a list of custom iframes (one per line)."
62
+ msgstr "Inserire un elenco di iframe personalizzati (uno per riga)."
63
+
64
+ #: iubenda_cookie_solution.php:617
65
  msgid "Automatically block scripts detected by the plugin."
66
  msgstr "Blocca automaticamente gli script rilevati dal plugin."
67
 
68
+ #: iubenda_cookie_solution.php:618
69
  #, php-format
70
  msgid ""
71
  "see <a href=\"%s\" target=\"_blank\">our documentation</a> for the list of "
74
  "visita <a href=\"%s\" target=\"_blank\">la nostra documentazione</a> per la "
75
  "lista degli script rilevati automaticamente dal plugin."
76
 
77
+ #: iubenda_cookie_solution.php:621
78
  msgid "Primary"
79
  msgstr "Prima"
80
 
81
+ #: iubenda_cookie_solution.php:622
82
  msgid "Secondary"
83
  msgstr "Seconda"
84
 
85
+ #: iubenda_cookie_solution.php:623
86
  msgid "Select parsing engine."
87
  msgstr "Seleziona il motore di parsing."
88
 
89
+ #: iubenda_cookie_solution.php:626
90
  msgid ""
91
  "Leave scripts untouched on the page if the user has already given consent"
92
  msgstr ""
93
  "Lascia gli script intatti sulla pagina se l'utente ha già prestato il "
94
  "consenso"
95
 
96
+ #: iubenda_cookie_solution.php:627
97
  msgid ""
98
  "improves performance, highly recommended, to be deactivated only if your "
99
  "site uses a caching system"
101
  "migliora le prestazioni, altamente consigliato, da disattivare solo qualora "
102
  "il tuo sito utilizzi un sistema di cache"
103
 
104
+ #: iubenda_cookie_solution.php:641
105
  msgid ""
106
  "Restrict the plugin to run only for requests that have \"Content-type: "
107
  "text / html\" (recommended)"
109
  "Restringi l'esecuzione del plugin alle sole richieste che presentano "
110
  "\"Content-type: text/html\" (consigliato)"
111
 
112
+ #: iubenda_cookie_solution.php:653
113
  msgid "Do not run the plugin inside the RSS feed (recommended)"
114
  msgstr "Non eseguire il plugin all'interno dei Feed RSS (consigliato)"
115
 
116
+ #: iubenda_cookie_solution.php:665
117
  msgid "Top menu"
118
  msgstr "Menu principale"
119
 
120
+ #: iubenda_cookie_solution.php:666
121
  msgid "Submenu"
122
  msgstr "Sottomenu"
123
 
124
+ #: iubenda_cookie_solution.php:667
125
  msgid ""
126
  "Select whether to display iubenda in a top admin menu or the Settings "
127
  "submenu."
129
  "Scegli se visualizzare iubenda in una voce di menu principale del pannello "
130
  "admin o in un sottomenu della scheda Impostazioni."
131
 
132
+ #: iubenda_cookie_solution.php:679
133
  msgid "Delete all plugin data upon deactivation?"
134
  msgstr ""
135
  "Vuoi eliminare tutti i dati del plugin al momento della disattivazione?"
136
 
137
+ #: iubenda_cookie_solution.php:738
138
  msgid "Settings saved."
139
  msgstr "Impostazioni salvate."
140
 
141
+ #: iubenda_cookie_solution.php:749
142
  msgid "Settings restored to defaults."
143
  msgstr "Impostazioni di default ripristinate."
144
 
145
+ #: iubenda_cookie_solution.php:795
146
  msgid "You don't have permission to access this page."
147
  msgstr "Non disponi dell'autorizzazione per accedere a questa pagina."
148
 
149
+ #: iubenda_cookie_solution.php:804
150
  msgid ""
151
  "This plugin is the easiest and most comprehensive way to adapt your "
152
  "WordPress site to the European cookie law. Upon your user's first visit, the "
164
  "il semplice scroll (il metodo più efficace) e la riattivazione senza il "
165
  "refresh della pagina."
166
 
167
+ #: iubenda_cookie_solution.php:807
168
  msgid "Would you like to know more about the cookie law?"
169
  msgstr "Vuoi capire di più sulla cookie law?"
170
 
171
+ #: iubenda_cookie_solution.php:808
172
  #, php-format
173
  msgid ""
174
  "Read our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">complete "
177
  "Consulta la nostra <a href=\"%s\" class=\"iubenda-url\" target=\"_blank"
178
  "\">guida completa alla cookie law</a>"
179
 
180
+ #: iubenda_cookie_solution.php:811
181
  msgid "What is the full functionality of the plugin?"
182
  msgstr "Qual è la completa funzionalità del plugin?"
183
 
184
+ #: iubenda_cookie_solution.php:812
185
  #, php-format
186
  msgid ""
187
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">plugin page."
190
  "Visita la <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">nostra "
191
  "pagina dedicata</a> al plugin"
192
 
193
+ #: iubenda_cookie_solution.php:815
194
  msgid "Enter the iubenda code for the Cookie Solution below."
195
  msgstr "Inserisci qui sotto il codice di iubenda per la Cookie Solution."
196
 
197
+ #: iubenda_cookie_solution.php:816
198
  #, php-format
199
  msgid ""
200
  "In order to run the plugin, you need to enter the iubenda code that "
207
  "codice può essere generato su www.iubenda.com, <a href=\"%s\" class="
208
  "\"iubenda-url\" target=\"_blank\">seguendo questa guida.</a>"
209
 
210
+ #: iubenda_cookie_solution.php:827
211
  msgid "Reset to defaults"
212
  msgstr "Ripristina le impostazioni di default"
213
 
214
+ #: iubenda_cookie_solution.php:833
215
  msgid "Need support for this plugin?"
216
  msgstr "Hai bisogno di supporto su questo plugin?"
217
 
218
+ #: iubenda_cookie_solution.php:834
219
  #, php-format
220
  msgid ""
221
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">support "
224
  "Visita il nostro <a href=\"%s\" class=\"iubenda-url\" target=\"_blank"
225
  "\">forum di supporto</a>"
226
 
227
+ #: iubenda_cookie_solution.php:837
228
  msgid "Want to try a beta version of this plugin with the latest features?"
229
  msgstr ""
230
  "Vuoi provare una versione Beta di questo plugin, con le funzionalità più "
231
  "recenti?"
232
 
233
+ #: iubenda_cookie_solution.php:838
234
  #, php-format
235
  msgid ""
236
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank"
languages/iubenda-cookie-law-solution.pot CHANGED
@@ -2,128 +2,140 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Iubenda Cookie Solution\n"
5
- "POT-Creation-Date: 2018-09-25 13:30+0200\n"
6
  "PO-Revision-Date: 2015-08-12 10:36+0200\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \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 2.1.1\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: __\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: iubenda_cookie_solution.php:502
20
  msgid "Code"
21
  msgstr ""
22
 
23
- #: iubenda_cookie_solution.php:503
24
  msgid "Scripts blocking"
25
  msgstr ""
26
 
27
- #: iubenda_cookie_solution.php:504
 
 
 
 
28
  msgid "Content type"
29
  msgstr ""
30
 
31
- #: iubenda_cookie_solution.php:505
32
  msgid "RSS feed"
33
  msgstr ""
34
 
35
- #: iubenda_cookie_solution.php:506
36
  msgid "Menu position"
37
  msgstr ""
38
 
39
- #: iubenda_cookie_solution.php:507
40
  msgid "Deactivation"
41
  msgstr ""
42
 
43
- #: iubenda_cookie_solution.php:557
44
  #, php-format
45
  msgid "Enter the iubenda code for %s."
46
  msgstr ""
47
 
48
- #: iubenda_cookie_solution.php:568
49
  msgid "Enter the iubenda code."
50
  msgstr ""
51
 
52
- #: iubenda_cookie_solution.php:581
 
 
 
 
 
 
 
 
53
  msgid "Automatically block scripts detected by the plugin."
54
  msgstr ""
55
 
56
- #: iubenda_cookie_solution.php:582
57
  #, php-format
58
  msgid ""
59
  "see <a href=\"%s\" target=\"_blank\">our documentation</a> for the list of "
60
  "detected scripts."
61
  msgstr ""
62
 
63
- #: iubenda_cookie_solution.php:585
64
  msgid "Primary"
65
  msgstr ""
66
 
67
- #: iubenda_cookie_solution.php:586
68
  msgid "Secondary"
69
  msgstr ""
70
 
71
- #: iubenda_cookie_solution.php:587
72
  msgid "Select parsing engine."
73
  msgstr ""
74
 
75
- #: iubenda_cookie_solution.php:590
76
  msgid ""
77
  "Leave scripts untouched on the page if the user has already given consent"
78
  msgstr ""
79
 
80
- #: iubenda_cookie_solution.php:591
81
  msgid ""
82
  "improves performance, highly recommended, to be deactivated only if your "
83
  "site uses a caching system"
84
  msgstr ""
85
 
86
- #: iubenda_cookie_solution.php:605
87
  msgid ""
88
  "Restrict the plugin to run only for requests that have \"Content-type: "
89
  "text / html\" (recommended)"
90
  msgstr ""
91
 
92
- #: iubenda_cookie_solution.php:617
93
  msgid "Do not run the plugin inside the RSS feed (recommended)"
94
  msgstr ""
95
 
96
- #: iubenda_cookie_solution.php:629
97
  msgid "Top menu"
98
  msgstr ""
99
 
100
- #: iubenda_cookie_solution.php:630
101
  msgid "Submenu"
102
  msgstr ""
103
 
104
- #: iubenda_cookie_solution.php:631
105
  msgid ""
106
  "Select whether to display iubenda in a top admin menu or the Settings "
107
  "submenu."
108
  msgstr ""
109
 
110
- #: iubenda_cookie_solution.php:643
111
  msgid "Delete all plugin data upon deactivation?"
112
  msgstr ""
113
 
114
- #: iubenda_cookie_solution.php:680
115
  msgid "Settings saved."
116
  msgstr ""
117
 
118
- #: iubenda_cookie_solution.php:691
119
  msgid "Settings restored to defaults."
120
  msgstr ""
121
 
122
- #: iubenda_cookie_solution.php:737
123
  msgid "You don't have permission to access this page."
124
  msgstr ""
125
 
126
- #: iubenda_cookie_solution.php:746
127
  msgid ""
128
  "This plugin is the easiest and most comprehensive way to adapt your "
129
  "WordPress site to the European cookie law. Upon your user's first visit, "
@@ -134,33 +146,33 @@ msgid ""
134
  "script reactivation without refreshing the page."
135
  msgstr ""
136
 
137
- #: iubenda_cookie_solution.php:749
138
  msgid "Would you like to know more about the cookie law?"
139
  msgstr ""
140
 
141
- #: iubenda_cookie_solution.php:750
142
  #, php-format
143
  msgid ""
144
  "Read our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">complete "
145
  "guide to the cookie law.</a>"
146
  msgstr ""
147
 
148
- #: iubenda_cookie_solution.php:753
149
  msgid "What is the full functionality of the plugin?"
150
  msgstr ""
151
 
152
- #: iubenda_cookie_solution.php:754
153
  #, php-format
154
  msgid ""
155
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">plugin "
156
  "page.</a>"
157
  msgstr ""
158
 
159
- #: iubenda_cookie_solution.php:757
160
  msgid "Enter the iubenda code for the Cookie Solution below."
161
  msgstr ""
162
 
163
- #: iubenda_cookie_solution.php:758
164
  #, php-format
165
  msgid ""
166
  "In order to run the plugin, you need to enter the iubenda code that "
@@ -169,26 +181,26 @@ msgid ""
169
  "class=\"iubenda-url\" target=\"_blank\">this guide.</a>"
170
  msgstr ""
171
 
172
- #: iubenda_cookie_solution.php:769
173
  msgid "Reset to defaults"
174
  msgstr ""
175
 
176
- #: iubenda_cookie_solution.php:775
177
  msgid "Need support for this plugin?"
178
  msgstr ""
179
 
180
- #: iubenda_cookie_solution.php:776
181
  #, php-format
182
  msgid ""
183
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">support "
184
  "forum.</a>"
185
  msgstr ""
186
 
187
- #: iubenda_cookie_solution.php:779
188
  msgid "Want to try a beta version of this plugin with the latest features?"
189
  msgstr ""
190
 
191
- #: iubenda_cookie_solution.php:780
192
  #, php-format
193
  msgid ""
194
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank"
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Iubenda Cookie Solution\n"
5
+ "POT-Creation-Date: 2018-12-05 13:47+0100\n"
6
  "PO-Revision-Date: 2015-08-12 10:36+0200\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \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 2.2\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: __\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: iubenda_cookie_solution.php:503
20
  msgid "Code"
21
  msgstr ""
22
 
23
+ #: iubenda_cookie_solution.php:504
24
  msgid "Scripts blocking"
25
  msgstr ""
26
 
27
+ #: iubenda_cookie_solution.php:505
28
+ msgid "Custom scripts"
29
+ msgstr ""
30
+
31
+ #: iubenda_cookie_solution.php:506
32
  msgid "Content type"
33
  msgstr ""
34
 
35
+ #: iubenda_cookie_solution.php:507
36
  msgid "RSS feed"
37
  msgstr ""
38
 
39
+ #: iubenda_cookie_solution.php:508
40
  msgid "Menu position"
41
  msgstr ""
42
 
43
+ #: iubenda_cookie_solution.php:509
44
  msgid "Deactivation"
45
  msgstr ""
46
 
47
+ #: iubenda_cookie_solution.php:559
48
  #, php-format
49
  msgid "Enter the iubenda code for %s."
50
  msgstr ""
51
 
52
+ #: iubenda_cookie_solution.php:570
53
  msgid "Enter the iubenda code."
54
  msgstr ""
55
 
56
+ #: iubenda_cookie_solution.php:598
57
+ msgid "Enter a list of custom scripts (one per line)."
58
+ msgstr ""
59
+
60
+ #: iubenda_cookie_solution.php:602
61
+ msgid "Enter a list of custom iframes (one per line)."
62
+ msgstr ""
63
+
64
+ #: iubenda_cookie_solution.php:617
65
  msgid "Automatically block scripts detected by the plugin."
66
  msgstr ""
67
 
68
+ #: iubenda_cookie_solution.php:618
69
  #, php-format
70
  msgid ""
71
  "see <a href=\"%s\" target=\"_blank\">our documentation</a> for the list of "
72
  "detected scripts."
73
  msgstr ""
74
 
75
+ #: iubenda_cookie_solution.php:621
76
  msgid "Primary"
77
  msgstr ""
78
 
79
+ #: iubenda_cookie_solution.php:622
80
  msgid "Secondary"
81
  msgstr ""
82
 
83
+ #: iubenda_cookie_solution.php:623
84
  msgid "Select parsing engine."
85
  msgstr ""
86
 
87
+ #: iubenda_cookie_solution.php:626
88
  msgid ""
89
  "Leave scripts untouched on the page if the user has already given consent"
90
  msgstr ""
91
 
92
+ #: iubenda_cookie_solution.php:627
93
  msgid ""
94
  "improves performance, highly recommended, to be deactivated only if your "
95
  "site uses a caching system"
96
  msgstr ""
97
 
98
+ #: iubenda_cookie_solution.php:641
99
  msgid ""
100
  "Restrict the plugin to run only for requests that have \"Content-type: "
101
  "text / html\" (recommended)"
102
  msgstr ""
103
 
104
+ #: iubenda_cookie_solution.php:653
105
  msgid "Do not run the plugin inside the RSS feed (recommended)"
106
  msgstr ""
107
 
108
+ #: iubenda_cookie_solution.php:665
109
  msgid "Top menu"
110
  msgstr ""
111
 
112
+ #: iubenda_cookie_solution.php:666
113
  msgid "Submenu"
114
  msgstr ""
115
 
116
+ #: iubenda_cookie_solution.php:667
117
  msgid ""
118
  "Select whether to display iubenda in a top admin menu or the Settings "
119
  "submenu."
120
  msgstr ""
121
 
122
+ #: iubenda_cookie_solution.php:679
123
  msgid "Delete all plugin data upon deactivation?"
124
  msgstr ""
125
 
126
+ #: iubenda_cookie_solution.php:738
127
  msgid "Settings saved."
128
  msgstr ""
129
 
130
+ #: iubenda_cookie_solution.php:749
131
  msgid "Settings restored to defaults."
132
  msgstr ""
133
 
134
+ #: iubenda_cookie_solution.php:795
135
  msgid "You don't have permission to access this page."
136
  msgstr ""
137
 
138
+ #: iubenda_cookie_solution.php:804
139
  msgid ""
140
  "This plugin is the easiest and most comprehensive way to adapt your "
141
  "WordPress site to the European cookie law. Upon your user's first visit, "
146
  "script reactivation without refreshing the page."
147
  msgstr ""
148
 
149
+ #: iubenda_cookie_solution.php:807
150
  msgid "Would you like to know more about the cookie law?"
151
  msgstr ""
152
 
153
+ #: iubenda_cookie_solution.php:808
154
  #, php-format
155
  msgid ""
156
  "Read our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">complete "
157
  "guide to the cookie law.</a>"
158
  msgstr ""
159
 
160
+ #: iubenda_cookie_solution.php:811
161
  msgid "What is the full functionality of the plugin?"
162
  msgstr ""
163
 
164
+ #: iubenda_cookie_solution.php:812
165
  #, php-format
166
  msgid ""
167
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">plugin "
168
  "page.</a>"
169
  msgstr ""
170
 
171
+ #: iubenda_cookie_solution.php:815
172
  msgid "Enter the iubenda code for the Cookie Solution below."
173
  msgstr ""
174
 
175
+ #: iubenda_cookie_solution.php:816
176
  #, php-format
177
  msgid ""
178
  "In order to run the plugin, you need to enter the iubenda code that "
181
  "class=\"iubenda-url\" target=\"_blank\">this guide.</a>"
182
  msgstr ""
183
 
184
+ #: iubenda_cookie_solution.php:827
185
  msgid "Reset to defaults"
186
  msgstr ""
187
 
188
+ #: iubenda_cookie_solution.php:833
189
  msgid "Need support for this plugin?"
190
  msgstr ""
191
 
192
+ #: iubenda_cookie_solution.php:834
193
  #, php-format
194
  msgid ""
195
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank\">support "
196
  "forum.</a>"
197
  msgstr ""
198
 
199
+ #: iubenda_cookie_solution.php:837
200
  msgid "Want to try a beta version of this plugin with the latest features?"
201
  msgstr ""
202
 
203
+ #: iubenda_cookie_solution.php:838
204
  #, php-format
205
  msgid ""
206
  "Visit our <a href=\"%s\" class=\"iubenda-url\" target=\"_blank"
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link:
4
  Tags: cookies, cookie law, cookie policy, cookie banner, cookie block, privacy policy, cookie consent, privacy
5
  Requires at least: 4.0
6
  Requires PHP: 5.2.4
7
- Tested up to: 4.9.8
8
- Stable tag: 1.15.3
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
@@ -25,14 +25,42 @@ This plugin works with the iubenda Cookie Law Solution and allows to block the m
25
 
26
  **The plugin is currently capable of automatically detecting and blocking the following scripts:**
27
 
28
- * Facebook widgets
29
- * Twitter widgets
30
- * Google+ widgets
31
  * Google AdSense
32
- * YouTube widgets
33
- * AddThis widgets
 
 
 
 
 
 
 
 
 
34
  * ShareThis widgets
35
- * Google Maps widgets
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  **Some background information**
38
 
@@ -113,8 +141,13 @@ We will be very happy to receive feedback here: [Uservoice forum](http://support
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
116
  = 1.15.3 =
117
- * Tweak: Update and extend the list of blocked scripts
118
 
119
  = 1.15.2 =
120
  * Tweak: Update and unify iubenda parsing engine
@@ -308,5 +341,5 @@ We will be very happy to receive feedback here: [Uservoice forum](http://support
308
 
309
  == Upgrade Notice ==
310
 
311
- = 1.15.3 =
312
- * Tweak: Update and extend the list of blocked scripts
4
  Tags: cookies, cookie law, cookie policy, cookie banner, cookie block, privacy policy, cookie consent, privacy
5
  Requires at least: 4.0
6
  Requires PHP: 5.2.4
7
+ Tested up to: 5.0.2
8
+ Stable tag: 1.15.4
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
25
 
26
  **The plugin is currently capable of automatically detecting and blocking the following scripts:**
27
 
28
+ * Google Analytics
29
+ * Google Maps
 
30
  * Google AdSense
31
+ * Google ReCaptcha
32
+ * Google Site Search
33
+ * Google Tag Manager
34
+ * Google oAuth
35
+ * Google+ widgets
36
+ * Twitter widgets
37
+ * Facebook widgets
38
+ * Facebook Comments
39
+ * YouTube
40
+ * Vimeo
41
+ * Linkedin widgets
42
  * ShareThis widgets
43
+ * Instagram widgets
44
+ * AddThis widgets
45
+ * Pinterest widgets
46
+ * PayPal widgets
47
+ * Disqus
48
+ * Optimizely
49
+ * Neodata
50
+ * Criteo
51
+ * Outbrain
52
+ * Headway
53
+ * Codepen
54
+ * Freshchat
55
+ * Uservoice
56
+ * AdRoll
57
+ * Olark
58
+ * Segment
59
+ * Kissmetrics
60
+ * Mixpanel
61
+ * Pingdom
62
+ * Bing
63
+ * Elevio
64
 
65
  **Some background information**
66
 
141
 
142
  == Changelog ==
143
 
144
+ = 1.15.4 =
145
+ * New: Option to block custom scripts and iframes
146
+ * Tweak: Update and extend the list of blocked scripts including Google Site Search, Google oAuth, Linkedin widgets, PayPal widgets, Freshchat, Uservoice
147
+ , AdRoll, Olark, Segment, Kissmetrics, Mixpanel, Pingdom, Bing and Elevio
148
+
149
  = 1.15.3 =
150
+ * Tweak: Update and extend the list of blocked scripts including Pinterest, AddThis, Disqus, Optimizely, Neodata, Criteo, Outbrain, Headway and Codepen
151
 
152
  = 1.15.2 =
153
  * Tweak: Update and unify iubenda parsing engine
341
 
342
  == Upgrade Notice ==
343
 
344
+ = 1.15.4 =
345
+ * New: Option to block custom scripts and iframes