Cookie Law / GDPR Info - Version 1.6.1

Version Description

  • Filter to display cookie bar only on selected pages.
Download this release

Release Info

Developer webtoffee
Plugin Icon Cookie Law / GDPR Info
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.6.0 to 1.6.1

Files changed (4) hide show
  1. cookie-law-info.php +1 -1
  2. js/cookielawinfo.js +1 -1
  3. php/functions.php +6 -1
  4. readme.txt +7 -3
cookie-law-info.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wordpress.org/plugins/cookie-law-info/
5
  Description: A simple way of to show your website complies with the EU Cookie Law / GDPR.
6
  Author: webtoffee
7
  Author URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
8
- Version: 1.6.0
9
  License: GPL2
10
  Text Domain: cookie-law-info
11
  */
5
  Description: A simple way of to show your website complies with the EU Cookie Law / GDPR.
6
  Author: webtoffee
7
  Author URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
8
+ Version: 1.6.1
9
  License: GPL2
10
  Text Domain: cookie-law-info
11
  */
js/cookielawinfo.js CHANGED
@@ -1,5 +1,5 @@
1
  function cli_show_cookiebar(p) {
2
- /* plugin version 1.6.0 */
3
  var Cookie = {
4
  set: function(name,value,days) {
5
  if (days) {
1
  function cli_show_cookiebar(p) {
2
+ /* plugin version 1.6.1 */
3
  var Cookie = {
4
  set: function(name,value,days) {
5
  if (days) {
php/functions.php CHANGED
@@ -97,6 +97,11 @@ function cookielawinfo_inject_cli_script() {
97
  $notify_html .= '<div id="' . cookielawinfo_remove_hash( $the_options["showagain_div_id"] ) . '"><span id="cookie_hdr_showagain">' . $the_options["showagain_text"] . '</span></div>';
98
  }
99
 
 
 
 
 
 
100
  echo $notify_html;
101
 
102
  // Now output the JavaScript:
@@ -132,7 +137,7 @@ function cookielawinfo_enqueue_frontend_scripts() {
132
  /**
133
  * Force reload
134
  */
135
- $version = '1.6.0';
136
 
137
  wp_register_style( 'cookielawinfo-style', CLI_PLUGIN_URL . 'css/cli-style.css', null, $version );
138
  wp_enqueue_style( 'cookielawinfo-style' );
97
  $notify_html .= '<div id="' . cookielawinfo_remove_hash( $the_options["showagain_div_id"] ) . '"><span id="cookie_hdr_showagain">' . $the_options["showagain_text"] . '</span></div>';
98
  }
99
 
100
+ global $wp_query;
101
+ $post_id = $wp_query->get_queried_object_id();
102
+ $post = get_post($post_id);
103
+ $current_post_slug = is_object($post) ? $post->post_name : get_home_url();
104
+ $notify_html = apply_filters('cli_show_cookie_bar_only_on_selected_pages',$notify_html,$current_post_slug);
105
  echo $notify_html;
106
 
107
  // Now output the JavaScript:
137
  /**
138
  * Force reload
139
  */
140
+ $version = '1.6.1';
141
 
142
  wp_register_style( 'cookielawinfo-style', CLI_PLUGIN_URL . 'css/cli-style.css', null, $version );
143
  wp_enqueue_style( 'cookielawinfo-style' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: eu cookie law, GDPR, cookie law, cookie consent, eu privacy directive, privacy directive, cookies, privacy, compliance
5
  Requires at least: 3.3.1
6
  Tested up to: 4.9.7
7
- Stable tag: 1.6.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -166,6 +166,10 @@ See http://cookielawinfo.com for more information on what is required.
166
 
167
  == Changelog ==
168
 
 
 
 
 
169
  = 1.6.0 =
170
 
171
  * Issue with dual accept button.
@@ -277,8 +281,8 @@ See http://cookielawinfo.com for more information on what is required.
277
 
278
  == Upgrade Notice ==
279
 
280
- = 1.6.0 =
281
 
282
- * Issue with dual accept button.
283
 
284
 
4
  Tags: eu cookie law, GDPR, cookie law, cookie consent, eu privacy directive, privacy directive, cookies, privacy, compliance
5
  Requires at least: 3.3.1
6
  Tested up to: 4.9.7
7
+ Stable tag: 1.6.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
166
 
167
  == Changelog ==
168
 
169
+ = 1.6.1 =
170
+
171
+ * Filter to display cookie bar only on selected pages.
172
+
173
  = 1.6.0 =
174
 
175
  * Issue with dual accept button.
281
 
282
  == Upgrade Notice ==
283
 
284
+ = 1.6.1 =
285
 
286
+ * Filter to display cookie bar only on selected pages.
287
 
288