Ginger – EU Cookie Law - Version 1.1

Version Description

  • fix encoding
  • activation with default options
  • added refresh option
  • fixed wp 3.0 compatibility
  • fix italian translations
  • admin pointer
Download this release

Release Info

Developer manafactory
Plugin Icon 128x128 Ginger – EU Cookie Law
Version 1.1
Comparing to
See all releases

Code changes from version 1.0.1 to 1.1

admin/ginger.admin.php CHANGED
@@ -12,21 +12,56 @@ if(isset($_POST["submit"])){
12
  unset($params["submit"]);
13
  unset($params["ginger_options"]);
14
  unset($params["_wp_http_referer"]);
15
- if ($key=='ginger_policy'){
16
- if ($_POST["choice"]=="new_page"){
17
- $id_privacy_new_page=save_privacy_page($_POST["privacy_page_title"],$_POST["privacy_page_content"]);
18
- $privacy_page_id=$id_privacy_new_page;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }else{
20
- $privacy_page_id=$_POST["ginger_privacy_page"];
21
  }
22
- update_option($key, $privacy_page_id);
23
- }else{
24
- update_option($key, $params);
25
- }
26
  echo '<div class="updated"><p>'.__( 'Updated!', 'ginger' ).'</p></div>';
27
  }
28
 
29
- $options = get_option($key); ?>
 
30
 
31
  <div class="wrap">
32
  <h2>Ginger - EU Cookie Law</h2>
12
  unset($params["submit"]);
13
  unset($params["ginger_options"]);
14
  unset($params["_wp_http_referer"]);
15
+
16
+ if ($key=='ginger_banner'){
17
+ if ($params["disable_cookie_button_status"]!='1'){
18
+ $params["disable_cookie_button_status"]='0';
19
+
20
+ }
21
+ if ($params["read_more_button_status"]!='1'){
22
+ $params["read_more_button_status"]='0';
23
+ }
24
+
25
+
26
+ }
27
+
28
+
29
+ if ($key=='ginger_policy'){
30
+ if ($_POST["choice"]=="new_page"){
31
+
32
+ // controllo se il nome della privacy page è già esistente.
33
+ if (get_page_by_title( $_POST["privacy_page_title"], $output, 'page' )){
34
+
35
+ $control_page=get_page_by_title( $_POST["privacy_page_title"], $output, 'page' );
36
+ if ($control_page->post_status=='publish') {
37
+ $control_page_id = $control_page->ID;
38
+ $privacy_page_id = $control_page_id;
39
+ echo '<div class="updated"><p>'.__( 'The page with the specified title already exists and is your current privacy policy page!', 'ginger' ).'</p></div>';
40
+
41
+ }else{
42
+
43
+ $id_privacy_new_page=save_privacy_page($_POST["privacy_page_title"],$_POST["privacy_page_content"]);
44
+ $privacy_page_id=$id_privacy_new_page;
45
+ }
46
+
47
+
48
+ }else{
49
+ $id_privacy_new_page=save_privacy_page($_POST["privacy_page_title"],$_POST["privacy_page_content"]);
50
+ $privacy_page_id=$id_privacy_new_page;
51
+ }
52
+
53
+ }else{
54
+ $privacy_page_id=$_POST["ginger_privacy_page"];
55
+ }
56
+ update_option($key, $privacy_page_id);
57
  }else{
58
+ update_option($key, $params);
59
  }
 
 
 
 
60
  echo '<div class="updated"><p>'.__( 'Updated!', 'ginger' ).'</p></div>';
61
  }
62
 
63
+ $options = get_option($key);
64
+ ?>
65
 
66
  <div class="wrap">
67
  <h2>Ginger - EU Cookie Law</h2>
