Cookie Law / GDPR Info - Version 1.5.7

Version Description

  • Danish translation added
Download this release

Release Info

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

Code changes from version 1.5.6 to 1.5.7

admin/cli-admin-page.php CHANGED
@@ -23,7 +23,7 @@ function cookielawinfo_print_admin_page() {
23
 
24
  // Lock out non-admins:
25
  if (!current_user_can('manage_options')) {
26
- wp_die('You do not have sufficient permission to perform this operation');
27
  }
28
 
29
  // Get options:
@@ -40,7 +40,9 @@ function cookielawinfo_print_admin_page() {
40
  }
41
  }
42
  update_option(CLI_SETTINGS_FIELD, $the_options);
43
- echo '<div class="updated"><p><strong>Settings Updated.</strong></p></div>';
 
 
44
  } else if (isset($_POST['delete_all_settings'])) {
45
  // Check nonce:
46
  check_admin_referer('cookielawinfo-update-' . CLI_SETTINGS_FIELD);
@@ -48,7 +50,9 @@ function cookielawinfo_print_admin_page() {
48
  $the_options = cookielawinfo_get_admin_settings();
49
  } else if (isset($_POST['revert_to_previous_settings'])) {
50
  if (!cookielawinfo_copy_old_settings_to_new()) {
51
- echo '<h3>ERROR MIGRATING SETTINGS (ERROR: 2)</h3>';
 
 
52
  }
53
  $the_options = cookielawinfo_get_admin_settings();
54
  }
@@ -58,7 +62,7 @@ function cookielawinfo_print_admin_page() {
58
 
59
  echo '<div class="wrap">';
60
  ?>
61
- <h2>Cookie Law Settings</h2>
62
 
63
 
64
  <?php
@@ -69,7 +73,9 @@ function cookielawinfo_print_admin_page() {
69
  case '2':
70
  // Migrate but keep
71
  if (!cookielawinfo_migrate_to_new_version()) {
72
- echo '<h3>ERROR MIGRATING SETTINGS (ERROR: 2)</h3>';
 
 
73
  }
74
  break;
75
  case '3':
@@ -78,14 +84,14 @@ function cookielawinfo_print_admin_page() {
78
  break;
79
  default:
80
  // Form error, ignore
81
- echo '<h3>Error processing migration request (ERROR: 4)</h3>';
 
 
82
  break;
83
  }
84
  }
85
  $the_options = cookielawinfo_get_admin_settings();
86
  }
87
-
88
-
89
  echo '<form method="post" action="' . esc_url($_SERVER["REQUEST_URI"]) . '">';
90
 
91
  // Set nonce:
@@ -107,10 +113,12 @@ function cookielawinfo_print_admin_page() {
107
  $span_tag = '<span id="header_on_off_alert">';
108
  if ($the_options['is_on'] == true) {
109
  $img_tag .= 'tick.png" alt="tick icon" />';
110
- $span_tag .= 'Your Cookie Law Info bar is switched on</span>';
 
111
  } else {
112
  $img_tag .= 'cross.png" alt="cross icon" />';
113
- $span_tag .= 'Your Cookie Law Info bar is switched off</span>';
 
114
  }
115
  echo $img_tag . $span_tag;
116
  ?>
@@ -141,12 +149,12 @@ function cookielawinfo_print_admin_page() {
141
  <dl class="accordion">
142
 
143
 
144
- <dt class="ui-icon ui-icon-triangle-1-s"><a href="#">Settings</a></dt>
145
  <dd id="accordion_default">
146
- <h4>The Cookie Bar</h4>
147
  <table class="form-table">
148
  <tr valign="top">
149
- <th scope="row"><label for="is_on_field">Cookie Bar is currently:</label></th>
150
  <td>
151
 
152
  <input type="radio" id="is_on_field_yes" name="is_on_field" class="styled" value="true" <?php echo ( $the_options['is_on'] == true ) ? ' checked="checked" />' : ' />'; ?> On
@@ -155,7 +163,7 @@ function cookielawinfo_print_admin_page() {
155
  </td>
156
  </tr>
157
  <tr valign="top">
158
- <th scope="row"><label for="is_reject_on_field">Reject Button:</label></th>
159
  <td>
160
  <input type="radio" id="is_reject_on_field_yes" name="is_reject_on_field" class="styled" value="true" <?php echo ( $the_options['is_reject_on'] == true ) ? ' checked="checked" />' : ' />'; ?> On
161
  <input type="radio" id="is_reject_on_field_no" name="is_reject_on_field" class="styled" value="false" <?php echo ( $the_options['is_reject_on'] == false ) ? ' checked="checked" />' : ' />'; ?> Off
@@ -163,16 +171,24 @@ function cookielawinfo_print_admin_page() {
163
  </td>
164
  </tr>
165
  <tr valign="top">
166
- <th scope="row"><label for="notify_position_vertical_field">Cookie Bar will be show in:</label></th>
167
  <td>
168
  <select name="notify_position_vertical_field" class="vvv_combobox">
169
  <?php
170
  if ($the_options['notify_position_vertical'] == "top") {
171
- echo '<option value="top" selected="selected">Header</option>';
172
- echo '<option value="bottom">Footer</option>';
 
 
 
 
173
  } else {
174
- echo '<option value="top">Header</option>';
175
- echo '<option value="bottom" selected="selected">Footer</option>';
 
 
 
 
176
  }
177
  ?>
178
  </select>
@@ -181,33 +197,41 @@ function cookielawinfo_print_admin_page() {
181
 
182
  <!-- header_fix code here -->
183
  <tr valign="top">
184
- <th scope="row"><label for="header_fix_field">Fix Cookie Bar to Header?</label></th>
185
  <td>
186
  <input type="radio" id="header_fix_field_yes" name="header_fix_field" class="styled" value="true" <?php echo ( $the_options['header_fix'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
187
  <input type="radio" id="iheader_fix_field_no" name="header_fix_field" class="styled" value="false" <?php echo ( $the_options['header_fix'] == false ) ? ' checked="checked" />' : ' />'; ?> No
188
- <span class="cli-plugin-example">If you select "Header" then you can optionally stick the cookie bar to the header. Will not have any effect if you select "Footer".</span>
189
  </td>
190
  </tr>
191
  <!-- /header_fix -->
192
 
193
  <tr valign="top">
194
- <th scope="row"><label for="notify_animate_show_field">On load</label></th>
195
  <td>
196
  <select name="notify_animate_show_field" class="vvv_combobox">
197
  <?php
198
  if ($the_options['notify_animate_show'] == true) {
199
- echo '<option value="true" selected="selected">Animate</option>';
200
- echo '<option value="false">Sticky</option>';
 
 
 
 
201
  } else {
202
- echo '<option value="true">Animate</option>';
203
- echo '<option value="false" selected="selected">Sticky</option>';
 
 
 
 
204
  }
205
  ?>
206
  </select>
207
  </td>
208
  </tr>
209
  <tr valign="top">
210
- <th scope="row"><label for="notify_animate_hide_field">On hide</label></th>
211
  <td>
212
  <select name="notify_animate_hide_field" class="vvv_combobox">
213
  <?php
@@ -225,30 +249,30 @@ function cookielawinfo_print_admin_page() {
225
 
226
  <!-- SHOW ONCE / TIMER -->
227
  <tr valign="top" class="hr-top">
228
- <th scope="row"><label for="show_once_yn_field">Auto-hide cookie bar after delay?</label></th>
229
  <td>
230
  <input type="radio" id="show_once_yn_yes" name="show_once_yn_field" class="styled" value="true" <?php echo ( $the_options['show_once_yn'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
231
  <input type="radio" id="show_once_yn_no" name="show_once_yn_field" class="styled" value="false" <?php echo ( $the_options['show_once_yn'] == false ) ? ' checked="checked" />' : ' />'; ?> No
232
  </td>
233
  </tr>
234
  <tr valign="top">
235
- <th scope="row"><label for="show_once_field">Milliseconds until hidden</label></th>
236
  <td>
237
  <input type="text" name="show_once_field" value="<?php echo $the_options['show_once'] ?>" />
238
- <span class="cli-plugin-example">Specify milliseconds (not seconds) e.g. <em>8000 = 8 seconds</em></span>
239
  </td>
240
  </tr>
241
 
242
  <!-- NEW: CLOSE ON SCROLL -->
243
  <tr valign="top" class="hr-top">
244
- <th scope="row"><label for="scroll_close_field">Auto-hide cookie bar if the user scrolls?</label></th>
245
  <td>
246
  <input type="radio" id="scroll_close_yes" name="scroll_close_field" class="styled" value="true" <?php echo ( $the_options['scroll_close'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
247
  <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
248
  </td>
249
  </tr>
250
  <tr valign="top" class="hr-bottom">
251
- <th scope="row"><label for="scroll_close_reload_field">Reload after "scroll accept" event?</label></th>
252
  <td>
253
  <!-- <input type="text" name="scroll_close_reload_field" value="<?php echo $the_options['scroll_close_reload'] ?>" />
254
  <span class="cli-plugin-example">If the user accepts, do you want to reload the page? This feature is mostly for Italian users who have to deal with a very specific interpretation of the cookie law.</span>
@@ -257,47 +281,53 @@ function cookielawinfo_print_admin_page() {
257
 
258
  <input type="radio" id="scroll_close_reload_yes" name="scroll_close_reload_field" class="styled" value="true" <?php echo ( $the_options['scroll_close_reload'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
259
  <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
260
-
261
-
262
  </td>
263
  </tr>
264
 
265
  </table>
266
 
267
- <h4>The Show Again Tab</h4>
268
  <table class="form-table">
269
  <tr valign="top">
270
- <th scope="row"><label for="showagain_tab_field">Use Show Again Tab?</label></th>
271
  <td>
272
  <input type="radio" id="showagain_tab_field_yes" name="showagain_tab_field" class="styled" value="true" <?php echo ( $the_options['showagain_tab'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
273
  <input type="radio" id="showagain_tab_field_no" name="showagain_tab_field" class="styled" value="false" <?php echo ( $the_options['showagain_tab'] == false ) ? ' checked="checked" />' : ' />'; ?> No
274
  </td>
275
  </tr>
276
  <tr valign="top">
277
- <th scope="row"><label for="notify_position_horizontal_field">Tab Position</label></th>
278
  <td>
279
  <select name="notify_position_horizontal_field" class="vvv_combobox">
280
  <?php
281
  if ($the_options['notify_position_horizontal'] == "right") {
282
- echo '<option value="right" selected="selected">Right</option>';
283
- echo '<option value="left">Left</option>';
 
 
 
 
284
  } else {
285
- echo '<option value="right">Right</option>';
286
- echo '<option value="left" selected="selected">Left</option>';
 
 
 
 
287
  }
288
  ?>
289
  </select>
290
  </td>
291
  </tr>
292
  <tr valign="top">
293
- <th scope="row"><label for="showagain_x_position_field">From Left Margin</label></th>
294
  <td>
295
  <input type="text" name="showagain_x_position_field" value="<?php echo $the_options['showagain_x_position'] ?>" />
296
  <span class="cli-plugin-example">Specify px&nbsp;or&nbsp;&#37;, e.g. <em>"100px" or "30%"</em></span>
297
  </td>
298
  </tr>
299
  <tr valign="top">
300
- <th scope="row"><label for="showagain_text">Show More Text</label></th>
301
  <td>
302
  <input type="text" name="showagain_text_field" value="<?php echo $the_options['showagain_text'] ?>" />
303
 
@@ -308,21 +338,21 @@ function cookielawinfo_print_admin_page() {
308
  </dd>
309
 
310
 
311
- <dt><a href="#">Cookie Law Message Bar</a></dt>
312
  <dd>
313
  <table class="form-table">
314
  <tr valign="top">
315
- <th scope="row"><label for="notify_message_field">Message</label></th>
316
  <td>
317
  <?php
318
  echo '<textarea name="notify_message_field" class="vvv_textbox">';
319
  echo apply_filters('format_to_edit', stripslashes($the_options['notify_message'])) . '</textarea>';
320
  ?>
321
- <span class="cli-plugin-example">Shortcodes allowed: see settngs section "Using the Shortcodes". <br /><em>Examples: "We use cookies on this website [cookie_accept] to find out how to delete cookies [cookie_link]."</em></span>
322
  </td>
323
  </tr>
324
  <tr valign="top">
325
- <th scope="row"><label for="background_field">Cookie Bar Colour</label></th>
326
  <td>
327
  <?php
328
  /** RICHARDASHBY EDIT */
@@ -332,7 +362,7 @@ function cookielawinfo_print_admin_page() {
332
  </td>
333
  </tr>
334
  <tr valign="top">
335
- <th scope="row"><label for="text_field">Text Colour</label></th>
336
  <td>
337
  <?php
338
  /** RICHARDASHBY EDIT */
@@ -341,7 +371,7 @@ function cookielawinfo_print_admin_page() {
341
  </td>
342
  </tr>
343
  <tr valign="top">
344
- <th scope="row"><label for="border_on_field">Show Border?</label></th>
345
  <td>
346
  <!-- Border on/off -->
347
  <input type="radio" id="border_on_field_yes" name="border_on_field" class="styled" value="true" <?php echo ( $the_options['border_on'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
@@ -349,7 +379,7 @@ function cookielawinfo_print_admin_page() {
349
  </td>
350
  </tr>
351
  <tr valign="top">
352
- <th scope="row"><label for="border_field">Border Colour</label></th>
353
  <td>
354
  <?php
355
  echo '<input type="text" name="border_field" id="cli-colour-border" value="' . $the_options['border'] . '" class="my-color-field" />';
@@ -357,7 +387,7 @@ function cookielawinfo_print_admin_page() {
357
  </td>
358
  </tr>
359
  <tr valign="top">
360
- <th scope="row"><label for="font_family_field">Font</label></th>
361
  <td>
362
  <select name="font_family_field" class="vvv_combobox">
363
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_fonts(), $the_options['font_family']) ?>
@@ -368,22 +398,22 @@ function cookielawinfo_print_admin_page() {
368
  </dd>
369
 
370
 
371
- <dt><a href="#">Customise Buttons</a></dt>
372
  <dd>
373
 
374
- <h3 style="margin-bottom:30px;"> Accept Button </h3>
375
 
376
- <h4>Main Button <code>[cookie_button]</code></h4>
377
- <p>This button/link can be customised to either simply close the cookie bar, or follow a link. You can also customise the colours and styles, and show it as a link or a button.</p>
378
  <table class="form-table">
379
  <tr valign="top">
380
- <th scope="row"><label for="button_1_text_field">Link Text</label></th>
381
  <td>
382
  <input type="text" name="button_1_text_field" value="<?php echo stripslashes($the_options['button_1_text']) ?>" />
383
  </td>
384
  </tr>
385
  <tr valign="top">
386
- <th scope="row"><label for="button_1_action_field">Action</label></th>
387
  <td>
388
  <select name="button_1_action_field" id="cli-plugin-button-1-action" class="vvv_combobox">
389
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_js_actions(), $the_options['button_1_action']) ?>
@@ -391,22 +421,22 @@ function cookielawinfo_print_admin_page() {
391
  </td>
392
  </tr>
393
  <tr valign="top" class="cli-plugin-row">
394
- <th scope="row"><label for="button_1_url_field">Link URL</label></th>
395
  <td>
396
  <input type="text" name="button_1_url_field" id="button_1_url_field" value="<?php echo $the_options['button_1_url'] ?>" />
397
- <span class="cli-plugin-example"><em>Button will only link to URL if Action = Show URL</em></span>
398
  </td>
399
  </tr>
400
 
401
  <tr valign="top" class="cli-plugin-row">
402
- <th scope="row"><label for="button_1_new_win_field">Open link in new window?</label></th>
403
  <td>
404
  <input type="radio" id="button_1_new_win_field_yes" name="button_1_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_1_new_win'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
405
  <input type="radio" id="button_1_new_win_field_no" name="button_1_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_1_new_win'] == false ) ? ' checked="checked" />' : ' />'; ?> No
406
  </td>
407
  </tr>
408
  <tr valign="top">
409
- <th scope="row"><label for="button_1_link_colour_field">Link colour</label></th>
410
  <td>
411
  <?php
412
  echo '<input type="text" name="button_1_link_colour_field" id="cli-colour-link-button-1" value="' . $the_options['button_1_link_colour'] . '" class="my-color-field" />';
@@ -414,14 +444,14 @@ function cookielawinfo_print_admin_page() {
414
  </td>
415
  </tr>
416
  <tr valign="top">
417
- <th scope="row"><label for="button_1_as_button_field">Show as button?</label></th>
418
  <td>
419
  <input type="radio" id="button_1_as_button_field_yes" name="button_1_as_button_field" class="styled" value="true" <?php echo ( $the_options['button_1_as_button'] == true ) ? ' checked="checked" />' : ' />'; ?> Button
420
  <input type="radio" id="button_1_as_button_field_no" name="button_1_as_button_field" class="styled" value="false" <?php echo ( $the_options['button_1_as_button'] == false ) ? ' checked="checked" />' : ' />'; ?> Link
421
  </td>
422
  </tr>
423
  <tr valign="top">
424
- <th scope="row"><label for="button_1_button_colour_field">Button colour</label></th>
425
  <td>
426
  <?php
427
  echo '<input type="text" name="button_1_button_colour_field" id="cli-colour-btn-button-1" value="' . $the_options['button_1_button_colour'] . '" class="my-color-field" />';
@@ -429,7 +459,7 @@ function cookielawinfo_print_admin_page() {
429
  </td>
430
  </tr>
431
  <tr valign="top">
432
- <th scope="row"><label for="button_1_button_size_field">Button Size</label></th>
433
  <td>
434
  <select name="button_1_button_size_field" class="vvv_combobox">
435
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_button_sizes(), $the_options['button_1_button_size']); ?>
@@ -440,17 +470,17 @@ function cookielawinfo_print_admin_page() {
440
 
441
  <hr>
442
 
443
- <h3 style="margin-top:50px;"> Reject Button </h3>
444
 
445
  <table class="form-table" >
446
  <tr valign="top">
447
- <th scope="row"><label for="button_3_text_field">Link Text</label></th>
448
  <td>
449
  <input type="text" name="button_3_text_field" value="<?php echo stripslashes($the_options['button_3_text']) ?>" />
450
  </td>
451
  </tr>
452
  <tr valign="top">
453
- <th scope="row"><label for="button_3_action_field">Action</label></th>
454
  <td>
455
  <select name="button_3_action_field" id="cli-plugin-button-3-action" class="vvv_combobox">
456
  <?php
@@ -462,22 +492,22 @@ function cookielawinfo_print_admin_page() {
462
  </td>
463
  </tr>
464
  <tr valign="top" class="cli-plugin-row">
465
- <th scope="row"><label for="button_3_url_field">Link URL</label></th>
466
  <td>
467
  <input type="text" name="button_3_url_field" id="button_3_url_field" value="<?php echo $the_options['button_3_url'] ?>" />
468
- <span class="cli-plugin-example"><em>Button will only link to URL if Action = Show URL</em></span>
469
  </td>
470
  </tr>
471
 
472
  <tr valign="top" class="cli-plugin-row">
473
- <th scope="row"><label for="button_3_new_win_field">Open link in new window?</label></th>
474
  <td>
475
  <input type="radio" id="button_3_new_win_field_yes" name="button_3_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_3_new_win'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
476
  <input type="radio" id="button_3_new_win_field_no" name="button_3_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_3_new_win'] == false ) ? ' checked="checked" />' : ' />'; ?> No
477
  </td>
478
  </tr>
479
  <tr valign="top">
480
- <th scope="row"><label for="button_3_link_colour_field">Link colour</label></th>
481
  <td>
482
  <?php
483
  echo '<input type="text" name="button_3_link_colour_field" id="cli-colour-link-button-3" value="' . $the_options['button_3_link_colour'] . '" class="my-color-field" />';
@@ -485,14 +515,14 @@ function cookielawinfo_print_admin_page() {
485
  </td>
486
  </tr>
487
  <tr valign="top">
488
- <th scope="row"><label for="button_3_as_button_field">Show as button?</label></th>
489
  <td>
490
  <input type="radio" id="button_3_as_button_field_yes" name="button_3_as_button_field" class="styled" value="true" <?php echo ( $the_options['button_3_as_button'] == true ) ? ' checked="checked" />' : ' />'; ?> Button
491
  <input type="radio" id="button_3_as_button_field_no" name="button_3_as_button_field" class="styled" value="false" <?php echo ( $the_options['button_3_as_button'] == false ) ? ' checked="checked" />' : ' />'; ?> Link
492
  </td>
493
  </tr>
494
  <tr valign="top">
495
- <th scope="row"><label for="button_3_button_colour_field">Button colour</label></th>
496
  <td>
497
  <?php
498
  echo '<input type="text" name="button_3_button_colour_field" id="cli-colour-btn-button-3" value="' . $the_options['button_3_button_colour'] . '" class="my-color-field" />';
@@ -500,7 +530,7 @@ function cookielawinfo_print_admin_page() {
500
  </td>
501
  </tr>
502
  <tr valign="top">
503
- <th scope="row"><label for="button_3_button_size_field">Button Size</label></th>
504
  <td>
505
  <select name="button_3_button_size_field" class="vvv_combobox">
506
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_button_sizes(), $the_options['button_3_button_size']); ?>
@@ -510,23 +540,23 @@ function cookielawinfo_print_admin_page() {
510
  </table><!-- end custom button -->
511
 
512
  <hr>
513
- <h4>Read More Link <code>[cookie_link]</code></h4>
514
- <p>This button/link can be used to provide a link out to your Privacy & Cookie Policy. You can customise it any way you like.</p>
515
  <table class="form-table">
516
  <tr valign="top">
517
- <th scope="row"><label for="button_2_text_field">Link Text</label></th>
518
  <td>
519
  <input type="text" name="button_2_text_field" value="<?php echo stripslashes($the_options['button_2_text']) ?>" />
520
  </td>
521
  </tr>
522
  <tr valign="top">
523
- <th scope="row"><label for="button_2_url_field">Link URL</label></th>
524
  <td>
525
  <input type="text" name="button_2_url_field" id="button_2_url_field" value="<?php echo $the_options['button_2_url'] ?>" />
526
  </td>
527
  </tr>
528
  <tr valign="top">
529
- <th scope="row"><label for="button_2_link_colour_field">Link colour</label></th>
530
  <td>
531
  <?php
532
  echo '<input type="text" name="button_2_link_colour_field" id="cli-colour-link-button-1" value="' . $the_options['button_2_link_colour'] . '" class="my-color-field" />';
@@ -536,21 +566,21 @@ function cookielawinfo_print_admin_page() {
536
 
537
 
538
  <tr valign="top">
539
- <th scope="row"><label for="button_2_new_win_field">Open link in new window?</label></th>
540
  <td>
541
  <input type="radio" id="button_2_new_win_field_yes" name="button_2_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_2_new_win'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
542
  <input type="radio" id="button_2_new_win_field_no" name="button_2_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_2_new_win'] == false ) ? ' checked="checked" />' : ' />'; ?> No
543
  </td>
544
  </tr>
545
  <tr valign="top">
546
- <th scope="row"><label for="button_2_as_button_field">Show as button?</label></th>
547
  <td>
548
  <input type="radio" id="button_2_as_button_field_yes" name="button_2_as_button_field" class="styled" value="true" <?php echo ( $the_options['button_2_as_button'] == true ) ? ' checked="checked" />' : ' />'; ?> Button
549
  <input type="radio" id="button_2_as_button_field_no" name="button_2_as_button_field" class="styled" value="false" <?php echo ( $the_options['button_2_as_button'] == false ) ? ' checked="checked" />' : ' />'; ?> Link
550
  </td>
551
  </tr>
552
  <tr valign="top">
553
- <th scope="row"><label for="button_2_button_colour_field">Button colour</label></th>
554
  <td>
555
  <?php
556
  echo '<input type="text" name="button_2_button_colour_field" id="cli-colour-btn-button-1" value="' . $the_options['button_2_button_colour'] . '" class="my-color-field" />';
@@ -558,7 +588,7 @@ function cookielawinfo_print_admin_page() {
558
  </td>
559
  </tr>
560
  <tr valign="top">
561
- <th scope="row"><label for="button_2_button_size_field">Button Size</label></th>
562
  <td>
563
  <select name="button_2_button_size_field" class="vvv_combobox">
564
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_button_sizes(), $the_options['button_2_button_size']); ?>
@@ -569,35 +599,35 @@ function cookielawinfo_print_admin_page() {
569
 
570
  </dd>
571
 
572
- <dt><a href="#">Using the Shortcodes</a></dt>
573
  <dd class="cli-help">
574
- <h4>Cookie bar shortcodes</h4>
575
- <p>You can enter the shortcodes in the "message" field of the Cookie Law Info bar. They add nicely formatted buttons and/or links into the cookie bar, without you having to add any HTML.</p>
576
  <p>The shortcodes are:</p>
577
 
578
- <pre>[cookie_accept]</pre><span>If you just want a standard green "Accept" button that closes the header and nothing more, use this shortcode. It is already styled, you don't need to customise it.</span>
579
 
580
- <pre>[cookie_accept colour="red"]</pre><span>Alternatively you can add a colour value. Choose from: red, blue, orange, yellow, green or pink.<br /><em>Careful to use the British spelling of "colour" for the attribute.</em></span>
581
 
582
- <pre>[cookie_button]</pre><span>This is the "main button" you customise above.</span>
583
 
584
- <pre>[cookie_link]</pre><span>This is the "read more" link you customise above.</span>
585
 
586
- <h4>Other shortcodes</h4>
587
- <p>These shortcodes can be used in pages and posts on your website. It is not recommended to use these inside the cookie bar itself.</p>
588
 
589
- <pre>[cookie_audit]</pre><span>This prints out a nice table of cookies, in line with the guidance given by the ICO. <em>You need to enter the cookies your website uses via the Cookie Law Info menu in your WordPress dashboard.</em></span>
590
 
591
- <pre>[delete_cookies]</pre><span>This shortcode will display a normal HTML link which when clicked, will delete the cookie set by Cookie Law Info (this cookie is used to remember that the cookie bar is closed).</span>
592
- <pre>[delete_cookies text="Click here to delete"]</pre><span>Add any text you like- useful if you want e.g. another language to English.</span>
593
 
594
 
595
  </dd>
596
 
597
 
598
- <dt><a href="#">Advanced</a></dt>
599
  <dd>
600
- <p>Sometimes themes apply settings that clash with plugins. If that happens, try adjusting these settings.</p>
601
 
602
  <table class="form-table">
603
  <!--
@@ -611,10 +641,10 @@ function cookielawinfo_print_admin_page() {
611
  </tr>
612
  -->
613
  <tr valign="top">
614
- <th scope="row">Reset all values</th>
615
  <td>
616
  <input type="submit" name="delete_all_settings" value="Delete settings and reset" class="button-secondary" onclick="return confirm('Are you sure you want to delete all your settings?');" />
617
- <span class="cli-plugin-example"><em>Warning: this will actually delete your current settings.</em></span>
618
  </td>
619
  </tr>
620
  <!--
@@ -667,7 +697,7 @@ function cookielawinfo_print_admin_page() {
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>
@@ -677,14 +707,14 @@ function cookielawinfo_print_admin_page() {
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>
689
  .cli-button-go-pro {
690
  box-shadow: none;
@@ -712,15 +742,15 @@ function cookielawinfo_print_admin_page() {
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>
719
  <ul>
720
- <li><a href="http://cookielawinfo.com/support/">Help and Support</a></li>
721
- <li><a href="http://wordpress.org/support/plugin/cookie-law-info/">Report a Bug</a></li>
722
- <li><a href="http://cookielawinfo.com/contact/">Suggest a Feature</a></li>
723
- <li><a href="http://cookielawinfo.com">About the law</a></li>
724
  </ul>
725
  <br />
726
 
@@ -780,7 +810,7 @@ function cookielawinfo_print_admin_page() {
780
  function cookielawinfo_print_thirdparty_page() {
781
  ?>
782
 
783
- <h2>Non-necessary Cookie Settings</h2>
784
  <?php
785
  $options = array('thirdparty_on_field',
786
  'thirdparty_head_section',
@@ -812,7 +842,9 @@ function cookielawinfo_print_thirdparty_page() {
812
  }
813
 
814
  update_option('cookielawinfo_thirdparty_settings', $stored_options);
815
- echo '<div class="updated"><p><strong>Settings Updated.</strong></p></div>';
 
 
816
  }
817
 
818
  $stored_options = get_option('cookielawinfo_thirdparty_settings', array(
@@ -834,7 +866,7 @@ function cookielawinfo_print_thirdparty_page() {
834
  <table class="form-table" >
835
 
836
  <tr valign="top">
837
- <th scope="row" style="width:25%;"><label for="thirdparty_on_field">Enable Non-necessary Cookie</label></th>
838
  <td>
839
  <!-- Border on/off -->
840
  <input type="radio" id="thirdparty_on_field_yes" name="thirdparty_on_field" class="styled" value="true" <?php echo ( filter_var($stored_options['thirdparty_on_field'], FILTER_VALIDATE_BOOLEAN) == true ) ? ' checked="checked" />' : ' />'; ?> Yes
@@ -842,25 +874,25 @@ function cookielawinfo_print_thirdparty_page() {
842
  </td>
843
  </tr>
844
  <tr valign="top">
845
- <th scope="row" style="width:25%;"><label for="thirdparty_head_section">This script will be added to the page HEAD section if the above settings is enabled and user has give consent.</label></th>
846
  <td>
847
  <?php
848
  echo '<textarea name="thirdparty_head_section" class="vvv_textbox">';
849
  echo apply_filters('format_to_edit', stripslashes($stored_options['thirdparty_head_section'])) . '</textarea>';
850
  ?>
851
  <div class="clearfix"></div>
852
- <span class="cli-plugin-example"><em>Print scripts in the head tag on the front end if above cookie settings is enabled and user has given consent. eg:- &lt;script&gt;console.log("header script");&lt;/script&gt; </em></span>
853
  </td>
854
  </tr>
855
  <tr valign="top">
856
- <th scope="row" style="width:25%;"><label for="thirdparty_body_section">This script will be added right after the BODY section if the above settings is enabled and user has given consent.</label></th>
857
  <td>
858
  <?php
859
  echo '<textarea name="thirdparty_body_section" class="vvv_textbox">';
860
  echo apply_filters('format_to_edit', stripslashes($stored_options['thirdparty_body_section'])) . '</textarea>';
861
  ?>
862
  <div class="clearfix"></div>
863
- <span class="cli-plugin-example"><em>Print scripts before the closing body tag on the front end if above cookie settings is enabled and user has given consent. eg:- &lt;script&gt;console.log("body script");&lt;/script&gt; </em></span>
864
  </td>
865
  </tr>
866
  <!-- <tr valign="top">
@@ -871,7 +903,7 @@ function cookielawinfo_print_thirdparty_page() {
871
  //echo apply_filters('format_to_edit', stripslashes($stored_options['thirdparty_footer_section'])) . '</textarea>';
872
  ?>
873
  <div class="clearfix"></div>
874
- <span class="cli-plugin-example">Shortcodes allowed: see settings section "Using the Shortcodes". <br /><em>Examples: "We use cookies on this website [cookie_accept] to find out how to delete cookies [cookie_link]."</em></span>
875
  </td>
876
  </tr>-->
877
 
23
 
24
  // Lock out non-admins:
25
  if (!current_user_can('manage_options')) {
26
+ wp_die(__('You do not have sufficient permission to perform this operation','cookie-law-info'));
27
  }
28
 
29
  // Get options:
40
  }
41
  }
42
  update_option(CLI_SETTINGS_FIELD, $the_options);
43
+ echo '<div class="updated"><p><strong>';
44
+ echo __('Settings Updated.','cookie-law-info');
45
+ echo '</strong></p></div>';
46
  } else if (isset($_POST['delete_all_settings'])) {
47
  // Check nonce:
48
  check_admin_referer('cookielawinfo-update-' . CLI_SETTINGS_FIELD);
50
  $the_options = cookielawinfo_get_admin_settings();
51
  } else if (isset($_POST['revert_to_previous_settings'])) {
52
  if (!cookielawinfo_copy_old_settings_to_new()) {
53
+ echo '<h3>';
54
+ echo __('ERROR MIGRATING SETTINGS (ERROR: 2)','cookie-law-info');
55
+ echo '</h3>';
56
  }
57
  $the_options = cookielawinfo_get_admin_settings();
58
  }
62
 
63
  echo '<div class="wrap">';
64
  ?>
65
+ <h2><?php echo __('Cookie Law Settings','cookie-law-info'); ?></h2>
66
 
67
 
68
  <?php
73
  case '2':
74
  // Migrate but keep
75
  if (!cookielawinfo_migrate_to_new_version()) {
76
+ echo '<h3>';
77
+ echo __('ERROR MIGRATING SETTINGS (ERROR: 2)','cookie-law-info');
78
+ echo '</h3>';
79
  }
80
  break;
81
  case '3':
84
  break;
85
  default:
86
  // Form error, ignore
87
+ echo '<h3>';
88
+ echo __('Error processing migration request (ERROR: 4)','cookie-law-info');
89
+ echo '</h3>';
90
  break;
91
  }
92
  }
93
  $the_options = cookielawinfo_get_admin_settings();
94
  }
 
 
95
  echo '<form method="post" action="' . esc_url($_SERVER["REQUEST_URI"]) . '">';
96
 
97
  // Set nonce:
113
  $span_tag = '<span id="header_on_off_alert">';
114
  if ($the_options['is_on'] == true) {
115
  $img_tag .= 'tick.png" alt="tick icon" />';
116
+ $span_tag .= __('Your Cookie Law Info bar is switched on','cookie-law-info');
117
+ $span_tag .= '</span>';
118
  } else {
119
  $img_tag .= 'cross.png" alt="cross icon" />';
120
+ $span_tag .= __('Your Cookie Law Info bar is switched off','cookie-law-info');
121
+ $span_tag .= '</span>';
122
  }
123
  echo $img_tag . $span_tag;
124
  ?>
149
  <dl class="accordion">
150
 
151
 
152
+ <dt class="ui-icon ui-icon-triangle-1-s"><a href="#"><?php echo __('Settings','cookie-law-info'); ?></a></dt>
153
  <dd id="accordion_default">
154
+ <h4><?php echo __('The Cookie Bar','cookie-law-info'); ?></h4>
155
  <table class="form-table">
156
  <tr valign="top">
157
+ <th scope="row"><label for="is_on_field"><?php echo __('Cookie Bar is currently:','cookie-law-info'); ?></label></th>
158
  <td>
159
 
160
  <input type="radio" id="is_on_field_yes" name="is_on_field" class="styled" value="true" <?php echo ( $the_options['is_on'] == true ) ? ' checked="checked" />' : ' />'; ?> On
163
  </td>
164
  </tr>
165
  <tr valign="top">
166
+ <th scope="row"><label for="is_reject_on_field"><?php echo __('Reject Button:','cookie-law-info'); ?></label></th>
167
  <td>
168
  <input type="radio" id="is_reject_on_field_yes" name="is_reject_on_field" class="styled" value="true" <?php echo ( $the_options['is_reject_on'] == true ) ? ' checked="checked" />' : ' />'; ?> On
169
  <input type="radio" id="is_reject_on_field_no" name="is_reject_on_field" class="styled" value="false" <?php echo ( $the_options['is_reject_on'] == false ) ? ' checked="checked" />' : ' />'; ?> Off
171
  </td>
172
  </tr>
173
  <tr valign="top">
174
+ <th scope="row"><label for="notify_position_vertical_field"><?php echo __('Cookie Bar will be show in:','cookie-law-info'); ?></label></th>
175
  <td>
176
  <select name="notify_position_vertical_field" class="vvv_combobox">
177
  <?php
178
  if ($the_options['notify_position_vertical'] == "top") {
179
+ echo '<option value="top" selected="selected">';
180
+ echo __('Header','cookie-law-info');
181
+ echo '</option>';
182
+ echo '<option value="bottom">';
183
+ echo __('Footer','cookie-law-info');
184
+ echo '</option>';
185
  } else {
186
+ echo '<option value="top">';
187
+ echo __('Header','cookie-law-info');
188
+ echo '</option>';
189
+ echo '<option value="bottom" selected="selected">';
190
+ echo __('Footer','cookie-law-info');
191
+ echo '</option>';
192
  }
193
  ?>
194
  </select>
197
 
198
  <!-- header_fix code here -->
199
  <tr valign="top">
200
+ <th scope="row"><label for="header_fix_field"><?php echo __('Fix Cookie Bar to Header?','cookie-law-info'); ?></label></th>
201
  <td>
202
  <input type="radio" id="header_fix_field_yes" name="header_fix_field" class="styled" value="true" <?php echo ( $the_options['header_fix'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
203
  <input type="radio" id="iheader_fix_field_no" name="header_fix_field" class="styled" value="false" <?php echo ( $the_options['header_fix'] == false ) ? ' checked="checked" />' : ' />'; ?> No
204
+ <span class="cli-plugin-example"><?php echo __('If you select "Header" then you can optionally stick the cookie bar to the header. Will not have any effect if you select "Footer".','cookie-law-info'); ?></span>
205
  </td>
206
  </tr>
207
  <!-- /header_fix -->
208
 
209
  <tr valign="top">
210
+ <th scope="row"><label for="notify_animate_show_field"><?php echo __('On load','cookie-law-info'); ?></label></th>
211
  <td>
212
  <select name="notify_animate_show_field" class="vvv_combobox">
213
  <?php
214
  if ($the_options['notify_animate_show'] == true) {
215
+ echo '<option value="true" selected="selected">';
216
+ echo __('Animate','cookie-law-info');
217
+ echo '</option>';
218
+ echo '<option value="false">';
219
+ echo __('Sticky','cookie-law-info');
220
+ echo '</option>';
221
  } else {
222
+ echo '<option value="true">';
223
+ echo __('Animate','cookie-law-info');
224
+ echo '</option>';
225
+ echo '<option value="false" selected="selected">';
226
+ echo __('Sticky','cookie-law-info');
227
+ echo '</option>';
228
  }
229
  ?>
230
  </select>
231
  </td>
232
  </tr>
233
  <tr valign="top">
234
+ <th scope="row"><label for="notify_animate_hide_field"><?php echo __('On hide','cookie-law-info'); ?></label></th>
235
  <td>
236
  <select name="notify_animate_hide_field" class="vvv_combobox">
237
  <?php
249
 
250
  <!-- SHOW ONCE / TIMER -->
251
  <tr valign="top" class="hr-top">
252
+ <th scope="row"><label for="show_once_yn_field"><?php echo __('Auto-hide cookie bar after delay?','cookie-law-info'); ?></label></th>
253
  <td>
254
  <input type="radio" id="show_once_yn_yes" name="show_once_yn_field" class="styled" value="true" <?php echo ( $the_options['show_once_yn'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
255
  <input type="radio" id="show_once_yn_no" name="show_once_yn_field" class="styled" value="false" <?php echo ( $the_options['show_once_yn'] == false ) ? ' checked="checked" />' : ' />'; ?> No
256
  </td>
257
  </tr>
258
  <tr valign="top">
259
+ <th scope="row"><label for="show_once_field"><?php echo __('Milliseconds until hidden','cookie-law-info'); ?></label></th>
260
  <td>
261
  <input type="text" name="show_once_field" value="<?php echo $the_options['show_once'] ?>" />
262
+ <span class="cli-plugin-example"><?php echo __('Specify milliseconds (not seconds) e.g.','cookie-law-info'); ?> <em>8000 = 8 seconds</em></span>
263
  </td>
264
  </tr>
265
 
266
  <!-- NEW: CLOSE ON SCROLL -->
267
  <tr valign="top" class="hr-top">
268
+ <th scope="row"><label for="scroll_close_field"><?php echo __('Auto-hide cookie bar if the user scrolls?','cookie-law-info'); ?></label></th>
269
  <td>
270
  <input type="radio" id="scroll_close_yes" name="scroll_close_field" class="styled" value="true" <?php echo ( $the_options['scroll_close'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
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'] ?>" />
278
  <span class="cli-plugin-example">If the user accepts, do you want to reload the page? This feature is mostly for Italian users who have to deal with a very specific interpretation of the cookie law.</span>
281
 
282
  <input type="radio" id="scroll_close_reload_yes" name="scroll_close_reload_field" class="styled" value="true" <?php echo ( $the_options['scroll_close_reload'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
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
 
289
+ <h4><?php echo __('The Show Again Tab','cookie-law-info'); ?></h4>
290
  <table class="form-table">
291
  <tr valign="top">
292
+ <th scope="row"><label for="showagain_tab_field"><?php echo __('Use Show Again Tab?','cookie-law-info'); ?></label></th>
293
  <td>
294
  <input type="radio" id="showagain_tab_field_yes" name="showagain_tab_field" class="styled" value="true" <?php echo ( $the_options['showagain_tab'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
295
  <input type="radio" id="showagain_tab_field_no" name="showagain_tab_field" class="styled" value="false" <?php echo ( $the_options['showagain_tab'] == false ) ? ' checked="checked" />' : ' />'; ?> No
296
  </td>
297
  </tr>
298
  <tr valign="top">
299
+ <th scope="row"><label for="notify_position_horizontal_field"><?php echo __('Tab Position','cookie-law-info'); ?></label></th>
300
  <td>
301
  <select name="notify_position_horizontal_field" class="vvv_combobox">
302
  <?php
303
  if ($the_options['notify_position_horizontal'] == "right") {
304
+ echo '<option value="right" selected="selected">';
305
+ echo __('Right','cookie-law-info');
306
+ echo '</option>';
307
+ echo '<option value="left">';
308
+ echo __('Left','cookie-law-info');
309
+ echo '</option>';
310
  } else {
311
+ echo '<option value="right">';
312
+ echo __('Right','cookie-law-info');
313
+ echo '</option>';
314
+ echo '<option value="left" selected="selected">';
315
+ echo __('Left','cookie-law-info');
316
+ echo '</option>';
317
  }
318
  ?>
319
  </select>
320
  </td>
321
  </tr>
322
  <tr valign="top">
323
+ <th scope="row"><label for="showagain_x_position_field"><?php echo __('From Left Margin','cookie-law-info'); ?></label></th>
324
  <td>
325
  <input type="text" name="showagain_x_position_field" value="<?php echo $the_options['showagain_x_position'] ?>" />
326
  <span class="cli-plugin-example">Specify px&nbsp;or&nbsp;&#37;, e.g. <em>"100px" or "30%"</em></span>
327
  </td>
328
  </tr>
329
  <tr valign="top">
330
+ <th scope="row"><label for="showagain_text"><?php echo __('Show More Text','cookie-law-info'); ?></label></th>
331
  <td>
332
  <input type="text" name="showagain_text_field" value="<?php echo $the_options['showagain_text'] ?>" />
333
 
338
  </dd>
339
 
340
 
341
+ <dt><a href="#"><?php echo __('Cookie Law Message Bar','cookie-law-info'); ?></a></dt>
342
  <dd>
343
  <table class="form-table">
344
  <tr valign="top">
345
+ <th scope="row"><label for="notify_message_field"><?php echo __('Message','cookie-law-info'); ?></label></th>
346
  <td>
347
  <?php
348
  echo '<textarea name="notify_message_field" class="vvv_textbox">';
349
  echo apply_filters('format_to_edit', stripslashes($the_options['notify_message'])) . '</textarea>';
350
  ?>
351
+ <span class="cli-plugin-example"><?php echo __('Shortcodes allowed: see settngs section "Using the Shortcodes".','cookie-law-info'); ?> <br /><em><?php echo __('Examples: "We use cookies on this website','cookie-law-info'); ?> [cookie_accept] <?php echo __('to find out how to delete cookies','cookie-law-info'); ?> [cookie_link]."</em></span>
352
  </td>
353
  </tr>
354
  <tr valign="top">
355
+ <th scope="row"><label for="background_field"><?php echo __('Cookie Bar Colour','cookie-law-info'); ?></label></th>
356
  <td>
357
  <?php
358
  /** RICHARDASHBY EDIT */
362
  </td>
363
  </tr>
364
  <tr valign="top">
365
+ <th scope="row"><label for="text_field"><?php echo __('Text Colour','cookie-law-info'); ?></label></th>
366
  <td>
367
  <?php
368
  /** RICHARDASHBY EDIT */
371
  </td>
372
  </tr>
373
  <tr valign="top">
374
+ <th scope="row"><label for="border_on_field"><?php echo __('Show Border?','cookie-law-info'); ?></label></th>
375
  <td>
376
  <!-- Border on/off -->
377
  <input type="radio" id="border_on_field_yes" name="border_on_field" class="styled" value="true" <?php echo ( $the_options['border_on'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
379
  </td>
380
  </tr>
381
  <tr valign="top">
382
+ <th scope="row"><label for="border_field"><?php echo __('Border Colour','cookie-law-info'); ?></label></th>
383
  <td>
384
  <?php
385
  echo '<input type="text" name="border_field" id="cli-colour-border" value="' . $the_options['border'] . '" class="my-color-field" />';
387
  </td>
388
  </tr>
389
  <tr valign="top">
390
+ <th scope="row"><label for="font_family_field"><?php echo __('Font','cookie-law-info'); ?></label></th>
391
  <td>
392
  <select name="font_family_field" class="vvv_combobox">
393
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_fonts(), $the_options['font_family']) ?>
398
  </dd>
399
 
400
 
401
+ <dt><a href="#"><?php echo __('Customise Buttons','cookie-law-info'); ?></a></dt>
402
  <dd>
403
 
404
+ <h3 style="margin-bottom:30px;"> <?php echo __('Accept Button','cookie-law-info'); ?> </h3>
405
 
406
+ <h4><?php echo __('Main Button','cookie-law-info'); ?> <code>[cookie_button]</code></h4>
407
+ <p><?php echo __('This button/link can be customised to either simply close the cookie bar, or follow a link. You can also customise the colours and styles, and show it as a link or a button.','cookie-law-info'); ?></p>
408
  <table class="form-table">
409
  <tr valign="top">
410
+ <th scope="row"><label for="button_1_text_field"><?php echo __('Link Text','cookie-law-info'); ?></label></th>
411
  <td>
412
  <input type="text" name="button_1_text_field" value="<?php echo stripslashes($the_options['button_1_text']) ?>" />
413
  </td>
414
  </tr>
415
  <tr valign="top">
416
+ <th scope="row"><label for="button_1_action_field"><?php echo __('Action','cookie-law-info'); ?></label></th>
417
  <td>
418
  <select name="button_1_action_field" id="cli-plugin-button-1-action" class="vvv_combobox">
419
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_js_actions(), $the_options['button_1_action']) ?>
421
  </td>
422
  </tr>
423
  <tr valign="top" class="cli-plugin-row">
424
+ <th scope="row"><label for="button_1_url_field"><?php echo __('Link URL','cookie-law-info'); ?></label></th>
425
  <td>
426
  <input type="text" name="button_1_url_field" id="button_1_url_field" value="<?php echo $the_options['button_1_url'] ?>" />
427
+ <span class="cli-plugin-example"><em><?php echo __('Button will only link to URL if','cookie-law-info'); ?> Action = Show URL</em></span>
428
  </td>
429
  </tr>
430
 
431
  <tr valign="top" class="cli-plugin-row">
432
+ <th scope="row"><label for="button_1_new_win_field"><?php echo __('Open link in new window?','cookie-law-info'); ?></label></th>
433
  <td>
434
  <input type="radio" id="button_1_new_win_field_yes" name="button_1_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_1_new_win'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
435
  <input type="radio" id="button_1_new_win_field_no" name="button_1_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_1_new_win'] == false ) ? ' checked="checked" />' : ' />'; ?> No
436
  </td>
437
  </tr>
438
  <tr valign="top">
439
+ <th scope="row"><label for="button_1_link_colour_field"><?php echo __('Link colour','cookie-law-info'); ?></label></th>
440
  <td>
441
  <?php
442
  echo '<input type="text" name="button_1_link_colour_field" id="cli-colour-link-button-1" value="' . $the_options['button_1_link_colour'] . '" class="my-color-field" />';
444
  </td>
445
  </tr>
446
  <tr valign="top">
447
+ <th scope="row"><label for="button_1_as_button_field"><?php echo __('Show as button?','cookie-law-info'); ?></label></th>
448
  <td>
449
  <input type="radio" id="button_1_as_button_field_yes" name="button_1_as_button_field" class="styled" value="true" <?php echo ( $the_options['button_1_as_button'] == true ) ? ' checked="checked" />' : ' />'; ?> Button
450
  <input type="radio" id="button_1_as_button_field_no" name="button_1_as_button_field" class="styled" value="false" <?php echo ( $the_options['button_1_as_button'] == false ) ? ' checked="checked" />' : ' />'; ?> Link
451
  </td>
452
  </tr>
453
  <tr valign="top">
454
+ <th scope="row"><label for="button_1_button_colour_field"><?php echo __('Button colour','cookie-law-info'); ?></label></th>
455
  <td>
456
  <?php
457
  echo '<input type="text" name="button_1_button_colour_field" id="cli-colour-btn-button-1" value="' . $the_options['button_1_button_colour'] . '" class="my-color-field" />';
459
  </td>
460
  </tr>
461
  <tr valign="top">
462
+ <th scope="row"><label for="button_1_button_size_field"><?php echo __('Button Size','cookie-law-info'); ?></label></th>
463
  <td>
464
  <select name="button_1_button_size_field" class="vvv_combobox">
465
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_button_sizes(), $the_options['button_1_button_size']); ?>
470
 
471
  <hr>
472
 
473
+ <h3 style="margin-top:50px;"> <?php echo __('Reject Button','cookie-law-info'); ?> </h3>
474
 
475
  <table class="form-table" >
476
  <tr valign="top">
477
+ <th scope="row"><label for="button_3_text_field"><?php echo __('Link Text','cookie-law-info'); ?></label></th>
478
  <td>
479
  <input type="text" name="button_3_text_field" value="<?php echo stripslashes($the_options['button_3_text']) ?>" />
480
  </td>
481
  </tr>
482
  <tr valign="top">
483
+ <th scope="row"><label for="button_3_action_field"><?php echo __('Action','cookie-law-info');?></label></th>
484
  <td>
485
  <select name="button_3_action_field" id="cli-plugin-button-3-action" class="vvv_combobox">
486
  <?php
492
  </td>
493
  </tr>
494
  <tr valign="top" class="cli-plugin-row">
495
+ <th scope="row"><label for="button_3_url_field"><?php echo __('Link URL','cookie-law-info'); ?></label></th>
496
  <td>
497
  <input type="text" name="button_3_url_field" id="button_3_url_field" value="<?php echo $the_options['button_3_url'] ?>" />
498
+ <span class="cli-plugin-example"><em><?php echo __('Button will only link to URL if ','cookie-law-info');?> Action = Show URL</em></span>
499
  </td>
500
  </tr>
501
 
502
  <tr valign="top" class="cli-plugin-row">
503
+ <th scope="row"><label for="button_3_new_win_field"><?php echo __('Open link in new window?','cookie-law-info'); ?></label></th>
504
  <td>
505
  <input type="radio" id="button_3_new_win_field_yes" name="button_3_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_3_new_win'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
506
  <input type="radio" id="button_3_new_win_field_no" name="button_3_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_3_new_win'] == false ) ? ' checked="checked" />' : ' />'; ?> No
507
  </td>
508
  </tr>
509
  <tr valign="top">
510
+ <th scope="row"><label for="button_3_link_colour_field"><?php echo __('Link colour','cookie-law-info'); ?></label></th>
511
  <td>
512
  <?php
513
  echo '<input type="text" name="button_3_link_colour_field" id="cli-colour-link-button-3" value="' . $the_options['button_3_link_colour'] . '" class="my-color-field" />';
515
  </td>
516
  </tr>
517
  <tr valign="top">
518
+ <th scope="row"><label for="button_3_as_button_field"><?php echo __('Show as button?','cookie-law-info'); ?></label></th>
519
  <td>
520
  <input type="radio" id="button_3_as_button_field_yes" name="button_3_as_button_field" class="styled" value="true" <?php echo ( $the_options['button_3_as_button'] == true ) ? ' checked="checked" />' : ' />'; ?> Button
521
  <input type="radio" id="button_3_as_button_field_no" name="button_3_as_button_field" class="styled" value="false" <?php echo ( $the_options['button_3_as_button'] == false ) ? ' checked="checked" />' : ' />'; ?> Link
522
  </td>
523
  </tr>
524
  <tr valign="top">
525
+ <th scope="row"><label for="button_3_button_colour_field"><?php echo __('Button colour','cookie-law-info'); ?></label></th>
526
  <td>
527
  <?php
528
  echo '<input type="text" name="button_3_button_colour_field" id="cli-colour-btn-button-3" value="' . $the_options['button_3_button_colour'] . '" class="my-color-field" />';
530
  </td>
531
  </tr>
532
  <tr valign="top">
533
+ <th scope="row"><label for="button_3_button_size_field"><?php echo __('Button Size','cookie-law-info'); ?></label></th>
534
  <td>
535
  <select name="button_3_button_size_field" class="vvv_combobox">
536
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_button_sizes(), $the_options['button_3_button_size']); ?>
540
  </table><!-- end custom button -->
541
 
542
  <hr>
543
+ <h4><?php echo __('Read More Link','cookie-law-info'); ?> <code>[cookie_link]</code></h4>
544
+ <p><?php echo __('This button/link can be used to provide a link out to your Privacy & Cookie Policy. You can customise it any way you like.','cookie-law-info'); ?></p>
545
  <table class="form-table">
546
  <tr valign="top">
547
+ <th scope="row"><label for="button_2_text_field"><?php echo __('Link Text','cookie-law-info'); ?></label></th>
548
  <td>
549
  <input type="text" name="button_2_text_field" value="<?php echo stripslashes($the_options['button_2_text']) ?>" />
550
  </td>
551
  </tr>
552
  <tr valign="top">
553
+ <th scope="row"><label for="button_2_url_field"><?php echo __('Link URL','cookie-law-info'); ?></label></th>
554
  <td>
555
  <input type="text" name="button_2_url_field" id="button_2_url_field" value="<?php echo $the_options['button_2_url'] ?>" />
556
  </td>
557
  </tr>
558
  <tr valign="top">
559
+ <th scope="row"><label for="button_2_link_colour_field"><?php echo __('Link colour','cookie-law-info'); ?></label></th>
560
  <td>
561
  <?php
562
  echo '<input type="text" name="button_2_link_colour_field" id="cli-colour-link-button-1" value="' . $the_options['button_2_link_colour'] . '" class="my-color-field" />';
566
 
567
 
568
  <tr valign="top">
569
+ <th scope="row"><label for="button_2_new_win_field"><?php echo __('Open link in new window?','cookie-law-info'); ?></label></th>
570
  <td>
571
  <input type="radio" id="button_2_new_win_field_yes" name="button_2_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_2_new_win'] == true ) ? ' checked="checked" />' : ' />'; ?> Yes
572
  <input type="radio" id="button_2_new_win_field_no" name="button_2_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_2_new_win'] == false ) ? ' checked="checked" />' : ' />'; ?> No
573
  </td>
574
  </tr>
575
  <tr valign="top">
576
+ <th scope="row"><label for="button_2_as_button_field"><?php echo __('Show as button?','cookie-law-info'); ?></label></th>
577
  <td>
578
  <input type="radio" id="button_2_as_button_field_yes" name="button_2_as_button_field" class="styled" value="true" <?php echo ( $the_options['button_2_as_button'] == true ) ? ' checked="checked" />' : ' />'; ?> Button
579
  <input type="radio" id="button_2_as_button_field_no" name="button_2_as_button_field" class="styled" value="false" <?php echo ( $the_options['button_2_as_button'] == false ) ? ' checked="checked" />' : ' />'; ?> Link
580
  </td>
581
  </tr>
582
  <tr valign="top">
583
+ <th scope="row"><label for="button_2_button_colour_field"><?php echo __('Button colour','cookie-law-info'); ?></label></th>
584
  <td>
585
  <?php
586
  echo '<input type="text" name="button_2_button_colour_field" id="cli-colour-btn-button-1" value="' . $the_options['button_2_button_colour'] . '" class="my-color-field" />';
588
  </td>
589
  </tr>
590
  <tr valign="top">
591
+ <th scope="row"><label for="button_2_button_size_field"><?php echo __('Button Size','cookie-law-info'); ?></label></th>
592
  <td>
593
  <select name="button_2_button_size_field" class="vvv_combobox">
594
  <?php cookielawinfo_print_combobox_options(cookielawinfo_get_button_sizes(), $the_options['button_2_button_size']); ?>
599
 
600
  </dd>
601
 
602
+ <dt><a href="#"><?php echo __('Using the Shortcodes','cookie-law-info'); ?></a></dt>
603
  <dd class="cli-help">
604
+ <h4><?php echo __('Cookie bar shortcodes','cookie-law-info'); ?></h4>
605
+ <p><?php echo __('You can enter the shortcodes in the','cookie-law-info'); ?> "message" <?php echo __('field of the Cookie Law Info bar. They add nicely formatted buttons and/or links into the cookie bar, without you having to add any HTML','cookie-law-info'); ?>.</p>
606
  <p>The shortcodes are:</p>
607
 
608
+ <pre>[cookie_accept]</pre><span><?php echo __('If you just want a standard green','cookie-law-info'); ?> "Accept" <?php echo __("button that closes the header and nothing more, use this shortcode. It is already styled, you don't need to customise it.","cookie-law-info"); ?></span>
609
 
610
+ <pre>[cookie_accept colour="red"]</pre><span><?php echo __('Alternatively you can add a colour value. Choose from: red, blue, orange, yellow, green or pink.','cookie-law-info'); ?><br /><em><?php echo __('Careful to use the British spelling of ','cookie-law-info'); ?>"colour" <?php echo __('for the attribute.','cookie-law-info'); ?></em></span>
611
 
612
+ <pre>[cookie_button]</pre><span><?php echo __('This is the','cookie-law-info'); ?> "main button" <?php echo __('you customise above.','cookie-law-info'); ?></span>
613
 
614
+ <pre>[cookie_link]</pre><span><?php echo __('This is the','cookie-law-info'); ?> "read more" <?php echo __('link you customise above.','cookie-law-info'); ?></span>
615
 
616
+ <h4><?php echo __('Other shortcodes','cookie-law-info'); ?></h4>
617
+ <p><?php echo __('These shortcodes can be used in pages and posts on your website. It is not recommended to use these inside the cookie bar itself.','cookie-law-info'); ?></p>
618
 
619
+ <pre>[cookie_audit]</pre><span><?php echo __('This prints out a nice table of cookies, in line with the guidance given by the ICO.','cookie-law-info'); ?> <em><?php echo __('You need to enter the cookies your website uses via the Cookie Law Info menu in your WordPress dashboard.','cookie-law-info'); ?></em></span>
620
 
621
+ <pre>[delete_cookies]</pre><span><?php echo __('This shortcode will display a normal HTML link which when clicked, will delete the cookie set by Cookie Law Info (this cookie is used to remember that the cookie bar is closed).','cookie-law-info'); ?></span>
622
+ <pre>[delete_cookies text="Click here to delete"]</pre><span><?php echo __('Add any text you like- useful if you want e.g. another language to English.','cookie-law-info'); ?></span>
623
 
624
 
625
  </dd>
626
 
627
 
628
+ <dt><a href="#"><?php echo __('Advanced','cookie-law-info'); ?></a></dt>
629
  <dd>
630
+ <p><?php echo __('Sometimes themes apply settings that clash with plugins. If that happens, try adjusting these settings.','cookie-law-info'); ?></p>
631
 
632
  <table class="form-table">
633
  <!--
641
  </tr>
642
  -->
643
  <tr valign="top">
644
+ <th scope="row"><?php echo __('Reset all values','cookie-law-info'); ?></th>
645
  <td>
646
  <input type="submit" name="delete_all_settings" value="Delete settings and reset" class="button-secondary" onclick="return confirm('Are you sure you want to delete all your settings?');" />
647
+ <span class="cli-plugin-example"><em><?php echo __('Warning: this will actually delete your current settings.','cookie-law-info'); ?></em></span>
648
  </td>
649
  </tr>
650
  <!--
697
  </ul>
698
  <input type="submit" name="cli-migration-button" value="Update" class="button-secondary" onclick="return confirm('Are you sure you want to migrate settings?');" />
699
  </form>
700
+ <p><?php echo __('If you want to go back to the previous version you can always download it again from','cookie-law-info'); ?> <a href="http://www.cookielawinfo.com">CookieLawInfo.com.</a></p>
701
  </div>
702
 
703
  <h3><?php echo __('GDPR Cookie Consent Pro','cookie-law-info'); ?></h3>
707
  <li><?php echo __('* Manage Cookie Categories','cookie-law-info'); ?></li>
708
  <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>
709
  <li><?php echo __("* Fully customisable to look just like your own website's style: customise the colours, styles and fonts","cookie-law-info"); ?></li>
710
+ <li><?php echo __('* Put the cookie bar in either the header or the footer','cookie-law-info'); ?></li>
711
+ <li><?php echo __('* (Optional) accept cookie policy if the user scrolls','cookie-law-info'); ?></li>
712
+ <li><?php echo __('* (Optional) automatically close the cookie bar after a delay (delay is configurable)','cookie-law-info'); ?></li>
713
  <li><?php echo __('* (Optional) cookie bar can be permanently dismissed or accessible through a "show again" tab','cookie-law-info');?></li>
714
+ <li><?php echo __('* "Cookie Audit" shortcode to construct a nicely-styled "Privacy & Cookie Policy"','cookie-law-info'); ?></li>
715
  <li><?php echo __('* qTranslate support','cookie-law-info'); ?></li>
716
  </ul><br/>
717
+ <a href="https://www.webtoffee.com/product/gdpr-cookie-consent/" target="_blank" class="cli-button cli-button-go-pro"><?php echo __('Upgrade to GDPR Pro','cookie-law-info'); ?></a>
718
  <style>
719
  .cli-button-go-pro {
720
  box-shadow: none;
742
  <br />
743
 
744
  <h3><?php echo __('Like this plugin?','cookie-law-info'); ?></h3>
745
+ <p><?php echo __('If you find this plugin useful please show your support and rate it','cookie-law-info'); ?> <a href="http://wordpress.org/support/view/plugin-reviews/cookie-law-info?filter=5" target="_blank">★★★★★</a><?php echo __(' on','cookie-law-info'); ?> <a href="http://wordpress.org/support/view/plugin-reviews/cookie-law-info?filter=5" target="_blank">WordPress.org</a> -<?php echo __(' much appreciated!','cookie-law-info'); ?> :)</p>
746
  <br />
747
 
748
+ <h3><?php echo __('Help','cookie-law-info'); ?></h3>
749
  <ul>
750
+ <li><a href="http://cookielawinfo.com/support/"><?php echo __('Help and Support','cookie-law-info'); ?></a></li>
751
+ <li><a href="http://wordpress.org/support/plugin/cookie-law-info/"><?php echo __('Report a Bug','cookie-law-info'); ?></a></li>
752
+ <li><a href="http://cookielawinfo.com/contact/"><?php echo __('Suggest a Feature','cookie-law-info'); ?></a></li>
753
+ <li><a href="http://cookielawinfo.com"><?php echo __('About the law','cookie-law-info'); ?></a></li>
754
  </ul>
755
  <br />
756
 
810
  function cookielawinfo_print_thirdparty_page() {
811
  ?>
812
 
813
+ <h2><?php echo __('Non-necessary Cookie Settings','cookie-law-info'); ?></h2>
814
  <?php
815
  $options = array('thirdparty_on_field',
816
  'thirdparty_head_section',
842
  }
843
 
844
  update_option('cookielawinfo_thirdparty_settings', $stored_options);
845
+ echo '<div class="updated"><p><strong>';
846
+ echo __('Settings Updated.','cookie-law-info');
847
+ echo '</strong></p></div>';
848
  }
849
 
850
  $stored_options = get_option('cookielawinfo_thirdparty_settings', array(
866
  <table class="form-table" >
867
 
868
  <tr valign="top">
869
+ <th scope="row" style="width:25%;"><label for="thirdparty_on_field"><?php echo __('Enable Non-necessary Cookie','cookie-law-info'); ?></label></th>
870
  <td>
871
  <!-- Border on/off -->
872
  <input type="radio" id="thirdparty_on_field_yes" name="thirdparty_on_field" class="styled" value="true" <?php echo ( filter_var($stored_options['thirdparty_on_field'], FILTER_VALIDATE_BOOLEAN) == true ) ? ' checked="checked" />' : ' />'; ?> Yes
874
  </td>
875
  </tr>
876
  <tr valign="top">
877
+ <th scope="row" style="width:25%;"><label for="thirdparty_head_section"><?php echo __('This script will be added to the page HEAD section if the above settings is enabled and user has give consent.','cookie-law-info');?></label></th>
878
  <td>
879
  <?php
880
  echo '<textarea name="thirdparty_head_section" class="vvv_textbox">';
881
  echo apply_filters('format_to_edit', stripslashes($stored_options['thirdparty_head_section'])) . '</textarea>';
882
  ?>
883
  <div class="clearfix"></div>
884
+ <span class="cli-plugin-example"><em><?php echo __('Print scripts in the head tag on the front end if above cookie settings is enabled and user has given consent.','cookie-law-info'); ?> eg:- &lt;script&gt;console.log("header script");&lt;/script&gt ?></em></span>
885
  </td>
886
  </tr>
887
  <tr valign="top">
888
+ <th scope="row" style="width:25%;"><label for="thirdparty_body_section"><?php echo __('This script will be added right after the BODY section if the above settings is enabled and user has given consent.','cookie-law-info'); ?></label></th>
889
  <td>
890
  <?php
891
  echo '<textarea name="thirdparty_body_section" class="vvv_textbox">';
892
  echo apply_filters('format_to_edit', stripslashes($stored_options['thirdparty_body_section'])) . '</textarea>';
893
  ?>
894
  <div class="clearfix"></div>
895
+ <span class="cli-plugin-example"><em><?php echo __('Print scripts before the closing body tag on the front end if above cookie settings is enabled and user has given consent.','cookie-law-info'); ?> eg:- &lt;script&gt;console.log("body script");&lt;/script&gt; </em></span>
896
  </td>
897
  </tr>
898
  <!-- <tr valign="top">
903
  //echo apply_filters('format_to_edit', stripslashes($stored_options['thirdparty_footer_section'])) . '</textarea>';
904
  ?>
905
  <div class="clearfix"></div>
906
+ <span class="cli-plugin-example"><?php echo __('Shortcodes allowed: see settings section "Using the Shortcodes".','cookie-law-info'); ?> <br /><em>Examples: "We use cookies on this website [cookie_accept] to find out how to delete cookies [cookie_link]."','cookie-law-info')</em></span>
907
  </td>
908
  </tr>-->
909
 
cookie-law-info.php CHANGED
@@ -5,8 +5,9 @@ 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.6
9
  License: GPL2
 
10
  */
11
 
12
  /*
@@ -90,6 +91,10 @@ function cookielawinfo_plugin_action_links( $links ) {
90
  return $links;
91
  }
92
 
 
 
 
 
93
 
94
  /** Register the uninstall function */
95
  function cookielawinfo_activate() {
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
  */
12
 
13
  /*
91
  return $links;
92
  }
93
 
94
+ add_action( 'plugins_loaded', 'cli_load_textdomain');
95
+ function cli_load_textdomain(){
96
+ load_plugin_textdomain( 'cookie-law-info', false, basename( dirname( __FILE__ ) ) . '/i18n' );
97
+ }
98
 
99
  /** Register the uninstall function */
100
  function cookielawinfo_activate() {
i18n/cookie-law-info-da_DK.mo ADDED
Binary file
i18n/cookie-law-info-da_DK.po ADDED
@@ -0,0 +1,658 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2018-05-30 11:35+0530\n"
5
+ "PO-Revision-Date: 2018-05-30 11:39+0530\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: da\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.12\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Poedit-KeywordsList: __;_e\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: admin/cli-admin-page.php:26
19
+ msgid "You do not have sufficient permission to perform this operation"
20
+ msgstr "Du har ikke tilstrækkelig tilladelse til at udføre denne operation"
21
+
22
+ #: admin/cli-admin-page.php:44 admin/cli-admin-page.php:846
23
+ msgid "Settings Updated."
24
+ msgstr "Indstillinger opdateret."
25
+
26
+ #: admin/cli-admin-page.php:54 admin/cli-admin-page.php:77
27
+ msgid "ERROR MIGRATING SETTINGS (ERROR: 2)"
28
+ msgstr "OVERFLYTTER INDSTILLINGER FOR FEJL (FEJL: 2)"
29
+
30
+ #: admin/cli-admin-page.php:65
31
+ msgid "Cookie Law Settings"
32
+ msgstr "Loven cookieindstillinger"
33
+
34
+ #: admin/cli-admin-page.php:88
35
+ msgid "Error processing migration request (ERROR: 4)"
36
+ msgstr "Fejl ved behandling af migreringsanmodning (FEJL: 4)"
37
+
38
+ #: admin/cli-admin-page.php:116
39
+ msgid "Your Cookie Law Info bar is switched on"
40
+ msgstr "Din Cookie lov Info bar er tændt"
41
+
42
+ #: admin/cli-admin-page.php:120
43
+ msgid "Your Cookie Law Info bar is switched off"
44
+ msgstr "Din Cookie lov Info bar er slukket"
45
+
46
+ #: admin/cli-admin-page.php:152
47
+ msgid "Settings"
48
+ msgstr "Indstillinger"
49
+
50
+ #: admin/cli-admin-page.php:154
51
+ msgid "The Cookie Bar"
52
+ msgstr "Cookie Bar farve"
53
+
54
+ #: admin/cli-admin-page.php:157
55
+ msgid "Cookie Bar is currently:"
56
+ msgstr "Cookie Bar er i øjeblikket:"
57
+
58
+ #: admin/cli-admin-page.php:166
59
+ msgid "Reject Button:"
60
+ msgstr "Afvise knap"
61
+
62
+ #: admin/cli-admin-page.php:174
63
+ msgid "Cookie Bar will be show in:"
64
+ msgstr "Cookie Bar vil blive vist i:"
65
+
66
+ #: admin/cli-admin-page.php:180 admin/cli-admin-page.php:187
67
+ msgid "Header"
68
+ msgstr "hoved"
69
+
70
+ #: admin/cli-admin-page.php:183 admin/cli-admin-page.php:190
71
+ msgid "Footer"
72
+ msgstr "Footer"
73
+
74
+ #: admin/cli-admin-page.php:200
75
+ msgid "Fix Cookie Bar to Header?"
76
+ msgstr "Fix Cookie Bar til Header?"
77
+
78
+ #: admin/cli-admin-page.php:204
79
+ msgid ""
80
+ "If you select \"Header\" then you can optionally stick the cookie bar to the "
81
+ "header. Will not have any effect if you select \"Footer\"."
82
+ msgstr ""
83
+ "Hvis du vælger \"Header\" kan du eventuelt holde linjen cookie til "
84
+ "sidehovedet. Vil ikke have nogen virkning, hvis du vælger \"Sidefod\"."
85
+
86
+ #: admin/cli-admin-page.php:210
87
+ msgid "On load"
88
+ msgstr "På belastning"
89
+
90
+ #: admin/cli-admin-page.php:216 admin/cli-admin-page.php:223
91
+ msgid "Animate"
92
+ msgstr "Animer"
93
+
94
+ #: admin/cli-admin-page.php:219 admin/cli-admin-page.php:226
95
+ msgid "Sticky"
96
+ msgstr "Sticky"
97
+
98
+ #: admin/cli-admin-page.php:234
99
+ msgid "On hide"
100
+ msgstr "På Skjul"
101
+
102
+ #: admin/cli-admin-page.php:252
103
+ msgid "Auto-hide cookie bar after delay?"
104
+ msgstr "Bil-skjule cookie bar efter forsinkelse?"
105
+
106
+ #: admin/cli-admin-page.php:259
107
+ msgid "Milliseconds until hidden"
108
+ msgstr "Millisekunder indtil skjult"
109
+
110
+ #: admin/cli-admin-page.php:262
111
+ msgid "Specify milliseconds (not seconds) e.g."
112
+ msgstr "Angive millisekunder (ikke sekunder) f.eks."
113
+
114
+ #: admin/cli-admin-page.php:268
115
+ msgid "Auto-hide cookie bar if the user scrolls?"
116
+ msgstr "Bil-skjule cookie bar hvis brugeren ruller?"
117
+
118
+ #: admin/cli-admin-page.php:275
119
+ msgid "Reload after \"scroll accept\" event?"
120
+ msgstr "Genindlæse efter \"rulle acceptere\" begivenhed?"
121
+
122
+ #: admin/cli-admin-page.php:289
123
+ msgid "The Show Again Tab"
124
+ msgstr "Brug Vis igen fane?"
125
+
126
+ #: admin/cli-admin-page.php:292
127
+ msgid "Use Show Again Tab?"
128
+ msgstr "Brug Vis igen fane?"
129
+
130
+ #: admin/cli-admin-page.php:299
131
+ msgid "Tab Position"
132
+ msgstr "EtiketpositionCurrency type for column"
133
+
134
+ #: admin/cli-admin-page.php:305 admin/cli-admin-page.php:312
135
+ msgid "Right"
136
+ msgstr "Højre"
137
+
138
+ #: admin/cli-admin-page.php:308 admin/cli-admin-page.php:315
139
+ msgid "Left"
140
+ msgstr "Venstre"
141
+
142
+ #: admin/cli-admin-page.php:323
143
+ msgid "From Left Margin"
144
+ msgstr "Venstre margin"
145
+
146
+ #: admin/cli-admin-page.php:330
147
+ msgid "Show More Text"
148
+ msgstr "Vis mere"
149
+
150
+ #: admin/cli-admin-page.php:341
151
+ msgid "Cookie Law Message Bar"
152
+ msgstr "Cookie Law Message Bar"
153
+
154
+ #: admin/cli-admin-page.php:345
155
+ msgid "Message"
156
+ msgstr "Meddelelse"
157
+
158
+ #: admin/cli-admin-page.php:351
159
+ msgid "Shortcodes allowed: see settngs section \"Using the Shortcodes\"."
160
+ msgstr "Kortkoder tilladt: settngs i afsnittet \"Brug af the kortkoder\"."
161
+
162
+ #: admin/cli-admin-page.php:351
163
+ msgid "Examples: \"We use cookies on this website"
164
+ msgstr "Eksempler: \"vi bruger cookies på dette websted"
165
+
166
+ #: admin/cli-admin-page.php:351
167
+ msgid "to find out how to delete cookies"
168
+ msgstr "at finde ud af hvordan du sletter cookies"
169
+
170
+ #: admin/cli-admin-page.php:355
171
+ msgid "Cookie Bar Colour"
172
+ msgstr "Cookie Bar farve"
173
+
174
+ #: admin/cli-admin-page.php:365
175
+ msgid "Text Colour"
176
+ msgstr "Tekstfarve"
177
+
178
+ #: admin/cli-admin-page.php:374
179
+ msgid "Show Border?"
180
+ msgstr "Vis rammer?"
181
+
182
+ #: admin/cli-admin-page.php:382
183
+ msgid "Border Colour"
184
+ msgstr "Rammefarve"
185
+
186
+ #: admin/cli-admin-page.php:390
187
+ msgid "Font"
188
+ msgstr "Skrift"
189
+
190
+ #: admin/cli-admin-page.php:401
191
+ msgid "Customise Buttons"
192
+ msgstr "Tilpas knapper"
193
+
194
+ #: admin/cli-admin-page.php:404
195
+ msgid "Accept Button"
196
+ msgstr "Acceptere knap"
197
+
198
+ #: admin/cli-admin-page.php:406
199
+ msgid "Main Button"
200
+ msgstr "Vigtigste knap"
201
+
202
+ #: admin/cli-admin-page.php:407
203
+ msgid ""
204
+ "This button/link can be customised to either simply close the cookie bar, or "
205
+ "follow a link. You can also customise the colours and styles, and show it as "
206
+ "a link or a button."
207
+ msgstr ""
208
+ "Denne knaplink kan tilpasses enten blot lukke linjen cookie, eller følg et "
209
+ "link. Du kan også tilpasse farver og stilarter, og vise det som et hyperlink "
210
+ "eller en knap."
211
+
212
+ #: admin/cli-admin-page.php:410 admin/cli-admin-page.php:477
213
+ #: admin/cli-admin-page.php:547
214
+ msgid "Link Text"
215
+ msgstr "Link tekst"
216
+
217
+ #: admin/cli-admin-page.php:416 admin/cli-admin-page.php:483
218
+ msgid "Action"
219
+ msgstr "Handling"
220
+
221
+ #: admin/cli-admin-page.php:424 admin/cli-admin-page.php:495
222
+ #: admin/cli-admin-page.php:553
223
+ msgid "Link URL"
224
+ msgstr "Link URL"
225
+
226
+ #: admin/cli-admin-page.php:427
227
+ msgid "Button will only link to URL if"
228
+ msgstr "Knappen vil kun link til URL hvis Action = Vis URL"
229
+
230
+ #: admin/cli-admin-page.php:432 admin/cli-admin-page.php:503
231
+ #: admin/cli-admin-page.php:569
232
+ msgid "Open link in new window?"
233
+ msgstr "Åben i et nyt vindue"
234
+
235
+ #: admin/cli-admin-page.php:439 admin/cli-admin-page.php:510
236
+ #: admin/cli-admin-page.php:559
237
+ msgid "Link colour"
238
+ msgstr "Link farve"
239
+
240
+ #: admin/cli-admin-page.php:447 admin/cli-admin-page.php:518
241
+ #: admin/cli-admin-page.php:576
242
+ msgid "Show as button?"
243
+ msgstr "Vis som knap"
244
+
245
+ #: admin/cli-admin-page.php:454 admin/cli-admin-page.php:525
246
+ #: admin/cli-admin-page.php:583
247
+ msgid "Button colour"
248
+ msgstr "Knapfarve"
249
+
250
+ #: admin/cli-admin-page.php:462 admin/cli-admin-page.php:533
251
+ #: admin/cli-admin-page.php:591
252
+ msgid "Button Size"
253
+ msgstr "Knap størrelse"
254
+
255
+ #: admin/cli-admin-page.php:473
256
+ msgid "Reject Button"
257
+ msgstr "Afvise knap"
258
+
259
+ #: admin/cli-admin-page.php:498
260
+ msgid "Button will only link to URL if "
261
+ msgstr "Knappen vil kun link til URL hvis Action = Vis URL"
262
+
263
+ #: admin/cli-admin-page.php:543
264
+ msgid "Read More Link"
265
+ msgstr "Læs mere-link"
266
+
267
+ #: admin/cli-admin-page.php:544
268
+ msgid ""
269
+ "This button/link can be used to provide a link out to your Privacy & Cookie "
270
+ "Policy. You can customise it any way you like."
271
+ msgstr ""
272
+ "Denne knaplink kan bruges til at give et link ud til dit privatliv & Cookie "
273
+ "politik. Du kan tilpasse det som du har lyst."
274
+
275
+ #: admin/cli-admin-page.php:602
276
+ msgid "Using the Shortcodes"
277
+ msgstr "Brug af kortnumrene"
278
+
279
+ #: admin/cli-admin-page.php:604
280
+ msgid "Cookie bar shortcodes"
281
+ msgstr "Cookie bar kortkoder"
282
+
283
+ #: admin/cli-admin-page.php:605
284
+ msgid "You can enter the shortcodes in the"
285
+ msgstr "Du kan indtaste kortkoder i den"
286
+
287
+ #: admin/cli-admin-page.php:605
288
+ msgid ""
289
+ "field of the Cookie Law Info bar. They add nicely formatted buttons and/or "
290
+ "links into the cookie bar, without you having to add any HTML"
291
+ msgstr ""
292
+ "Du kan angive kortkoder i beskedfeltet \"\" af Cookie lov Info bar. De "
293
+ "tilføjer pænt formateret knapper og/eller links til cookie bar, uden at du "
294
+ "behøver at tilføje enhver HTML."
295
+
296
+ #: admin/cli-admin-page.php:608
297
+ msgid "If you just want a standard green"
298
+ msgstr "Hvis du bare ønsker en standard grøn"
299
+
300
+ #: admin/cli-admin-page.php:608
301
+ msgid ""
302
+ "button that closes the header and nothing more, use this shortcode. It is "
303
+ "already styled, you don't need to customise it."
304
+ msgstr ""
305
+ "Hvis du bare ønsker en standard grøn \"Accepter\" knappen, der lukker i "
306
+ "hovedet og intet mere, bruge denne ufuldkommenhed. Det er allerede stylet, "
307
+ "du behøver at tilpasse den."
308
+
309
+ #: admin/cli-admin-page.php:610
310
+ msgid ""
311
+ "Alternatively you can add a colour value. Choose from: red, blue, orange, "
312
+ "yellow, green or pink."
313
+ msgstr ""
314
+ "Alternativt kan du tilføje en farve værdi. Vælge imellem: rød, blå, orange, "
315
+ "gul, grøn eller pink."
316
+
317
+ #: admin/cli-admin-page.php:610
318
+ msgid "Careful to use the British spelling of "
319
+ msgstr "Forsigtig med at bruge den britiske stavemåde af"
320
+
321
+ #: admin/cli-admin-page.php:610
322
+ msgid "for the attribute."
323
+ msgstr "for attributten."
324
+
325
+ #: admin/cli-admin-page.php:612 admin/cli-admin-page.php:614
326
+ msgid "This is the"
327
+ msgstr "Dette er den mest"
328
+
329
+ #: admin/cli-admin-page.php:612
330
+ msgid "you customise above."
331
+ msgstr "Dette er linket \"læs mere\", du tilpasser ovenfor."
332
+
333
+ #: admin/cli-admin-page.php:614
334
+ msgid "link you customise above."
335
+ msgstr "link du tilpasse ovenfor."
336
+
337
+ #: admin/cli-admin-page.php:616
338
+ msgid "Other shortcodes"
339
+ msgstr "Andre kortkoder"
340
+
341
+ #: admin/cli-admin-page.php:617
342
+ msgid ""
343
+ "These shortcodes can be used in pages and posts on your website. It is not "
344
+ "recommended to use these inside the cookie bar itself."
345
+ msgstr ""
346
+ "Disse kortkoder kan bruges i sider og indlæg på din hjemmeside. Det "
347
+ "anbefales ikke at bruge disse inde cookie bar selv."
348
+
349
+ #: admin/cli-admin-page.php:619
350
+ msgid ""
351
+ "This prints out a nice table of cookies, in line with the guidance given by "
352
+ "the ICO."
353
+ msgstr ""
354
+ "Denne funktion udskriver ud en dejlig tabel med cookies, i overensstemmelse "
355
+ "med retningslinjerne fra ICO."
356
+
357
+ #: admin/cli-admin-page.php:619
358
+ msgid ""
359
+ "You need to enter the cookies your website uses via the Cookie Law Info menu "
360
+ "in your WordPress dashboard."
361
+ msgstr ""
362
+ "Du skal indtaste din hjemmeside bruger cookies via menuen Cookie lov Info i "
363
+ "din WordPress dashboard."
364
+
365
+ #: admin/cli-admin-page.php:621
366
+ msgid ""
367
+ "This shortcode will display a normal HTML link which when clicked, will "
368
+ "delete the cookie set by Cookie Law Info (this cookie is used to remember "
369
+ "that the cookie bar is closed)."
370
+ msgstr ""
371
+ "Denne ufuldkommenhed vil vise en normal HTML link som når klikket, vil "
372
+ "slette cookien sæt af Cookie lov Info (denne cookie bruges til at huske på, "
373
+ "at cookie bar er lukket)."
374
+
375
+ #: admin/cli-admin-page.php:622
376
+ msgid ""
377
+ "Add any text you like- useful if you want e.g. another language to English."
378
+ msgstr ""
379
+ "Tilføje tekst du lignende-nyttigt, hvis du vil fx et andet sprog til engelsk."
380
+
381
+ #: admin/cli-admin-page.php:628
382
+ msgid "Advanced"
383
+ msgstr "Avanceret"
384
+
385
+ #: admin/cli-admin-page.php:630
386
+ msgid ""
387
+ "Sometimes themes apply settings that clash with plugins. If that happens, "
388
+ "try adjusting these settings."
389
+ msgstr ""
390
+ "Undertiden anvende temaer indstillinger, der kolliderer med plugins. Hvis "
391
+ "det sker, kan du prøve at justere disse indstillinger."
392
+
393
+ #: admin/cli-admin-page.php:644
394
+ msgid "Reset all values"
395
+ msgstr "Nulstil alle værdier"
396
+
397
+ #: admin/cli-admin-page.php:647
398
+ msgid "Warning: this will actually delete your current settings."
399
+ msgstr "Advarsel: Dette vil faktisk slette dine nuværende indstillinger."
400
+
401
+ #: admin/cli-admin-page.php:689
402
+ msgid "Where did my settings go?"
403
+ msgstr "Hvor gik mine indstillinger?"
404
+
405
+ #: admin/cli-admin-page.php:690
406
+ msgid "Cookie Law Info version 0.9 has been updated and has new settings."
407
+ msgstr ""
408
+ "Cookie Law Info version 0.9 er blevet opdateret og har nye indstillinger."
409
+
410
+ #: admin/cli-admin-page.php:690
411
+ msgid "Your previous settings are safe."
412
+ msgstr "Dine tidligere indstillinger er sikre."
413
+
414
+ #: admin/cli-admin-page.php:691
415
+ msgid ""
416
+ "You can either copy over your old settings to this version, or use the new "
417
+ "default values."
418
+ msgstr ""
419
+ "Du kan enten kopiere over dine gamle indstillinger til denne version, eller "
420
+ "brug de nye standardværdier."
421
+
422
+ #: admin/cli-admin-page.php:693
423
+ msgid "Would you like to:"
424
+ msgstr "Kunne du tænke dig"
425
+
426
+ #: admin/cli-admin-page.php:695
427
+ msgid "Use previous settings"
428
+ msgstr "Brug tidligere indstillinger"
429
+
430
+ #: admin/cli-admin-page.php:696
431
+ msgid "Start afresh with the new version"
432
+ msgstr "Start på ny med den nye version"
433
+
434
+ #: admin/cli-admin-page.php:700
435
+ msgid ""
436
+ "If you want to go back to the previous version you can always download it "
437
+ "again from"
438
+ msgstr ""
439
+ "Hvis du ønsker at gå tilbage til den tidligere version kan du altid hente "
440
+ "det igen fra"
441
+
442
+ #: admin/cli-admin-page.php:703
443
+ msgid "GDPR Cookie Consent Pro"
444
+ msgstr "GDPR Cookie samtykke Pro"
445
+
446
+ #: admin/cli-admin-page.php:706
447
+ msgid ""
448
+ "* Manage list of cookies ( Name, CookieID, Description, Duration, Type, "
449
+ "Category, Header Script, Footer Script)"
450
+ msgstr ""
451
+ "* Administrere listen af cookies (navn, CookieID, beskrivelse, varighed, "
452
+ "Type, kategori, overskrift Script, sidefod Script)"
453
+
454
+ #: admin/cli-admin-page.php:707
455
+ msgid "* Manage Cookie Categories"
456
+ msgstr "* Administrer Cookie kategorier"
457
+
458
+ #: admin/cli-admin-page.php:708
459
+ msgid ""
460
+ "* Allow to display Cookie Settings popup where site visitors can opt-in or "
461
+ "give consent to Cookie Categories"
462
+ msgstr ""
463
+ "* Gør det muligt for at vise cookieindstillinger popup hvor besøgende kan "
464
+ "opt-in eller give samtykke til Cookie kategorier"
465
+
466
+ #: admin/cli-admin-page.php:709
467
+ msgid ""
468
+ "* Fully customisable to look just like your own website's style: customise "
469
+ "the colours, styles and fonts"
470
+ msgstr ""
471
+ "* Fuldt tilpasselig at bare ligne din egen hjemmeside stil: tilpasse farver, "
472
+ "typografier og skrifttyper"
473
+
474
+ #: admin/cli-admin-page.php:710
475
+ msgid "* Put the cookie bar in either the header or the footer"
476
+ msgstr "* Sætte cookie bar i sidehovedet eller sidefoden"
477
+
478
+ #: admin/cli-admin-page.php:711
479
+ msgid "* (Optional) accept cookie policy if the user scrolls"
480
+ msgstr "* (Valgfrie) acceptere cookie politik, hvis brugeren ruller"
481
+
482
+ #: admin/cli-admin-page.php:712
483
+ msgid ""
484
+ "* (Optional) automatically close the cookie bar after a delay (delay is "
485
+ "configurable)"
486
+ msgstr ""
487
+ "* (Valgfrie) lukker automatisk cookie bar efter en forsinkelse (delay er "
488
+ "konfigurerbare)"
489
+
490
+ #: admin/cli-admin-page.php:713
491
+ msgid ""
492
+ "* (Optional) cookie bar can be permanently dismissed or accessible through "
493
+ "a \"show again\" tab"
494
+ msgstr ""
495
+ "* (Valgfrie) cookie bar kan være permanent afskediget eller tilgængelig via "
496
+ "et \"Vis igen\" fanen"
497
+
498
+ #: admin/cli-admin-page.php:714
499
+ msgid ""
500
+ "* \"Cookie Audit\" shortcode to construct a nicely-styled \"Privacy & "
501
+ "Cookie Policy\""
502
+ msgstr ""
503
+ "* \"Cookie revision\" ufuldkommenhed til at konstruere et pænt stylet "
504
+ "\"Privacy & Cookie politik\""
505
+
506
+ #: admin/cli-admin-page.php:715
507
+ msgid "* qTranslate support"
508
+ msgstr "* qTranslate støtte"
509
+
510
+ #: admin/cli-admin-page.php:717
511
+ msgid "Upgrade to GDPR Pro"
512
+ msgstr "Opgrader til Pro"
513
+
514
+ #: admin/cli-admin-page.php:744
515
+ msgid "Like this plugin?"
516
+ msgstr "Syns du godt om dette plugin?"
517
+
518
+ #: admin/cli-admin-page.php:745
519
+ msgid "If you find this plugin useful please show your support and rate it"
520
+ msgstr ""
521
+ "Hvis du finder dette plugin nyttige venligst vise din støtte og vurdere det."
522
+
523
+ #: admin/cli-admin-page.php:745
524
+ msgid " on"
525
+ msgstr "tændt"
526
+
527
+ #: admin/cli-admin-page.php:745
528
+ msgid " much appreciated!"
529
+ msgstr "meget værdsat!"
530
+
531
+ #: admin/cli-admin-page.php:748
532
+ msgid "Help"
533
+ msgstr "Hjælp"
534
+
535
+ #: admin/cli-admin-page.php:750
536
+ msgid "Help and Support"
537
+ msgstr "Hjælp og Support!"
538
+
539
+ #: admin/cli-admin-page.php:751
540
+ msgid "Report a Bug"
541
+ msgstr "Rapporter en fejl"
542
+
543
+ #: admin/cli-admin-page.php:752
544
+ msgid "Suggest a Feature"
545
+ msgstr "Foreslå en funktion"
546
+
547
+ #: admin/cli-admin-page.php:753
548
+ msgid "About the law"
549
+ msgstr "Om loven"
550
+
551
+ #: admin/cli-admin-page.php:813
552
+ msgid "Non-necessary Cookie Settings"
553
+ msgstr "Ikke-nødvendige Cookie-indstillinger"
554
+
555
+ #: admin/cli-admin-page.php:869
556
+ msgid "Enable Non-necessary Cookie"
557
+ msgstr "Aktivere ikke-nødvendige Cookie"
558
+
559
+ #: admin/cli-admin-page.php:877
560
+ msgid ""
561
+ "This script will be added to the page HEAD section if the above settings is "
562
+ "enabled and user has give consent."
563
+ msgstr ""
564
+ "Dette script vil tilføjet til side hoved sektion, hvis ovenstående "
565
+ "indstillinger er aktiveret, og brugeren har give samtykke."
566
+
567
+ #: admin/cli-admin-page.php:884
568
+ msgid ""
569
+ "Print scripts in the head tag on the front end if above cookie settings is "
570
+ "enabled and user has given consent."
571
+ msgstr ""
572
+ "Udskrive scripts i hovedet tag på den forreste ende, hvis ovenfor cookie "
573
+ "indstillinger er aktiveret, og brugeren har givet samtykke."
574
+
575
+ #: admin/cli-admin-page.php:888
576
+ msgid ""
577
+ "This script will be added right after the BODY section if the above settings "
578
+ "is enabled and user has given consent."
579
+ msgstr ""
580
+ "Dette script vil blive tilføjet ret efter BODY-afsnittet hvis ovenstående "
581
+ "indstillinger er aktiveret, og brugeren har givet samtykke."
582
+
583
+ #: admin/cli-admin-page.php:895
584
+ msgid ""
585
+ "Print scripts before the closing body tag on the front end if above cookie "
586
+ "settings is enabled and user has given consent."
587
+ msgstr ""
588
+ "Print scripts før den afsluttende body-tag på den forreste ende hvis ovenfor "
589
+ "cookie indstillinger er aktiveret, og brugeren har givet samtykke."
590
+
591
+ #: admin/cli-admin-page.php:906
592
+ msgid "Shortcodes allowed: see settings section \"Using the Shortcodes\"."
593
+ msgstr ""
594
+ "Kortkoder tilladt: indstillinger i afsnittet \"Brug af the kortkoder\"."
595
+
596
+ #: php/custom-post-types.php:26
597
+ msgid "Cookie List"
598
+ msgstr "Cookie liste"
599
+
600
+ #: php/custom-post-types.php:29
601
+ msgid "Add New Cookie Type"
602
+ msgstr "Tilføje nye Cookie Type"
603
+
604
+ #: php/custom-post-types.php:30
605
+ msgid "Edit Cookie Type"
606
+ msgstr "Rediger cookie type"
607
+
608
+ #: php/custom-post-types.php:31
609
+ msgid "New Cookie Type"
610
+ msgstr "Ny Cookie Type"
611
+
612
+ #: php/custom-post-types.php:32
613
+ msgid "View Cookie Type"
614
+ msgstr "Se cookie type"
615
+
616
+ #: php/custom-post-types.php:33
617
+ msgid "Search Cookies"
618
+ msgstr "Søg Cookies"
619
+
620
+ #: php/custom-post-types.php:34
621
+ msgid "Nothing found"
622
+ msgstr "Intet fundet"
623
+
624
+ #: php/custom-post-types.php:35
625
+ msgid "Nothing found in Trash"
626
+ msgstr "Intet fundet i papirkurven"
627
+
628
+ #: php/custom-post-types.php:93
629
+ msgid "Cookie Type: (persistent, session, third party )"
630
+ msgstr "Cookie Type: (persistente, session, tredjepart)"
631
+
632
+ #: php/custom-post-types.php:105
633
+ msgid "Cookie Duration:"
634
+ msgstr "Cookie varighed:"
635
+
636
+ #: php/custom-post-types.php:116
637
+ msgid "Cookie Sensitivity: ( necessary , non-necessary )"
638
+ msgstr "Cookie følsomhed: (nødvendigt, ikke-nødvendige)"
639
+
640
+ #: php/custom-post-types.php:127
641
+ msgid "Cookie ID:"
642
+ msgstr "Cookie-ID:"
643
+
644
+ #: php/shortcodes.php:86
645
+ msgid "Cookie"
646
+ msgstr "Cookie"
647
+
648
+ #: php/shortcodes.php:89
649
+ msgid "Type"
650
+ msgstr "Type"
651
+
652
+ #: php/shortcodes.php:92
653
+ msgid "Duration"
654
+ msgstr "Bestillingsdato"
655
+
656
+ #: php/shortcodes.php:95
657
+ msgid "Description"
658
+ msgstr "Beskrivelse"
js/cookielawinfo.js CHANGED
@@ -206,6 +206,7 @@ function cli_show_cookiebar(p) {
206
  cached_header.hide();
207
  }
208
  cached_showagain_tab.slideDown(settings.animate_speed_show);
 
209
  return false;
210
  }
211
 
206
  cached_header.hide();
207
  }
208
  cached_showagain_tab.slideDown(settings.animate_speed_show);
209
+ //location.reload();
210
  return false;
211
  }
212
 
php/custom-post-types.php CHANGED
@@ -90,7 +90,7 @@ function cookielawinfo_cookie_type() {
90
  $custom = get_post_custom( $post->ID );
91
  $cookie_type = ( isset ( $custom["_cli_cookie_type"][0] ) ) ? $custom["_cli_cookie_type"][0] : '';
92
  ?>
93
- <label>Cookie Type: (persistent, session, third party )</label>
94
  <input name="_cli_cookie_type" value="<?php echo sanitize_text_field( $cookie_type ); ?>" style="width:95%;" />
95
  <?php
96
  }
@@ -102,7 +102,7 @@ function cookielawinfo_cookie_duration() {
102
  $custom = get_post_custom( $post->ID );
103
  $cookie_duration = ( isset ( $custom["_cli_cookie_duration"][0] ) ) ? $custom["_cli_cookie_duration"][0] : '';
104
  ?>
105
- <label>Cookie Duration:</label>
106
  <input name="_cli_cookie_duration" value="<?php echo sanitize_text_field( $cookie_duration ); ?>" style="width:95%;" />
107
  <?php
108
  }
@@ -113,7 +113,7 @@ function cookielawinfo_cookie_sensitivity() {
113
  $custom = get_post_custom( $post->ID );
114
  $cookie_sensitivity = ( isset ( $custom["_cli_cookie_sensitivity"][0] ) ) ? $custom["_cli_cookie_sensitivity"][0] : '';
115
  ?>
116
- <label>Cookie Sensitivity: ( necessary , non-necessary )</label>
117
  <input name="_cli_cookie_sensitivity" value="<?php echo sanitize_text_field( $cookie_sensitivity ); ?>" style="width:95%;" />
118
  <?php
119
  }
@@ -124,7 +124,7 @@ function cookielawinfo_cookie_slugid() {
124
  $custom = get_post_custom( $post->ID );
125
  $cookie_slugid = ( isset ( $custom["_cli_cookie_slugid"][0] ) ) ? $custom["_cli_cookie_slugid"][0] : '';
126
  ?>
127
- <label>Cookie ID:</label>
128
  <input name="_cli_cookie_slugid" value="<?php echo sanitize_text_field( $cookie_slugid ); ?>" style="width:95%;" />
129
  <?php
130
  }
90
  $custom = get_post_custom( $post->ID );
91
  $cookie_type = ( isset ( $custom["_cli_cookie_type"][0] ) ) ? $custom["_cli_cookie_type"][0] : '';
92
  ?>
93
+ <label><?php echo __('Cookie Type: (persistent, session, third party )', 'cookie-law-info' ); ?></label>
94
  <input name="_cli_cookie_type" value="<?php echo sanitize_text_field( $cookie_type ); ?>" style="width:95%;" />
95
  <?php
96
  }
102
  $custom = get_post_custom( $post->ID );
103
  $cookie_duration = ( isset ( $custom["_cli_cookie_duration"][0] ) ) ? $custom["_cli_cookie_duration"][0] : '';
104
  ?>
105
+ <label><?php echo __('Cookie Duration:', 'cookie-law-info' ); ?></label>
106
  <input name="_cli_cookie_duration" value="<?php echo sanitize_text_field( $cookie_duration ); ?>" style="width:95%;" />
107
  <?php
108
  }
113
  $custom = get_post_custom( $post->ID );
114
  $cookie_sensitivity = ( isset ( $custom["_cli_cookie_sensitivity"][0] ) ) ? $custom["_cli_cookie_sensitivity"][0] : '';
115
  ?>
116
+ <label><?php echo __('Cookie Sensitivity: ( necessary , non-necessary )', 'cookie-law-info' ); ?></label>
117
  <input name="_cli_cookie_sensitivity" value="<?php echo sanitize_text_field( $cookie_sensitivity ); ?>" style="width:95%;" />
118
  <?php
119
  }
124
  $custom = get_post_custom( $post->ID );
125
  $cookie_slugid = ( isset ( $custom["_cli_cookie_slugid"][0] ) ) ? $custom["_cli_cookie_slugid"][0] : '';
126
  ?>
127
+ <label><?php echo __('Cookie ID:','cookie-law-info'); ?></label>
128
  <input name="_cli_cookie_slugid" value="<?php echo sanitize_text_field( $cookie_slugid ); ?>" style="width:95%;" />
129
  <?php
130
  }
php/functions.php CHANGED
@@ -331,9 +331,13 @@ function cookielawinfo_debug_admin_settings( $break ) {
331
  add_action('wp_head', 'include_admin_hdrscript_addedin_cookielawinfo');
332
  function include_admin_hdrscript_addedin_cookielawinfo(){
333
 
334
- $third_party_cookie_options = get_option('cookielawinfo_thirdparty_settings');
335
- if(!is_admin())
336
- {
 
 
 
 
337
 
338
  if(!empty($third_party_cookie_options)){
339
  if($third_party_cookie_options['thirdparty_on_field'] == 'true' && $_COOKIE['viewed_cookie_policy'] == 'yes'){
@@ -342,7 +346,7 @@ function include_admin_hdrscript_addedin_cookielawinfo(){
342
 
343
  }
344
 
345
- }
346
  }
347
 
348
  /* Prints scripts or data before the closing body tag on the front end */
331
  add_action('wp_head', 'include_admin_hdrscript_addedin_cookielawinfo');
332
  function include_admin_hdrscript_addedin_cookielawinfo(){
333
 
334
+ if ( !isset( $_COOKIE['viewed_cookie_policy'] )) {
335
+ return;
336
+ }
337
+
338
+ $third_party_cookie_options = get_option('cookielawinfo_thirdparty_settings');
339
+ if(!is_admin())
340
+ {
341
 
342
  if(!empty($third_party_cookie_options)){
343
  if($third_party_cookie_options['thirdparty_on_field'] == 'true' && $_COOKIE['viewed_cookie_policy'] == 'yes'){
346
 
347
  }
348
 
349
+ }
350
  }
351
 
352
  /* Prints scripts or data before the closing body tag on the front end */
php/shortcodes.php CHANGED
@@ -82,10 +82,18 @@ function cookielawinfo_table_shortcode( $atts ) {
82
  $cookies = new WP_Query( $args );
83
 
84
  $ret = '<table class="cookielawinfo-' . $style . '"><thead><tr>';
85
- $ret .= '<th class="cookielawinfo-column-1">Cookie</th>';
86
- $ret .= '<th class="cookielawinfo-column-2">Type</th>';
87
- $ret .= '<th class="cookielawinfo-column-3">Duration</th>';
88
- $ret .= '<th class="cookielawinfo-column-4">Description</th></tr>';
 
 
 
 
 
 
 
 
89
  $ret .= '</thead><tbody>';
90
 
91
  if ( !$cookies->have_posts() ) {
82
  $cookies = new WP_Query( $args );
83
 
84
  $ret = '<table class="cookielawinfo-' . $style . '"><thead><tr>';
85
+ $ret .= '<th class="cookielawinfo-column-1">';
86
+ $ret .= __('Cookie','cookie-law-info');
87
+ $ret .= '</th>';
88
+ $ret .= '<th class="cookielawinfo-column-2">';
89
+ $ret .= __('Type','cookie-law-info');
90
+ $ret .= '</th>';
91
+ $ret .= '<th class="cookielawinfo-column-3">';
92
+ $ret .= __('Duration','cookie-law-info');
93
+ $ret .= '</th>';
94
+ $ret .= '<th class="cookielawinfo-column-4">';
95
+ $ret .= __('Description','cookie-law-info');
96
+ $ret .= '</th></tr>';
97
  $ret .= '</thead><tbody>';
98
 
99
  if ( !$cookies->have_posts() ) {
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.6
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -166,8 +166,10 @@ See http://cookielawinfo.com for more information on what is required.
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
@@ -263,8 +265,6 @@ See http://cookielawinfo.com for more information on what is required.
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
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
 
166
 
167
  == Changelog ==
168
 
169
+ = 1.5.7 =
170
+ * Danish translation added
171
 
172
+ = 1.5.6 =
173
  * Changed Reject button colour for Open URL and Close Header options.
174
  * Padding for message header
175
  * Audit table mobile view compatible
265
 
266
  == Upgrade Notice ==
267
 
268
+ = 1.5.7 =
269
 
270
+ * Danish translation added