Ginger – EU Cookie Law - Version 3.0.3

Version Description

  • Fixed Yoast Compatibility
Download this release

Release Info

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

Code changes from version 3.0.2 to 3.0.3

Files changed (3) hide show
  1. admin/ginger.utils.php +10 -5
  2. ginger-eu-cookie-law.php +1 -1
  3. readme.txt +4 -1
admin/ginger.utils.php CHANGED
@@ -34,11 +34,16 @@ function ginger_about_menu_page(){
34
  add_action( 'admin_enqueue_scripts', 'ginger_add_admin_js' );
35
  function ginger_add_admin_js( $hook ) {
36
  if( is_admin() ) {
37
- // Add the color picker css file
38
- wp_enqueue_style( 'wp-color-picker' );
39
- // Include our custom jQuery file with WordPress Color Picker dependency
40
- wp_enqueue_script( 'ginger-script-handle', plugins_url( 'js/ginger.js', __FILE__ ), array(), false, true );
41
- wp_enqueue_script( 'ginger-script-color', plugins_url( 'js/ginger.color.js', __FILE__ ), array("wp-color-picker"), false, true );
 
 
 
 
 
42
  }
43
  }
44
 
34
  add_action( 'admin_enqueue_scripts', 'ginger_add_admin_js' );
35
  function ginger_add_admin_js( $hook ) {
36
  if( is_admin() ) {
37
+ if(isset($_GET["page"])) {
38
+ $page = $_GET["page"];
39
+ if ( substr( $page, 0, 6 ) == "ginger" ) {
40
+ // Add the color picker css file
41
+ wp_enqueue_style( 'wp-color-picker' );
42
+ // Include our custom jQuery file with WordPress Color Picker dependency
43
+ wp_enqueue_script( 'ginger-script-handle', plugins_url( 'js/ginger.js', __FILE__ ), array(), false, true );
44
+ wp_enqueue_script( 'ginger-script-color', plugins_url( 'js/ginger.color.js', __FILE__ ), array( "wp-color-picker" ), false, true );
45
+ }
46
+ }
47
  }
48
  }
49
 
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.2
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.3
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.2
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
  = 3.0 =
98
  * Removed policy violation
99
 
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.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
94
  == Changelog ==
95
 
96
 
97
+ = 3.0.3 =
98
+ * Fixed Yoast Compatibility
99
+
100
  = 3.0 =
101
  * Removed policy violation
102