admin/ginger.pointer.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (!class_exists("gingerSimpleNote")) {
4
+ class gingerSimpleNote
5
+ {
6
+ function gingerSimpleNote() // Constructor
7
+ {
8
+ register_activation_hook(__FILE__, array($this, 'run_on_activate'));
9
+ add_action('admin_enqueue_scripts', array($this, 'gingersimplenote_admin_scripts'));
10
+ }
11
+
12
+ function gingersimplenote_admin_scripts()
13
+ {
14
+
15
+ $seen_it = explode(',', (string)get_user_meta(get_current_user_id(), 'dismissed_wp_pointers', true));
16
+ // $seen_it =false;
17
+
18
+ $do_add_script = false;
19
+
20
+ if (!in_array('gingertip1', $seen_it)) {
21
+ // flip the flag enabling pointer scripts and styles to be added later
22
+ $do_add_script = true;
23
+ // hook to function that will output pointer script just for gingertip1
24
+ add_action('admin_print_footer_scripts', array($this, 'simplenote_gingertip1_footer_script'));
25
+ }
26
+
27
+ // now finally enqueue scripts and styles if we ended up with do_add_script == TRUE
28
+ if ($do_add_script) {
29
+ // add JavaScript for WP Pointers
30
+ wp_enqueue_script('wp-pointer');
31
+ // add CSS for WP Pointers
32
+ wp_enqueue_style('wp-pointer');
33
+ }
34
+ }
35
+
36
+ function simplenote_gingertip1_footer_script()
37
+ {
38
+ // Build the main content of your pointer balloon in a variable
39
+ $pointer_content = '<h3>' . __("Ginger Cookie Law Settings", "ginger") . '</h3>'; // Title should be <h3> for proper formatting.
40
+ $pointer_content .= '<p>' . __("<b>One more step</b>: you need to enable banner in ", "ginger") . '<a href="';
41
+ $pointer_content .= '?page=ginger-setup">Ginger Settings</a></p>';
42
+
43
+ ?>
44
+ <script type="text/javascript">// <![CDATA[
45
+ jQuery(document).ready(function ($) {
46
+
47
+ if (typeof(jQuery().pointer) != 'undefined') {
48
+ $('#toplevel_page_ginger-setup').pointer({
49
+ content: '<?php echo $pointer_content; ?>',
50
+ position: {
51
+ edge: 'left',
52
+ align: 'center'
53
+ },
54
+ close: function () {
55
+ $.post(ajaxurl, {
56
+ pointer: 'gingertip1',
57
+ action: 'dismiss-wp-pointer'
58
+ });
59
+ }
60
+ }).pointer('open');
61
+ }
62
+ });
63
+ // ]]></script>
64
+ <?php
65
+ }
66
+
67
+ function init_admin()
68
+ {
69
+
70
+ }
71
+
72
+ function run_on_activate()
73
+ {
74
+
75
+ }
76
+
77
+ }
78
+
79
+ } // End Class
80
+
81
+ // Instantiating the Class
82
+ if (class_exists("gingerSimpleNote")) {
83
+ $gingerSimpleNote = new gingerSimpleNote();
84
+ }
admin/ginger.utils.php CHANGED
@@ -23,13 +23,14 @@ function ginger_about_menu_page(){
23
 
24
 
25
  //Aggingo style e script per ginger backend
26
- add_action( 'admin_enqueue_scripts', 'ginger_add_color_picker' );
27
- function ginger_add_color_picker( $hook ) {
28
  if( is_admin() ) {
29
  // Add the color picker css file
30
  wp_enqueue_style( 'wp-color-picker' );
31
  // Include our custom jQuery file with WordPress Color Picker dependency
32
- wp_enqueue_script( 'ginger-script-handle', plugins_url( 'js/ginger.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
 
33
  }
34
  }
35
 
@@ -61,10 +62,25 @@ return $active;
61
  function ginger_plugin_activate() {
62
  $options = get_option('ginger_general');
63
  if (!is_array($options)){
64
- $options = array('enable_ginger' => '0', 'ginger_cache' => 'yes', 'ginger_opt' => 'in', 'ginger_scroll' => '1', 'ginger_click_out' => '0' );
65
  update_option('ginger_general', $options);
66
 
67
- $options = array('ginger_banner_type' => 'bar', 'ginger_banner_position' => 'top', 'ginger_banner_text' => '','ginger_Iframe_text' =>'', 'accept_cookie_button_text' => 'Accept', 'disable_cookie_button_text'=> 'Disable', 'disable_cookie_button_status' => '0', 'read_more_button_text' => 'Read More', 'read_more_button_status' => '0', 'theme_ginger' => 'light', 'background_color' =>'', 'text_color' =>'', 'button_color' =>'', 'link_color' =>'');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  update_option('ginger_banner', $options);
69
  }
70
  }
23
 
24
 
25
  //Aggingo style e script per ginger backend
26
+ add_action( 'admin_enqueue_scripts', 'ginger_add_admin_js' );
27
+ function ginger_add_admin_js( $hook ) {
28
  if( is_admin() ) {
29
  // Add the color picker css file
30
  wp_enqueue_style( 'wp-color-picker' );
31
  // Include our custom jQuery file with WordPress Color Picker dependency
32
+ wp_enqueue_script( 'ginger-script-handle', plugins_url( 'js/ginger.js', __FILE__ ), array(), false, true );
33
+ wp_enqueue_script( 'ginger-script-color', plugins_url( 'js/ginger.color.js', __FILE__ ), array("wp-color-picker"), false, true );
34
  }
35
  }
36
 
62
  function ginger_plugin_activate() {
63
  $options = get_option('ginger_general');
64
  if (!is_array($options)){
65
+ $options = array('enable_ginger' => '0', 'ginger_cache' => 'yes', 'ginger_opt' => 'in', 'ginger_scroll' => '1', 'ginger_click_out' => '0' , 'ginger_force_reload' => '0' , 'ginger_keep_banner' => '0' );
66
  update_option('ginger_general', $options);
67
 
68
+ // $options = array('ginger_banner_type' => 'bar', 'ginger_banner_position' => 'top', 'ginger_banner_text' => __("This website uses cookies. By continuing to use the site you are agreeing to its use of cookies.", "ginger"),'ginger_Iframe_text' =>__("This content has been disabled because you have not accepted cookies.", "ginger"), 'accept_cookie_button_text' => 'Accept', 'disable_cookie_button_text'=> 'Disable', 'disable_cookie_button_status' => '0','disable_cookie_button_checkbox' => '1', 'read_more_button_text' => 'Read More', 'read_more_button_status' => '1','theme_ginger' => 'light', 'background_color' =>'', 'text_color' =>'', 'button_color' =>'', 'link_color' =>'');
69
+
70
+ $options = array (
71
+ 'ginger_banner_type' => 'bar',
72
+ 'ginger_banner_position' => 'top',
73
+ 'ginger_banner_text' => addslashes(__("This website uses cookies. By continuing to use the site you are agreeing to its use of cookies.", "ginger")),
74
+ 'ginger_Iframe_text' => addslashes(__("This content has been disabled because you have not accepted cookies.", "ginger")),
75
+ 'accept_cookie_button_text' => 'Accept',
76
+ 'theme_ginger' => 'light',
77
+ 'background_color' => '',
78
+ 'text_color' => '',
79
+ 'button_color' => '',
80
+ 'link_color' => '',
81
+ 'disable_cookie_button_status' => '0',
82
+ 'read_more_button_status' => '0',
83
+ );
84
  update_option('ginger_banner', $options);
85
  }
86
  }
admin/js/ginger.color.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ (function( $ ) {
2
+
3
+ // Add Color Picker to all inputs that have 'color-field' class
4
+ $(function() {
5
+ $('.color-field').wpColorPicker();
6
+ });
7
+
8
+ })( jQuery );
admin/js/ginger.js CHANGED
@@ -1,11 +1,3 @@
1
- (function( $ ) {
2
-
3
- // Add Color Picker to all inputs that have 'color-field' class
4
- $(function() {
5
- $('.color-field').wpColorPicker();
6
- });
7
-
8
- })( jQuery );
9
 
10
  function select_privacy_page(){
11
 
@@ -31,4 +23,22 @@ function enable_text_banner_button(id){
31
  document.getElementById(id).disabled=false;
32
  document.getElementById('new_page_privacy').style.display='inline';
33
  document.getElementById('new_page_privacy').style.display='inline';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
 
 
 
 
 
 
 
 
1
 
2
  function select_privacy_page(){
3
 
23
  document.getElementById(id).disabled=false;
24
  document.getElementById('new_page_privacy').style.display='inline';
25
  document.getElementById('new_page_privacy').style.display='inline';
26
+ }
27
+
28
+ function en_dis_able_text_banner_button(id,id_text,id_img){
29
+
30
+ var status=document.getElementById(id).checked;
31
+
32
+
33
+ if (status){
34
+
35
+ document.getElementById(id_text).disabled=false;
36
+ document.getElementById(id_img).src='../wp-content/plugins/ginger/img/ok.png';
37
+
38
+ }else if (!status){
39
+
40
+ document.getElementById(id_text).disabled=true;
41
+ document.getElementById(id_img).src='../wp-content/plugins/ginger/img/xx.png';
42
+ }
43
+
44
  }
admin/partial/banner.php CHANGED
@@ -1,10 +1,10 @@
1
  <table class="form-table striped">
2
  <thead>
3
- <tr>
4
- <td colspan="2">
5
- <h2><?php _e("Banner Setup", "ginger"); ?></h2>
6
- </td>
7
- </tr>
8
  </thead>
9
  <tbody>
10
  <tr>
@@ -12,8 +12,13 @@
12
  <td>
13
  <fieldset>
14
  <legend class="screen-reader-text"><span><?php _e("Choose Banner Type", "ginger"); ?></span></legend>
15
- <p><label><input name="ginger_banner_type" type="radio" value="bar" class="tog" <?php if($options["ginger_banner_type"] == "bar") echo ' checked="checked" '; ?>><?php _e("Bar", "ginger"); ?></label></p>
16
- <p><label><input name="ginger_banner_type" type="radio" value="dialog" class="tog" <?php if($options["ginger_banner_type"] == "dialog") echo ' checked="checked" '; ?>><?php _e("Dialog", "ginger"); ?></label></p>
 
 
 
 
 
17
  </fieldset>
18
  </td>
19
  </tr>
@@ -22,8 +27,13 @@
22
  <td>
23
  <fieldset>
24
  <legend class="screen-reader-text"><span><?php _e("Banner Position", "ginger"); ?></span></legend>
25
- <p><label><input name="ginger_banner_position" type="radio" value="top" class="tog" <?php if($options["ginger_banner_position"] == "top") echo ' checked="checked" '; ?>><?php _e("Top", "ginger"); ?></label></p>
26
- <p><label><input name="ginger_banner_position" type="radio" value="bottom" class="tog" <?php if($options["ginger_banner_position"] == "bottom") echo ' checked="checked" '; ?>><?php _e("Bottom", "ginger"); ?></label></p>
 
 
 
 
 
27
  </fieldset>
28
  </td>
29
  </tr>
@@ -32,8 +42,14 @@
32
  <td>
33
  <fieldset>
34
  <legend class="screen-reader-text"><span><?php _e("Banner Text", "ginger"); ?></span></legend>
35
- <p><label><?php wp_editor( $options["ginger_banner_text"], "ginger_bar_text", array( 'textarea_name' => "ginger_banner_text" , 'media_buttons' => false, 'textarea_rows' => 3, 'teeny' => true ) );?>
36
- <br><small><?php _e('You can use syntax <code>{{privacy_page}}</code> to link Privacy Police Page defined in <a href="admin.php?page=ginger-setup&tab=policy">Privacy Policy Tab</a>', "ginger"); ?></small>
 
 
 
 
 
 
37
  </label>
38
  </p>
39
  </fieldset>
@@ -44,7 +60,13 @@
44
  <td>
45
  <fieldset>
46
  <legend class="screen-reader-text"><span><?php _e("Iframe Text", "ginger"); ?></span></legend>
47
- <p><label><?php wp_editor( $options["ginger_Iframe_text"], "ginger_Iframe_text", array( 'textarea_name' => "ginger_Iframe_text" , 'media_buttons' => false, 'textarea_rows' => 3, 'teeny' => true ) );?></label></p>
 
 
 
 
 
 
48
  </fieldset>
49
  </td>
50
  </tr>
@@ -53,36 +75,82 @@
53
  <td>
54
  <fieldset>
55
  <legend class="screen-reader-text"><span><?php _e("Iframe Text", "ginger"); ?></span></legend>
56
- <p><label><b><?php _e("Accept cookie Button", "ginger"); ?></b></label>
 
57
  </p>
 
58
  <p>
59
  <label><?php _e("Text", "ginger"); ?></label>
60
- <input name="accept_cookie_button_text" id="accept_cookie_button_text" type="text" value="<?php if ($options['accept_cookie_button_text']!=""){ echo $options['accept_cookie_button_text'];}else{ echo _e('Accept Cookie', 'ginger');}?>">
 
 
 
 
 
61
  </p>
 
62
  <p>
63
  <label><b><?php _e("Disable cookie Button", "ginger"); ?></b></label>
64
  </p>
 
65
  <p>
66
  <label><?php _e("Text", "ginger"); ?></label>
67
- <input name="disable_cookie_button_text" id="disable_cookie_button_text" type="text" value="<?php if ($options['disable_cookie_button_text']!=""){ echo $options['disable_cookie_button_text'];}else{ echo _e('Disable Cookie', 'ginger');}?>">
68
- <?php echo _e('Enable:','ginger')?>&nbsp;
69
- <label><?php echo _e('Yes','ginger')?>&nbsp;</label>
70
- <input type="radio" name="disable_cookie_button_status" value="1" <?php if ($options['disable_cookie_button_status']=="1" or $options['disable_cookie_button_status']==""){ echo 'checked';}?> onclick="enable_text_banner_button('disable_cookie_button_text');">
71
- <label><?php echo _e('No','ginger')?>&nbsp;</label>
72
- <input type="radio" name="disable_cookie_button_status" value="0" <?php if ($options['disable_cookie_button_status']=="0"){ echo 'checked';}?> onclick="disable_text_banner_button('disable_cookie_button_text');">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  </p>
 
74
  <p>
75
  <label><b><?php _e("Read More Button", "ginger"); ?></b></label>
76
  </p>
 
77
  <p>
78
  <label><?php _e("Text", "ginger"); ?></label>
79
- <input name="read_more_button_text" id="read_more_button_text" type="text" value="<?php if ($option['read_more_button_text']!=""){ echo $options['read_more_button_text'];}else{ echo _e('Read More', 'ginger');}?>">
80
- <?php echo _e('Enable:','ginger')?>&nbsp;
81
- <label><?php echo _e('Yes','ginger')?>&nbsp;</label>
82
- <input type="radio" name="read_more_button_status" value="1" <?php if ($options['read_more_button_status']=="1" or $options['read_more_button_status']==""){ echo 'checked';}?> onclick="enable_text_banner_button('read_more_button_text');">
83
- <label><?php echo _e('No','ginger')?>&nbsp;</label>
84
- <input type="radio" name="read_more_button_status" value="0" <?php if ($options['read_more_button_status']=="0"){ echo 'checked';}?> onclick="disable_text_banner_button('read_more_button_text');">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  </p>
 
86
  </fieldset>
87
  </td>
88
  </tr>
@@ -91,8 +159,13 @@
91
  <td>
92
  <fieldset>
93
  <legend class="screen-reader-text"><span><?php _e("Choose Ginger Theme", "ginger"); ?></span></legend>
94
- <p><label><input name="theme_ginger" type="radio" value="light" class="tog" <?php if($options["theme_ginger"] == "light") echo ' checked="checked" '; ?>><?php _e("Light Theme", "ginger"); ?></label></p>
95
- <p><label><input name="theme_ginger" type="radio" value="dark" class="tog" <?php if($options["theme_ginger"] == "dark") echo ' checked="checked" '; ?>><?php _e("Dark Theme", "ginger"); ?></label></p>
 
 
 
 
 
96
  </fieldset>
97
  </td>
98
  </tr>
@@ -106,7 +179,8 @@
106
  <td>
107
  <fieldset>
108
  <legend class="screen-reader-text"><span><?php _e("Background", "ginger"); ?></span></legend>
109
- <p><label><input type="text" name="background_color" value="<?php echo $options["background_color"]; ?>" class="color-field" ></label></p>
 
110
  </fieldset>
111
  </td>
112
  </tr>
@@ -115,23 +189,28 @@
115
  <td>
116
  <fieldset>
117
  <legend class="screen-reader-text"><span><?php _e("Text", "ginger"); ?></span></legend>
118
- <p><label><input type="text" name="text_color" value="<?php echo $options["text_color"]; ?>" class="color-field" ></label></p>
 
119
  </fieldset>
120
  </td>
121
  </tr>
122
  <tr>
123
  <th scope="row" style="padding-left:20px;"><?php _e("Button", "ginger"); ?></th>
124
  <td>
125
- <fieldset><legend class="screen-reader-text"><span><?php _e("Button", "ginger"); ?></span></legend>
126
- <p><label><input type="text" name="button_color" value="<?php echo $options["button_color"]; ?>" class="color-field" ></label></p>
 
 
127
  </fieldset>
128
  </td>
129
  </tr>
130
  <tr>
131
  <th scope="row" style="padding-left:20px;"><?php _e("Link", "ginger"); ?></th>
132
  <td>
133
- <fieldset><legend class="screen-reader-text"><span><?php _e("Link", "ginger"); ?></span></legend>
134
- <p><label><input type="text" name="link_color" value="<?php echo $options["link_color"]; ?>" class="color-field" ></label></p>
 
 
135
  </fieldset>
136
  </td>
137
  </tr>
1
  <table class="form-table striped">
2
  <thead>
3
+ <tr>
4
+ <td colspan="2">
5
+ <h2><?php _e("Banner Setup", "ginger"); ?></h2>
6
+ </td>
7
+ </tr>
8
  </thead>
9
  <tbody>
10
  <tr>
12
  <td>
13
  <fieldset>
14
  <legend class="screen-reader-text"><span><?php _e("Choose Banner Type", "ginger"); ?></span></legend>
15
+ <p><label><input name="ginger_banner_type" type="radio" value="bar"
16
+ class="tog" <?php if ($options["ginger_banner_type"] == "bar") echo ' checked="checked" '; ?>><?php _e("Bar", "ginger"); ?>
17
+ </label></p>
18
+
19
+ <p><label><input name="ginger_banner_type" type="radio" value="dialog"
20
+ class="tog" <?php if ($options["ginger_banner_type"] == "dialog") echo ' checked="checked" '; ?>><?php _e("Dialog", "ginger"); ?>
21
+ </label></p>
22
  </fieldset>
23
  </td>
24
  </tr>
27
  <td>
28
  <fieldset>
29
  <legend class="screen-reader-text"><span><?php _e("Banner Position", "ginger"); ?></span></legend>
30
+ <p><label><input name="ginger_banner_position" type="radio" value="top"
31
+ class="tog" <?php if ($options["ginger_banner_position"] == "top") echo ' checked="checked" '; ?>><?php _e("Top", "ginger"); ?>
32
+ </label></p>
33
+
34
+ <p><label><input name="ginger_banner_position" type="radio" value="bottom"
35
+ class="tog" <?php if ($options["ginger_banner_position"] == "bottom") echo ' checked="checked" '; ?>><?php _e("Bottom", "ginger"); ?>
36
+ </label></p>
37
  </fieldset>
38
  </td>
39
  </tr>
42
  <td>
43
  <fieldset>
44
  <legend class="screen-reader-text"><span><?php _e("Banner Text", "ginger"); ?></span></legend>
45
+ <p><label><?php
46
+ if (function_exists("wp_editor"))
47
+ wp_editor(stripslashes($options["ginger_banner_text"]), "ginger_bar_text", array('textarea_name' => "ginger_banner_text", 'media_buttons' => false, 'textarea_rows' => 3, 'teeny' => true));
48
+ else
49
+ echo '<textarea name = "ginger_banner_text" >' . $options["ginger_banner_text"] . '</textarea>';
50
+ ?>
51
+ <br>
52
+ <small><?php _e('You can use syntax <code>{{privacy_page}}</code> to link Privacy Police Page defined in <a href="admin.php?page=ginger-setup&tab=policy">Privacy Policy Tab</a>', "ginger"); ?></small>
53
  </label>
54
  </p>
55
  </fieldset>
60
  <td>
61
  <fieldset>
62
  <legend class="screen-reader-text"><span><?php _e("Iframe Text", "ginger"); ?></span></legend>
63
+ <p><label><?php
64
+ if (function_exists("wp_editor"))
65
+ wp_editor(stripslashes($options["ginger_Iframe_text"]), "ginger_Iframe_text", array('textarea_name' => "ginger_Iframe_text", 'media_buttons' => false, 'textarea_rows' => 3, 'teeny' => true));
66
+ else
67
+ echo '<textarea name = "ginger_Iframe_text" >' . $options["ginger_Iframe_text"] . '</textarea>';
68
+
69
+ ?></label></p>
70
  </fieldset>
71
  </td>
72
  </tr>
75
  <td>
76
  <fieldset>
77
  <legend class="screen-reader-text"><span><?php _e("Iframe Text", "ginger"); ?></span></legend>
78
+ <p>
79
+ <label><b><?php _e("Accept cookie Button", "ginger"); ?></b></label>
80
  </p>
81
+
82
  <p>
83
  <label><?php _e("Text", "ginger"); ?></label>
84
+ <input name="accept_cookie_button_text" id="accept_cookie_button_text" type="text"
85
+ value="<?php if ($options['accept_cookie_button_text'] != "") {
86
+ echo $options['accept_cookie_button_text'];
87
+ } else {
88
+ echo _e('Accept Cookie', 'ginger');
89
+ } ?>">
90
  </p>
91
+
92
  <p>
93
  <label><b><?php _e("Disable cookie Button", "ginger"); ?></b></label>
94
  </p>
95
+
96
  <p>
97
  <label><?php _e("Text", "ginger"); ?></label>
98
+ <input name="disable_cookie_button_text" id="disable_cookie_button_text" type="text"
99
+ value="<?php if ($options['disable_cookie_button_text'] != "") {
100
+ echo $options['disable_cookie_button_text'];
101
+ } else {
102
+ echo _e('Disable Cookie', 'ginger');
103
+ } ?>" <?php if ($options['disable_cookie_button_status'] == "0") {
104
+ echo 'disabled=true';
105
+ } ?>>
106
+ <?php echo _e('Enable:', 'ginger') ?>&nbsp;
107
+ <input type="checkbox" id="disable_cookie_button_status" name="disable_cookie_button_status"
108
+ value="1" <?php if ($options['disable_cookie_button_status'] == "1" or $options['disable_cookie_button_status'] == "") {
109
+ echo 'checked';
110
+ } ?>
111
+ onclick="en_dis_able_text_banner_button('disable_cookie_button_status','disable_cookie_button_text','img_disable_cookie_button_status');">
112
+
113
+
114
+ <img id="img_disable_cookie_button_status"
115
+ src="<?php if ($options['disable_cookie_button_status'] == "1" or $options['disable_cookie_button_status'] == "") {
116
+ echo '../wp-content/plugins/ginger/img/ok.png';
117
+ } elseif ($options['disable_cookie_button_status'] == "0") {
118
+ echo '../wp-content/plugins/ginger/img/xx.png';
119
+ } ?>" style="max-width: 20px; max-height: 20px; vertical-align: middle">
120
+
121
+
122
  </p>
123
+
124
  <p>
125
  <label><b><?php _e("Read More Button", "ginger"); ?></b></label>
126
  </p>
127
+
128
  <p>
129
  <label><?php _e("Text", "ginger"); ?></label>
130
+ <input name="read_more_button_text" id="read_more_button_text" type="text"
131
+ value="<?php if ($options['read_more_button_text'] != "") {
132
+ echo $options['read_more_button_text'];
133
+ } else {
134
+ echo _e('Read More', 'ginger');
135
+ } ?>" <?php if ($options['read_more_button_status'] == "0") {
136
+ echo 'disabled=true';
137
+ } ?>>
138
+ <?php echo _e('Enable:', 'ginger') ?>&nbsp;
139
+ <input type="checkbox" id="read_more_button_status" name="read_more_button_status"
140
+ value="1" <?php if ($options['read_more_button_status'] == "1" or $options['read_more_button_status'] == "") {
141
+ echo 'checked';
142
+ } ?>
143
+ onclick="en_dis_able_text_banner_button('read_more_button_status','read_more_button_text','img_read_more_button_status');">
144
+
145
+
146
+ <img id="img_read_more_button_status"
147
+ src="<?php if ($options['read_more_button_status'] == "1" or $options['read_more_button_status'] == "") {
148
+ echo plugins_url('/ginger/img/ok.png');
149
+ } elseif ($options['read_more_button_status'] == "0") {
150
+ echo plugins_url('/ginger/img/xx.png');
151
+ } ?>" style="max-width: 20px; max-height: 20px; vertical-align: middle">
152
  </p>
