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

Version Description

= 2.2.1 = Fixed some issue, see the changelog for more informations

= 2.1.0 = More functionality added, please, see the plugin's admin page

= 2.0.0 = New: Third part cookie eraser

= 1.0.0 = First release.

Download this release

Release Info

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

Code changes from version 2.2.1 to 2.2.2

admin/class-italy-cookie-choices-admin.php CHANGED
@@ -875,7 +875,7 @@ if ( !class_exists( 'Italy_Cookie_Choices_Admin' ) ){
875
  <input type="text" id="italy_cookie_choices[slug]" name="italy_cookie_choices[slug]" value="<?php echo esc_attr( $slug ); ?>" placeholder="<?php _e( 'e.g. your-policy-url.html', 'italy-cookie-choices' ); ?>" size="70" />
876
  <br>
877
  <label for="italy_cookie_choices[slug]">
878
- <?php _e( 'Insert your cookie policy page slug (e.g. your-policy-url), it will display only topbar in your cookie policy page and the scroll and the second view will be deactivated in that page.', 'italy-cookie-choices' ); ?>
879
  </label>
880
 
881
  <?php
875
  <input type="text" id="italy_cookie_choices[slug]" name="italy_cookie_choices[slug]" value="<?php echo esc_attr( $slug ); ?>" placeholder="<?php _e( 'e.g. your-policy-url.html', 'italy-cookie-choices' ); ?>" size="70" />
876
  <br>
877
  <label for="italy_cookie_choices[slug]">
878
+ <?php _e( 'Insert your cookie policy page slug (e.g. for the page http://www.miodominio.it/privacy-e-cookie/ the slug is <strong>privacy-e-cookie</strong>).<br>In this way it will display only the topbar in your cookie policy page, the scroll and the second view will be deactivated in that page too.', 'italy-cookie-choices' ); ?>
879
  </label>
880
 
881
  <?php
classes/class-italy-cookie-choices-front-end.php CHANGED
@@ -81,19 +81,19 @@ if ( !class_exists( 'Italy_Cookie_Choices_Front_End' ) ){
81
 
82
  if(
83
  // if is an HTML request (alternative methods???)
84
- (strpos($_SERVER["HTTP_ACCEPT"],'html') !== false) &&
85
  //if the page isn't privacy page
86
- ($_SERVER['REQUEST_URI']!=$this->slug) &&
87
  //if HTTP_REFERER is set
88
- (isset($_SERVER['HTTP_REFERER'])) &&
89
  //if isn't refresh
90
- (parse_url($_SERVER['HTTP_REFERER'], PHP_URL_PATH)!=$_SERVER['REQUEST_URI']) &&
91
  //if referrer is not privacy page (to be evaluated)
92
- (parse_url($_SERVER['HTTP_REFERER'], PHP_URL_PATH)!=$this->slug) &&
93
  //if the cookie is not already set
94
- (!isset( $_COOKIE[ $this->options['cookie_name'] ] )) &&
95
  //if the referer is in the same domain
96
- (parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST)==$_SERVER['HTTP_HOST']) &&
97
  // If the secondView options is checked
98
  ( $secondViewOpt )
99
  ) {
@@ -660,7 +660,7 @@ if ( !class_exists( 'Italy_Cookie_Choices_Front_End' ) ){
660
  * Noscript snippet in case browser has JavaScript disabled
661
  * @var string
662
  */
663
- $noscript = '<noscript><style scoped>html{margin-top:35px}</style><div id="cookieChoiceInfo"><span>' . $text . '</span><a href="' . $url . '" class="' . $infoClass . '" target="_blank">' . $anchor_text . '</a></div></noscript>';
664
 
665
  /**
666
  * Select wich file to use in debug mode
@@ -669,7 +669,7 @@ if ( !class_exists( 'Italy_Cookie_Choices_Front_End' ) ){
669
  // $fileJS = ( WP_DEBUG ) ? '/js/' . $js_template . '/cookiechoices.js' : '/js/' . $js_template . '/cookiechoices.php' ;
670
  $fileJS = ( WP_DEBUG ) ? '/js/default/cookiechoices.js' : '/js/default/cookiechoices.php' ;
671
 
672
- $output_html = '<!-- Italy Cookie Choices -->' . '<div><style scoped>' . $style . '</style><script>' . $jsVariables . file_get_contents( ITALY_COOKIE_CHOICES_DIRNAME . $fileJS ) . $banner . '</script></div>' . $noscript;
673
 
674
  echo apply_filters( 'icc_output_html', $output_html );
675
 
81
 
82
  if(
83
  // if is an HTML request (alternative methods???)
84
+ ( strpos( $_SERVER["HTTP_ACCEPT"],'html' ) !== false ) &&
85
  //if the page isn't privacy page
86
+ ( $_SERVER['REQUEST_URI'] != $this->slug ) &&
87
  //if HTTP_REFERER is set
88
+ ( isset( $_SERVER['HTTP_REFERER'] ) ) &&
89
  //if isn't refresh
90
+ ( parse_url($_SERVER['HTTP_REFERER'], PHP_URL_PATH) != $_SERVER['REQUEST_URI'] ) &&
91
  //if referrer is not privacy page (to be evaluated)
92
+ ( parse_url($_SERVER['HTTP_REFERER'], PHP_URL_PATH ) != $this->slug ) &&
93
  //if the cookie is not already set
94
+ ( !isset( $_COOKIE[ $this->options['cookie_name'] ] ) ) &&
95
  //if the referer is in the same domain
96
+ ( parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_HOST ) == $_SERVER['HTTP_HOST'] ) &&
97
  // If the secondView options is checked
98
  ( $secondViewOpt )
99
  ) {
660
  * Noscript snippet in case browser has JavaScript disabled
661
  * @var string
662
  */
663
+ $noscript = '<noscript><style type="text/css">html{margin-top:35px}</style><div id="cookieChoiceInfo"><span>' . $text . '</span><a href="' . $url . '" class="' . $infoClass . '" target="_blank">' . $anchor_text . '</a></div></noscript>';
664
 
665
  /**
666
  * Select wich file to use in debug mode
669
  // $fileJS = ( WP_DEBUG ) ? '/js/' . $js_template . '/cookiechoices.js' : '/js/' . $js_template . '/cookiechoices.php' ;
670
  $fileJS = ( WP_DEBUG ) ? '/js/default/cookiechoices.js' : '/js/default/cookiechoices.php' ;
671
 
672
+ $output_html = '<!-- Italy Cookie Choices -->' . '<style type="text/css">' . $style . '</style><script>' . $jsVariables . file_get_contents( ITALY_COOKIE_CHOICES_DIRNAME . $fileJS ) . $banner . '</script>' . $noscript;
673
 
674
  echo apply_filters( 'icc_output_html', $output_html );
675
 
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: Italy Cookie Choices allows you to easily comply with the european cookie law and block third part cookie in your page.
6
- * Version: 2.2.1
7
  * Author: Enea Overclokk, Andrea Pernici, Andrea Cardinale
8
  * Author URI: https://github.com/ItalyCookieChoices/italy-cookie-choices
9
  * Text Domain: italy-cookie-choices
3
  * Plugin Name: Italy Cookie Choices
4
  * Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
5
  * Description: Italy Cookie Choices allows you to easily comply with the european cookie law and block third part cookie in your page.
6
+ * Version: 2.2.2
7
  * Author: Enea Overclokk, Andrea Pernici, Andrea Cardinale
8
  * Author URI: https://github.com/ItalyCookieChoices/italy-cookie-choices
9
  * Text Domain: italy-cookie-choices
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-07-01 01:30+0200\n"
5
- "PO-Revision-Date: 2015-07-01 01:36+0200\n"
6
  "Last-Translator: Enea Overclokk <info@overclokk.net>\n"
7
  "Language-Team: info@overclokk.net\n"
8
  "Language: it_IT\n"
@@ -318,13 +318,17 @@ msgstr "es: la-tua-pagina-per-la-cookie-policy"
318
 
319
  #: admin/class-italy-cookie-choices-admin.php:878
320
  msgid ""
321
- "Insert your cookie policy page slug (e.g. your-policy-url), it will display "
322
- "only topbar in your cookie policy page and the scroll and the second view "
323
- "will be deactivated in that page."
 
324
  msgstr ""
325
- "Inserisci lo slug della pagina della tua cookie policy (e.s. your-policy-"
326
- "url), sarà visualizzata solo la topbar, scroll e accettazione durante la "
327
- "navigazione disattivati in quella pagina."
 
 
 
328
 
329
  #: admin/class-italy-cookie-choices-admin.php:898
330
  msgid "Open your cookie policy page in new one"
@@ -422,6 +426,15 @@ msgstr ""
422
  "Il tuo server sta eseguendo %s con la versione %s ma qesto plugin richiede "
423
  "almeno la versione %s"
424
 
 
 
 
 
 
 
 
 
 
425
  #~ msgid ""
426
  #~ "Insert your cookie policy page slug (e.g. your-policy-url), it will "
427
  #~ "display only topbar in your cookie policy page"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: italy-cookie-choices\n"
4
+ "POT-Creation-Date: 2015-07-01 17:37+0200\n"
5
+ "PO-Revision-Date: 2015-07-01 17:41+0200\n"
6
  "Last-Translator: Enea Overclokk <info@overclokk.net>\n"
7
  "Language-Team: info@overclokk.net\n"
8
  "Language: it_IT\n"
318
 
319
  #: admin/class-italy-cookie-choices-admin.php:878
320
  msgid ""
321
+ "Insert your cookie policy page slug (e.g. for the page http://www.miodominio."
322
+ "it/privacy-e-cookie/ the slug is <strong>privacy-e-cookie</strong>).<br>In "
323
+ "this way it will display only the topbar in your cookie policy page, the "
324
+ "scroll and the second view will be deactivated in that page too."
325
  msgstr ""
326
+ "Inserisci il tuo slug della pagina dell'informativa estesa (ad es. per la "
327
+ "pagina http://www.miodominio.it/privacy-e-cookie/ lo slug sarà "
328
+ "<strong>privacy-e-cookie</strong>).<br>In questo modo verrà visualizzata "
329
+ "solo la barra superiore nella pagina dell'informativa, Anche lo scroll e "
330
+ "l'accettazione continuando la navigazione verranno disattivati in quella "
331
+ "pagina."
332
 
333
  #: admin/class-italy-cookie-choices-admin.php:898
334
  msgid "Open your cookie policy page in new one"
426
  "Il tuo server sta eseguendo %s con la versione %s ma qesto plugin richiede "
427
  "almeno la versione %s"
428
 
429
+ #~ msgid ""
430
+ #~ "Insert your cookie policy page slug (e.g. your-policy-url), it will "
431
+ #~ "display only topbar in your cookie policy page and the scroll and the "
432
+ #~ "second view will be deactivated in that page."
433
+ #~ msgstr ""
434
+ #~ "Inserisci lo slug della pagina della tua cookie policy (e.s. your-policy-"
435
+ #~ "url), sarà visualizzata solo la topbar, scroll e accettazione durante la "
436
+ #~ "navigazione disattivati in quella pagina."
437
+
438
  #~ msgid ""
439
  #~ "Insert your cookie policy page slug (e.g. your-policy-url), it will "
440
  #~ "display only topbar in your cookie policy page"
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-07-01 01:27+0100\n"
6
  "PO-Revision-Date: 2015-05-21 20:22+0100\n"
7
  "Last-Translator: Enea Overclokk <info@overclokk.net>\n"
8
  "Language-Team: info@overclokk.net\n"
@@ -10,8 +10,8 @@ msgstr ""
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 1.8.1\n"
14
- "X-Poedit-Basepath: ..\\\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "X-Poedit-KeywordsList: __;_e\n"
@@ -307,7 +307,7 @@ msgid "e.g. your-policy-url.html"
307
  msgstr ""
308
 
309
  #: admin/class-italy-cookie-choices-admin.php:878
310
- msgid "Insert your cookie policy page slug (e.g. your-policy-url), it will display only topbar in your cookie policy page and the scroll and the second view will be deactivated in that page."
311
  msgstr ""
312
 
313
  #: admin/class-italy-cookie-choices-admin.php:898
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Italy Cookie Choices\n"
5
+ "POT-Creation-Date: 2015-07-01 17:37+0200\n"
6
  "PO-Revision-Date: 2015-05-21 20:22+0100\n"
7
  "Last-Translator: Enea Overclokk <info@overclokk.net>\n"
8
  "Language-Team: info@overclokk.net\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8.2\n"
14
+ "X-Poedit-Basepath: ..\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "X-Poedit-KeywordsList: __;_e\n"
307
  msgstr ""
308
 
309
  #: admin/class-italy-cookie-choices-admin.php:878
310
+ msgid "Insert your cookie policy page slug (e.g. for the page http://www.miodominio.it/privacy-e-cookie/ the slug is <strong>privacy-e-cookie</strong>).<br>In this way it will display only the topbar in your cookie policy page, the scroll and the second view will be deactivated in that page too."
311
  msgstr ""
312
 
313
  #: admin/class-italy-cookie-choices-admin.php:898
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: compliance, cookie law, cookies, eu cookie law, eu law, eu privacy directive, privacy, privacy directive, notification, privacy law, cookie law banner, implied consent, third party script, third party cookie
5
  Requires at least: 3.5
6
  Tested up to: 4.3.0
7
- Stable tag: 2.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -28,20 +28,6 @@ Now you can block all cookies with new Third Part Cookie Eraser, activated it an
28
 
29
  [For more informations read the documentation](https://github.com/ItalyCookieChoices/italy-cookie-choices/wiki)
30
 
31
- 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--------->`
32
-
33
- Eg:
34
-
35
- ```
36
- <script>console.log('Your custom script');</script>
37
-
38
- <---------SEP--------->
39
-
40
- <script async src="//192.168.1.10/italystrap/js.js"></script>
41
- ```
42
-
43
- [See the documentation](https://github.com/ItalyCookieChoices/italy-cookie-choices/wiki) for more informations
44
-
45
  Please, notify any issue on github repository https://github.com/ItalyCookieChoices/italy-cookie-choices/issues
46
 
47
  = Anonymize Analytics IP =
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: 3.5
6
  Tested up to: 4.3.0
7
+ Stable tag: 2.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
28
 
29
  [For more informations read the documentation](https://github.com/ItalyCookieChoices/italy-cookie-choices/wiki)
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  Please, notify any issue on github repository https://github.com/ItalyCookieChoices/italy-cookie-choices/issues
32
 
33
  = Anonymize Analytics IP =