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

Version Description

Release Date: May 31th, 2015

Dev time: 3h

  • Added slug input for your cookie policy page to display only topbar
  • Added option for target _blank
Download this release

Release Info

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

Code changes from version 1.2.2 to 1.2.3

italy-cookie-choices.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Italy Cookie Choices
4
  * Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
5
  * Description: Minimal code to make sure your website repect the Italian coockie law
6
- * Version: 1.2.2
7
  * Author: Enea Overclokk
8
  * Author URI: https://plus.google.com/u/0/communities/109254048492234113886
9
  * Text Domain: italy-cookie-choices
@@ -353,6 +353,28 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
353
  'advanced_setting_section'
354
  );
355
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  /**
357
  *
358
  */
@@ -613,6 +635,45 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
613
 
614
  }
615
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
616
  /**
617
  * Sanitize data
618
  * @param array $input Data to sanitize
@@ -672,6 +733,12 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
672
  else
673
  $new_input['cookie_value'] = sanitize_text_field( $input['cookie_value'] );
674
 
 
 
 
 
 
 
675
  return $new_input;
676
 
677
  }
@@ -691,15 +758,26 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
691
  if ( !isset( $this->options['active'] ) )
692
  return;
693
 
694
- if ( $this->options['banner'] === '1' )
 
 
 
695
  $banner = 'Bar';
696
  elseif ( $this->options['banner'] === '2' )
697
  $banner = 'Dialog';
698
  else
699
  $banner = '';
700
 
 
 
 
 
701
  $scroll = ( isset( $this->options['scroll'] ) ) ? $this->options['scroll'] : '' ;
702
 
 
 
 
 
703
  $reload = ( isset( $this->options['reload'] ) ) ? $this->options['reload'] : '' ;
704
 
705
  /**
@@ -734,9 +812,15 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
734
 
735
  /**
736
  * If is set hmll_margin checkbox in admin panel then add margin-top to HTML tag
737
- * @var [type]
738
  */
739
  $htmlM = ( isset( $this->options['html_margin'] ) ) ? $this->options['html_margin'] : '' ;
 
 
 
 
 
 
740
 
741
  /**
742
  * Declarations of JS variables and set parameters
@@ -747,9 +831,10 @@ if ( !class_exists( 'Italy_Cookie_Choices' ) ){
747
  * var coNA = cookie name
748
  * var coVA = cookie val
749
  * var rel = Setto il reload per la pagina all'accettazione
 
750
  * @var string
751
  */
752
- $jsVariables = 'var coNA="' . $cookie_name . '",coVA="' . $cookie_value . '";scroll="' . $scroll . '",elPos="fixed",infoClass="",closeClass="",htmlM="' . $htmlM . '",rel="' . $reload . '";';
753
 
754
  /**
755
  * Noscript snippet in case browser has JavaScript disabled
3
  * Plugin Name: Italy Cookie Choices
4
  * Plugin URI: https://plus.google.com/u/0/communities/109254048492234113886
5
  * Description: Minimal code to make sure your website repect the Italian coockie law
6
+ * Version: 1.2.3
7
  * Author: Enea Overclokk
8
  * Author URI: https://plus.google.com/u/0/communities/109254048492234113886
9
  * Text Domain: italy-cookie-choices
353
  'advanced_setting_section'
354
  );
355
 
356
+ /**
357
+ *
358
+ */
359
+ add_settings_field(
360
+ 'slug',
361
+ __( 'Cookie policy page slug', 'italy-cookie-choices' ),
362
+ array( $this, 'italy_cl_option_slug'),
363
+ 'italy_cl_options_group',
364
+ 'advanced_setting_section'
365
+ );
366
+
367
+ /**
368
+ * Checkbox for activation
369
+ */
370
+ add_settings_field(
371
+ 'target',
372
+ __( 'Open policy in new page', 'italy-cookie-choices' ),
373
+ array( $this, 'italy_cl_option_target'),
374
+ 'italy_cl_options_group',
375
+ 'advanced_setting_section'
376
+ );
377
+
378
  /**
379
  *
380
  */
635
 
636
  }
637
 