153
+
154
  </fieldset>
155
  </td>
156
  </tr>
159
  <td>
160
  <fieldset>
161
  <legend class="screen-reader-text"><span><?php _e("Choose Ginger Theme", "ginger"); ?></span></legend>
162
+ <p><label><input name="theme_ginger" type="radio" value="light"
163
+ class="tog" <?php if ($options["theme_ginger"] == "light") echo ' checked="checked" '; ?>><?php _e("Light Theme", "ginger"); ?>
164
+ </label></p>
165
+
166
+ <p><label><input name="theme_ginger" type="radio" value="dark"
167
+ class="tog" <?php if ($options["theme_ginger"] == "dark") echo ' checked="checked" '; ?>><?php _e("Dark Theme", "ginger"); ?>
168
+ </label></p>
169
  </fieldset>
170
  </td>
171
  </tr>
179
  <td>
180
  <fieldset>
181
  <legend class="screen-reader-text"><span><?php _e("Background", "ginger"); ?></span></legend>
182
+ <p><label><input type="text" name="background_color" value="<?php echo $options["background_color"]; ?>"
183
+ class="color-field"></label></p>
184
  </fieldset>
185
  </td>
186
  </tr>
189
  <td>
190
  <fieldset>
191
  <legend class="screen-reader-text"><span><?php _e("Text", "ginger"); ?></span></legend>
192
+ <p><label><input type="text" name="text_color" value="<?php echo $options["text_color"]; ?>"
193
+ class="color-field"></label></p>
194
  </fieldset>
195
  </td>
196
  </tr>
197
  <tr>
198
  <th scope="row" style="padding-left:20px;"><?php _e("Button", "ginger"); ?></th>
199
  <td>
200
+ <fieldset>
201
+ <legend class="screen-reader-text"><span><?php _e("Button", "ginger"); ?></span></legend>
202
+ <p><label><input type="text" name="button_color" value="<?php echo $options["button_color"]; ?>"
203
+ class="color-field"></label></p>
204
  </fieldset>
205
  </td>
206
  </tr>
207
  <tr>
208
  <th scope="row" style="padding-left:20px;"><?php _e("Link", "ginger"); ?></th>
209
  <td>
210
+ <fieldset>
211
+ <legend class="screen-reader-text"><span><?php _e("Link", "ginger"); ?></span></legend>
212
+ <p><label><input type="text" name="link_color" value="<?php echo $options["link_color"]; ?>"
213
+ class="color-field"></label></p>
214
  </fieldset>
215
  </td>
216
  </tr>
admin/partial/general.php CHANGED
@@ -110,6 +110,47 @@
110
  </fieldset>
111
  </td>
112
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  </tbody>
114
  </table>
115
 
110
  </fieldset>
111
  </td>
112
  </tr>
