Ginger – EU Cookie Law - Version 3.0.2

Version Description

Download this release

Release Info

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

Code changes from version 3.0.1 to 3.0.2

admin/ginger.about.php CHANGED
@@ -2,13 +2,13 @@
2
  <div class="wrap">
3
  <div style="background-color: #F99A30; padding:10px;">
4
 
5
- <a href="http://www.ginger-cookielaw.com/download/" target="_blank" ><img src="<?php echo plugins_url('/ginger/admin/img/logo-head.png')?>" style="float: left;"></a>
6
  <p style="color: #FFFFFF; font-size: 30px; ">Need more?<br> Import-Export tools, Dinamic Google Analytics, Custom JS configurator, Logger, Multilanguage Tools, and more </p>
7
 
8
  </div>
9
 
10
 
11
- <div style="text-align: center; margin:60px 0px;"><h1 style="font-size: 40px; "><a href="http://www.ginger-cookielaw.com/download/" target="_blank" style="border-bottom: solid 6px #F99A30; color:#F99A30;text-decoration: none;">GET GINGER TOOLS INSTALLER!</a></h1></div>
12
 
13
 
14
  <br style="clear:both;">
2
  <div class="wrap">
3
  <div style="background-color: #F99A30; padding:10px;">
4
 
5
+ <a href="http://www.ginger-cookielaw.com/download/" target="_blank" ><img src="<?php echo plugins_url('../admin/img/logo-head.png', __FILE__)?>" style="float: left;"></a>
6
  <p style="color: #FFFFFF; font-size: 30px; ">Need more?<br> Import-Export tools, Dinamic Google Analytics, Custom JS configurator, Logger, Multilanguage Tools, and more </p>
7
 
8
  </div>
9
 
10
 
11
+ <div style="text-align: center; margin:60px 0px;"><h1 style="font-size: 40px; "><a href="http://www.ginger-cookielaw.com/download/" target="_blank" style="border-bottom: solid 6px #F99A30; color:#F99A30;text-decoration: none;">GET GINGER PLUS!</a></h1></div>
12
 
13
 
14
  <br style="clear:both;">
admin/ginger.admin.php CHANGED
@@ -35,24 +35,25 @@ if ($key == 'ginger_banner'){
35
  if ($key=='ginger_policy'){
36
  if ($_POST["choice"]=="new_page"){
37
 
38
- // controllo se il nome della privacy page è già esistente.
39
- if (get_page_by_title( sanitize_text_field($_POST["privacy_page_title"]), $output, 'page' )){
40
-
41
- $control_page=get_page_by_title( sanitize_text_field($_POST["privacy_page_title"]), $output, 'page' );
42
- if ($control_page->post_status=='publish') {
 
43
  $control_page_id = $control_page->ID;
44
  $privacy_page_id = $control_page_id;
45
  echo '<div class="updated"><p>'.__( 'The page with the specified title already exists and is your current privacy policy page!', 'ginger' ).'</p></div>';
46
 
47
  }else{
48
 
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
- $id_privacy_new_page=save_privacy_page($_POST["privacy_page_title"],$_POST["privacy_page_content"]);
55
- $privacy_page_id=$id_privacy_new_page;
56
  }
57
 
58
  }else{
35
  if ($key=='ginger_policy'){
36
  if ($_POST["choice"]=="new_page"){
37
 
38
+ // controllo se il nome della privacy page è già esistente.
39
+ $title_post = sanitize_text_field($_POST["privacy_page_title"]);
40
+ $content_post = wp_kses_post($_POST["privacy_page_content"]);
41
+ $control_page = get_page_by_title( $title_post , '', 'page' );
42
+ if ($control_page){
43
+ if ($control_page->post_status == 'publish') {
44
  $control_page_id = $control_page->ID;
45
  $privacy_page_id = $control_page_id;
46
  echo '<div class="updated"><p>'.__( 'The page with the specified title already exists and is your current privacy policy page!', 'ginger' ).'</p></div>';
47
 
48
  }else{
49
 
50
+ $id_privacy_new_page = save_privacy_page($title_post, $content_post);
51
+ $privacy_page_id = $id_privacy_new_page;
52
  }
53
 
54
  }else{
55
+ $id_privacy_new_page = save_privacy_page($title_post,$content_post);
56
+ $privacy_page_id = $id_privacy_new_page;
57
  }
58
 
59
  }else{
ginger-eu-cookie-law.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://www.ginger-cookielaw.com/
5
  Description: Make your website compliant with EU Cookie Policy! For more features get <a href="">Ginger Plus - Tools Installer</a>
6
- Version: 3.0.1
7
  Author: Manafactory
8
  Author URI: http://manafactory.it/
9
  License: GPLv2 or later
3
  Plugin Name: Ginger - EU Cookie Law
4
  Plugin URI: http://www.ginger-cookielaw.com/
5
  Description: Make your website compliant with EU Cookie Policy! For more features get <a href="">Ginger Plus - Tools Installer</a>
6
+ Version: 3.0.2
7
  Author: Manafactory
8
  Author URI: http://manafactory.it/
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.ginger-cookielaw.com/
4
  Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia
5
  Requires at least: 3.0.1
6
  Tested up to: 4.3
7
- Stable tag: 3.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia
5
  Requires at least: 3.0.1
6
  Tested up to: 4.3
7
+ Stable tag: 3.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10