638
+ /**
639
+ * Slug for cookie policy page
640
+ * @return strimg Slug for cookie policy page Default null
641
+ */
642
+ public function italy_cl_option_slug($args) {
643
+
644
+ $slug = ( isset( $this->options['slug'] ) ) ? $this->options['slug'] : '' ;
645
+
646
+ ?>
647
+ <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' ); ?>" />
648
+
649
+ <label for="italy_cookie_choices[slug]">
650
+ <?php _e( 'Insert your cookie policy page slug (e.g. your-policy-url), it will display only topbar in your cookie policy page', 'italy-cookie-choices' ); ?>
651
+ </label>
652
+
653
+ <?php
654
+
655
+ }
656
+
657
+ /**
658
+ * Snippet for target checkbox
659
+ * @return strimg Activate for open policy page in new tab
660
+ * Default open in same tab
661
+ */
662
+ public function italy_cl_option_target($args) {
663
+
664
+ $target = ( isset( $this->options['target'] ) ) ? $this->options['target'] : '' ;
665
+
666
+ ?>
667
+
668
+ <input type='checkbox' name='italy_cookie_choices[target]' <?php checked( $target, 1 ); ?> value='1'>
669
+ <label for="italy_cookie_choices[target]">
670
+ <?php _e( 'Open your cookie policy page in new one', 'italy-cookie-choices' ); ?>
671
+ </label>
672
+
673
+ <?php
674
+
675
+ }
676
+
677
  /**
678
  * Sanitize data
679
  * @param array $input Data to sanitize
733
  else
734
  $new_input['cookie_value'] = sanitize_text_field( $input['cookie_value'] );
735
 
736
+ if( isset( $input['slug'] ) )
737
+ $new_input['slug'] = sanitize_text_field( $input['slug'] );
738
+
739
+ if( isset( $input['target'] ) )
740
+ $new_input['target'] = $input['target'];
741
+
742
  return $new_input;
743
 
744
  }
758
  if ( !isset( $this->options['active'] ) )
759
  return;
760
 
761
+ /**
762
+ * Select what kind of banner to display
763
+ */
764
+ if ( $this->options['banner'] === '1' || !empty( $this->options['slug'] ) && ( is_page( $this->options['slug'] ) || is_single( $this->options['slug'] ) ) )
765
  $banner = 'Bar';
766
  elseif ( $this->options['banner'] === '2' )
767
  $banner = 'Dialog';
768
  else
769
  $banner = '';
770
 
771
+ /**
772
+ * Accept on scroll
773
+ * @var bol
774
+ */
775
  $scroll = ( isset( $this->options['scroll'] ) ) ? $this->options['scroll'] : '' ;
776
 
777
+ /**
778
+ * Reload on accept
779
+ * @var bol
780
+ */
781
  $reload = ( isset( $this->options['reload'] ) ) ? $this->options['reload'] : '' ;
782
 
783
  /**
812
 
813
  /**
814
  * If is set hmll_margin checkbox in admin panel then add margin-top to HTML tag
815
+ * @var bol
816
  */
817
  $htmlM = ( isset( $this->options['html_margin'] ) ) ? $this->options['html_margin'] : '' ;
818
+
819
+ /**
820
+ * If set open policy page in new browser tab
821
+ * @var bol
822
+ */
823
+ $target = ( isset( $this->options['target'] ) ) ? $this->options['target'] : '' ;
824
 
825
  /**
826
  * Declarations of JS variables and set parameters
831
  * var coNA = cookie name
832
  * var coVA = cookie val
833
  * var rel = Setto il reload per la pagina all'accettazione
834
+ * var tar = Target -blank
835
  * @var string
836
  */
837
+ $jsVariables = 'var coNA="' . $cookie_name . '",coVA="' . $cookie_value . '";scroll="' . $scroll . '",elPos="fixed",infoClass="",closeClass="",htmlM="' . $htmlM . '",rel="' . $reload . '",tar="' . $target . '";';
838
 
