Cookie Law / GDPR Info - Version 1.5.6

Version Description

  • Changed Reject button colour for Open URL and Close Header options.
  • Padding for message header
  • Audit table mobile view compatible
Download this release

Release Info

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

Code changes from version 1.5.5 to 1.5.6

admin/cli-admin-page.php CHANGED
@@ -454,8 +454,8 @@ function cookielawinfo_print_admin_page() {
454
  <td>
455
  <select name="button_3_action_field" id="cli-plugin-button-3-action" class="vvv_combobox">
456
  <?php
457
- $action_list = cookielawinfo_get_js_actions();
458
  $action_list['Close Header'] = '#cookie_action_close_header_reject';
 
459
  cookielawinfo_print_combobox_options($action_list, $the_options['button_3_action'])
460
  ?>
461
  </select>
@@ -656,33 +656,33 @@ function cookielawinfo_print_admin_page() {
656
 
657
 
658
  <div id="cli-plugin-migrate">
659
- <h3>Where did my settings go?</h3>
660
- <p>Cookie Law Info version 0.9 has been updated and has new settings. <strong>Your previous settings are safe.</strong></p>
661
- <p>You can either copy over your old settings to this version, or use the new default values. </p>
662
  <form method="post" action="<?php esc_url($_SERVER["REQUEST_URI"]) ?>">
663
- <p><label for="cli-migration">Would you like to:</label></p>
664
  <ul>
665
- <li><input type="radio" id="cli-migration_field_yes" name="cli-migration_field" class="styled" value="2" /> Use previous settings</li>
666
- <li><input type="radio" id="cli-migration_field_yes" name="cli-migration_field" class="styled" value="3" checked="checked" /> Start afresh with the new version</li>
667
  </ul>
668
  <input type="submit" name="cli-migration-button" value="Update" class="button-secondary" onclick="return confirm('Are you sure you want to migrate settings?');" />
669
  </form>
670
- <p>If you want to go back to the previous version you can always download it again from <a href="http://www.cookielawinfo.com">CookieLawInfo.com.</a></p>
671
  </div>
672
 
673
- <h3>GDPR Cookie Consent Pro</h3>
674
  <p>
675
  <ul>
676
- <li>--Manage list of cookies ( Name, CookieID, Description, Duration, Type, Category, Header Script, Footer Script)</li>
677
- <li>--Manage Cookie Categories</li>
678
- <li>--Allow to display Cookie Settings popup where site visitors can opt-in or give consent to Cookie Categories</li>
679
- <li>--Fully customisable to look just like your own website's style: customise the colours, styles and fonts</li>
680
- <li>--Put the cookie bar in either the header or the footer</li>
681
- <li>--(Optional) accept cookie policy if the user scrolls</li>
682
- <li>--(Optional) automatically close the cookie bar after a delay (delay is configurable)</li>
683
- <li>--(Optional) cookie bar can be permanently dismissed or accessible through a "show again" tab</li>
684
- <li>--"Cookie Audit" shortcode to construct a nicely-styled ‘Privacy & Cookie Policy’</li>
685
- <li>--qTranslate support</li>
686
  </ul><br/>
687
  <a href="https://www.webtoffee.com/product/gdpr-cookie-consent/" target="_blank" class="cli-button cli-button-go-pro">Upgrade to GDPR Pro</a>
688
  <style>
@@ -711,8 +711,8 @@ function cookielawinfo_print_admin_page() {
711
  </p>
712
  <br />
713
 
714
- <h3>Like this plugin?</h3>
715
- <p>If you find this plugin useful please show your support and rate it <a href="http://wordpress.org/support/view/plugin-reviews/cookie-law-info?filter=5" target="_blank">★★★★★</a> on <a href="http://wordpress.org/support/view/plugin-reviews/cookie-law-info?filter=5" target="_blank">WordPress.org</a> - much appreciated! :)</p>
716
  <br />
717
 
718
  <h3>Help</h3>
454
  <td>
455
  <select name="button_3_action_field" id="cli-plugin-button-3-action" class="vvv_combobox">
456
  <?php
 
457
  $action_list['Close Header'] = '#cookie_action_close_header_reject';
458
+ $action_list['Open URL'] = 'cookie_action_open_url_reject';
459
  cookielawinfo_print_combobox_options($action_list, $the_options['button_3_action'])
460
  ?>
461
  </select>
656
 
657
 
658
  <div id="cli-plugin-migrate">
659
+ <h3><?php echo __('Where did my settings go?','cookie-law-info'); ?></h3>
660
+ <p><?php echo __('Cookie Law Info version 0.9 has been updated and has new settings.','cookie-law-info'); ?> <strong><?php echo __('Your previous settings are safe.','cookie-law-info'); ?></strong></p>
661
+ <p><?php echo __('You can either copy over your old settings to this version, or use the new default values.','cookie-law-info'); ?> </p>
662
  <form method="post" action="<?php esc_url($_SERVER["REQUEST_URI"]) ?>">
663
+ <p><label for="cli-migration"><?php echo __('Would you like to:','cookie-law-info'); ?></label></p>
664
  <ul>
665
+ <li><input type="radio" id="cli-migration_field_yes" name="cli-migration_field" class="styled" value="2" /> <?php echo __('Use previous settings','cookie-law-info'); ?></li>
666
+ <li><input type="radio" id="cli-migration_field_yes" name="cli-migration_field" class="styled" value="3" checked="checked" /> <?php echo __('Start afresh with the new version','cookie-law-info'); ?></li>
667
  </ul>
668
  <input type="submit" name="cli-migration-button" value="Update" class="button-secondary" onclick="return confirm('Are you sure you want to migrate settings?');" />
669
  </form>
670
+ <p><?php echo __('If you want to go back to the previous version you can always download it again from <a href="http://www.cookielawinfo.com">CookieLawInfo.com.</a>','cookie-law-info'); ?></p>
671
  </div>
672
 
673
+ <h3><?php echo __('GDPR Cookie Consent Pro','cookie-law-info'); ?></h3>
674
  <p>
675
  <ul>
676
+ <li><?php echo __('* Manage list of cookies ( Name, CookieID, Description, Duration, Type, Category, Header Script, Footer Script)','cookie-law-info'); ?></li>
677
+ <li><?php echo __('* Manage Cookie Categories','cookie-law-info'); ?></li>
678
+ <li><?php echo __('* Allow to display Cookie Settings popup where site visitors can opt-in or give consent to Cookie Categories','cookie-law-info'); ?></li>
679
+ <li><?php echo __("* Fully customisable to look just like your own website's style: customise the colours, styles and fonts","cookie-law-info"); ?></li>
680
+ <li><?php echo __('* Put the cookie bar in either the header or the footer','cookie-law-info');?></li>
681
+ <li><?php echo __('* (Optional) accept cookie policy if the user scrolls','cookie-law-info');?></li>
682
+ <li><?php echo __('* (Optional) automatically close the cookie bar after a delay (delay is configurable)','cookie-law-info');?></li>
683
+ <li><?php echo __('* (Optional) cookie bar can be permanently dismissed or accessible through a "show again" tab','cookie-law-info');?></li>
684
+ <li><?php echo __('* "Cookie Audit" shortcode to construct a nicely-styled ‘Privacy & Cookie Policy’','cookie-law-info'); ?></li>
685
+ <li><?php echo __('* qTranslate support','cookie-law-info'); ?></li>
686
  </ul><br/>
687
  <a href="https://www.webtoffee.com/product/gdpr-cookie-consent/" target="_blank" class="cli-button cli-button-go-pro">Upgrade to GDPR Pro</a>
688
  <style>
711
  </p>
712
  <br />
713
 
714
+ <h3><?php echo __('Like this plugin?','cookie-law-info'); ?></h3>
715
+ <p><?php echo __('If you find this plugin useful please show your support and rate it <a href="http://wordpress.org/support/view/plugin-reviews/cookie-law-info?filter=5" target="_blank">★★★★★</a> on <a href="http://wordpress.org/support/view/plugin-reviews/cookie-law-info?filter=5" target="_blank">WordPress.org</a> - much appreciated! :)','cookie-law-info'); ?></p>
716
  <br />
717
 
718
  <h3>Help</h3>
admin/cli-admin.js CHANGED
File without changes
admin/cli-admin.php CHANGED
@@ -122,6 +122,7 @@ function cookielawinfo_get_admin_settings() {
122
  }
123
  update_option( CLI_SETTINGS_FIELD, $settings );
124
  return $settings;
 
125
  }
126
 
127
 
122
  }
