Version Description
- Bug fix: HTML5 validation fix for shortcode links (thanks to davidebabylonia)
- Added JavaScript version number for greater compatibility
Download this release
Release Info
Developer | richardashby |
Plugin | Cookie Law / GDPR Info |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.5.1
- cookie-law-info.php +1 -1
- js/cookielawinfo.js +2 -3
- php/functions.php +1 -1
- php/shortcodes.php +2 -2
- readme.txt +5 -1
cookie-law-info.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpress.org/extend/plugins/cookie-law-info/description/
|
|
5 |
Description: A simple way of 'implied consent' to show your website complies with the EU Cookie Law, which came into force on 26 May 2012.
|
6 |
Author: Richard Ashby
|
7 |
Author URI: http://cookielawinfo.com/
|
8 |
-
Version: 1.5
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
5 |
Description: A simple way of 'implied consent' to show your website complies with the EU Cookie Law, which came into force on 26 May 2012.
|
6 |
Author: Richard Ashby
|
7 |
Author URI: http://cookielawinfo.com/
|
8 |
+
Version: 1.5.1
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
js/cookielawinfo.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
function cli_show_cookiebar(p) {
|
2 |
-
/* plugin version 1.5 */
|
3 |
var Cookie = {
|
4 |
set: function(name,value,days) {
|
5 |
if (days) {
|
@@ -41,8 +41,7 @@ function cli_show_cookiebar(p) {
|
|
41 |
return;
|
42 |
}
|
43 |
var settings = JSON.parse(json_payload);
|
44 |
-
|
45 |
-
|
46 |
var cached_header = jQuery(settings.notify_div_id),
|
47 |
cached_showagain_tab = jQuery(settings.showagain_div_id),
|
48 |
btn_accept = jQuery('#cookie_hdr_accept'),
|
1 |
function cli_show_cookiebar(p) {
|
2 |
+
/* plugin version 1.5.1 */
|
3 |
var Cookie = {
|
4 |
set: function(name,value,days) {
|
5 |
if (days) {
|
41 |
return;
|
42 |
}
|
43 |
var settings = JSON.parse(json_payload);
|
44 |
+
|
|
|
45 |
var cached_header = jQuery(settings.notify_div_id),
|
46 |
cached_showagain_tab = jQuery(settings.showagain_div_id),
|
47 |
btn_accept = jQuery('#cookie_hdr_accept'),
|
php/functions.php
CHANGED
@@ -128,7 +128,7 @@ function cookielawinfo_enqueue_frontend_scripts() {
|
|
128 |
wp_enqueue_style( 'cookielawinfo-style' );
|
129 |
|
130 |
// 0.9:
|
131 |
-
wp_enqueue_script( 'cookie-law-info-script', CLI_PLUGIN_URL . 'js/cookielawinfo.js', array( 'jquery' ) );
|
132 |
}
|
133 |
wp_register_style( 'cookielawinfo-table-style', CLI_PLUGIN_URL . 'css/cli-tables.css' );
|
134 |
}
|
128 |
wp_enqueue_style( 'cookielawinfo-style' );
|
129 |
|
130 |
// 0.9:
|
131 |
+
wp_enqueue_script( 'cookie-law-info-script', CLI_PLUGIN_URL . 'js/cookielawinfo.js', array( 'jquery' ), '1.5.1' );
|
132 |
}
|
133 |
wp_register_style( 'cookielawinfo-table-style', CLI_PLUGIN_URL . 'css/cli-tables.css' );
|
134 |
}
|
php/shortcodes.php
CHANGED
@@ -159,7 +159,7 @@ function cookielawinfo_shortcode_main_button( $atts ) {
|
|
159 |
$url = ( $settings['button_1_action'] == "CONSTANT_OPEN_URL" ) ? $settings['button_1_url'] : "#";
|
160 |
|
161 |
$link_tag = '<a href="' . $url . '" id="' . cookielawinfo_remove_hash ( $settings['button_1_action'] ) . '" ';
|
162 |
-
$link_tag .= ( $settings['button_1_new_win'] ) ? 'target="
|
163 |
$link_tag .= $class . ' >' . $settings['button_1_text'] . '</a>';
|
164 |
|
165 |
return $link_tag;
|
@@ -213,7 +213,7 @@ function cookielawinfo_shortcode_button_DRY_code( $name ) {
|
|
213 |
$url = ( $settings['button_x_action'] == "CONSTANT_OPEN_URL" ) ? $settings['button_x_url'] : "#";
|
214 |
|
215 |
$link_tag = '<a href="' . $url . '" id="' . cookielawinfo_remove_hash ( $settings['button_x_action'] ) . '" ';
|
216 |
-
$link_tag .= ( $settings['button_x_new_win'] ) ? 'target="
|
217 |
$link_tag .= $class . ' >' . $settings['button_x_text'] . '</a>';
|
218 |
|
219 |
return $link_tag;
|
159 |
$url = ( $settings['button_1_action'] == "CONSTANT_OPEN_URL" ) ? $settings['button_1_url'] : "#";
|
160 |
|
161 |
$link_tag = '<a href="' . $url . '" id="' . cookielawinfo_remove_hash ( $settings['button_1_action'] ) . '" ';
|
162 |
+
$link_tag .= ( $settings['button_1_new_win'] ) ? 'target="_blank" ' : '' ;
|
163 |
$link_tag .= $class . ' >' . $settings['button_1_text'] . '</a>';
|
164 |
|
165 |
return $link_tag;
|
213 |
$url = ( $settings['button_x_action'] == "CONSTANT_OPEN_URL" ) ? $settings['button_x_url'] : "#";
|
214 |
|
215 |
$link_tag = '<a href="' . $url . '" id="' . cookielawinfo_remove_hash ( $settings['button_x_action'] ) . '" ';
|
216 |
+
$link_tag .= ( $settings['button_x_new_win'] ) ? 'target="_blank" ' : '' ;
|
217 |
$link_tag .= $class . ' >' . $settings['button_x_text'] . '</a>';
|
218 |
|
219 |
return $link_tag;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://cookielawinfo.com/donate
|
|
4 |
Tags: eu cookie law, cookie law, eu privacy directive, privacy directive, cookies, privacy, compliance
|
5 |
Requires at least: 3.3.1
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 1.5
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -141,6 +141,10 @@ See http://cookielawinfo.com for more information on what is required.
|
|
141 |
|
142 |
== Changelog ==
|
143 |
|
|
|
|
|
|
|
|
|
144 |
= 1.5 =
|
145 |
* Major update: the cookie bar is now inserted into the page via wp_footer rather than using jQuery (for better performance and greater browser compatibility)
|
146 |
* Update: if the cookie bar is in the header, there is now an option to fix the bar to the header using position:fixed
|
4 |
Tags: eu cookie law, cookie law, eu privacy directive, privacy directive, cookies, privacy, compliance
|
5 |
Requires at least: 3.3.1
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.5.1
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
141 |
|
142 |
== Changelog ==
|
143 |
|
144 |
+
= 1.5.1 =
|
145 |
+
* Bug fix: HTML5 validation fix for shortcode links (thanks to davidebabylonia)
|
146 |
+
* Added JavaScript version number for greater compatibility
|
147 |
+
|
148 |
= 1.5 =
|
149 |
* Major update: the cookie bar is now inserted into the page via wp_footer rather than using jQuery (for better performance and greater browser compatibility)
|
150 |
* Update: if the cookie bar is in the header, there is now an option to fix the bar to the header using position:fixed
|