839
  /**
840
  * Noscript snippet in case browser has JavaScript disabled
js/cookiechoices.js CHANGED
@@ -116,7 +116,7 @@
116
  _setElementText(infoLink, linkText);
117
  infoLink.className = infoClass;
118
  infoLink.href = linkHref;
119
- infoLink.target = '_blank';
120
  infoLink.style.marginLeft = '8px';
121
  return infoLink;
122
  }
116
  _setElementText(infoLink, linkText);
117
  infoLink.className = infoClass;
118
  infoLink.href = linkHref;
119
+ if (tar) infoLink.target = '_blank';
120
  infoLink.style.marginLeft = '8px';
121
  return infoLink;
122
  }
js/cookiechoices.php CHANGED
@@ -1 +1 @@
1
- !function(a){if(a.cookieChoices)return a.cookieChoices;var b=a.document,c=b.documentElement,d="textContent"in b.body,e=function(){function a(a,d,e,f){htmlM&&(c.className+=" icc");var j="position:"+elPos+";width:100%;background-color:#eee;margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:center;",k=b.createElement("div");return k.id=r,k.style.cssText=j,k.appendChild(g(a)),e&&f&&k.appendChild(i(e,f)),k.appendChild(h(d)),k}function e(a,c,d,e){var f="position:fixed;width:100%;height:100%;z-index:999;top:0;left:0;opacity:0.5;filter:alpha(opacity=50);background-color:#ccc;",j="z-index:1000;position:fixed;left:50%;top:50%",k="position:relative;left:-50%;margin-top:-25%;background-color:#fff;padding:20px;box-shadow:4px 4px 25px #888;",l=b.createElement("div");l.id=r;var m=b.createElement("div");m.style.cssText=f;var n=b.createElement("div");n.style.cssText=k;var o=b.createElement("div");o.style.cssText=j;var p=h(c);return p.style.display="block",p.style.textAlign="right",p.style.marginTop="8px",n.appendChild(g(a)),d&&e&&n.appendChild(i(d,e)),n.appendChild(p),o.appendChild(n),l.appendChild(m),l.appendChild(o),l}function f(a,b){d?a.textContent=b:a.innerText=b}function g(a){var c=b.createElement("span");return f(c,a),c}function h(a){var c=b.createElement("a");return f(c,a),c.id=s,c.className=closeClass,c.href="#",c.style.marginLeft="24px",c}function i(a,c){var d=b.createElement("a");return f(d,a),d.className=infoClass,d.href=c,d.target="_blank",d.style.marginLeft="8px",d}function j(){return htmlM&&c.classList.remove("icc"),o(),n(),rel&&b.location.reload(),!1}function k(c,d,f,g,h){if(p()){n();var i=h?e(c,d,f,g):a(c,d,f,g),k=b.createDocumentFragment();k.appendChild(i),b.body.appendChild(k.cloneNode(!0)),b.getElementById(s).onclick=j,scroll&&(b.onscroll=j)}}function l(a,b,c,d){k(a,b,c,d,!1)}function m(a,b,c,d){k(a,b,c,d,!0)}function n(){var a=b.getElementById(r);null!==a&&a.parentNode.removeChild(a)}function o(){var a=new Date;a.setFullYear(a.getFullYear()+1),b.cookie=q+"="+coVA+"; expires="+a.toGMTString()+";path=/"}function p(){return!b.cookie.match(new RegExp(q+"=([^;]+)"))}var q=coNA,r="cookieChoiceInfo",s="cookieChoiceDismiss",t={};return t.showCookieConsentBar=l,t.showCookieConsentDialog=m,t}();return a.cookieChoices=e,e}(this);
1
+ !function(a){if(a.cookieChoices)return a.cookieChoices;var b=a.document,c=b.documentElement,d="textContent"in b.body,e=function(){function a(a,d,e,f){htmlM&&(c.className+=" icc");var j="position:"+elPos+";width:100%;background-color:#eee;margin:0; left:0; top:0;padding:4px;z-index:9999;text-align:center;",k=b.createElement("div");return k.id=r,k.style.cssText=j,k.appendChild(g(a)),e&&f&&k.appendChild(i(e,f)),k.appendChild(h(d)),k}function e(a,c,d,e){var f="position:fixed;width:100%;height:100%;z-index:999;top:0;left:0;opacity:0.5;filter:alpha(opacity=50);background-color:#ccc;",j="z-index:1000;position:fixed;left:50%;top:50%",k="position:relative;left:-50%;margin-top:-25%;background-color:#fff;padding:20px;box-shadow:4px 4px 25px #888;",l=b.createElement("div");l.id=r;var m=b.createElement("div");m.style.cssText=f;var n=b.createElement("div");n.style.cssText=k;var o=b.createElement("div");o.style.cssText=j;var p=h(c);return p.style.display="block",p.style.textAlign="right",p.style.marginTop="8px",n.appendChild(g(a)),d&&e&&n.appendChild(i(d,e)),n.appendChild(p),o.appendChild(n),l.appendChild(m),l.appendChild(o),l}function f(a,b){d?a.textContent=b:a.innerText=b}function g(a){var c=b.createElement("span");return f(c,a),c}function h(a){var c=b.createElement("a");return f(c,a),c.id=s,c.className=closeClass,c.href="#",c.style.marginLeft="24px",c}function i(a,c){var d=b.createElement("a");return f(d,a),d.className=infoClass,d.href=c,tar&&(d.target="_blank"),d.style.marginLeft="8px",d}function j(){return htmlM&&c.classList.remove("icc"),o(),n(),rel&&b.location.reload(),!1}function k(c,d,f,g,h){if(p()){n();var i=h?e(c,d,f,g):a(c,d,f,g),k=b.createDocumentFragment();k.appendChild(i),b.body.appendChild(k.cloneNode(!0)),b.getElementById(s).onclick=j,scroll&&(b.onscroll=j)}}function l(a,b,c,d){k(a,b,c,d,!1)}function m(a,b,c,d){k(a,b,c,d,!0)}function n(){var a=b.getElementById(r);null!==a&&a.parentNode.removeChild(a)}function o(){var a=new Date;a.setFullYear(a.getFullYear()+1),b.cookie=q+"="+coVA+"; expires="+a.toGMTString()+";path=/"}function p(){return!b.cookie.match(new RegExp(q+"=([^;]+)"))}var q=coNA,r="cookieChoiceInfo",s="cookieChoiceDismiss",t={};return t.showCookieConsentBar=l,t.showCookieConsentDialog=m,t}();return a.cookieChoices=e,e}(this);
lang/italy-cookie-choices-it_IT.mo CHANGED
Binary file
lang/italy-cookie-choices-it_IT.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: italy-cookie-choices\n"
4
- "POT-Creation-Date: 2015-05-28 18:22+0100\n"
5
- "PO-Revision-Date: 2015-05-28 18:24+0100\n"
6
  "Last-Translator: Enea Overclokk <info@overclokk.net>\n"
7
  "Language-Team: info@overclokk.net\n"
8
  "Language: it_IT\n"
@@ -82,94 +82,118 @@ msgstr "Nome del Cookie"
82
  msgid "Cookie value"
83
  msgstr "Valore del Cookie"
84
 
85
- #: italy-cookie-choices.php:375
 
 
 
 
 
 
 
 
86
  msgid "Customize your banner for cookie law"
87
  msgstr "Personalizza il banner per la Cookie Law"
88
 
89
- #: italy-cookie-choices.php:390
90
  msgid "Display banner for Cookie Law in front-end"
91
  msgstr "Visualizza il banner nel front-end"
92
 
93
- #: italy-cookie-choices.php:410
94
  msgid "Top Bar (Default, Display a top bar wth your message)"
95
  msgstr "Top Bar (Default, verrà visualizzata una barra in cima alla pagina)"
96
 
97
- #: italy-cookie-choices.php:418
98
  msgid "Dialog (Display an overlay with your message)"
99
  msgstr "Dialog (Visualizza un popup con il tuo messaggio)"
100
 
101
- #: italy-cookie-choices.php:436
102
  msgid "Accepts disclosures on mouse scroll event"
103
  msgstr "Accetta l'informativa sull'evento scroll del mouse"
104
 
105
- #: italy-cookie-choices.php:454
106
  msgid "Refresh page after button click"
107
  msgstr ""
108
  "Aggiorna la pagina dopo il click sul link di accettazione (Usare con "
109
  "parsimonia se hai il sito molto lento, es 5'')"
110
 
111
- #: italy-cookie-choices.php:469
112
  msgid "Your short cookie policy"
113
  msgstr "La tua informativa breve"
114
 
115
- #: italy-cookie-choices.php:472
116
  msgid ""
117
  "People will see this notice only the first time that they enter your site"
118
  msgstr ""
119
  "Le persone visualizzeranno il messaggio la prima volta che visiteranno il "
120
  "tuo sito"
121
 
122
- #: italy-cookie-choices.php:486
123
  msgid "e.g. http://www.aboutcookies.org/"
124
  msgstr "es: http://www.aboutcookies.org/"
125
 
126
- #: italy-cookie-choices.php:489
127
  msgid "Insert here the link to your policy page"
128
  msgstr "Inserisci il link alla tua pagina con l'informativa estesa"
129
 
130
- #: italy-cookie-choices.php:503
131
  msgid "e.g. More Info"
132
  msgstr "es: Maggiori informazioni"
133
 
134
- #: italy-cookie-choices.php:506
135
  msgid "Insert here anchor text for the link"
136
  msgstr "Inserisci qui l'anchor text per il link"
137
 
138
- #: italy-cookie-choices.php:520
139
  msgid "e.g. Close"
140
  msgstr "es: Chiudi"
141
 
142
- #: italy-cookie-choices.php:523
143
  msgid "Insert here name of button (e.g. \"Close\") "
144
  msgstr "Inserisci il testo del link per chiudere il popup/banner (es: Chiudi)"
145
 
146
- #: italy-cookie-choices.php:540
147
  msgid "Customize your style settings"
148
  msgstr "Personalizza le impostazioni per lo stile"
149
 
150
- #: italy-cookie-choices.php:556
151
  msgid "Add a page top margin for info top bar"
152
  msgstr "Aggiunge un margine nella parte alta della pagine solo per la topbar"
153
 
154
- #: italy-cookie-choices.php:574
155
  msgid "Customize your advanced settings"
156
  msgstr "Personalizza le impostazioni avanzate"
157
 
158
- #: italy-cookie-choices.php:590
159
  msgid "Insert your cookie name (Default: displayCookieConsent)"
160
  msgstr "Inserisci il nome del tuo Cookie (Default: displayCookieConsent)"
161
 
162
- #: italy-cookie-choices.php:609
163
  msgid "Insert your cookie value (Default: y)"
164
  msgstr "Inserisci il valore del tuo Cookie (Default: y)"
165
 
166
- #: italy-cookie-choices.php:662
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  msgid "Cookie name field it can't be empty. Restored default name."
168
  msgstr ""
169
  "Il campo del nome del Cookie non può essere vuoto. Ripristinato il nome di "
170
  "default."
171
 
172
- #: italy-cookie-choices.php:669
173
  msgid "Cookie value field it can't be empty. Restored default value."
174
  msgstr ""
175
  "Il campo del valore del Cookie non può essere vuoto. Ripristinato il valore "
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: italy-cookie-choices\n"
4
+ "POT-Creation-Date: 2015-05-31 12:25+0100\n"
5
+ "PO-Revision-Date: 2015-05-31 12:28+0100\n"
6
  "Last-Translator: Enea Overclokk <info@overclokk.net>\n"
7
  "Language-Team: info@overclokk.net\n"
8
  "Language: it_IT\n"
82
  msgid "Cookie value"
83
  msgstr "Valore del Cookie"
84
 
85
+ #: italy-cookie-choices.php:361
86
+ msgid "Cookie policy page slug"
87
+ msgstr "Slug pagina Cookie policy"
88
+
89
+ #: italy-cookie-choices.php:372
90
+ msgid "Open policy in new page"
91
+ msgstr "Apri in una nuova pagina"
92
+
93
+ #: italy-cookie-choices.php:397
94
  msgid "Customize your banner for cookie law"
95
  msgstr "Personalizza il banner per la Cookie Law"
96
 
97
+ #: italy-cookie-choices.php:412
98
  msgid "Display banner for Cookie Law in front-end"
99
  msgstr "Visualizza il banner nel front-end"
100
 
101
+ #: italy-cookie-choices.php:432
102
  msgid "Top Bar (Default, Display a top bar wth your message)"
103
  msgstr "Top Bar (Default, verrà visualizzata una barra in cima alla pagina)"
104
 
105
+ #: italy-cookie-choices.php:440
106
  msgid "Dialog (Display an overlay with your message)"
107
  msgstr "Dialog (Visualizza un popup con il tuo messaggio)"
108
 
109
+ #: italy-cookie-choices.php:458
110
  msgid "Accepts disclosures on mouse scroll event"
111
  msgstr "Accetta l'informativa sull'evento scroll del mouse"
112
 
113
+ #: italy-cookie-choices.php:476
114
  msgid "Refresh page after button click"
115
  msgstr ""
116
  "Aggiorna la pagina dopo il click sul link di accettazione (Usare con "
117
  "parsimonia se hai il sito molto lento, es 5'')"
118
 
119
+ #: italy-cookie-choices.php:491
120
  msgid "Your short cookie policy"
121
  msgstr "La tua informativa breve"
122
 
123
+ #: italy-cookie-choices.php:494
124
  msgid ""
125
  "People will see this notice only the first time that they enter your site"
126
  msgstr ""
127
  "Le persone visualizzeranno il messaggio la prima volta che visiteranno il "
128
  "tuo sito"
129
 
130
+ #: italy-cookie-choices.php:508
131
  msgid "e.g. http://www.aboutcookies.org/"
132
  msgstr "es: http://www.aboutcookies.org/"
133
 
134
+ #: italy-cookie-choices.php:511
135
  msgid "Insert here the link to your policy page"
136
  msgstr "Inserisci il link alla tua pagina con l'informativa estesa"
137
 
138
+ #: italy-cookie-choices.php:525
139
  msgid "e.g. More Info"
140
  msgstr "es: Maggiori informazioni"
141
 
142
+ #: italy-cookie-choices.php:528
143
  msgid "Insert here anchor text for the link"
144
  msgstr "Inserisci qui l'anchor text per il link"
145
 
146
+ #: italy-cookie-choices.php:542
147
  msgid "e.g. Close"
148
  msgstr "es: Chiudi"
149
 
150
+ #: italy-cookie-choices.php:545
151
  msgid "Insert here name of button (e.g. \"Close\") "
152
  msgstr "Inserisci il testo del link per chiudere il popup/banner (es: Chiudi)"
153
 
154
+ #: italy-cookie-choices.php:562
155
  msgid "Customize your style settings"
156
  msgstr "Personalizza le impostazioni per lo stile"
157
 
158
+ #: italy-cookie-choices.php:578
159
  msgid "Add a page top margin for info top bar"
160
  msgstr "Aggiunge un margine nella parte alta della pagine solo per la topbar"
161
 
162
+ #: italy-cookie-choices.php:596
163
  msgid "Customize your advanced settings"
164
  msgstr "Personalizza le impostazioni avanzate"
165
 
166
+ #: italy-cookie-choices.php:612
167
  msgid "Insert your cookie name (Default: displayCookieConsent)"
168
  msgstr "Inserisci il nome del tuo Cookie (Default: displayCookieConsent)"
169
 
170
+ #: italy-cookie-choices.php:631
171
  msgid "Insert your cookie value (Default: y)"
172
  msgstr "Inserisci il valore del tuo Cookie (Default: y)"
173
 
174
+ #: italy-cookie-choices.php:647
175
+ msgid "e.g. your-policy-url.html"
176
+ msgstr "es: la-tua-pagina-per-la-cookie-policy"
177
+
178
+ #: italy-cookie-choices.php:650
179
+ msgid ""
180
+ "Insert your cookie policy page slug (e.g. your-policy-url), it will display "
181
+ "only topbar in your cookie policy page"
182
+ msgstr ""
183
+ "Inserisci lo slug della tua pagina per la Cookie policy, in questa pagina "
184
+ "verrà mostrata soltanto la topbar"
185
+
186
+ #: italy-cookie-choices.php:670
187
+ msgid "Open your cookie policy page in new one"
188
+ msgstr "Apri la tua pagina per la Cookie policy in una nuova"
189
+
190
+ #: italy-cookie-choices.php:723
191
  msgid "Cookie name field it can't be empty. Restored default name."
192
  msgstr ""
193
  "Il campo del nome del Cookie non può essere vuoto. Ripristinato il nome di "
194
  "default."
195
 
196
+ #: italy-cookie-choices.php:730
197
  msgid "Cookie value field it can't be empty. Restored default value."
198
  msgstr ""
199
  "Il campo del valore del Cookie non può essere vuoto. Ripristinato il valore "
lang/italy-cookie-choices.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Italy Cookie Choices\n"
5
- "POT-Creation-Date: 2015-05-28 18:22+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"
@@ -83,86 +83,106 @@ msgstr ""
83
  msgid "Cookie value"
84
  msgstr ""
85
 
86
- #: italy-cookie-choices.php:375
 
 
 
 
 
 
 
 
87
  msgid "Customize your banner for cookie law"
88
  msgstr ""
89
 
90
- #: italy-cookie-choices.php:390
91
  msgid "Display banner for Cookie Law in front-end"
92
  msgstr ""
93
 
94
- #: italy-cookie-choices.php:410
95
  msgid "Top Bar (Default, Display a top bar wth your message)"
96
  msgstr ""
97
 
98
- #: italy-cookie-choices.php:418
99
  msgid "Dialog (Display an overlay with your message)"
100
  msgstr ""
101
 
102
- #: italy-cookie-choices.php:436
103
  msgid "Accepts disclosures on mouse scroll event"
104
  msgstr ""
105
 
106
- #: italy-cookie-choices.php:454
107
  msgid "Refresh page after button click"
108
  msgstr ""
109
 
110
- #: italy-cookie-choices.php:469
111
  msgid "Your short cookie policy"
112
  msgstr ""
113
 
114
- #: italy-cookie-choices.php:472
115
  msgid "People will see this notice only the first time that they enter your site"
116
  msgstr ""
117
 
118
- #: italy-cookie-choices.php:486
119
  msgid "e.g. http://www.aboutcookies.org/"
120
  msgstr ""
121
 
122
- #: italy-cookie-choices.php:489
123
  msgid "Insert here the link to your policy page"
124
  msgstr ""
125
 
126
- #: italy-cookie-choices.php:503
127
  msgid "e.g. More Info"
128
  msgstr ""
129
 
130
- #: italy-cookie-choices.php:506
131
  msgid "Insert here anchor text for the link"
132
  msgstr ""
133
 
134
- #: italy-cookie-choices.php:520
135
  msgid "e.g. Close"
136
  msgstr ""
137
 
138
- #: italy-cookie-choices.php:523
139
  msgid "Insert here name of button (e.g. \"Close\") "
140
  msgstr ""
141
 
142
- #: italy-cookie-choices.php:540
143
  msgid "Customize your style settings"
144
  msgstr ""
145
 
146
- #: italy-cookie-choices.php:556
147
  msgid "Add a page top margin for info top bar"
148
  msgstr ""
149
 
150
- #: italy-cookie-choices.php:574
151
  msgid "Customize your advanced settings"
152
  msgstr ""
153
 
154
- #: italy-cookie-choices.php:590
155
  msgid "Insert your cookie name (Default: displayCookieConsent)"
156
  msgstr ""
157
 
158
- #: italy-cookie-choices.php:609
159
  msgid "Insert your cookie value (Default: y)"
160
  msgstr ""
161
 
162
- #: italy-cookie-choices.php:662
 
 
 
 
 
 
 
 
 
 
 
 
163
  msgid "Cookie name field it can't be empty. Restored default name."
164
  msgstr ""
165
 
166
- #: italy-cookie-choices.php:669
167
  msgid "Cookie value field it can't be empty. Restored default value."
168
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Italy Cookie Choices\n"
5
+ "POT-Creation-Date: 2015-05-31 12:25+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"
83
  msgid "Cookie value"
84
  msgstr ""
85
 
86
+ #: italy-cookie-choices.php:361
87
+ msgid "Cookie policy page slug"
88
+ msgstr ""
89
+
90
+ #: italy-cookie-choices.php:372
91
+ msgid "Open policy in new page"
92
+ msgstr ""
93
+
94
+ #: italy-cookie-choices.php:397
95
  msgid "Customize your banner for cookie law"
96
  msgstr ""
97
 
98
+ #: italy-cookie-choices.php:412
99
  msgid "Display banner for Cookie Law in front-end"
100
  msgstr ""
101
 
102
+ #: italy-cookie-choices.php:432
103
  msgid "Top Bar (Default, Display a top bar wth your message)"
104
  msgstr ""
105
 
106
+ #: italy-cookie-choices.php:440
107
  msgid "Dialog (Display an overlay with your message)"
108
  msgstr ""
109
 
110
+ #: italy-cookie-choices.php:458
111
  msgid "Accepts disclosures on mouse scroll event"
112
  msgstr ""
113
 
114
+ #: italy-cookie-choices.php:476
115
  msgid "Refresh page after button click"
116
  msgstr ""
117
 
118
+ #: italy-cookie-choices.php:491
119
  msgid "Your short cookie policy"
120
  msgstr ""
121
 
122
+ #: italy-cookie-choices.php:494
123
  msgid "People will see this notice only the first time that they enter your site"
124
  msgstr ""
125
 
126
+ #: italy-cookie-choices.php:508
127
  msgid "e.g. http://www.aboutcookies.org/"
128
  msgstr ""
129
 
130
+ #: italy-cookie-choices.php:511
131
  msgid "Insert here the link to your policy page"
132
  msgstr ""
133
 
134
+ #: italy-cookie-choices.php:525
135
  msgid "e.g. More Info"
136
  msgstr ""
137
 
138
+ #: italy-cookie-choices.php:528
139
  msgid "Insert here anchor text for the link"
140
  msgstr ""
141
 
142
+ #: italy-cookie-choices.php:542
143
  msgid "e.g. Close"
144
  msgstr ""
145
 
146
+ #: italy-cookie-choices.php:545
147
  msgid "Insert here name of button (e.g. \"Close\") "
148
  msgstr ""
149
 
150
+ #: italy-cookie-choices.php:562
151
  msgid "Customize your style settings"
152
  msgstr ""
153
 
154
+ #: italy-cookie-choices.php:578
155
  msgid "Add a page top margin for info top bar"
156
  msgstr ""
157
 
158
+ #: italy-cookie-choices.php:596
159
  msgid "Customize your advanced settings"
160
  msgstr ""
161
 
162
+ #: italy-cookie-choices.php:612
163
  msgid "Insert your cookie name (Default: displayCookieConsent)"
164
  msgstr ""
165
 
166
+ #: italy-cookie-choices.php:631
167
  msgid "Insert your cookie value (Default: y)"
168
  msgstr ""
169
 
170
+ #: italy-cookie-choices.php:647
171
+ msgid "e.g. your-policy-url.html"
172
+ msgstr ""
173
+
174
+ #: italy-cookie-choices.php:650
175
+ msgid "Insert your cookie policy page slug (e.g. your-policy-url), it will display only topbar in your cookie policy page"
176
+ msgstr ""
177
+
178
+ #: italy-cookie-choices.php:670
179
+ msgid "Open your cookie policy page in new one"
180
+ msgstr ""
181
+
182
+ #: italy-cookie-choices.php:723
183
  msgid "Cookie name field it can't be empty. Restored default name."
184
  msgstr ""
185
 
186
+ #: italy-cookie-choices.php:730
187
  msgid "Cookie value field it can't be empty. Restored default value."
188
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: compliance, cookie law, cookies, eu cookie law, eu law, eu privacy directive, privacy, privacy directive, notification, privacy law, cookie law banner, implied consent
5
  Requires at least: 4.1
6
  Tested up to: 4.3.0
7
- Stable tag: 1.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -59,6 +59,14 @@ You have to uncheck the `Detect <script> tags in wp_footer` in Async JS and CSS
59
 
60
  == Changelog ==
61
 
 
 
 
 
 
 
 
 
62
  = 1.2.2 =
63
  Release Date: May 29th, 2015
64
 
@@ -145,4 +153,5 @@ a notice to the user only the very first time that visits your website without d
145
 
146
  == Credits ==
147
 
148
- * [www.cookiechoices.org](https://www.cookiechoices.org/)
 
4
  Tags: compliance, cookie law, cookies, eu cookie law, eu law, eu privacy directive, privacy, privacy directive, notification, privacy law, cookie law banner, implied consent
5
  Requires at least: 4.1
6
  Tested up to: 4.3.0
7
+ Stable tag: 1.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
59
 
60
  == Changelog ==
61
 
62
+ = 1.2.3 =
63
+ Release Date: May 31th, 2015
64
+
65
+ Dev time: 3h
66
+
67
+ * Added slug input for your cookie policy page to display only topbar
68
+ * Added option for target _blank
69
+
70
  = 1.2.2 =
71
  Release Date: May 29th, 2015
72
 
153
 
154
  == Credits ==
155
 
156
+ * [www.cookiechoices.org](https://www.cookiechoices.org/)
157
+ * [Loghino piccolo](http://www.posizionamento-seo.com/)