113
+ <tr>
114
+ <th scope="row" style="padding-left:20px;"><?php _e("Force reload page", "ginger"); ?></th>
115
+ <td>
116
+ <fieldset>
117
+ <legend class="screen-reader-text">
118
+ <span><?php _e("Force reload page", "ginger"); ?></span>
119
+ </legend>
120
+ <p>
121
+ <label>
122
+ <input name="ginger_force_reload" type="radio" value="1" class="tog" <?php if($options["ginger_force_reload"] == "1") echo ' checked="checked" '; ?>><?php _e("Yes", "ginger"); ?>
123
+ </label>
124
+ </p>
125
+ <p>
126
+ <label>
127
+ <input name="ginger_force_reload" type="radio" value="0" class="tog" <?php if($options["ginger_force_reload"] == "0") echo ' checked="checked" '; ?>><?php _e("No", "ginger"); ?>
128
+ </label>
129
+ </p>
130
+ </fieldset>
131
+ </td>
132
+ </tr>
133
+ <tr>
134
+ <th scope="row" style="padding-left:20px;"><?php _e("Keep banner until acceptance", "ginger"); ?></th>
135
+ <td>
136
+ <fieldset>
137
+ <legend class="screen-reader-text">
138
+ <span><?php _e("Keep banner until acceptance", "ginger"); ?></span>
139
+ </legend>
140
+ <p>
141
+ <label>
142
+ <input name="ginger_keep_banner" type="radio" value="1" class="tog" <?php if($options["ginger_keep_banner"] == "1") echo ' checked="checked" '; ?>><?php _e("Yes", "ginger"); ?>
143
+ </label>
144
+ </p>
145
+ <p>
146
+ <label>
147
+ <input name="ginger_keep_banner" type="radio" value="0" class="tog" <?php if($options["ginger_keep_banner"] == "0") echo ' checked="checked" '; ?>><?php _e("No", "ginger"); ?>
148
+ </label>
149
+ </p>
150
+ </fieldset>
151
+ </td>
152
+ </tr>
153
+
154
  </tbody>
155
  </table>
156
 
admin/partial/policy.php CHANGED
@@ -1,99 +1,113 @@
1
  <?php
2
 
3
  ?>
4
- <table class="form-table striped">
5
- <thead>
6
- <tr>
7
- <td colspan="2">
8
- <h2><?php _e("Privacy Policy Setup", "ginger"); ?></h2>
9
- </td>
10
- </tr>
11
- </thead>
12
- <tbody>
13
 
14
- <tr>
15
- <th scope="row" style="padding-left:20px;"><label><input name="choice" type="radio" value="page" onclick="select_privacy_page()" <?php if($options != "") echo ' checked="checked" '; ?>> <?php _e("Select your privacy policy page", "ginger"); ?></label></th>
16
- </tr>
17
- <tr>
18
- <td colspan="2">
19
- <fieldset>
20
- <legend class="screen-reader-text">
21
- <span><?php _e("DialogText", "ginger"); ?></span>
22
- </legend>
23
- <?php
 
 
24
 
25
- $args = array(
26
- 'sort_order' => 'asc',
27
- 'sort_column' => 'post_title',
28
- 'hierarchical' => 1,
29
- 'exclude' => '',
30
- 'include' => '',
31
- 'meta_key' => '',
32
- 'meta_value' => '',
33
- 'authors' => '',
34
- 'child_of' => 0,
35
- 'parent' => -1,
36
- 'exclude_tree' => '',
37
- 'number' => '',
38
- 'offset' => 0,
39
- 'post_type' => 'page',
40
- 'post_status' => 'publish',
41
- 'suppress_filters' => false
42
- );
43
- $pages = get_pages($args);
44
 
45
 
46
 
47
 
48
- ?>
49
- <p>
50
- <label>
51
- <?php _e('Privacy Policy page','ginger');?>
52
- </label>
53
- <select name="ginger_privacy_page" id="privacy_page_select" <?php if($options == "") echo ' disabled="true"'; ?>>
54
- <option value="">Select page</option>
55
- <?php
56
- foreach ($pages as $page){
57
- ?>
 
 
 
 
 
58
 
59
- <option value="<?php echo $page->ID;?>" <?php if($options == $page->ID) echo ' selected="selected" '; ?>><?php echo $page->post_title; ?></option>
60
 
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
 
 
 
 
 
 
 
64
  <?php
65
- }
 
 
 
66
  ?>
67
- </select>
68
- </p>
69
- </fieldset>
70
- </td>
71
- </tr>
72
- <tr>
73
- <th scope="row" style="padding-left:20px;"><label><input name="choice" type="radio" value="new_page" onclick="new_privacy_page()"><?php _e("or create your privacy policy page", "ginger"); ?></label></th>
74
- </tr>
75
- <tr>
76
- <td colspan="2"><fieldset>
77
- <div id="new_page_privacy" style="display: none">
78
- <p>
79
- <label>
80
- <?php _e("Title", "ginger"); ?><input name="privacy_page_title" id="privacy_page_title" type="text" value="Privacy Policy">
81
- </label>
82
- </p>
83
- <p>
84
- <label>
85
- <fieldset>
86
- <legend class="screen-reader-text">
87
- <span><?php _e("DialogText", "ginger"); ?></span>
88
- </legend>
89
- <?php
90
- wp_editor( '', "ginger_dialog_text", array( 'textarea_name' => "privacy_page_content" , 'media_buttons' => false, 'textarea_rows' => 10, 'teeny' => true ) );
91
- ?>
92
- </fieldset>
93
- </label>
94
- </p>
95
- </div>
96
- </td>
97
- </tr>
98
- </tbody>
99
- </table>
1
  <?php
2
 
3
  ?>
4
+ <table class="form-table striped">
5
+ <thead>
6
+ <tr>
7
+ <td colspan="2">
8
+ <h2><?php _e("Privacy Policy Setup", "ginger"); ?></h2>
9
+ </td>
10
+ </tr>
11
+ </thead>
12
+ <tbody>
13
 
14
+ <tr>
15
+ <th scope="row" style="padding-left:20px;"><label><input name="choice" type="radio" value="page"
16
+ onclick="javascript:select_privacy_page();" <?php if ($options != "") echo ' checked="checked" '; ?>> <?php _e("Select your privacy policy page", "ginger"); ?>
17
+ </label></th>
18
+ </tr>
19
+ <tr>
20
+ <td colspan="2">
21
+ <fieldset>
22
+ <legend class="screen-reader-text">
23
+ <span><?php _e("DialogText", "ginger"); ?></span>
24
+ </legend>
25
+ <?php
26
 
27
+ $args = array(
28
+ 'sort_order' => 'asc',
29
+ 'sort_column' => 'post_title',
30
+ 'hierarchical' => 1,
31
+ 'exclude' => '',
32
+ 'include' => '',
33
+ 'meta_key' => '',
34
+ 'meta_value' => '',
35
+ 'authors' => '',
36
+ 'child_of' => 0,
37
+ 'parent' => -1,
38
+ 'exclude_tree' => '',
39
+ 'number' => '',
40
+ 'offset' => 0,
41
+ 'post_type' => 'page',
42
+ 'post_status' => 'publish',
43
+ 'suppress_filters' => false
44
+ );
45
+ $pages = get_pages($args);
46
 
47
 
48
 
49
 
50
+ ?>
51
+ <p>
52
+ <label>
53
+ <?php _e('Privacy Policy page', 'ginger'); ?>
54
+ </label>
55
+ <select name="ginger_privacy_page"
56
+ id="privacy_page_select" <?php if ($options == "") echo ' disabled="true"'; ?>>
57
+ <option value="">Select page</option>
58
+ <?php
59
+ foreach ($pages as $page) {
60
+ ?>
61
+
62
+ <option
63
+ value="<?php echo $page->ID;?>" <?php if ($options == $page->ID) echo ' selected="selected" '; ?>><?php echo $page->post_title; ?></option>
64
+
65
 
 
66
 
67
 
68
+ <?php
69
+ }
70
+ ?>
71
+ </select>
72
+ </p>
73
+ </fieldset>
74
+ </td>
75
+ </tr>
76
+ <tr>
77
+ <th scope="row" style="padding-left:20px;"><label><input name="choice" type="radio" value="new_page"
78
+ onclick="javascript:new_privacy_page();"><?php _e("or create your privacy policy page", "ginger"); ?>
79
+ </label></th>
80
+ </tr>
81
+ <tr>
82
+ <td colspan="2">
83
+ <fieldset>
84
+ <div id="new_page_privacy" style="display: none">
85
+ <p>
86
+ <label>
87
+ <?php _e("Title", "ginger"); ?><input name="privacy_page_title" id="privacy_page_title"
88
+ type="text" value="Privacy Policy">
89
+ </label>
90
+ </p>
91
+ <p id="p_exist_title" style="color: #ff0000; visibility: hidden"><?php _e('Attention ! There is already a page with this title', 'ginger');?></p>
92
 
93
 
94
+ <p>
95
+ <label>
96
+ <fieldset>
97
+ <legend class="screen-reader-text">
98
+ <span><?php _e("DialogText", "ginger"); ?></span>
99
+ </legend>
100
  <?php
101
+ if (function_exists("wp_editor"))
102
+ wp_editor('', "ginger_dialog_text", array('textarea_name' => "privacy_page_content", 'media_buttons' => false, 'textarea_rows' => 10, 'teeny' => true));
103
+ else
104
+ echo "<textarea name='privacy_page_content' ></textarea>";
105
  ?>
