Cookie Law / GDPR Info - Version 1.5.8

Version Description

  • Support for in the message bar.
Download this release

Release Info

Developer markwt
Plugin Icon Cookie Law / GDPR Info
Version 1.5.8
Comparing to
See all releases

Code changes from version 1.5.7 to 1.5.8

admin/cli-admin-page.php CHANGED
@@ -271,7 +271,7 @@ function cookielawinfo_print_admin_page() {
271
  <input type="radio" id="scroll_close_no" name="scroll_close_field" class="styled" value="false" <?php echo ( $the_options['scroll_close'] == false ) ? ' checked="checked" />' : ' />'; ?> No
272
  </td>
273
  </tr>
274
- <tr valign="top" class="hr-bottom">
275
  <th scope="row"><label for="scroll_close_reload_field"><?php echo __('Reload after "scroll accept" event?','cookie-law-info'); ?></label></th>
276
  <td>
277
  <!-- <input type="text" name="scroll_close_reload_field" value="<?php echo $the_options['scroll_close_reload'] ?>" />
@@ -283,6 +283,13 @@ function cookielawinfo_print_admin_page() {
283
  <input type="radio" id="scroll_close_reload_no" name="scroll_close_reload_field" class="styled" value="false" <?php echo ( $the_options['scroll_close_reload'] == false ) ? ' checked="checked" />' : ' />'; ?> No
284
  </td>
285
  </tr>
 
 
 
 
 
 
 
286
 
287
  </table>
288
 
271
  <input type="radio" id="scroll_close_no" name="scroll_close_field" class="styled" value="false" <?php echo ( $the_options['scroll_close'] == false ) ? ' checked="checked" />' : ' />'; ?> No
272
  </td>
273
  </tr>
274
+ <tr valign="top" class="">
275
  <th scope="row"><label for="scroll_close_reload_field"><?php echo __('Reload after "scroll accept" event?','cookie-law-info'); ?></label></th>
276
  <td>
277
  <!-- <input type="text" name="scroll_close_reload_field" value="<?php echo $the_options['scroll_close_reload'] ?>" />
283
  <input type="radio" id="scroll_close_reload_no" name="scroll_close_reload_field" class="styled" value="false" <?php echo ( $the_options['scroll_close_reload'] == false ) ? ' checked="checked" />' : ' />'; ?> No
284
  </td>
285
  </tr>
286
+ <tr valign="top" class="hr-bottom">
287
+ <th scope="row"><label for="accept_close_reload_field"><?php echo __('Reload on Accept button click','cookie-law-info'); ?></label></th>
288
+ <td>
289
+ <input type="radio" id="accept_close_reload_yes" name="accept_close_reload_field" class="styled" value="true" <?php echo ( $the_options['accept_close_reload'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
290
+ <input type="radio" id="accept_close_reload_no" name="accept_close_reload_field" class="styled" value="false" <?php echo ( $the_options['accept_close_reload'] == false ) ? ' checked="checked" />' : ' />'; ?> No
291
+ </td>
292
+ </tr>
293
 
294
  </table>
295
 
admin/cli-admin.js CHANGED
File without changes
admin/cli-admin.php CHANGED
@@ -69,6 +69,7 @@ function cookielawinfo_get_default_settings() {
69
  'notify_message' => addslashes ( 'This website uses cookies to improve your experience. We\'ll assume you\'re ok with this, but you can opt-out if you wish.[cookie_button] [cookie_link]' ),
70
  'scroll_close' => false,
71
  'scroll_close_reload' => false,
 
72
  'showagain_background' => '#fff',
73
  'showagain_border' => '#000',
74
  'showagain_text' => addslashes ( 'Privacy & Cookies Policy' ),
@@ -173,7 +174,7 @@ function cookielawinfo_copy_old_settings_to_new() {
173
  $new_settings['button_1_new_win'] = $old_settings['link_opens_new_window'];
174
  $new_settings['button_1_as_button'] = $old_settings['show_as_button'];
175
  $new_settings['button_1_button_colour'] = $old_settings['colour_button_bg'];
176
- $new_settings['notify_message'] = $old_settings['message_text'];
177
  $new_settings['text'] = $old_settings['colour_text'];
178
 
179
  // Save new values:
@@ -249,6 +250,10 @@ function cookielawinfo_allowed_html() {
249
  'id' => array(),
250
  'class' => array()
251
  ),
 
 
 
 
252
  );
253
  return $allowed_html;
254
  }
@@ -289,6 +294,7 @@ function cookielawinfo_sanitise($key, $value) {
289
  case 'button_3_as_button':
290
  case 'scroll_close':
291
  case 'scroll_close_reload':
 
292
  case 'show_once_yn':
293
  case 'header_fix':
294
  if ( $value == 'true' || $value === true ) {
69
  'notify_message' => addslashes ( 'This website uses cookies to improve your experience. We\'ll assume you\'re ok with this, but you can opt-out if you wish.[cookie_button] [cookie_link]' ),
70
  'scroll_close' => false,
71
  'scroll_close_reload' => false,
72
+ 'accept_close_reload' => false,
73
  'showagain_background' => '#fff',
74
  'showagain_border' => '#000',
75
  'showagain_text' => addslashes ( 'Privacy & Cookies Policy' ),
174
  $new_settings['button_1_new_win'] = $old_settings['link_opens_new_window'];
175
  $new_settings['button_1_as_button'] = $old_settings['show_as_button'];
176
  $new_settings['button_1_button_colour'] = $old_settings['colour_button_bg'];
177
+ $new_settings['notify_message'] = apply_filters('cli_change_message',$old_settings['message_text']);
178
  $new_settings['text'] = $old_settings['colour_text'];
179
 
180
  // Save new values:
250
  'id' => array(),
251
  'class' => array()
252
  ),
253
+ 'u' =>array(
254
+ 'id' => array(),
255
+ 'class' => array()
256
+ ),
257
  );
258
  return $allowed_html;
259
  }
294
  case 'button_3_as_button':
295
  case 'scroll_close':
296
  case 'scroll_close_reload':
297
+ case 'accept_close_reload':
298
  case 'show_once_yn':
299
  case 'header_fix':
300
  if ( $value == 'true' || $value === true ) {
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.5.7
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.5.8
9
  License: GPL2
10
  Text Domain: cookie-law-info
11
  */
css/cli-admin-style.css CHANGED
File without changes
css/cli-style.css CHANGED
File without changes
css/cli-tables.css CHANGED
File without changes
images/collapse.png CHANGED
File without changes
images/cross.png CHANGED
File without changes
images/expand.png CHANGED
File without changes
images/overlay.png CHANGED
File without changes
images/td_back.gif CHANGED
File without changes
images/tick.png CHANGED
File without changes
js/admin-ui-controller.js CHANGED
File without changes
js/cookielawinfo.js CHANGED
@@ -1,5 +1,5 @@
1
  function cli_show_cookiebar(p) {
2
- /* plugin version 1.5.4 */
3
  var Cookie = {
4
  set: function(name,value,days) {
5
  if (days) {
@@ -206,7 +206,9 @@ function cli_show_cookiebar(p) {
206
  cached_header.hide();
207
  }
208
  cached_showagain_tab.slideDown(settings.animate_speed_show);
209
- //location.reload();
 
 
210
  return false;
211
  }
212
 
1
  function cli_show_cookiebar(p) {
2
+ /* plugin version 1.5.8 */
3
  var Cookie = {
4
  set: function(name,value,days) {
5
  if (days) {
206
  cached_header.hide();
207
  }
208
  cached_showagain_tab.slideDown(settings.animate_speed_show);
209
+ if (settings.accept_close_reload === true) {
210
+ location.reload();
211
+ }
212
  return false;
213
  }
214
 
php/custom-post-types.php CHANGED
File without changes
php/functions.php CHANGED
@@ -57,6 +57,7 @@ function cookielawinfo_get_json_settings() {
57
  'notify_position_vertical' => $settings['notify_position_vertical'],
58
  'scroll_close' => $settings['scroll_close'],
59
  'scroll_close_reload' => $settings['scroll_close_reload'],
 
60
  'showagain_tab' => $settings['showagain_tab'],
61
  'showagain_background' => $settings['showagain_background'],
62
  'showagain_border' => $settings['showagain_border'],
57
  'notify_position_vertical' => $settings['notify_position_vertical'],
58
  'scroll_close' => $settings['scroll_close'],
59
  'scroll_close_reload' => $settings['scroll_close_reload'],
60
+ 'accept_close_reload' => $settings['accept_close_reload'],
61
  'showagain_tab' => $settings['showagain_tab'],
62
  'showagain_background' => $settings['showagain_background'],
63
  'showagain_border' => $settings['showagain_border'],
php/shortcodes.php CHANGED
File without changes
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.6
7
- Stable tag: 1.5.7
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,7 +16,7 @@ NOTE: INSTALLING THIS PLUGIN ALONE DOES NOT MAKE YOUR SITE GDPR COMPLIANT. SINCE
16
 
17
  Our plugin will help you to become GDPR compliant with following features.
18
 
19
- - Plugin will show a notice with Accept and Reject options. By default the cookie value will be set to 'null'. If the user clicks 'Accept' button the value with be changed to 'yes'. IF the user clicks on 'Reject' the value will be set to 'no'. Your developer can check this value to set a cookie
20
 
21
  - Admin can add cookie details from the backend. The list of cookies can be displayed in your cookie policy page by using a short code
22
 
@@ -166,6 +166,10 @@ See http://cookielawinfo.com for more information on what is required.
166
 
167
  == Changelog ==
168
 
 
 
 
 
169
  = 1.5.7 =
170
  * Danish translation added
171
 
@@ -265,6 +269,6 @@ See http://cookielawinfo.com for more information on what is required.
265
 
266
  == Upgrade Notice ==
267
 
268
- = 1.5.7 =
269
 
270
- * Danish translation added
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.6
7
+ Stable tag: 1.5.8
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  Our plugin will help you to become GDPR compliant with following features.
18
 
19
+ - Plugin will show a notice with Accept and Reject options. By default the cookie value will be set to 'null'. If the user clicks 'Accept' button the value will be changed to 'yes'. IF the user clicks on 'Reject' the value will be set to 'no'. Your developer can check this value to set a cookie
20
 
21
  - Admin can add cookie details from the backend. The list of cookies can be displayed in your cookie policy page by using a short code
22
 
166
 
167
  == Changelog ==
168
 
169
+ = 1.5.8 =
170
+
171
+ * Support for <u> in the message bar.
172
+
173
  = 1.5.7 =
174
  * Danish translation added
175
 
269
 
270
  == Upgrade Notice ==
271
 
272
+ = 1.5.8 =
273
 
274
+ * Support for <u> in the message bar.
screenshot-1.png CHANGED
File without changes
screenshot-2.png CHANGED
File without changes
screenshot-3.png CHANGED
File without changes
screenshot-4.png CHANGED
File without changes
screenshot-5.png CHANGED
File without changes
wpml-config.xml CHANGED
File without changes