123
  update_option( CLI_SETTINGS_FIELD, $settings );
124
  return $settings;
125
+
126
  }
127
 
128
 
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.5
9
  License: GPL2
10
  */
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.6
9
  License: GPL2
10
  */
11
 
css/cli-admin-style.css CHANGED
File without changes
css/cli-style.css CHANGED
@@ -2,7 +2,7 @@
2
  border: 0;
3
  font-size: 10pt;
4
  margin: 0 auto;
5
- padding: 5px 0;
6
  position: absolute;
7
  text-align: center;
8
  width: 100%;
@@ -21,37 +21,36 @@
21
  }
22
  /** Buttons (http://papermashup.com/demos/css-buttons) */
23
  .cli-plugin-button, .cli-plugin-button:visited {
24
- background: #222 url('../images/overlay.png') repeat-x;
25
  display: inline-block;
26
- padding: 5px 10px 6px;
27
  color: #fff;
28
  text-decoration: none;
29
- -moz-border-radius: 6px;
30
- -webkit-border-radius: 6px;
31
- -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
32
- -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
33
- text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
34
- border-bottom: 1px solid rgba(0,0,0,0.25);
35
  position: relative;
36
  cursor: pointer;
37
- margin: auto 10px;
 
38
  }
39
  .cli-plugin-button:hover {
40
  background-color: #111;
41
  color: #fff;
 
42
  }