106
+ </fieldset>
107
+ </label>
108
+ </p>
109
+ </div>
110
+ </td>
111
+ </tr>
112
+ </tbody>
113
+ </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
front/gingerfront.utils.php CHANGED
@@ -36,6 +36,12 @@ function ginger_scirpt(){ ?>
36
  else:
37
  $click_outside = 'false';
38
  endif;
 
 
 
 
 
 
39
  //Recupero le impostazioni per il banner
40
  //Testo Banner
41
  if($option_ginger_bar['ginger_banner_text']):
@@ -127,11 +133,27 @@ function ginger_scirpt(){ ?>
127
  <?php endif; ?>
128
  + '<\/div>'
129
  + '<\/div>',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  eventScroll: <?php echo $type_scroll; ?>,
131
  scrollOffset: 20,
132
  clickOutside: <?php echo $click_outside; ?>,
133
  cookieName: 'ginger-cookie',
134
  cookieDuration: '365',
 
135
  iframesPlaceholder: true,
136
  iframesPlaceholderClass: 'ginger-iframe-placeholder',
137
  iframesPlaceholderHTML:
@@ -139,13 +161,7 @@ function ginger_scirpt(){ ?>
139
  document.getElementById('ginger-iframePlaceholder-html').innerHTML :
140
  '<p><?php echo $ginger_iframe_text; ?>'
141
  +'<a href="#" class="ginger-accept"><?php echo $label_accept_cookie; ?></a>'
142
- +'<\/p>',
143
- onEnable: function(){
144
- //console.log('enable callback');
145
- },
146
- onDismiss: function(){
147
- //console.log('dismiss callback');
148
- }
149
  });
150
  </script>
151
  <!-- End Ginger Script -->
@@ -200,7 +216,8 @@ function ginger_parse_dom($output){
200
  'assets.pinterest.com',
201
  'www.youtube.com/iframe_api',
202
  'www.google-analytics.com/analytics.js',
203
- 'google-analytics.com/ga.js'
 
204
  );
205
  do_action('ginger_add_scripts');
206
 
@@ -215,10 +232,8 @@ function ginger_parse_dom($output){
215
 
216
  libxml_use_internal_errors(true);
217
  $doc = new DOMDocument();
218
-
219
- // load the HTML string we want to strip
220
- $doc->loadHTML($output);
221
-
222
  // get all the script tags
223
  $script_tags = $doc->getElementsByTagName('script');
224
 
@@ -255,7 +270,7 @@ function ginger_parse_dom($output){
255
  endif;
256
  endforeach;
257
  // get the HTML string back
258
- $output = $doc->saveHTML();
259
  libxml_use_internal_errors(false);
260
  return $output;
261
  }
36
  else:
37
  $click_outside = 'false';
38
  endif;
39
+ //Verifico se è abilitato il forceReload
40
+ if($option_ginger_general['ginger_force_reload'] == 1):
41
+ $ginger_force_reload = 'true';
42
+ else:
43
+ $ginger_force_reload = 'false';
44
+ endif;
45
  //Recupero le impostazioni per il banner
46
  //Testo Banner
47
  if($option_ginger_bar['ginger_banner_text']):
133
  <?php endif; ?>
134
  + '<\/div>'
135
  + '<\/div>',
136
+ <?php if($option_ginger_bar['disable_cookie_button_status'] != 0 && $option_ginger_general['ginger_opt'] != 'out' && $option_ginger_general['ginger_keep_banner'] == 1): ?>
137
+ forceEnable: true,
138
+ forceBannerClass: 'ginger-banner bottom dialog force <?php echo $option_ginger_bar['theme_ginger']; ?>',
139
+ forceEnableText:
140
+ '<p>'
141
+ + '<?php echo $ginger_text; ?>'
142
+ + '<\/p>'
143
+ + '<div class="ginger-button-wrapper">'
144
+ + '<div class="ginger-button">'
145
+ + '<a href="#" class="ginger-accept">'
146
+ + '<?php echo $label_accept_cookie; ?>'
147
+ + '<\/a>'
148
+ + '<\/div>'
149
+ + '<\/div>',
150
+ <?php endif; ?>
151
  eventScroll: <?php echo $type_scroll; ?>,
152
  scrollOffset: 20,
153
  clickOutside: <?php echo $click_outside; ?>,
154
  cookieName: 'ginger-cookie',
155
  cookieDuration: '365',
156
+ forceReload: <?php echo $ginger_force_reload; ?>,
157
  iframesPlaceholder: true,
158
  iframesPlaceholderClass: 'ginger-iframe-placeholder',
159
  iframesPlaceholderHTML:
161
  document.getElementById('ginger-iframePlaceholder-html').innerHTML :
162
  '<p><?php echo $ginger_iframe_text; ?>'
163
  +'<a href="#" class="ginger-accept"><?php echo $label_accept_cookie; ?></a>'
164
+ +'<\/p>'
 
 
 
 
 
 
165
  });
166
  </script>
167
  <!-- End Ginger Script -->
216
  'assets.pinterest.com',
217
  'www.youtube.com/iframe_api',
218
  'www.google-analytics.com/analytics.js',
219
+ 'google-analytics.com/ga.js',
220
+ 'maps.googleapis.com'
221
  );
222
  do_action('ginger_add_scripts');
223
 
232
 
233
  libxml_use_internal_errors(true);
234
  $doc = new DOMDocument();
235
+ $doc->encoding = 'utf-8';
236
+ $doc->loadHTML(mb_convert_encoding($output, 'HTML-ENTITIES', 'UTF-8'));
 
 
237
  // get all the script tags
238
  $script_tags = $doc->getElementsByTagName('script');
239
 
270
  endif;
271
  endforeach;
272
  // get the HTML string back
273
+ $output = $doc->saveHTML($doc->documentElement);
274
  libxml_use_internal_errors(false);
275
  return $output;
276
  }
