Ginger – EU Cookie Law - Version 2.3.6

Version Description

  • Fixed 3.0 compatibility
Download this release

Release Info

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

Code changes from version 2.3.5 to 2.3.6

Files changed (3) hide show
  1. admin/ginger.utils.php +33 -30
  2. ginger-eu-cookie-law.php +1 -1
  3. readme.txt +4 -1
admin/ginger.utils.php CHANGED
@@ -15,7 +15,8 @@ function register_ginger_menu_page(){
15
  do_action("ginger_add_menu");
16
 
17
  if ($ginger_menu_hook) {
18
- add_action( 'load-' . $ginger_menu_hook, 'ginger_add_help' );
 
19
  }
20
 
21
  }
@@ -41,39 +42,41 @@ function ginger_add_admin_js( $hook ) {
41
 
42
  function ginger_add_help()
43
  {
44
- $screen = get_current_screen();
 
45
 
46
- $screen->add_help_tab( array(
47
- 'id' => 'ginger_help_tab1',
48
- 'title' => __('Configuration', "ginger"),
49
- 'content' => '<p>' . __( '<b>Cache system</b>: with cache radiobutton enabled html output will be the same for every users, and javascript will be unlocked on document ready. Without cache parsing is disabled for user that have accepted cookies. ', "ginger" ) . '</p>'.
50
- '<p>' . __( '<b>Stress mode</b>: show a small banner for users that have not accepted cookies.', "ginger" ) . '</p>'
51
 
52
- ,
53
- )
54
- );
55
- $screen->add_help_tab( array(
56
- 'id' => 'ginger_help_tab2',
57
- 'title' => __('Banner Setup', "ginger"),
58
- 'content' => '<p>' . __( '<b>Banner text</b>: text to show in Ginger banner. {{privacy_page}} shortcode will be replaced with title and link of privacy policy page, defined in Provacy Policy Tab.', "ginger" ) . '</p>'.
59
- '<p>' . __( '<b>Iframe text</b>: text to show in substitution of blocked iframe. If you have a Youtube Embed, this will be replaced by this text until Cookie are not accepted by users.', "ginger" ) . '</p>'.
60
- '<p>' . __( '<b>Custom CSS</b>: override css rules to customize your banner. As example, to customize font family you can try this: <code>.ginger_banner{font-family: Arial, Verdana;}</code>', "ginger" ) . '</p>'
61
- )
62
- );
63
- $screen->add_help_tab( array(
64
- 'id' => 'ginger_help_tab3',
65
- 'title' => __('Privacy Policy', "ginger"),
66
- 'content' => '<p>' . __( 'Select here your Privacy Policy page to be linked in substitution of <code>{{privacy_page}}</code> shortcode inside text banner.', "ginger" ) . '</p>'.
67
- '<p>' . __( 'You can create here an empty Privacy Policy Page, but remember to add your text!', "ginger" ) . '</p>',
68
- )
69
- );
70
 
71
 
72
- // Help sidebars are optional
73
- $screen->set_help_sidebar(
74
- '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
75
- '<p>'.__("visit", "ginger").' <a href="http://ginger-cookielaw.com/" target="_blank">' . __( 'Ginger Website' , "ginger") . '</a></p>'
76
- );
 
77
  }
78
 
79
 
15
  do_action("ginger_add_menu");
16
 
17
  if ($ginger_menu_hook) {
18
+ if(function_exists("get_current_screen"))
19
+ add_action( 'load-' . $ginger_menu_hook, 'ginger_add_help' );
20
  }
21
 
22
  }
42
 
43
  function ginger_add_help()
44
  {
45
+ if(function_exists("get_current_screen")){
46
+ $screen = get_current_screen();
47
 
48
+ $screen->add_help_tab(array(
49
+ 'id' => 'ginger_help_tab1',
50
+ 'title' => __('Configuration', "ginger"),
51
+ 'content' => '<p>' . __('<b>Cache system</b>: with cache radiobutton enabled html output will be the same for every users, and javascript will be unlocked on document ready. Without cache parsing is disabled for user that have accepted cookies. ', "ginger") . '</p>' .
52
+ '<p>' . __('<b>Stress mode</b>: show a small banner for users that have not accepted cookies.', "ginger") . '</p>'
53
 
54
+ ,
55
+ )
56
+ );
57
+ $screen->add_help_tab(array(
58
+ 'id' => 'ginger_help_tab2',
59
+ 'title' => __('Banner Setup', "ginger"),
60
+ 'content' => '<p>' . __('<b>Banner text</b>: text to show in Ginger banner. {{privacy_page}} shortcode will be replaced with title and link of privacy policy page, defined in Provacy Policy Tab.', "ginger") . '</p>' .
61
+ '<p>' . __('<b>Iframe text</b>: text to show in substitution of blocked iframe. If you have a Youtube Embed, this will be replaced by this text until Cookie are not accepted by users.', "ginger") . '</p>' .
62
+ '<p>' . __('<b>Custom CSS</b>: override css rules to customize your banner. As example, to customize font family you can try this: <code>.ginger_banner{font-family: Arial, Verdana;}</code>', "ginger") . '</p>'
63
+ )
64
+ );
65
+ $screen->add_help_tab(array(
66
+ 'id' => 'ginger_help_tab3',
67
+ 'title' => __('Privacy Policy', "ginger"),
68
+ 'content' => '<p>' . __('Select here your Privacy Policy page to be linked in substitution of <code>{{privacy_page}}</code> shortcode inside text banner.', "ginger") . '</p>' .
69
+ '<p>' . __('You can create here an empty Privacy Policy Page, but remember to add your text!', "ginger") . '</p>',
70
+ )
71
+ );
72
 
73
 
74
+ // Help sidebars are optional
75
+ $screen->set_help_sidebar(
76
+ '<p><strong>' . __('For more information:') . '</strong></p>' .
77
+ '<p>' . __("visit", "ginger") . ' <a href="http://ginger-cookielaw.com/" target="_blank">' . __('Ginger Website', "ginger") . '</a></p>'
78
+ );
79
+ }
80
  }
81
 
82
 
ginger-eu-cookie-law.php CHANGED
@@ -3,7 +3,7 @@
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: 2.3.5
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://manafactory.it/
5
  Description: Make your website compliant with EU Cookie Policy.
6
+ Version: 2.3.6
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: 2.3.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -93,6 +93,9 @@ Yes, actually you we have 2 addons for multilanguages: wpml and polylang. Ask to
93
 
94
  == Changelog ==
95
 
 
 
 
96
  = 2.3.5 =
97
  * Added sharethis cookies
98
 
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: 2.3.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
93
 
94
  == Changelog ==
95
 
96
+ = 2.3.6 =
97
+ * Fixed 3.0 compatibility
98
+
99
  = 2.3.5 =
100
  * Added sharethis cookies
101