43
  .cli-plugin-button:active {
44
  top: 1px;
45
  }
 
 
 
46
  .small.cli-plugin-button, .small.cli-plugin-button:visited {
47
  font-size: 11px;
48
  }
49
  .cli-plugin-button, .cli-plugin-button:visited,
50
  .medium.cli-plugin-button, .medium.cli-plugin-button:visited {
51
  font-size: 13px;
52
- font-weight: bold;
53
- line-height: 1;
54
- text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
55
  }
56
  .large.cli-plugin-button, .large.cli-plugin-button:visited {
57
  font-size: 14px;
2
  border: 0;
3
  font-size: 10pt;
4
  margin: 0 auto;
5
+ padding: 16px 0;
6
  position: absolute;
7
  text-align: center;
8
  width: 100%;
21
  }
22
  /** Buttons (http://papermashup.com/demos/css-buttons) */
23
  .cli-plugin-button, .cli-plugin-button:visited {
 
24
  display: inline-block;
25
+ padding: 8px 16px 8px;
26
  color: #fff;
27
  text-decoration: none;
28
+ -moz-border-radius: 4px;
29
+ -webkit-border-radius: 4px;
 
 
 
 
30
  position: relative;
31
  cursor: pointer;
32
+ margin-left: 10px;
33
+ text-decoration: none;
34
  }
35
  .cli-plugin-button:hover {
36
  background-color: #111;
37
  color: #fff;
38
+ text-decoration: none;
39
  }
40
  .cli-plugin-button:active {
41
  top: 1px;
42
  }
43
+ .cli-plugin-main-link {
44
+ margin-left: 10px;
45
+ }
46
  .small.cli-plugin-button, .small.cli-plugin-button:visited {
47
  font-size: 11px;
48
  }
49
  .cli-plugin-button, .cli-plugin-button:visited,
50
  .medium.cli-plugin-button, .medium.cli-plugin-button:visited {
51
  font-size: 13px;
52
+ font-weight: 500;
53
+ line-height: 1;
 
54
  }