front/js/cookies-enabler.min.js CHANGED
@@ -1 +1 @@
1
- window.COOKIES_ENABLER=window.COOKIES_ENABLER||function(){"use strict";function e(){var e,n;for(e=1;e<arguments.length;e++)for(n in arguments[e])arguments[e].hasOwnProperty(n)&&(arguments[0][n]=arguments[e][n]);return arguments[0]}function n(e,n,t){var s;return function(){var a=this,i=arguments,o=function(){s=null,t||e.apply(a,i)},r=t&&!s;clearTimeout(s),s=setTimeout(o,n),r&&e.apply(a,i)}}function t(e,n){do if(s(e,n))return e;while(e=e.parentNode);return null}function s(e,n){return(" "+e.className+" ").indexOf(" "+n+" ")>-1}var a,i,o,r={scriptClass:"ce-script",iframeClass:"ce-iframe",acceptClass:"ce-accept",disableClass:"ce-disable",dismissClass:"ce-dismiss",bannerClass:"ce-banner",bannerHTML:null!==document.getElementById("ce-banner-html")?document.getElementById("ce-banner-html").innerHTML:'<p>This website uses cookies. <a href="#" class="ce-accept">Enable Cookies</a></p>',eventScroll:!1,scrollOffset:200,clickOutside:!1,cookieName:"ce-cookie",cookieDuration:"365",iframesPlaceholder:!0,iframesPlaceholderHTML:null!==document.getElementById("ce-iframePlaceholder-html")?document.getElementById("ce-iframePlaceholder-html").innerHTML:'<p>To view this content you need to<a href="#" class="ce-accept">Enable Cookies</a></p>',iframesPlaceholderClass:"ce-iframe-placeholder",onEnable:"",onDismiss:"",onDisable:""},c=function(){Math.abs(window.pageYOffset-o)>a.scrollOffset&&u()},l=function(){i={accept:document.getElementsByClassName(a.acceptClass),disable:document.getElementsByClassName(a.disableClass),banner:document.getElementsByClassName(a.bannerClass),dismiss:document.getElementsByClassName(a.dismissClass)};var e,n=i.accept,s=n.length,r=i.disable,l=r.length,d=i.dismiss,p=d.length;for(a.eventScroll&&window.addEventListener("load",function(){o=window.pageYOffset,window.addEventListener("scroll",c)}),a.clickOutside&&document.addEventListener("click",function(e){var n=e.target;return t(n,a.iframesPlaceholderClass)||t(n,a.disableClass)||t(n,a.bannerClass)||t(n,a.dismissClass)||t(n,a.disableClass)?!1:void u()}),e=0;s>e;e++)n[e].addEventListener("click",function(e){e.preventDefault(),u(e)});for(e=0;l>e;e++)r[e].addEventListener("click",function(e){e.preventDefault(),m(e)});for(e=0;p>e;e++)d[e].addEventListener("click",function(e){e.preventDefault(),f.dismiss()})},d=function(n){a=e({},r,n),"Y"==p.get()?("function"==typeof a.onEnable&&a.onEnable(),b.get(),g.get()):"N"==p.get()?("function"==typeof a.onDisable&&a.onDisable(),g.hide(),l()):(f.create(),g.hide(),l())},u=n(function(e){"undefined"!=typeof e&&"click"===e.type&&e.preventDefault(),"Y"!=p.get()&&(p.set(),b.get(),g.get(),g.removePlaceholders(),f.dismiss(),window.removeEventListener("scroll",c),"function"==typeof a.onEnable&&a.onEnable())},250,!1),m=function(e){"undefined"!=typeof e&&"click"===e.type&&e.preventDefault(),"N"!=p.get()&&(p.set("N"),f.dismiss(),window.removeEventListener("scroll",c),"function"==typeof a.onDisable&&a.onDisable())},f=function(){function e(){var e='<div class="'+a.bannerClass+'">'+a.bannerHTML+"</div>";document.body.insertAdjacentHTML("beforeend",e)}function n(){i.banner[0].style.display="none","function"==typeof a.onDismiss&&a.onDismiss()}return{create:e,dismiss:n}}(),p=function(){function e(e){var n,t,s="undefined"!=typeof e?e:"Y";a.cookieDuration?(n=new Date,n.setTime(n.getTime()+24*a.cookieDuration*60*60*1e3),t="; expires="+n.toGMTString()):t="",document.cookie=a.cookieName+"="+s+t+"; path=/"}function n(){var e,n,t,s=document.cookie.split(";"),i=s.length;for(e=0;i>e;e++)if(n=s[e].substr(0,s[e].indexOf("=")),t=s[e].substr(s[e].indexOf("=")+1),n=n.replace(/^\s+|\s+$/g,""),n==a.cookieName)return unescape(t)}return{set:e,get:n}}(),g=function(){function e(e){var n=document.createElement("div");n.className=a.iframesPlaceholderClass,n.innerHTML=a.iframesPlaceholderHTML,e.parentNode.insertBefore(n,e)}function n(){var e,n=document.getElementsByClassName(a.iframesPlaceholderClass),t=n.length;for(e=t-1;e>=0;e--)n[e].remove()}function t(){var n,t,s=document.getElementsByClassName(a.iframeClass),i=s.length;for(t=0;i>t;t++)n=s[t],n.style.display="none",a.iframesPlaceholder&&e(n)}function s(){var e,n,t,s=document.getElementsByClassName(a.iframeClass),i=s.length;for(t=0;i>t;t++)n=s[t],e=n.attributes["data-ce-src"].value,n.src=e,n.style.display="block"}return{hide:t,get:s,removePlaceholders:n}}(),b=function(){function e(){var e,n,t,s,i=document.getElementsByClassName(a.scriptClass),o=i.length,r=document.createDocumentFragment();for(e=0;o>e;e++)if(i[e].hasAttribute("data-ce-src"))"undefined"==typeof postscribe&&postscribe(i[e].parentNode,'<script src="'+i[e].getAttribute("data-ce-src")+'"></script>');else{for(t=document.createElement("script"),t.type="text/javascript",n=0;n<i[e].attributes.length;n++)s=i[e].attributes[n],s.specified&&"type"!=s.name&&"class"!=s.name&&t.setAttribute(s.name,s.value);t.innerHTML=i[e].innerHTML,r.appendChild(t)}document.body.appendChild(r)}return{get:e}}();return{init:d,enableCookies:u,dismissBanner:f.dismiss}}();
1
+ window.COOKIES_ENABLER=window.COOKIES_ENABLER||function(){"use strict";function e(){var e,n;for(e=1;e<arguments.length;e++)for(n in arguments[e])arguments[e].hasOwnProperty(n)&&(arguments[0][n]=arguments[e][n]);return arguments[0]}function n(e,n,t){var s;return function(){var a=this,i=arguments,o=function(){s=null,t||e.apply(a,i)},r=t&&!s;clearTimeout(s),s=setTimeout(o,n),r&&e.apply(a,i)}}function t(e,n){do if(s(e,n))return e;while(e=e.parentNode);return null}function s(e,n){return(" "+e.className+" ").indexOf(" "+n+" ")>-1}var a,i,o,r={scriptClass:"ce-script",iframeClass:"ce-iframe",acceptClass:"ce-accept",disableClass:"ce-disable",dismissClass:"ce-dismiss",bannerClass:"ce-banner",bannerHTML:null!==document.getElementById("ce-banner-html")?document.getElementById("ce-banner-html").innerHTML:'<p>This website uses cookies. <a href="#" class="ce-accept">Enable Cookies</a></p>',eventScroll:!1,scrollOffset:200,clickOutside:!1,cookieName:"ce-cookie",cookieDuration:"365",forceBannerClass:"ginger-banner bottom dialog dark force",forceEnable:!1,forceEnableText:'<div class="ginger-button-wrapper"><div class="ginger-button"><a href="#" class="ginger-accept">Enable Cookie</a></div></div>',iframesPlaceholder:!0,iframesPlaceholderHTML:null!==document.getElementById("ce-iframePlaceholder-html")?document.getElementById("ce-iframePlaceholder-html").innerHTML:'<p>To view this content you need to<a href="#" class="ce-accept">Enable Cookies</a></p>',iframesPlaceholderClass:"ce-iframe-placeholder",onEnable:"",onDismiss:"",onDisable:"",forceReload:!1},c=function(){Math.abs(window.pageYOffset-o)>a.scrollOffset&&"N"!=p.get()&&u()},l=function(){i={accept:document.getElementsByClassName(a.acceptClass),disable:document.getElementsByClassName(a.disableClass),banner:document.getElementsByClassName(a.bannerClass),bannerForce:document.getElementsByClassName(a.forceBannerClass),dismiss:document.getElementsByClassName(a.dismissClass)};var e,n=i.accept,s=n.length,r=i.disable,l=r.length,d=i.dismiss,b=d.length;for(a.eventScroll&&window.addEventListener("load",function(){o=window.pageYOffset,window.addEventListener("scroll",c)}),a.clickOutside&&document.addEventListener("click",function(e){var n=e.target;return t(n,a.iframesPlaceholderClass)||t(n,a.disableClass)||t(n,a.bannerClass)||t(n,a.dismissClass)||t(n,a.disableClass)?!1:void("N"!=p.get()&&u())}),e=0;s>e;e++)n[e].addEventListener("click",function(e){e.preventDefault(),u(e)});for(e=0;l>e;e++)r[e].addEventListener("click",function(e){e.preventDefault(),f(e)});for(e=0;b>e;e++)d[e].addEventListener("click",function(e){e.preventDefault(),m.dismiss()})},d=function(n){a=e({},r,n),"Y"==p.get()?("function"==typeof a.onEnable&&a.onEnable(),g.get(),b.get()):"N"==p.get()?(0!=a.forceEnable&&m.forceAccept(),"function"==typeof a.onDisable&&a.onDisable(),b.hide(),l()):(m.create(),b.hide(),l())},u=n(function(e){"undefined"!=typeof e&&"click"===e.type&&e.preventDefault(),"Y"!=p.get()&&(p.set(),g.get(),b.get(),b.removePlaceholders(),m.dismiss(),window.removeEventListener("scroll",c),"function"==typeof a.onEnable&&a.onEnable(),1==a.forceReload&&location.reload())},250,!1),f=function(e){"undefined"!=typeof e&&"click"===e.type&&e.preventDefault(),"N"!=p.get()&&(p.set("N"),m.dismiss(),window.removeEventListener("scroll",c),"function"==typeof a.onDisable&&a.onDisable())},m=function(){function e(){var e='<div class="'+a.bannerClass+'">'+a.bannerHTML+"</div>";document.body.insertAdjacentHTML("beforeend",e)}function n(){var e='<div class="'+a.forceBannerClass+'">'+a.forceEnableText+"</div>";document.body.insertAdjacentHTML("beforeend",e)}function t(){console.log(i.bannerForce),i.bannerForce[0]&&(i.bannerForce[0].style.display="none"),i.banner[0]&&(i.banner[0].style.display="none"),"function"==typeof a.onDismiss&&a.onDismiss()}return{create:e,dismiss:t,forceAccept:n}}(),p=function(){function e(e){var n,t,s="undefined"!=typeof e?e:"Y";a.cookieDuration?(n=new Date,n.setTime(n.getTime()+24*a.cookieDuration*60*60*1e3),t="; expires="+n.toGMTString()):t="",document.cookie=a.cookieName+"="+s+t+"; path=/"}function n(){var e,n,t,s=document.cookie.split(";"),i=s.length;for(e=0;i>e;e++)if(n=s[e].substr(0,s[e].indexOf("=")),t=s[e].substr(s[e].indexOf("=")+1),n=n.replace(/^\s+|\s+$/g,""),n==a.cookieName)return unescape(t)}return{set:e,get:n}}(),b=function(){function e(e){var n=document.createElement("div");n.className=a.iframesPlaceholderClass,n.innerHTML=a.iframesPlaceholderHTML,e.parentNode.insertBefore(n,e)}function n(){var e,n=document.getElementsByClassName(a.iframesPlaceholderClass),t=n.length;for(e=t-1;e>=0;e--)n[e].remove()}function t(){var n,t,s=document.getElementsByClassName(a.iframeClass),i=s.length;for(t=0;i>t;t++)n=s[t],n.style.display="none",a.iframesPlaceholder&&e(n)}function s(){var e,n,t,s=document.getElementsByClassName(a.iframeClass),i=s.length;for(t=0;i>t;t++)n=s[t],e=n.attributes["data-ce-src"].value,n.src=e,n.style.display="block"}return{hide:t,get:s,removePlaceholders:n}}(),g=function(){function e(){var e,n,t,s,i=document.getElementsByClassName(a.scriptClass),o=i.length,r=document.createDocumentFragment();for(e=0;o>e;e++)if(i[e].hasAttribute("data-ce-src"))"undefined"==typeof postscribe&&postscribe(i[e].parentNode,'<script src="'+i[e].getAttribute("data-ce-src")+'"></script>');else{for(t=document.createElement("script"),t.type="text/javascript",n=0;n<i[e].attributes.length;n++)s=i[e].attributes[n],s.specified&&"type"!=s.name&&"class"!=s.name&&t.setAttribute(s.name,s.value);t.innerHTML=i[e].innerHTML,r.appendChild(t)}document.body.appendChild(r)}return{get:e}}();return{init:d,enableCookies:u,dismissBanner:m.dismiss}}();
ginger-eu-cookie-law.php CHANGED
@@ -3,21 +3,26 @@
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://manafactory.it/
5
  Description: Make your website compliant with EU Cookie Policy.
6
- Version: 1.0
7
  Author: Manafactory
8
  Author URI: http://manafactory.it/
9
  License: GPLv2 or later
10
  Text Domain: ginger
11
  */
 
 
 
