Version Description
- Fixed: prevent JavaScript conflict by calling color picker script on non-plugin pages
Download this release
Release Info
Developer | Catapult_Themes |
Plugin | Cookie Consent |
Version | 2.0.9 |
Comparing to | |
See all releases |
Code changes from version 2.0.8 to 2.0.9
- admin/class-ctcc-admin.php +11 -13
- assets/images/shs-3d-banner.png +0 -0
- readme.txt +4 -1
- uk-cookie-consent.php +1 -1
admin/class-ctcc-admin.php
CHANGED
@@ -29,26 +29,24 @@ if ( ! class_exists ( 'CTCC_Admin' ) ) {
|
|
29 |
add_action ( 'admin_init', array ( $this, 'register_options_init' ) );
|
30 |
add_action ( 'admin_init', array ( $this, 'register_content_init' ) );
|
31 |
add_action ( 'admin_init', array ( $this, 'register_styles_init' ) );
|
32 |
-
|
33 |
add_action ( 'admin_enqueue_scripts', array ( $this, 'enqueue_scripts' ) );
|
34 |
add_action ( 'admin_footer', array ( $this, 'add_js' ) );
|
35 |
|
36 |
}
|
37 |
|
38 |
public function enqueue_scripts() {
|
39 |
-
wp_enqueue_style ( 'wp-color-picker' );
|
40 |
-
wp_enqueue_script ( 'wp-color-picker' );
|
41 |
wp_enqueue_style ( 'ctcc-admin-style', CTCC_PLUGIN_URL . 'assets/css/admin-style.css' );
|
42 |
-
}
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
<?php
|
52 |
}
|
53 |
|
54 |
// Add the menu item
|
29 |
add_action ( 'admin_init', array ( $this, 'register_options_init' ) );
|
30 |
add_action ( 'admin_init', array ( $this, 'register_content_init' ) );
|
31 |
add_action ( 'admin_init', array ( $this, 'register_styles_init' ) );
|
|
|
32 |
add_action ( 'admin_enqueue_scripts', array ( $this, 'enqueue_scripts' ) );
|
33 |
add_action ( 'admin_footer', array ( $this, 'add_js' ) );
|
34 |
|
35 |
}
|
36 |
|
37 |
public function enqueue_scripts() {
|
38 |
+
wp_enqueue_style ( 'wp-color-picker' );
|
39 |
+
wp_enqueue_script ( 'wp-color-picker', false, array ( 'jquery' ) );
|
40 |
wp_enqueue_style ( 'ctcc-admin-style', CTCC_PLUGIN_URL . 'assets/css/admin-style.css' );
|
41 |
+
}
|
42 |
+
public function add_js() {
|
43 |
+
?>
|
44 |
+
<script>
|
45 |
+
jQuery(document).ready(function($){
|
46 |
+
$('.cctc-color-field').wpColorPicker();
|
47 |
+
});
|
48 |
+
</script>
|
49 |
+
<?php
|
|
|
50 |
}
|
51 |
|
52 |
// Add the menu item
|
assets/images/shs-3d-banner.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate Link: https://paypal.com
|
|
4 |
Tags: cookie law, cookies, EU, implied consent, uk cookie consent, compliance, eu cookie law, eu privacy directive, privacy, privacy directive, consent, cookie, cookie compliance, cookie law, eu cookie, notice, notification, notify, cookie notice, cookie notification, cookie notify
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 4.4.1
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -82,6 +82,9 @@ You will find more details of the regulations on the [Information Commissioner's
|
|
82 |
|
83 |
== Changelog ==
|
84 |
|
|
|
|
|
|
|
85 |
= 2.0.8 =
|
86 |
* Updated: admin images in assets folder
|
87 |
|
4 |
Tags: cookie law, cookies, EU, implied consent, uk cookie consent, compliance, eu cookie law, eu privacy directive, privacy, privacy directive, consent, cookie, cookie compliance, cookie law, eu cookie, notice, notification, notify, cookie notice, cookie notification, cookie notify
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 4.4.1
|
7 |
+
Stable tag: 2.0.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 2.0.9 =
|
86 |
+
* Fixed: prevent JavaScript conflict by calling color picker script on non-plugin pages
|
87 |
+
|
88 |
= 2.0.8 =
|
89 |
* Updated: admin images in assets folder
|
90 |
|
uk-cookie-consent.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Cookie Consent
|
4 |
Plugin URI: http://catapultthemes.com/cookie-consent/
|
5 |
Description: The only cookie consent plugin you'll ever need.
|
6 |
-
Version: 2.0.
|
7 |
Author: Catapult_Themes
|
8 |
Author URI: http://catapultthemes.com/
|
9 |
Text Domain: uk-cookie-consent
|
3 |
Plugin Name: Cookie Consent
|
4 |
Plugin URI: http://catapultthemes.com/cookie-consent/
|
5 |
Description: The only cookie consent plugin you'll ever need.
|
6 |
+
Version: 2.0.9
|
7 |
Author: Catapult_Themes
|
8 |
Author URI: http://catapultthemes.com/
|
9 |
Text Domain: uk-cookie-consent
|