55
  .large.cli-plugin-button, .large.cli-plugin-button:visited {
56
  font-size: 14px;
css/cli-tables.css CHANGED
@@ -40,7 +40,7 @@
40
  .cookielawinfo-rounded tr.cookielawinfo-row:hover {background-color: #fff;}
41
 
42
  /** Classic Style */
43
- table.cookielawinfo-classic {font-family: Verdana, Arial, Helvetica, sans-serif;border-collapse: collapse;border-left: 1px solid #ccc;border-top: 1px solid #ccc; color: #333;}
44
  table.cookielawinfo-classic thead tr th {text-transform: uppercase;background: #e2e2e2;}
45
  table.cookielawinfo-classic tfoot tr th, table.cookielawinfo-classic tfoot tr td {text-transform: uppercase;color: #000;font-weight: bold;}
46
  table.cookielawinfo-classic tfoot tr th {width: 20%;}
@@ -63,19 +63,6 @@ table.cookielawinfo-winter tbody tr.odd {background: #F0F2F4;}
63
  table.cookielawinfo-winter tbody tr:hover {background: #EAECEE; color: #111;}
64
  table.cookielawinfo-winter tfoot td, table.cookielawinfo-winter tfoot th, table.cookielawinfo-winter tfoot tr {text-align: left; font: 120% "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", sans-serif; text-transform: uppercase; background: #fff; padding: 10px;}
65
 
66
- /** 27/05/2013: responsive table by Mark Wiltshire */
67
- @media(max-width:800px) {
68
- /* cookielawinfo responsive tables when smaller */
69
- table.cookielawinfo-winter, table.cookielawinfo-winter thead,
70
- table.cookielawinfo-winter tbody, table.cookielawinfo-winter th,
71
- table.cookielawinfo-winter td, table.cookielawinfo-winter tr,
72
- th.cookielawinfo-column-1, td.cookielawinfo-column-1,
73
- th.cookielawinfo-column-2, td.cookielawinfo-column-2,
74
- th.cookielawinfo-column-3, td.cookielawinfo-column-3,
75
- th.cookielawinfo-column-4, td.cookielawinfo-column-4,
76
- tr.cookielawinfo-row{
77
- display:block;
78
- }
79
 
80
  /* Hide table headers (but not display: none;, for accessibility) */
81
  table.cookielawinfo-winter thead tr {
40
  .cookielawinfo-rounded tr.cookielawinfo-row:hover {background-color: #fff;}
41
 
42
  /** Classic Style */
43
+ table.cookielawinfo-classic {margin-top:16px;font-family: Verdana, Arial, Helvetica, sans-serif;border-collapse: collapse;border-left: 1px solid #ccc;border-top: 1px solid #ccc; color: #333;}
44
  table.cookielawinfo-classic thead tr th {text-transform: uppercase;background: #e2e2e2;}
45
  table.cookielawinfo-classic tfoot tr th, table.cookielawinfo-classic tfoot tr td {text-transform: uppercase;color: #000;font-weight: bold;}
46
  table.cookielawinfo-classic tfoot tr th {width: 20%;}
63
  table.cookielawinfo-winter tbody tr:hover {background: #EAECEE; color: #111;}
64
  table.cookielawinfo-winter tfoot td, table.cookielawinfo-winter tfoot th, table.cookielawinfo-winter tfoot tr {text-align: left; font: 120% "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", sans-serif; text-transform: uppercase; background: #fff; padding: 10px;}
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
  /* Hide table headers (but not display: none;, for accessibility) */
68
  table.cookielawinfo-winter thead tr {
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
@@ -88,7 +88,7 @@ function cli_show_cookiebar(p) {
88
  }
89
  else if ( settings.notify_position_vertical == "bottom" ) {
90
  if ( settings.border_on ) {
91
- hdr_args['border-top'] = '4px solid ' + l1hs(settings.border);
92
  }
93
  hdr_args['position'] = 'fixed';
94
  hdr_args['bottom'] = '0';
@@ -149,6 +149,19 @@ function cli_show_cookiebar(p) {
149
  var main_link = jQuery('#cookie_action_close_header_reject');
150
  main_link.css( 'color', settings.button_3_link_colour );
151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  if ( settings.button_3_as_button ) {
153
  main_link.css('background-color', settings.button_3_button_colour);
154
 
@@ -197,7 +210,7 @@ function cli_show_cookiebar(p) {
197
  }
198
 
199
  function reject_close() {
200
-
201
  for(var k in Cli_Data.nn_cookie_ids) {
202
  Cookie.erase(Cli_Data.nn_cookie_ids[k]);
203
  }
88
  }
89
  else if ( settings.notify_position_vertical == "bottom" ) {
90
  if ( settings.border_on ) {
91
+ hdr_args['border-top'] = '2px solid ' + l1hs(settings.border);
92
  }
93
  hdr_args['position'] = 'fixed';
94
  hdr_args['bottom'] = '0';
149
  var main_link = jQuery('#cookie_action_close_header_reject');
150
  main_link.css( 'color', settings.button_3_link_colour );
151
 
152
+ if ( settings.button_3_as_button ) {
153
+ main_link.css('background-color', settings.button_3_button_colour);
154
+
155
+ main_link.hover(function() {
156
+ jQuery(this).css('background-color', settings.button_3_button_hover);
157
+ },
158
+ function() {
159
+ jQuery(this).css('background-color', settings.button_3_button_colour);
160
+ });
161
+ }
162
+ var main_link = jQuery('#cookie_action_open_url_reject');
163
+ main_link.css( 'color', settings.button_3_link_colour );
164
+
165
  if ( settings.button_3_as_button ) {
166
  main_link.css('background-color', settings.button_3_button_colour);
167
 
210
  }
211
 
212
  function reject_close() {
213
+
214
  for(var k in Cli_Data.nn_cookie_ids) {
215
  Cookie.erase(Cli_Data.nn_cookie_ids[k]);
216
  }
php/custom-post-types.php CHANGED
File without changes
php/functions.php CHANGED
File without changes
php/shortcodes.php CHANGED
@@ -160,14 +160,14 @@ function cookielawinfo_shortcode_reject_button( $atts ) {
160
  $classr .= ' class="cli-plugin-main-button" ' ;
161
  }
162
 
163
- $url_reject = ( $settings['button_3_action'] == "CONSTANT_OPEN_URL" ) ? $settings['button_3_url'] : "#";
164
 
165
  $link_tag = '';
166
  $link_tag .= '<a href="' . $url_reject . '" id="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . '" ';
167
  $link_tag .= ( $settings['button_3_new_win'] ) ? 'target="_blank" ' : '' ;
168
- $link_tag .= $classr . ' >' . stripslashes( $settings['button_3_text'] ) . '</a>';
169
- return $link_tag;
170
-
171
  }
172
 
173
 
@@ -228,7 +228,8 @@ function cookielawinfo_shortcode_main_button( $atts ) {
228
  $classr .= ' class="cli-plugin-main-button" ' ;
229
  }
230
 
231
- $url_reject = ( $settings['button_3_action'] == "CONSTANT_OPEN_URL" ) ? $settings['button_3_url'] : "#";
 
232
 
233
  $link_tag .= '<a href="' . $url_reject . '" id="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . '" ';
234
  $link_tag .= ( $settings['button_3_new_win'] ) ? 'target="_blank" ' : '' ;
160
  $classr .= ' class="cli-plugin-main-button" ' ;
161
  }
162
 
163
+ $url_reject = ( $settings['button_3_action'] == "cookie_action_open_url_reject" ) ? $settings['button_3_url'] : "#";
164
 
165
  $link_tag = '';
166
  $link_tag .= '<a href="' . $url_reject . '" id="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . '" ';
167
  $link_tag .= ( $settings['button_3_new_win'] ) ? 'target="_blank" ' : '' ;
168
+ $link_tag .= $classr . ' >' . stripslashes( $settings['button_3_text'] ) . '</a>';
169
+ return $link_tag;
170
+
171
  }
172
 
173
 
228
  $classr .= ' class="cli-plugin-main-button" ' ;
229
  }
230
 
231
+ $url_reject = ( $settings['button_3_action'] == "cookie_action_open_url_reject" ) ? $settings['button_3_url'] : "#";
232
+
233
 
234
  $link_tag .= '<a href="' . $url_reject . '" id="' . cookielawinfo_remove_hash ( $settings['button_3_action'] ) . '" ';
235
  $link_tag .= ( $settings['button_3_new_win'] ) ? 'target="_blank" ' : '' ;
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.5
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -166,6 +166,12 @@ See http://cookielawinfo.com for more information on what is required.
166
 
167
  == Changelog ==
168
 
 
 
 
 
 
 
169
  = 1.5.5 =
170
  * GDPR compliance updates.
171
 
@@ -257,5 +263,8 @@ See http://cookielawinfo.com for more information on what is required.
257
 
258
  == Upgrade Notice ==
259
 
260
- = 1.5.5 =
261
- * GDPR compliance updates.
 
 
 
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.6
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
166
 
167
  == Changelog ==
168
 
169
+ = 1.5.6 =
170
+
171
+ * Changed Reject button colour for Open URL and Close Header options.
172
+ * Padding for message header
173
+ * Audit table mobile view compatible
174
+
175
  = 1.5.5 =
176
  * GDPR compliance updates.
177
 
263
 
264
  == Upgrade Notice ==
265
 
266
+ = 1.5.6 =
267
+
268
+ * Changed Reject button colour for Open URL and Close Header options.
269
+ * Padding for message header
270
+ * Audit table mobile view compatible
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