12
  load_plugin_textdomain( 'ginger', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
13
 
14
  //Gestione Backend
15
  if(is_admin()){
16
  require_once("admin/ginger.utils.php");
 
17
  }
18
  //Gestione Frontend
19
  if(!is_admin()){
20
  require_once("front/gingerfront.utils.php");
21
  }
22
 
23
- register_activation_hook( __FILE__, 'ginger_plugin_activate' );
 
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://manafactory.it/
5
  Description: Make your website compliant with EU Cookie Policy.
6
+ Version: 1.1
7
  Author: Manafactory
8
  Author URI: http://manafactory.it/
9
  License: GPLv2 or later
10
  Text Domain: ginger
11
  */
12
+
13
+ if ( !defined('ABSPATH')) exit;
14
+
15
  load_plugin_textdomain( 'ginger', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
16
 
17
  //Gestione Backend
18
  if(is_admin()){
19
  require_once("admin/ginger.utils.php");
20
+ require_once("admin/ginger.pointer.php");
21
  }
22
  //Gestione Frontend
23
  if(!is_admin()){
24
  require_once("front/gingerfront.utils.php");
25
  }
26
 
27
+ register_activation_hook( __FILE__, 'ginger_plugin_activate' );
28
+
img/ok.png ADDED
Binary file
img/xx.png ADDED
Binary file
languages/ginger-it_IT.mo CHANGED
Binary file
languages/ginger-it_IT.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: _s 1.0.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tags/_s\n"
7
- "POT-Creation-Date: 2015-06-18 13:07+0100\n"
8
- "PO-Revision-Date: 2015-06-18 13:37+0100\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: it_IT\n"
@@ -19,121 +19,70 @@ msgstr ""
19
  "X-Poedit-Basepath: .\n"
20
  "X-Poedit-SearchPath-0: /var/www/sitolocale/wp-content/plugins/ginger\n"
21
 
22
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  msgid "Updated!"
24
  msgstr "Aggiornato!"
25
 
26
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:54
27
  msgid "General Configuration"
28
  msgstr "Configurazione Generale"
29
 
30
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:55
31
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:8
32
  msgid "Banner Setup"
33
  msgstr "Banner Setup"
34
 
35
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:57
36
  msgid "Privacy Policy"
37
  msgstr "Privacy Policy"
38
 
39
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:58
40
- msgid "Edit Url"
41
- msgstr "Url Setup"
42
-
43
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:61
44
- msgid "WPML Setup"
45
- msgstr "WPML Setup"
46
-
47
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:99
48
  msgid "Save Changes"
49
  msgstr "Aggiorna"
50
 
51
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.utils.php:15
52
- msgid "About EU Law"
53
- msgstr "About EU Law"
54
-
55
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:8
56
- msgid "Wpml Setup"
57
- msgstr "Wpml Setup"
58
-
59
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:14
60
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:15
61
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:14
62
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:15
63
- msgid "Banner Position"
64
- msgstr "Posizione Banner"
65
-
66
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:16
67
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:16
68
- msgid "Top"
69
- msgstr "In alto"
70
-
71
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:17
72
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:17
73
- msgid "Bottom"
74
- msgstr "In basso"
75
-
76
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:22
77
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:23
78
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:22
79
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:23
80
- msgid "Banner Text"
81
- msgstr "Testo Banner"
82
-
83
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:29
84
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:29
85
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:22
86
  msgid ""
87
- "You can use syntax <code>{{privacy_page}}</code> to link Privacy Police Page "
88
- "defined in <a href=\"admin.php?page=ginger-setup&tab=policy\">Privacy Policy "
89
- "Tab</a>"
90
  msgstr ""
91
- "Puoi usare la sintassi <code>{{privacy_page}}</code> per linkare alla pagina "
92
- "Privacy Policy definita in <a href=\"admin.php?page=ginger-setup&tab=policy"
93
- "\">Privacy Policy Tab</a>"
94
-
95
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:34
96
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:35
97
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:34
98
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:35
99
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:47
100
- msgid "Iframe Text"
101
- msgstr "Testo Iframe"
102
 
103
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:47
104
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:28
105
- msgid "Colors"
106
- msgstr "Colori"
107
 
108
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:52
109
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:53
110
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:109
111
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:110
112
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:33
113
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:34
114
- msgid "Background"
115
- msgstr "Sfondo"
116
 
117
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:61
118
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:62
119
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:55
120
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:66
121
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:83
122
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:118
123
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:119
124
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:42
125
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:43
126
- msgid "Text"
127
- msgstr "Testo"
128
 
129
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:70
130
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/addon/wpml_addon.php:71
131
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/link.php:8
132
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/url.php:8
133
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:134
134
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:135
135
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:51
136
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:52
137
  msgid "Link"
138
  msgstr "Link"
139
 
@@ -166,141 +115,203 @@ msgid "disabled"
166
  msgstr "disabilitato"
167
 
168
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:14
169
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:15
170
  msgid "Enable Ginger"
171
  msgstr "Abilita Ginger"
172
 
173
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:16
174
  msgid "Enabled"
175
  msgstr "Abilitato"
176
 
177
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:17
178
  msgid "Disabled"
179
  msgstr "Disabilitato"
180
 
181
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:23
182
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:24
183
- msgid "Choose Banner Type"
184
- msgstr "Scegli il tipo di banner"
185
-
186
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:26
187
- msgid "Bar"
188
- msgstr "Barra"
189
-
190
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:27
191
- msgid "Dialog"
192
- msgstr ""
193
-
194
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:32
195
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:33
196
  msgid "Do you have a cache system?"
197
  msgstr "Hai un sistema di cache"
198
 
199
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:34
200
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:58
201
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:71
202
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:87
203
  msgid "Yes"
204
  msgstr "Si"
205
 
206
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:35
207
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:59
208
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:73
209
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:89
210
  msgid "No"
211
  msgstr "No"
212
 
213
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:40
214
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:41
215
  msgid "Cookie Confirmation Type"
216
  msgstr "Tipo di conferma dei cookie"
217
 
218
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:42
219
  msgid "Opt-In"
220
- msgstr ""
221
 
222
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:42
223
  msgid "Cookies are disabled until banner is accepted"
224
  msgstr "I cookie sono disabilitati finchè il banner non è accettato"
225
 
226
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:43
227
  msgid "Opt-Out"
228
- msgstr ""
229
 
230
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:43
231
  msgid "Cookies are disabled only if explicitly requested"
232
  msgstr "I cookie sono disabilitati solo se esplicitamente richiesto"
233
 
234
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:48
235
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:49
236
  msgid "Let scroll to confirm"
237
  msgstr "Scrolla per confermare"
238
 
239
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:50
240
  msgid "Scroll to accept cookie"
241
  msgstr "Scrolla per accettare i cookie"
242
 
243
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:51
244
  msgid "Keep banner after scroll"
245
  msgstr "Non abilitare i cookie con lo scroll"
246
 
247
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:56
248
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:57
249
  msgid "Click out of banner to accept cookie"
250
  msgstr "Clicca fuori dal banner per accettare i cookie"
251
 
252
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  msgid "Customize your banner buttons"
254
  msgstr "Personalizza i tuoi Bunner Buttons"
255
 
256
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:50
257
  msgid "Accept cookie Button"
258
  msgstr "Button Accetta Cookie"
259
 
260
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:57
 
 
 
 
 
 
 
 
 
 
261
  msgid "Accept Cookie"
262
  msgstr "Accetta Cookie"
263
 
264
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:61
265
  msgid "Disable cookie Button"
266
  msgstr "Button Disabilita Cookie "
267
 
268
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:68
269
  msgid "Disable Cookie"
270
  msgstr "Disabilita Cookie"
271
 
272
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:70
273
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:86
274
  msgid "Enable:"
275
  msgstr "Abilita:"
276
 
277
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:78
278
  msgid "Read More Button"
279
  msgstr "Button Read More "
280
 
281
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:85
282
  msgid "Read More"
283
  msgstr "Read More"
284
 
285
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:96
286
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:97
287
  msgid "Choose Ginger Theme"
288
  msgstr "Scegli il tema Ginger"
289
 
290
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:98
291
  msgid "Light Theme"
292
  msgstr "Light Theme"
293
 
294
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:99
295
  msgid "Dark Theme"
296
  msgstr "Dark Theme"
297
 
298
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:104
299
  msgid "Customize your Ginger theme"
300
  msgstr "Personalizza il tuo tema Ginger"
301
 
302
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:127
303
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:128
 
 
 
 
 
 
 
304
  msgid "Button"
305
  msgstr "Button"
306
 
@@ -312,24 +323,52 @@ msgstr "Banner Dialog Setup"
312
  msgid "Dialog Text"
313
  msgstr "Testo Dialog "
314
 
315
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:16
316
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:18
317
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:79
318
  msgid "DialogText"
319
  msgstr "Testo Dialog "
320
 
 
 
 
 
321
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:8
322
  msgid "Privacy Policy Setup"
323
  msgstr "Privacy Policy Setup"
324
 
325
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:15
326
  msgid "Select your privacy policy page"
327
  msgstr "Seleziona la tua pagina privacy policy"
328
 
329
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:68
 
 
 
 
330
  msgid "or create your privacy policy page"
331
  msgstr "oppure crea la tua pagina privacy policy "
332
 
333
- #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:73
334
  msgid "Title"
335
  msgstr "Titolo"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  msgstr ""
5
  "Project-Id-Version: _s 1.0.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tags/_s\n"
7
+ "POT-Creation-Date: 2015-06-22 17:28+0100\n"
8
+ "PO-Revision-Date: 2015-06-22 17:33+0100\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: it_IT\n"
19
  "X-Poedit-Basepath: .\n"
20
  "X-Poedit-SearchPath-0: /var/www/sitolocale/wp-content/plugins/ginger\n"
21
 
22
+ #: /var/www/sitolocale/wp-content/plugins/ginger/front/gingerfront.utils.php:79
23
+ msgid "Enable Cookies"
24
+ msgstr "Abilita Cookies"
25
+
26
+ #: /var/www/sitolocale/wp-content/plugins/ginger/front/gingerfront.utils.php:85
27
+ msgid "Disable Cookies"
28
+ msgstr "Disabilita Cookies"
29
+
30
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:39
31
+ msgid ""
32
+ "The page with the specified title already exists and is your current privacy "
33
+ "policy page!"
34
+ msgstr ""
35
+ "La pagina con il titolo specificato è già esistente ed impostata come pagina "
36
+ "di privacy attuale!"
37
+
38
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:60
39
  msgid "Updated!"
40
  msgstr "Aggiornato!"
41
 
42
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:70
43
  msgid "General Configuration"
44
  msgstr "Configurazione Generale"
45
 
46
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:71
47
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:5
48
  msgid "Banner Setup"
49
  msgstr "Banner Setup"
50
 
51
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:72
52
  msgid "Privacy Policy"
53
  msgstr "Privacy Policy"
54
 
55
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.admin.php:89
 
 
 
 
 
 
 
 
56
  msgid "Save Changes"
57
  msgstr "Aggiorna"
58
 
59
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.utils.php:71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  msgid ""
61
+ "This website uses cookies. By continuing to use the site you are agreeing to "
62
+ "its use of cookies."
 
63
  msgstr ""
64
+ "Questo sito utilizza cookie. Continuando la navigazione acconsenti "
65
+ "all'utilizzo di questi cookie."
 
 
 
 
 
 
 
 
 
66
 
67
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.utils.php:71
68
+ msgid "This content has been disabled because you have not accepted cookies."
69
+ msgstr ""
70
+ "Questo contenuto può essere mostrato solo accettando l'utilizzo dei cookies."
71
 
72
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.pointer.php:39
73
+ msgid "Ginger Cookie Law Settings"
74
+ msgstr "Ginger Cookie Law Settings"
 
 
 
 
 
75
 
76
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.pointer.php:40
77
+ msgid "<b>One more step</b>: you need to enable banner in "
78
+ msgstr "<b>Ancora un passo</b>: devi abilitare il banner in "
 
 
 
 
 
 
 
 
79
 
 
 
80
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/link.php:8
81
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/url.php:8
82
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:208
83
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:211
84
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:64
85
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:67
86
  msgid "Link"
87
  msgstr "Link"
88
 
115
  msgstr "disabilitato"
116
 
117
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:14
118
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:17
119
  msgid "Enable Ginger"
120
  msgstr "Abilita Ginger"
121
 
122
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:20
123
  msgid "Enabled"
124
  msgstr "Abilitato"
125
 
126
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:25
127
  msgid "Disabled"
128
  msgstr "Disabilitato"
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:32
131
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:35
132
  msgid "Do you have a cache system?"
133
  msgstr "Hai un sistema di cache"
134
 
135
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:38
136
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:102
137
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:122
138
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:142
139
  msgid "Yes"
140
  msgstr "Si"
141
 
142
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:43
143
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:107
144
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:127
145
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:147
146
  msgid "No"
147
  msgstr "No"
148
 
149
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:50
150
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:53
151
  msgid "Cookie Confirmation Type"
152
  msgstr "Tipo di conferma dei cookie"
153
 
154
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:56
155
  msgid "Opt-In"
156
+ msgstr "Opt-In"
157
 
158
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:59
159
  msgid "Cookies are disabled until banner is accepted"
160
  msgstr "I cookie sono disabilitati finchè il banner non è accettato"
161
 
162
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:64
163
  msgid "Opt-Out"
164
+ msgstr "Opt-Out"
165
 
166
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:67
167
  msgid "Cookies are disabled only if explicitly requested"
168
  msgstr "I cookie sono disabilitati solo se esplicitamente richiesto"
169
 
170
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:74
171
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:78
172
  msgid "Let scroll to confirm"
173
  msgstr "Scrolla per confermare"
174
 
175
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:82
176
  msgid "Scroll to accept cookie"
177
  msgstr "Scrolla per accettare i cookie"
178
 
179
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:87
180
  msgid "Keep banner after scroll"
181
  msgstr "Non abilitare i cookie con lo scroll"
182
 
183
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:94
184
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:98
185
  msgid "Click out of banner to accept cookie"
186
  msgstr "Clicca fuori dal banner per accettare i cookie"
187
 
188
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:114
189
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:118
190
+ msgid "Force reload page"
191
+ msgstr "Forza il reload della pagina"
192
+
193
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:134
194
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:138
195
+ msgid "Keep banner until acceptance"
196
+ msgstr "Mantieni il banner fino all'accettazione"
197
+
198
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:11
199
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:14
200
+ msgid "Choose Banner Type"
201
+ msgstr "Scegli il tipo di banner"
202
+
203
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:16
204
+ msgid "Bar"
205
+ msgstr "Barra"
206
+
207
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:20
208
+ msgid "Dialog"
209
+ msgstr "Dialog"
210
+
211
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:26
212
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:29
213
+ msgid "Banner Position"
214
+ msgstr "Posizione Banner"
215
+
216
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:31
217
+ msgid "Top"
218
+ msgstr "In alto"
219
+
220
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:35
221
+ msgid "Bottom"
222
+ msgstr "In basso"
223
+
224
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:41
225
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:44
226
+ msgid "Banner Text"
227
+ msgstr "Testo Banner"
228
+
229
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:52
230
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:24
231
+ msgid ""
232
+ "You can use syntax <code>{{privacy_page}}</code> to link Privacy Police Page "
233
+ "defined in <a href=\"admin.php?page=ginger-setup&tab=policy\">Privacy Policy "
234
+ "Tab</a>"
235
+ msgstr ""
236
+ "Puoi usare la sintassi <code>{{privacy_page}}</code> per linkare alla pagina "
237
+ "Privacy Policy definita in <a href=\"admin.php?page=ginger-setup&tab=policy"
238
+ "\">Privacy Policy Tab</a>"
239
+
240
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:59
241
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:62
242
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:77
243
+ msgid "Iframe Text"
244
+ msgstr "Testo Iframe"
245
+
246
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:74
247
  msgid "Customize your banner buttons"
248
  msgstr "Personalizza i tuoi Bunner Buttons"
249
 
250
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:79
251
  msgid "Accept cookie Button"
252
  msgstr "Button Accetta Cookie"
253
 
254
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:83
255
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:97
256
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:129
257
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:188
258
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:191
259
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:51
260
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:53
261
+ msgid "Text"
262
+ msgstr "Testo"
263
+
264
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:88
265
  msgid "Accept Cookie"
266
  msgstr "Accetta Cookie"
267
 
268
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:93
269
  msgid "Disable cookie Button"
270
  msgstr "Button Disabilita Cookie "
271
 
272
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:102
273
  msgid "Disable Cookie"
274
  msgstr "Disabilita Cookie"
275
 
276
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:106
277
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:138
278
  msgid "Enable:"
279
  msgstr "Abilita:"
280
 
281
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:125
282
  msgid "Read More Button"
283
  msgstr "Button Read More "
284
 
285
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:134
286
  msgid "Read More"
287
  msgstr "Read More"
288
 
289
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:158
290
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:161
291
  msgid "Choose Ginger Theme"
292
  msgstr "Scegli il tema Ginger"
293
 
294
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:163
295
  msgid "Light Theme"
296
  msgstr "Light Theme"
297
 
298
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:167
299
  msgid "Dark Theme"
300
  msgstr "Dark Theme"
301
 
302
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:174
303
  msgid "Customize your Ginger theme"
304
  msgstr "Personalizza il tuo tema Ginger"
305
 
306
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:178
307
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:181
308
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:37
309
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:39
310
+ msgid "Background"
311
+ msgstr "Sfondo"
312
+
313
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:198
314
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:201
315
  msgid "Button"
316
  msgstr "Button"
317
 
323
  msgid "Dialog Text"
324
  msgstr "Testo Dialog "
325
 
326
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:17
327
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:23
328
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:98
329
  msgid "DialogText"
330
  msgstr "Testo Dialog "
331
 
332
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:32
333
+ msgid "Colors"
334
+ msgstr "Colori"
335
+
336
  #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:8
337
  msgid "Privacy Policy Setup"
338
  msgstr "Privacy Policy Setup"
339
 
340
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:16
341
  msgid "Select your privacy policy page"
342
  msgstr "Seleziona la tua pagina privacy policy"
343
 
344
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:53
345
+ msgid "Privacy Policy page"
346
+ msgstr "Privacy Policy Page"
347
+
348
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:78
349
  msgid "or create your privacy policy page"
350
  msgstr "oppure crea la tua pagina privacy policy "
351
 
352
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:87
353
  msgid "Title"
354
  msgstr "Titolo"
355
+
356
+ #: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:91
357
+ msgid "Attention ! There is already a page with this title"
358
+ msgstr "Attenzione! C'è già una pagina con questo titolo"
359
+
360
+ #, fuzzy
361
+ #~ msgid "Read More Button2"
362
+ #~ msgstr "Button Read More "
363
+
364
+ #~ msgid "Edit Url"
365
+ #~ msgstr "Url Setup"
366
+
367
+ #~ msgid "WPML Setup"
368
+ #~ msgstr "WPML Setup"
369
+
370
+ #~ msgid "About EU Law"
371
+ #~ msgstr "About EU Law"
372
+
373
+ #~ msgid "Wpml Setup"
374
+ #~ msgstr "Wpml Setup"
readme.txt CHANGED
@@ -3,25 +3,39 @@ Contributors: manafactory, webgrafia, matteobarale
3
  Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia
4
  Requires at least: 3.0.1
5
  Tested up to: 4.4.2
6
- Stable tag: 1.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Ginger allows to show a configurable banner and blocks the most common third party cookies complying with European Cookie Laws.
11
  == Description ==
12
 
13
- Ginger allows to show a configurable banner and blocks the most common third party cookies complying with European Cookie Laws.
14
- It works in opt-in 0r opt-out mode, in order to be compliant with all EU implementation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
- Plug’n' play, it doesn’t need customization of theme or plugins files.
 
 
17
 
18
- Features:
19
 
20
- * Position, style, colour, type and banner configurable
21
- * Opt-in or Opt-out mode
22
- * All caching systems compliant
23
- * Javascript and iframe block
24
- * iframe lock if javascript disabled
25
 
26
 
27
  == Installation ==
@@ -32,17 +46,17 @@ Features:
32
 
33
  == Frequently Asked Questions ==
34
 
35
- = Do I need of coding theme or plugins? =
36
 
37
- Absolutely not. Is really plug'n play
38
 
39
- = It block Cookies before esplicitly accepted by user? =
40
 
41
  Sure, you can choose opt-in or opt-out mode to let it work as you wish.
42
 
43
- = It use jQuery? =
44
 
45
- No, you can be safe from plugins conflict, is developed using Cookies Enabler Js Library developed by Nicholas Ruggeri: https://github.com/nicholasruggeri/cookies-enabler
46
 
47
 
48
  == Screenshots ==
@@ -54,8 +68,16 @@ No, you can be safe from plugins conflict, is developed using Cookies Enabler Js
54
 
55
  == Changelog ==
56
 
57
- = 1.0 =
58
- * First stable release.
 
 
 
 
 
59
 
60
  = 1.0.1 =
61
- * Uninstall file
 
 
 
3
  Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia
4
  Requires at least: 3.0.1
5
  Tested up to: 4.4.2
6
+ Stable tag: 1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Ginger allows to show a configurable banner and blocks the most common third party cookies complying with European Cookie Laws.
11
  == Description ==
12
 
13
+ The aim of Ginger is to be a **complete plug'n play solution** that make your website compliant with EU Cookie law.
14
+
15
+ = Features: =
16
+ * really **plug'n play**: simply activate, and enjoy
17
+ * complete **banner** configuration: style, position and colors
18
+ * **Opt-in** mode enabler: block cookies BEFORE user acceptance (fit for **Italy** regulation)
19
+ * Google Analytics **anonimyzer**
20
+ * Complatible with server **caching**
21
+
22
+
23
+ = Actually Support: =
24
+ * twitter
25
+ * facebook
26
+ * linkedin
27
+ * pinterest
28
+ * google +
29
+ * google analytics
30
+ * google maps
31
+ * youtube
32
 
33
+ = Coming soon: =
34
+ * **WML** support
35
+ * **adSense** extension
36
 
 
37
 
38
+ **Send us [suggestions or bug report](https://wordpress.org/support/plugin/ginger)!**
 
 
 
 
39
 
40
 
41
  == Installation ==
46
 
47
  == Frequently Asked Questions ==
48
 
49
+ = Do I need to code themes or plugins? =
50
 
51
+ Absolutely not. It's really plug'n play
52
 
53
+ = Does it block cookies before they’re explicitly accepted by user? =
54
 
55
  Sure, you can choose opt-in or opt-out mode to let it work as you wish.
56
 
57
+ = Does it use jQuery? =
58
 
59
+ No, you can be safe from plugins conflict. It's been developed using Cookies Enabler Js Library developed by Nicholas Ruggeri: https://github.com/nicholasruggeri/cookies-enabler
60
 
61
 
62
  == Screenshots ==
68
 
69
  == Changelog ==
70
 
71
+ = 1.1 =
72
+ * fix encoding
73
+ * activation with default options
74
+ * added refresh option
75
+ * fixed wp 3.0 compatibility
76
+ * fix italian translations
77
+ * admin pointer
78
 
79
  = 1.0.1 =
80
+ * Clean uninstall
81
+
82
+ = 1.0 =
83
+ * First stable release
uninstall.php CHANGED
@@ -1,12 +1,12 @@
1
- <?php
2
- /**
3
- * Uninstall functions
4
- */
5
-
6
- if ( ! current_user_can( 'activate_plugins' ) )
7
- return;
8
-
9
-
10
- delete_option('ginger_general');
11
- delete_option('ginger_banner');
12
- delete_option('ginger_policy');
1
+ <?php
2
+ /**
3
+ * Uninstall functions
4
+ */
5
+
6
+ if ( ! current_user_can( 'activate_plugins' ) )
7
+ return;
8
+
9
+
10
+ delete_option('ginger_general');
11
+ delete_option('ginger_banner');
12
+ delete_option('ginger_policy');