Ginger – EU Cookie Law - Version 2.3.1

Version Description

  • Contextual Help
Download this release

Release Info

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

Code changes from version 2.3 to 2.3.1

admin/ginger.utils.php CHANGED
@@ -7,11 +7,17 @@
7
  *
8
  * */
9
 
10
- //Inizzializzo il plugin e le relative pagine del plugin
11
  add_action( 'admin_menu', 'register_ginger_menu_page' );
12
  function register_ginger_menu_page(){
13
- add_menu_page( 'ginger', 'Ginger Cookie', 'manage_options', 'ginger-setup', 'ginger_menu_page', plugins_url( 'ginger/img/ginger-color.png' ));
 
14
  do_action("ginger_add_menu");
 
 
 
 
 
15
  }
16
 
17
  function ginger_menu_page(){
@@ -32,6 +38,46 @@ function ginger_add_admin_js( $hook ) {
32
  }
33
  }
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  //Salvataggio e creazione pagina cookie policy
36
  function save_privacy_page($title,$content){
37
  $my_post = array(
7
  *
8
  * */
9
 
10
+ //Inizializzo il plugin e le relative pagine del plugin
11
  add_action( 'admin_menu', 'register_ginger_menu_page' );
12
  function register_ginger_menu_page(){
13
+ global $ginger_menu_hook;
14
+ $ginger_menu_hook = add_menu_page( 'ginger', 'Ginger Cookie', 'manage_options', 'ginger-setup', 'ginger_menu_page', plugins_url( 'ginger/img/ginger-color.png' ));
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
  }
22
 
23
  function ginger_menu_page(){
38
  }
39
  }
40
 
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
+
80
+
81
  //Salvataggio e creazione pagina cookie policy
82
  function save_privacy_page($title,$content){
83
  $my_post = array(
admin/partial/banner.php CHANGED
@@ -49,7 +49,7 @@
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>
49
  echo '<textarea name = "ginger_banner_text" >' . $options["ginger_banner_text"] . '</textarea>';
50
  ?>
51
  <br>
52
+ <small><?php _e('You can use syntax <code><input type="text" value="{{privacy_page}}" style="border:none; width: 160px; text-align:center;"></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>
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
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.1
7
  Author: Manafactory
8
  Author URI: http://manafactory.it/
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: manafactory, webgrafia, matteobarale
3
  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.2.3
7
- Stable tag: 2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -94,6 +94,9 @@ Yes, actually you we have 2 addons for multilanguages: wpml and polylang. Ask to
94
  == Changelog ==
95
 
96
 
 
 
 
97
  = 2.3 =
98
  * Logger addon
99
 
3
  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.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
94
  == Changelog ==
95
 
96
 
97
+ = 2.3.1 =
98
+ * Contextual Help
99
+
100
  = 2.3 =
101
  * Logger addon
102