WP GDPR Compliance - Version 1.3.9

Version Description

Release date: June 3rd, 2018 * Small front-end fixes. * Added translatable strings. * Added shortcode [wpgdprc_consents_settings_link]. This will create a link to the consent settings.

Download this release

Release Info

Developer donnyoexman
Plugin Icon 128x128 WP GDPR Compliance
Version 1.3.9
Comparing to
See all releases

Code changes from version 1.3.8 to 1.3.9

Includes/Action.php CHANGED
@@ -165,11 +165,11 @@ class Action {
165
  Consent::getModalTitle()
166
  );
167
  $output .= apply_filters('the_content', Consent::getModalExplanationText());
168
- $output .= sprintf(
169
  '<strong>%s:</strong> %s',
170
  strtoupper(__('Note', WP_GDPR_C_SLUG)),
171
  __('These settings will only apply to the browser and device you are currently using.', WP_GDPR_C_SLUG)
172
- );
173
  $output .= '</div>'; // .wpgdprc-consent-modal__description
174
  /** @var Consent $consent */
175
  foreach ($consents as $consent) {
165
  Consent::getModalTitle()
166
  );
167
  $output .= apply_filters('the_content', Consent::getModalExplanationText());
168
+ $output .= apply_filters('the_content', sprintf(
169
  '<strong>%s:</strong> %s',
170
  strtoupper(__('Note', WP_GDPR_C_SLUG)),
171
  __('These settings will only apply to the browser and device you are currently using.', WP_GDPR_C_SLUG)
172
+ ));
173
  $output .= '</div>'; // .wpgdprc-consent-modal__description
174
  /** @var Consent $consent */
175
  foreach ($consents as $consent) {
Includes/Data.php CHANGED
@@ -152,7 +152,7 @@ class Data {
152
  'type' => $type
153
  ))
154
  );
155
- $output .= '<div class="wpgdprc-feedback" style="display: none;"></div>';
156
  $output .= '<table class="wpgdprc-table">';
157
  $output .= '<thead>';
158
  $output .= '<tr>';
152
  'type' => $type
153
  ))
154
  );
155
+ $output .= '<div class="wpgdprc-message" style="display: none;"></div>';
156
  $output .= '<table class="wpgdprc-table">';
157
  $output .= '<thead>';
158
  $output .= '<tr>';
Includes/Page.php CHANGED
@@ -317,16 +317,18 @@ class Page {
317
  <div class="wpgdprc-options">
318
  <label><input type="checkbox" name="<?php echo $optionNameEnableAccessRequest; ?>" id="<?php echo $optionNameEnableAccessRequest; ?>" value="1" tabindex="1" <?php checked(true, $enableAccessRequest); ?> /> <?php _e('Activate page', WP_GDPR_C_SLUG); ?></label>
319
  <div class="wpgdprc-information">
320
- <?php
321
- printf(
322
- '<strong>%s:</strong> %s',
323
- strtoupper(__('Note', WP_GDPR_C_SLUG)),
324
- sprintf(
325
- __('Enabling this will create one private page containing the necessary shortcode: %s. You can determine when and how to publish this page yourself.', WP_GDPR_C_SLUG),
326
- '<pre>[wpgdprc_access_request_form]</pre>'
327
- )
328
- );
329
- ?>
 
 
330
  </div>
331
  </div>
332
  </div>
@@ -344,7 +346,7 @@ class Page {
344
  ?>
345
  <?php if (!empty($accessRequestPage)) : ?>
346
  <div class="wpgdprc-information">
347
- <?php printf('<a href="%s">%s</a>', get_edit_post_link($accessRequestPage), __('Click here to edit this page', WP_GDPR_C_SLUG)); ?>
348
  </div>
349
  <?php endif; ?>
350
  </div>
@@ -365,7 +367,23 @@ class Page {
365
  <?php endif; ?>
366
  <p><strong><?php _e('Consents', WP_GDPR_C_SLUG); ?></strong></p>
367
  <div class="wpgdprc-information">
368
- <p><?php _e('Your visitors can give permission to all of the created Consents (scripts) through a Consent bar at the bottom of their screen. There they can also access their personal settings to give or deny permission to individual Consents.', WP_GDPR_C_SLUG); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
369
  </div>
370
  <div class="wpgdprc-setting">
371
  <label for="<?php echo $optionNameConsentsBarExplanationText; ?>"><?php _e('Bar: Explanation', WP_GDPR_C_SLUG); ?></label>
@@ -451,7 +469,7 @@ class Page {
451
  <div class="wpgdprc-options">
452
  <input type="text" name="title" class="regular-text" id="wpgdprc_title" value="<?php echo $consent->getTitle(); ?>" />
453
  <div class="wpgdprc-information">
454
- <?php _e('e.g. "Google Analytics"', WP_GDPR_C_SLUG); ?>
455
  </div>
456
  </div>
457
  </div>
@@ -460,23 +478,25 @@ class Page {
460
  <div class="wpgdprc-options">
461
  <textarea name="description" id="wpgdprc_description" rows="5" autocomplete="false" autocorrect="false" autocapitalize="false" spellcheck="false"><?php echo $consent->getDescription(); ?></textarea>
462
  <div class="wpgdprc-information">
463
- Explain die ding swa.
464
  </div>
465
  </div>
466
  </div>
467
  <div class="wpgdprc-setting">
468
- <label for="wpgdprc_snippet"><?php _e('Snippet', WP_GDPR_C_SLUG); ?></label>
469
  <div class="wpgdprc-options">
470
  <textarea name="snippet" id="wpgdprc_snippet" rows="10" autocomplete="false" autocorrect="false" autocapitalize="false" spellcheck="false"><?php echo htmlspecialchars($consent->getSnippet(), ENT_QUOTES, get_option('blog_charset')); ?></textarea>
471
  <div class="wpgdprc-information">
472
- <?php _e('Snippets for Google Analytics, Facebook Pixel, etc.', WP_GDPR_C_SLUG); ?><br />
473
- <?php
474
- printf(
475
- '<strong>%s:</strong> %s',
476
- strtoupper(__('Note', WP_GDPR_C_SLUG)),
477
- __('Do not add any script tags to your snippet.', WP_GDPR_C_SLUG)
478
- );
479
- ?>
 
 
480
  </div>
481
  </div>
482
  </div>
@@ -611,7 +631,7 @@ class Page {
611
  </div>
612
 
613
  <form class="wpgdprc-form wpgdprc-form--process-delete-requests" method="POST" novalidate="novalidate">
614
- <div class="wpgdprc-feedback" style="display: none;"></div>
615
  <table class="wpgdprc-table">
616
  <thead>
617
  <tr>
317
  <div class="wpgdprc-options">
318
  <label><input type="checkbox" name="<?php echo $optionNameEnableAccessRequest; ?>" id="<?php echo $optionNameEnableAccessRequest; ?>" value="1" tabindex="1" <?php checked(true, $enableAccessRequest); ?> /> <?php _e('Activate page', WP_GDPR_C_SLUG); ?></label>
319
  <div class="wpgdprc-information">
320
+ <div class="wpgdprc-message wpgdprc-message--notice">
321
+ <?php
322
+ printf(
323
+ '<p><strong>%s:</strong> %s</p>',
324
+ strtoupper(__('Note', WP_GDPR_C_SLUG)),
325
+ sprintf(
326
+ __('Enabling this will create one private page containing the necessary shortcode: %s. You can determine when and how to publish this page yourself.', WP_GDPR_C_SLUG),
327
+ '<span class="wpgdprc-pre"><strong>[wpgdprc_access_request_form]</strong></span>'
328
+ )
329
+ );
330
+ ?>
331
+ </div>
332
  </div>
333
  </div>
334
  </div>
346
  ?>
347
  <?php if (!empty($accessRequestPage)) : ?>
348
  <div class="wpgdprc-information">
349
+ <?php printf('<p><a href="%s">%s</a></p>', get_edit_post_link($accessRequestPage), __('Click here to edit this page', WP_GDPR_C_SLUG)); ?>
350
  </div>
351
  <?php endif; ?>
352
  </div>
367
  <?php endif; ?>
368
  <p><strong><?php _e('Consents', WP_GDPR_C_SLUG); ?></strong></p>
369
  <div class="wpgdprc-information">
370
+ <p><?php _e('Your visitors can give permission to all of the created Consents (scripts) through a Consent bar at the bottom of their screen. There they can also access their personal settings to give or deny permission to individual Consents. Once their settings are saved the bar disappears for 365 days.', WP_GDPR_C_SLUG); ?></p>
371
+ <div class="wpgdprc-message wpgdprc-message--notice">
372
+ <?php
373
+ printf(
374
+ '<p><strong>%s:</strong> %s</p>',
375
+ strtoupper(__('Note', WP_GDPR_C_SLUG)),
376
+ sprintf(
377
+ __('Let your visitors re-access their settings by placing a link to the modal with the shortcode %s or add the "%s" class to a menu item.', WP_GDPR_C_SLUG),
378
+ sprintf(
379
+ '<span class="wpgdprc-pre"><strong>[wpgdprc_consents_settings_link]<em>%s</em>[/wpgdprc_consents_settings_link]</strong></span>',
380
+ __('My settings', WP_GDPR_C_SLUG)
381
+ ),
382
+ '<span class="wpgdprc-pre"><strong>wpgdprc-consents-settings-link</strong></span>'
383
+ )
384
+ );
385
+ ?>
386
+ </div>
387
  </div>
388
  <div class="wpgdprc-setting">
389
  <label for="<?php echo $optionNameConsentsBarExplanationText; ?>"><?php _e('Bar: Explanation', WP_GDPR_C_SLUG); ?></label>
469
  <div class="wpgdprc-options">
470
  <input type="text" name="title" class="regular-text" id="wpgdprc_title" value="<?php echo $consent->getTitle(); ?>" />
471
  <div class="wpgdprc-information">
472
+ <p><?php _e('e.g. "Google Analytics" or "Advertising"', WP_GDPR_C_SLUG); ?></p>
473
  </div>
474
  </div>
475
  </div>
478
  <div class="wpgdprc-options">
479
  <textarea name="description" id="wpgdprc_description" rows="5" autocomplete="false" autocorrect="false" autocapitalize="false" spellcheck="false"><?php echo $consent->getDescription(); ?></textarea>
480
  <div class="wpgdprc-information">
481
+ <p><?php _e('Describe your consent script as thoroughly as possible.', WP_GDPR_C_SLUG); ?></p>
482
  </div>
483
  </div>
484
  </div>
485
  <div class="wpgdprc-setting">
486
+ <label for="wpgdprc_snippet"><?php _e('Code Snippet', WP_GDPR_C_SLUG); ?></label>
487
  <div class="wpgdprc-options">
488
  <textarea name="snippet" id="wpgdprc_snippet" rows="10" autocomplete="false" autocorrect="false" autocapitalize="false" spellcheck="false"><?php echo htmlspecialchars($consent->getSnippet(), ENT_QUOTES, get_option('blog_charset')); ?></textarea>
489
  <div class="wpgdprc-information">
490
+ <p><?php _e('Code snippets for Google Analytics, Facebook Pixel, etc.', WP_GDPR_C_SLUG); ?></p>
491
+ <div class="wpgdprc-message wpgdprc-message--notice">
492
+ <?php
493
+ printf(
494
+ '<p><strong>%s:</strong> %s</p>',
495
+ strtoupper(__('Note', WP_GDPR_C_SLUG)),
496
+ esc_html__('JavaScript only. Do not add any <script> tags to your snippet.', WP_GDPR_C_SLUG)
497
+ );
498
+ ?>
499
+ </div>
500
  </div>
501
  </div>
502
  </div>
631
  </div>
632
 
633
  <form class="wpgdprc-form wpgdprc-form--process-delete-requests" method="POST" novalidate="novalidate">
634
+ <div class="wpgdprc-message" style="display: none;"></div>
635
  <table class="wpgdprc-table">
636
  <thead>
637
  <tr>
Includes/Shortcode.php CHANGED
@@ -27,7 +27,7 @@ class Shortcode {
27
  $comments = Data::getOutput($data->getComments(), 'comment', $request->getId());
28
 
29
  $output .= sprintf(
30
- '<div class="wpgdprc-feedback wpgdprc-feedback--notice">%s</div>',
31
  apply_filters('the_content', Integration::getDeleteRequestFormExplanationText())
32
  );
33
 
@@ -37,7 +37,7 @@ class Shortcode {
37
  $output .= $users;
38
  } else {
39
  $output .= sprintf(
40
- '<div class="wpgdprc-feedback wpgdprc-feedback--notice">%s</div>',
41
  sprintf(
42
  __('No users found with email address %s.', WP_GDPR_C_SLUG),
43
  sprintf('<strong>%s</strong>', $request->getEmailAddress())
@@ -51,7 +51,7 @@ class Shortcode {
51
  $output .= $comments;
52
  } else {
53
  $output .= sprintf(
54
- '<div class="wpgdprc-feedback wpgdprc-feedback--notice">%s</div>',
55
  sprintf(
56
  __('No comments found with email address %s.', WP_GDPR_C_SLUG),
57
  sprintf('<strong>%s</strong>', $request->getEmailAddress())
@@ -67,7 +67,7 @@ class Shortcode {
67
  $output .= $woocommerceOrders;
68
  } else {
69
  $output .= sprintf(
70
- '<div class="wpgdprc-feedback wpgdprc-feedback--notice">%s</div>',
71
  sprintf(
72
  __('No WooCommerce orders found with email address %s.', WP_GDPR_C_SLUG),
73
  sprintf('<strong>%s</strong>', $request->getEmailAddress())
@@ -80,7 +80,7 @@ class Shortcode {
80
  } else {
81
  $accessRequestPage = Helper::getAccessRequestPage();
82
  $output .= sprintf(
83
- '<div class="wpgdprc-feedback wpgdprc-feedback--error"><p>%s</p></div>',
84
  sprintf(
85
  __('<strong>ERROR</strong>: %s', WP_GDPR_C_SLUG),
86
  sprintf(
@@ -134,7 +134,7 @@ class Shortcode {
134
  apply_filters('wpgdprc_request_form_submit_label', esc_attr__('Send', WP_GDPR_C_SLUG))
135
  )
136
  );
137
- $output .= '<div class="wpgdprc-feedback" style="display: none;"></div>';
138
  $output .= '</form>';
139
  $output = apply_filters('wpgdprc_request_form', $output);
140
  }
@@ -142,6 +142,27 @@ class Shortcode {
142
  return $output;
143
  }
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  /**
146
  * @return null|Shortcode
147
  */
27
  $comments = Data::getOutput($data->getComments(), 'comment', $request->getId());
28
 
29
  $output .= sprintf(
30
+ '<div class="wpgdprc-message wpgdprc-message--notice">%s</div>',
31
  apply_filters('the_content', Integration::getDeleteRequestFormExplanationText())
32
  );
33
 
37
  $output .= $users;
38
  } else {
39
  $output .= sprintf(
40
+ '<div class="wpgdprc-message wpgdprc-message--notice">%s</div>',
41
  sprintf(
42
  __('No users found with email address %s.', WP_GDPR_C_SLUG),
43
  sprintf('<strong>%s</strong>', $request->getEmailAddress())
51
  $output .= $comments;
52
  } else {
53
  $output .= sprintf(
54
+ '<div class="wpgdprc-message wpgdprc-message--notice">%s</div>',
55
  sprintf(
56
  __('No comments found with email address %s.', WP_GDPR_C_SLUG),
57
  sprintf('<strong>%s</strong>', $request->getEmailAddress())
67
  $output .= $woocommerceOrders;
68
  } else {
69
  $output .= sprintf(
70
+ '<div class="wpgdprc-message wpgdprc-message--notice">%s</div>',
71
  sprintf(
72
  __('No WooCommerce orders found with email address %s.', WP_GDPR_C_SLUG),
73
  sprintf('<strong>%s</strong>', $request->getEmailAddress())
80
  } else {
81
  $accessRequestPage = Helper::getAccessRequestPage();
82
  $output .= sprintf(
83
+ '<div class="wpgdprc-message wpgdprc-message--error"><p>%s</p></div>',
84
  sprintf(
85
  __('<strong>ERROR</strong>: %s', WP_GDPR_C_SLUG),
86
  sprintf(
134
  apply_filters('wpgdprc_request_form_submit_label', esc_attr__('Send', WP_GDPR_C_SLUG))
135
  )
136
  );
137
+ $output .= '<div class="wpgdprc-message" style="display: none;"></div>';
138
  $output .= '</form>';
139
  $output = apply_filters('wpgdprc_request_form', $output);
140
  }
142
  return $output;
143
  }
144
 
145
+ /**
146
+ * @param $attributes
147
+ * @param string $label
148
+ * @return string
149
+ */
150
+ public function consentsSettingsLink($attributes, $label = '') {
151
+ $attributes = shortcode_atts(array(
152
+ 'class' => '',
153
+ ), $attributes, 'wpgdprc_consents_settings_link');
154
+ $label = (!empty($label)) ? esc_html($label) : __('My settings', WP_GDPR_C_SLUG);
155
+ $classes = explode(',', $attributes['class']);
156
+ $classes[] = 'wpgdprc-consents-settings-link';
157
+ $classes = implode(' ', $classes);
158
+ $output = sprintf(
159
+ '<a class="%s" href="javascript:void(0);" data-micromodal-trigger="wpgdprc-consent-modal">%s</a>',
160
+ esc_attr($classes),
161
+ $label
162
+ );
163
+ return $output;
164
+ }
165
+
166
  /**
167
  * @return null|Shortcode
168
  */
assets/css/admin.css CHANGED
@@ -85,13 +85,14 @@
85
  color: #4AA94F;
86
  }
87
 
88
- .wpgdprc pre {
89
  display: inline;
90
  white-space: pre-wrap;
91
  white-space: -moz-pre-wrap;
92
  white-space: -pre-wrap;
93
  white-space: -o-pre-wrap;
94
  word-wrap: break-word;
 
95
  font-style: normal;
96
  }
97
 
@@ -144,6 +145,12 @@ div.wpgdprc-message--error {
144
  color: #CC4B37;
145
  }
146
 
 
 
 
 
 
 
147
  div.wpgdprc-message + form.wpgdprc-form {
148
  margin-top: 20px;
149
  }
@@ -552,6 +559,7 @@ span.wpgdprc-instructions {
552
  }
553
 
554
  .wpgdprc-setting input[type="text"], .wpgdprc-setting textarea, .wpgdprc-setting select {
 
555
  margin: 0;
556
  width: 100%;
557
  -webkit-box-shadow: none;
@@ -572,6 +580,15 @@ span.wpgdprc-instructions {
572
  margin-top: .5em;
573
  }
574
 
 
 
 
 
 
 
 
 
 
575
  .wpgdprc-pagination {
576
  margin-top: 20px;
577
  line-height: 28px;
85
  color: #4AA94F;
86
  }
87
 
88
+ .wpgdprc pre, .wpgdprc span.wpgdprc-pre {
89
  display: inline;
90
  white-space: pre-wrap;
91
  white-space: -moz-pre-wrap;
92
  white-space: -pre-wrap;
93
  white-space: -o-pre-wrap;
94
  word-wrap: break-word;
95
+ font-family: monospace;
96
  font-style: normal;
97
  }
98
 
145
  color: #CC4B37;
146
  }
147
 
148
+ div.wpgdprc-message--success {
149
+ background: #E1FAEA;
150
+ border-color: #5B9C73;
151
+ color: #5B9C73;
152
+ }
153
+
154
  div.wpgdprc-message + form.wpgdprc-form {
155
  margin-top: 20px;
156
  }
559
  }
560
 
561
  .wpgdprc-setting input[type="text"], .wpgdprc-setting textarea, .wpgdprc-setting select {
562
+ display: block;
563
  margin: 0;
564
  width: 100%;
565
  -webkit-box-shadow: none;
580
  margin-top: .5em;
581
  }
582
 
583
+ .wpgdprc-setting .wpgdprc-information p {
584
+ margin-top: 0;
585
+ margin-bottom: .5em;
586
+ }
587
+
588
+ .wpgdprc-setting .wpgdprc-information p:last-child {
589
+ margin-bottom: 0;
590
+ }
591
+
592
  .wpgdprc-pagination {
593
  margin-top: 20px;
594
  line-height: 28px;
assets/css/front.css CHANGED
@@ -31,12 +31,20 @@ div.wpgdprc a:focus {
31
  color: inherit;
32
  }
33
 
 
 
 
 
 
 
 
 
 
34
  div.wpgdprc .wpgdprc-button {
35
  display: inline-block;
36
  padding: 10px;
37
  border: 1px solid #DBD6D6;
38
  font-weight: bold;
39
- cursor: pointer;
40
  }
41
 
42
  div.wpgdprc .wpgdprc-button,
@@ -61,6 +69,36 @@ div.wpgdprc .wpgdprc-button--secondary:focus {
61
  color: #FFFFFF;
62
  }
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  div.wpgdprc .wpgdprc-status--processing,
65
  div.wpgdprc .wpgdprc-status--removed {
66
  pointer-events: none;
@@ -106,6 +144,7 @@ div.wpgdprc .wpgdprc-checkbox label {
106
  z-index: 1;
107
  font-weight: bold;
108
  cursor: pointer;
 
109
  }
110
 
111
  div.wpgdprc .wpgdprc-switch {
@@ -199,6 +238,7 @@ div.wpgdprc-consent-bar *:before,
199
  div.wpgdprc-consent-bar *:after {
200
  margin: 0;
201
  font: inherit;
 
202
  }
203
 
204
  div.wpgdprc-consent-bar div.wpgdprc-consent-bar__container {
31
  color: inherit;
32
  }
33
 
34
+ div.wpgdprc p {
35
+ font: inherit;
36
+ color: inherit;
37
+ }
38
+
39
+ div.wpgdprc button {
40
+ cursor: pointer;
41
+ }
42
+
43
  div.wpgdprc .wpgdprc-button {
44
  display: inline-block;
45
  padding: 10px;
46
  border: 1px solid #DBD6D6;
47
  font-weight: bold;
 
48
  }
49
 
50
  div.wpgdprc .wpgdprc-button,
69
  color: #FFFFFF;
70
  }
71
 
72
+ div.wpgdprc div.wpgdprc-message {
73
+ padding: 10px;
74
+ border: 1px solid transparent;
75
+ }
76
+
77
+ div.wpgdprc div.wpgdprc-message p:first-child {
78
+ margin-top: 0;
79
+ }
80
+
81
+ div.wpgdprc div.wpgdprc-message p:last-child {
82
+ margin-bottom: 0;
83
+ }
84
+
85
+ div.wpgdprc div.wpgdprc-message--notice {
86
+ background: #FFF3D9;
87
+ border-color: #E7D996;
88
+ }
89
+
90
+ div.wpgdprc div.wpgdprc-message--error {
91
+ background: #F7E4E1;
92
+ border-color: #CC4B37;
93
+ color: #CC4B37;
94
+ }
95
+
96
+ div.wpgdprc div.wpgdprc-message--success {
97
+ background: #E1FAEA;
98
+ border-color: #5B9C73;
99
+ color: #5B9C73;
100
+ }
101
+
102
  div.wpgdprc .wpgdprc-status--processing,
103
  div.wpgdprc .wpgdprc-status--removed {
104
  pointer-events: none;
144
  z-index: 1;
145
  font-weight: bold;
146
  cursor: pointer;
147
+ color: #000000;
148
  }
149
 
150
  div.wpgdprc .wpgdprc-switch {
238
  div.wpgdprc-consent-bar *:after {
239
  margin: 0;
240
  font: inherit;
241
+ color: inherit;
242
  }
243
 
244
  div.wpgdprc-consent-bar div.wpgdprc-consent-bar__container {
assets/js/admin.js CHANGED
@@ -97,12 +97,12 @@
97
  _ajax = function (values, $form, delay) {
98
  var value = values.slice(0, 1);
99
  if (value.length > 0) {
100
- var $feedback = $('.wpgdprc-feedback', $form),
101
  $row = $('tr[data-id="' + value[0] + '"]', $form);
102
  $row.removeClass('wpgdprc-status--error');
103
  $row.addClass('wpgdprc-status--processing');
104
  $feedback.attr('style', 'display: none;');
105
- $feedback.removeClass('wpgdprc-feedback--error');
106
  $feedback.empty();
107
  setTimeout(function () {
108
  $.ajax({
@@ -122,7 +122,7 @@
122
  if (response.error) {
123
  $row.addClass('wpgdprc-status--error');
124
  $feedback.html(response.error);
125
- $feedback.addClass('wpgdprc-feedback--error');
126
  $feedback.removeAttr('style');
127
  } else {
128
  values.splice(0, 1);
97
  _ajax = function (values, $form, delay) {
98
  var value = values.slice(0, 1);
99
  if (value.length > 0) {
100
+ var $feedback = $('.wpgdprc-message', $form),
101
  $row = $('tr[data-id="' + value[0] + '"]', $form);
102
  $row.removeClass('wpgdprc-status--error');
103
  $row.addClass('wpgdprc-status--processing');
104
  $feedback.attr('style', 'display: none;');
105
+ $feedback.removeClass('wpgdprc-message--error');
106
  $feedback.empty();
107
  setTimeout(function () {
108
  $.ajax({
122
  if (response.error) {
123
  $row.addClass('wpgdprc-status--error');
124
  $feedback.html(response.error);
125
+ $feedback.addClass('wpgdprc-message--error');
126
  $feedback.removeAttr('style');
127
  } else {
128
  values.splice(0, 1);
assets/js/front.js CHANGED
@@ -43,14 +43,14 @@
43
  * @private
44
  */
45
  _doAjax = function (data, values, $form, delay) {
46
- var $feedback = $form.querySelector('.wpgdprc-feedback'),
47
  value = values.slice(0, 1);
48
  if (value.length > 0) {
49
  var $row = $form.querySelector('tr[data-id="' + value[0] + '"]');
50
  $row.classList.remove('wpgdprc-status--error');
51
  $row.classList.add('wpgdprc-status--processing');
52
  $feedback.setAttribute('style', 'display: none;');
53
- $feedback.classList.remove('wpgdprc-feedback--error');
54
  $feedback.innerHTML = '';
55
  setTimeout(function () {
56
  var request = new XMLHttpRequest();
@@ -65,7 +65,7 @@
65
  if (response.error) {
66
  $row.classList.add('wpgdprc-status--error');
67
  $feedback.innerHTML = response.error;
68
- $feedback.classList.add('wpgdprc-feedback--error');
69
  $feedback.removeAttribute('style');
70
  } else {
71
  values.splice(0, 1);
@@ -155,6 +155,14 @@
155
  }
156
  });
157
 
 
 
 
 
 
 
 
 
158
  var $buttons = $consentModal.querySelectorAll('.wpgdprc-consent-modal__navigation > a');
159
  if ($buttons.length > 0) {
160
  var $descriptions = $consentModal.querySelectorAll('.wpgdprc-consent-modal__description');
@@ -208,7 +216,7 @@
208
  return;
209
  }
210
 
211
- var $feedback = $formAccessRequest.querySelector('.wpgdprc-feedback'),
212
  $emailAddress = $formAccessRequest.querySelector('#wpgdprc-form__email'),
213
  $consent = $formAccessRequest.querySelector('#wpgdprc-form__consent');
214
 
@@ -217,7 +225,7 @@
217
  if (!ajaxLoading) {
218
  ajaxLoading = true;
219
  $feedback.style.display = 'none';
220
- $feedback.classList.remove('wpgdprc-feedback--success', 'wpgdprc-feedback--error');
221
  $feedback.innerHTML = '';
222
 
223
  var data = {
@@ -242,13 +250,13 @@
242
  $formAccessRequest.reset();
243
  $emailAddress.blur();
244
  $feedback.innerHTML = response.message;
245
- $feedback.classList.add('wpgdprc-feedback--success');
246
  $feedback.removeAttribute('style');
247
  }
248
  if (response.error) {
249
  $emailAddress.focus();
250
  $feedback.innerHTML = response.error;
251
- $feedback.classList.add('wpgdprc-feedback--error');
252
  $feedback.removeAttribute('style');
253
  }
254
  }
43
  * @private
44
  */
45
  _doAjax = function (data, values, $form, delay) {
46
+ var $feedback = $form.querySelector('.wpgdprc-message'),
47
  value = values.slice(0, 1);
48
  if (value.length > 0) {
49
  var $row = $form.querySelector('tr[data-id="' + value[0] + '"]');
50
  $row.classList.remove('wpgdprc-status--error');
51
  $row.classList.add('wpgdprc-status--processing');
52
  $feedback.setAttribute('style', 'display: none;');
53
+ $feedback.classList.remove('wpgdprc-message--error');
54
  $feedback.innerHTML = '';
55
  setTimeout(function () {
56
  var request = new XMLHttpRequest();
65
  if (response.error) {
66
  $row.classList.add('wpgdprc-status--error');
67
  $feedback.innerHTML = response.error;
68
+ $feedback.classList.add('wpgdprc-message--error');
69
  $feedback.removeAttribute('style');
70
  } else {
71
  values.splice(0, 1);
155
  }
156
  });
157
 
158
+ var $settingsLink = document.querySelector('.wpgdprc-consents-settings-link');
159
+ if ($settingsLink !== null) {
160
+ $settingsLink.addEventListener('click', function (e) {
161
+ e.preventDefault();
162
+ MicroModal.show('wpgdprc-consent-modal');
163
+ });
164
+ }
165
+
166
  var $buttons = $consentModal.querySelectorAll('.wpgdprc-consent-modal__navigation > a');
167
  if ($buttons.length > 0) {
168
  var $descriptions = $consentModal.querySelectorAll('.wpgdprc-consent-modal__description');
216
  return;
217
  }
218
 
219
+ var $feedback = $formAccessRequest.querySelector('.wpgdprc-message'),
220
  $emailAddress = $formAccessRequest.querySelector('#wpgdprc-form__email'),
221
  $consent = $formAccessRequest.querySelector('#wpgdprc-form__consent');
222
 
225
  if (!ajaxLoading) {
226
  ajaxLoading = true;
227
  $feedback.style.display = 'none';
228
+ $feedback.classList.remove('wpgdprc-message--success', 'wpgdprc-message--error');
229
  $feedback.innerHTML = '';
230
 
231
  var data = {
250
  $formAccessRequest.reset();
251
  $emailAddress.blur();
252
  $feedback.innerHTML = response.message;
253
+ $feedback.classList.add('wpgdprc-message--success');
254
  $feedback.removeAttribute('style');
255
  }
256
  if (response.error) {
257
  $emailAddress.focus();
258
  $feedback.innerHTML = response.error;
259
+ $feedback.classList.add('wpgdprc-message--error');
260
  $feedback.removeAttribute('style');
261
  }
262
  }
languages/wp-gdpr-compliance.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WP GDPR Compliance\n"
5
- "POT-Creation-Date: 2018-06-01 13:55+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: Van Ons <info@van-ons.nl>\n"
8
  "MIME-Version: 1.0\n"
@@ -41,7 +41,7 @@ msgstr ""
41
  msgid "Retry"
42
  msgstr ""
43
 
44
- #: Includes/Action.php:128
45
  msgid "My settings"
46
  msgstr ""
47
 
@@ -50,7 +50,7 @@ msgid "Accept"
50
  msgstr ""
51
 
52
  #: Includes/Action.php:170 Includes/Helper.php:116 Includes/Helper.php:137
53
- #: Includes/Page.php:323 Includes/Page.php:476
54
  msgid "Note"
55
  msgstr ""
56
 
@@ -250,15 +250,11 @@ msgid ""
250
  "experience."
251
  msgstr ""
252
 
253
- #: Includes/Consent.php:242 Includes/Page.php:502
254
  msgid "Head"
255
  msgstr ""
256
 
257
- #: Includes/Consent.php:243 Includes/Page.php:507
258
- msgid "Body"
259
- msgstr ""
260
-
261
- #: Includes/Consent.php:244 Includes/Page.php:512
262
  msgid "Footer"
263
  msgstr ""
264
 
@@ -280,7 +276,7 @@ msgid "Display Name"
280
  msgstr ""
281
 
282
  #: Includes/Data.php:54 Includes/Data.php:63 Includes/Data.php:70
283
- #: Includes/Page.php:706
284
  msgid "Email Address"
285
  msgstr ""
286
 
@@ -300,7 +296,7 @@ msgstr ""
300
  msgid "Content"
301
  msgstr ""
302
 
303
- #: Includes/Data.php:64 Includes/Page.php:625 Includes/Page.php:707
304
  msgid "IP Address"
305
  msgstr ""
306
 
@@ -461,7 +457,7 @@ msgid "Activate for this form:"
461
  msgstr ""
462
 
463
  #: Includes/Integration.php:119 Includes/Integration.php:160
464
- #: Includes/Integration.php:187 Includes/Page.php:353
465
  msgid "Checkbox text"
466
  msgstr ""
467
 
@@ -497,7 +493,7 @@ msgid ""
497
  "request. When your data is anonymised you will receive an email confirmation."
498
  msgstr ""
499
 
500
- #: Includes/Integration.php:312 Includes/Page.php:613
501
  msgid "WordPress Comments"
502
  msgstr ""
503
 
@@ -519,7 +515,7 @@ msgstr ""
519
  msgid "Gravity Forms"
520
  msgstr ""
521
 
522
- #: Includes/Integration.php:341 Includes/Page.php:614
523
  msgid "WooCommerce"
524
  msgstr ""
525
 
@@ -533,7 +529,7 @@ msgstr ""
533
  msgid "Integrations"
534
  msgstr ""
535
 
536
- #: Includes/Page.php:57 Includes/Page.php:366
537
  msgid "Consents"
538
  msgstr ""
539
 
@@ -541,7 +537,7 @@ msgstr ""
541
  msgid "Checklist"
542
  msgstr ""
543
 
544
- #: Includes/Page.php:78 wp-gdpr-compliance.php:128
545
  msgid "Settings"
546
  msgstr ""
547
 
@@ -620,7 +616,7 @@ msgid ""
620
  "with tips to comply."
621
  msgstr ""
622
 
623
- #: Includes/Page.php:298 Includes/Page.php:340
624
  msgid "Select an option"
625
  msgstr ""
626
 
@@ -648,106 +644,113 @@ msgstr ""
648
  msgid "Activate page"
649
  msgstr ""
650
 
651
- #: Includes/Page.php:325
652
  #, php-format
653
  msgid ""
654
  "Enabling this will create one private page containing the necessary "
655
  "shortcode: %s. You can determine when and how to publish this page yourself."
656
  msgstr ""
657
 
658
- #: Includes/Page.php:335
659
  msgid "Page"
660
  msgstr ""
661
 
662
- #: Includes/Page.php:347
663
  msgid "Click here to edit this page"
664
  msgstr ""
665
 
666
- #: Includes/Page.php:359
667
  msgid "Anonymise request explanation"
668
  msgstr ""
669
 
670
- #: Includes/Page.php:368
671
  msgid ""
672
  "Your visitors can give permission to all of the created Consents (scripts) "
673
  "through a Consent bar at the bottom of their screen. There they can also "
674
  "access their personal settings to give or deny permission to individual "
675
- "Consents."
 
 
 
 
 
 
 
676
  msgstr ""
677
 
678
- #: Includes/Page.php:371
679
  msgid "Bar: Explanation"
680
  msgstr ""
681
 
682
- #: Includes/Page.php:377
683
  msgid "Modal: Title"
684
  msgstr ""
685
 
686
- #: Includes/Page.php:383
687
  msgid "Modal: Explanation"
688
  msgstr ""
689
 
690
- #: Includes/Page.php:442
691
  msgid "Add New Consent"
692
  msgstr ""
693
 
694
- #: Includes/Page.php:444 Includes/Page.php:549 Includes/Page.php:735
695
  msgid "Active"
696
  msgstr ""
697
 
698
- #: Includes/Page.php:450 Includes/Page.php:544
699
  msgid "Title"
700
  msgstr ""
701
 
702
- #: Includes/Page.php:454
703
- msgid "e.g. \"Google Analytics\""
704
  msgstr ""
705
 
706
- #: Includes/Page.php:459
707
  msgid "Description"
708
  msgstr ""
709
 
710
- #: Includes/Page.php:468
711
- msgid "Snippet"
712
  msgstr ""
713
 
714
- #: Includes/Page.php:472
715
- msgid "Snippets for Google Analytics, Facebook Pixel, etc."
716
  msgstr ""
717
 
718
- #: Includes/Page.php:477
719
- msgid "Do not add any script tags to your snippet."
720
  msgstr ""
721
 
722
- #: Includes/Page.php:484 Includes/Page.php:545
723
- msgid "Placement"
724
  msgstr ""
725
 
726
- #: Includes/Page.php:503
727
- msgid "Snippet will be added to the HEAD section."
728
  msgstr ""
729
 
730
- #: Includes/Page.php:508
731
- msgid "Snippet will be added right after the BODY section."
732
  msgstr ""
733
 
734
- #: Includes/Page.php:513
735
  msgid "Snippet will be added to the FOOTER section."
736
  msgstr ""
737
 
738
- #: Includes/Page.php:520
739
  msgid "Update"
740
  msgstr ""
741
 
742
- #: Includes/Page.php:520
743
  msgid "Add"
744
  msgstr ""
745
 
746
- #: Includes/Page.php:521
747
  msgid "Back to overview"
748
  msgstr ""
749
 
750
- #: Includes/Page.php:536
751
  msgid ""
752
  "Ask your visitors for permission to enable certain scripts for tracking or "
753
  "advertising purposes. Add a Consent for each type of script you are "
@@ -755,103 +758,103 @@ msgid ""
755
  "given."
756
  msgstr ""
757
 
758
- #: Includes/Page.php:537
759
  msgctxt "consent"
760
  msgid "Add New"
761
  msgstr ""
762
 
763
- #: Includes/Page.php:543
764
  msgid "Consent"
765
  msgstr ""
766
 
767
- #: Includes/Page.php:546
768
  msgid "Modified at"
769
  msgstr ""
770
 
771
- #: Includes/Page.php:547
772
  msgid "Created at"
773
  msgstr ""
774
 
775
- #: Includes/Page.php:548 Includes/Page.php:628
776
  msgid "Action"
777
  msgstr ""
778
 
779
- #: Includes/Page.php:560
780
  msgid "Edit"
781
  msgstr ""
782
 
783
- #: Includes/Page.php:561 wp-gdpr-compliance.php:137 wp-gdpr-compliance.php:155
784
  msgid "Yes"
785
  msgstr ""
786
 
787
- #: Includes/Page.php:561 wp-gdpr-compliance.php:138 wp-gdpr-compliance.php:156
788
  msgid "No"
789
  msgstr ""
790
 
791
- #: Includes/Page.php:582 Includes/Page.php:676 Includes/Page.php:758
792
  #, php-format
793
  msgid "%d of %d results found"
794
  msgstr ""
795
 
796
- #: Includes/Page.php:586
797
  msgid "No consents found."
798
  msgstr ""
799
 
800
- #: Includes/Page.php:610
801
  msgid ""
802
  "Anonymise a request by ticking the checkbox and clicking on the green "
803
  "anonymise button below."
804
  msgstr ""
805
 
806
- #: Includes/Page.php:612
807
  msgid "WordPress Users"
808
  msgstr ""
809
 
810
- #: Includes/Page.php:623
811
  msgid "Request"
812
  msgstr ""
813
 
814
- #: Includes/Page.php:624
815
  msgid "Type"
816
  msgstr ""
817
 
818
- #: Includes/Page.php:626 Includes/Page.php:708
819
  msgid "Date"
820
  msgstr ""
821
 
822
- #: Includes/Page.php:627
823
  msgid "Processed"
824
  msgstr ""
825
 
826
- #: Includes/Page.php:643
827
  msgid "View"
828
  msgstr ""
829
 
830
- #: Includes/Page.php:657
831
  msgid "Anonymise selected request(s)"
832
  msgstr ""
833
 
834
- #: Includes/Page.php:682 Includes/Page.php:764
835
  msgid "No requests found."
836
  msgstr ""
837
 
838
- #: Includes/Page.php:704
839
  msgid "ID"
840
  msgstr ""
841
 
842
- #: Includes/Page.php:705
843
  msgid "Requests to Process"
844
  msgstr ""
845
 
846
- #: Includes/Page.php:709
847
  msgid "Status"
848
  msgstr ""
849
 
850
- #: Includes/Page.php:727
851
  msgid "Manage"
852
  msgstr ""
853
 
854
- #: Includes/Page.php:735
855
  msgid "Expired"
856
  msgstr ""
857
 
@@ -907,6 +910,6 @@ msgstr ""
907
  msgid "Send"
908
  msgstr ""
909
 
910
- #: wp-gdpr-compliance.php:128
911
  msgid "View WP GDPR Compliance settings"
912
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WP GDPR Compliance\n"
5
+ "POT-Creation-Date: 2018-06-03 14:28+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: Van Ons <info@van-ons.nl>\n"
8
  "MIME-Version: 1.0\n"
41
  msgid "Retry"
42
  msgstr ""
43
 
44
+ #: Includes/Action.php:128 Includes/Page.php:380 Includes/Shortcode.php:154
45
  msgid "My settings"
46
  msgstr ""
47
 
50
  msgstr ""
51
 
52
  #: Includes/Action.php:170 Includes/Helper.php:116 Includes/Helper.php:137
53
+ #: Includes/Page.php:324 Includes/Page.php:375 Includes/Page.php:495
54
  msgid "Note"
55
  msgstr ""
56
 
250
  "experience."
251
  msgstr ""
252
 
253
+ #: Includes/Consent.php:242 Includes/Page.php:522
254
  msgid "Head"
255
  msgstr ""
256
 
257
+ #: Includes/Consent.php:243 Includes/Page.php:527
 
 
 
 
258
  msgid "Footer"
259
  msgstr ""
260
 
276
  msgstr ""
277
 
278
  #: Includes/Data.php:54 Includes/Data.php:63 Includes/Data.php:70
279
+ #: Includes/Page.php:721
280
  msgid "Email Address"
281
  msgstr ""
282
 
296
  msgid "Content"
297
  msgstr ""
298
 
299
+ #: Includes/Data.php:64 Includes/Page.php:640 Includes/Page.php:722
300
  msgid "IP Address"
301
  msgstr ""
302
 
457
  msgstr ""
458
 
459
  #: Includes/Integration.php:119 Includes/Integration.php:160
460
+ #: Includes/Integration.php:187 Includes/Page.php:355
461
  msgid "Checkbox text"
462
  msgstr ""
463
 
493
  "request. When your data is anonymised you will receive an email confirmation."
494
  msgstr ""
495
 
496
+ #: Includes/Integration.php:312 Includes/Page.php:628
497
  msgid "WordPress Comments"
498
  msgstr ""
499
 
515
  msgid "Gravity Forms"
516
  msgstr ""
517
 
518
+ #: Includes/Integration.php:341 Includes/Page.php:629
519
  msgid "WooCommerce"
520
  msgstr ""
521
 
529
  msgid "Integrations"
530
  msgstr ""
531
 
532
+ #: Includes/Page.php:57 Includes/Page.php:368
533
  msgid "Consents"
534
  msgstr ""
535
 
537
  msgid "Checklist"
538
  msgstr ""
539
 
540
+ #: Includes/Page.php:78 wp-gdpr-compliance.php:131
541
  msgid "Settings"
542
  msgstr ""
543
 
616
  "with tips to comply."
617
  msgstr ""
618
 
619
+ #: Includes/Page.php:298 Includes/Page.php:342
620
  msgid "Select an option"
621
  msgstr ""
622
 
644
  msgid "Activate page"
645
  msgstr ""
646
 
647
+ #: Includes/Page.php:326
648
  #, php-format
649
  msgid ""
650
  "Enabling this will create one private page containing the necessary "
651
  "shortcode: %s. You can determine when and how to publish this page yourself."
652
  msgstr ""
653
 
654
+ #: Includes/Page.php:337
655
  msgid "Page"
656
  msgstr ""
657
 
658
+ #: Includes/Page.php:349
659
  msgid "Click here to edit this page"
660
  msgstr ""
661
 
662
+ #: Includes/Page.php:361
663
  msgid "Anonymise request explanation"
664
  msgstr ""
665
 
666
+ #: Includes/Page.php:370
667
  msgid ""
668
  "Your visitors can give permission to all of the created Consents (scripts) "
669
  "through a Consent bar at the bottom of their screen. There they can also "
670
  "access their personal settings to give or deny permission to individual "
671
+ "Consents. Once their settings are saved the bar disappears for 365 days."
672
+ msgstr ""
673
+
674
+ #: Includes/Page.php:377
675
+ #, php-format
676
+ msgid ""
677
+ "Let your visitors re-access their settings by placing a link to the modal "
678
+ "with the shortcode %s or add the \"%s\" class to a menu item."
679
  msgstr ""
680
 
681
+ #: Includes/Page.php:389
682
  msgid "Bar: Explanation"
683
  msgstr ""
684
 
685
+ #: Includes/Page.php:395
686
  msgid "Modal: Title"
687
  msgstr ""
688
 
689
+ #: Includes/Page.php:401
690
  msgid "Modal: Explanation"
691
  msgstr ""
692
 
693
+ #: Includes/Page.php:460
694
  msgid "Add New Consent"
695
  msgstr ""
696
 
697
+ #: Includes/Page.php:462 Includes/Page.php:564 Includes/Page.php:750
698
  msgid "Active"
699
  msgstr ""
700
 
701
+ #: Includes/Page.php:468 Includes/Page.php:559
702
  msgid "Title"
703
  msgstr ""
704
 
705
+ #: Includes/Page.php:472
706
+ msgid "e.g. \"Google Analytics\" or \"Advertising\""
707
  msgstr ""
708
 
709
+ #: Includes/Page.php:477
710
  msgid "Description"
711
  msgstr ""
712
 
713
+ #: Includes/Page.php:481
714
+ msgid "Describe your consent script as thoroughly as possible."
715
  msgstr ""
716
 
717
+ #: Includes/Page.php:486
718
+ msgid "Code Snippet"
719
  msgstr ""
720
 
721
+ #: Includes/Page.php:490
722
+ msgid "Code snippets for Google Analytics, Facebook Pixel, etc."
723
  msgstr ""
724
 
725
+ #: Includes/Page.php:496
726
+ msgid "JavaScript only. Do not add any <script> tags to your snippet."
727
  msgstr ""
728
 
729
+ #: Includes/Page.php:504 Includes/Page.php:560
730
+ msgid "Placement"
731
  msgstr ""
732
 
733
+ #: Includes/Page.php:523
734
+ msgid "Snippet will be added to the HEAD section."
735
  msgstr ""
736
 
737
+ #: Includes/Page.php:528
738
  msgid "Snippet will be added to the FOOTER section."
739
  msgstr ""
740
 
741
+ #: Includes/Page.php:535
742
  msgid "Update"
743
  msgstr ""
744
 
745
+ #: Includes/Page.php:535
746
  msgid "Add"
747
  msgstr ""
748
 
749
+ #: Includes/Page.php:536
750
  msgid "Back to overview"
751
  msgstr ""
752
 
753
+ #: Includes/Page.php:551
754
  msgid ""
755
  "Ask your visitors for permission to enable certain scripts for tracking or "
756
  "advertising purposes. Add a Consent for each type of script you are "
758
  "given."
759
  msgstr ""
760
 
761
+ #: Includes/Page.php:552
762
  msgctxt "consent"
763
  msgid "Add New"
764
  msgstr ""
765
 
766
+ #: Includes/Page.php:558
767
  msgid "Consent"
768
  msgstr ""
769
 
770
+ #: Includes/Page.php:561
771
  msgid "Modified at"
772
  msgstr ""
773
 
774
+ #: Includes/Page.php:562
775
  msgid "Created at"
776
  msgstr ""
777
 
778
+ #: Includes/Page.php:563 Includes/Page.php:643
779
  msgid "Action"
780
  msgstr ""
781
 
782
+ #: Includes/Page.php:575
783
  msgid "Edit"
784
  msgstr ""
785
 
786
+ #: Includes/Page.php:576 wp-gdpr-compliance.php:140 wp-gdpr-compliance.php:158
787
  msgid "Yes"
788
  msgstr ""
789
 
790
+ #: Includes/Page.php:576 wp-gdpr-compliance.php:141 wp-gdpr-compliance.php:159
791
  msgid "No"
792
  msgstr ""
793
 
794
+ #: Includes/Page.php:597 Includes/Page.php:691 Includes/Page.php:773
795
  #, php-format
796
  msgid "%d of %d results found"
797
  msgstr ""
798
 
799
+ #: Includes/Page.php:601
800
  msgid "No consents found."
801
  msgstr ""
802
 
803
+ #: Includes/Page.php:625
804
  msgid ""
805
  "Anonymise a request by ticking the checkbox and clicking on the green "
806
  "anonymise button below."
807
  msgstr ""
808
 
809
+ #: Includes/Page.php:627
810
  msgid "WordPress Users"
811
  msgstr ""
812
 
813
+ #: Includes/Page.php:638
814
  msgid "Request"
815
  msgstr ""
816
 
817
+ #: Includes/Page.php:639
818
  msgid "Type"
819
  msgstr ""
820
 
821
+ #: Includes/Page.php:641 Includes/Page.php:723
822
  msgid "Date"
823
  msgstr ""
824
 
825
+ #: Includes/Page.php:642
826
  msgid "Processed"
827
  msgstr ""
828
 
829
+ #: Includes/Page.php:658
830
  msgid "View"
831
  msgstr ""
832
 
833
+ #: Includes/Page.php:672
834
  msgid "Anonymise selected request(s)"
835
  msgstr ""
836
 
837
+ #: Includes/Page.php:697 Includes/Page.php:779
838
  msgid "No requests found."
839
  msgstr ""
840
 
841
+ #: Includes/Page.php:719
842
  msgid "ID"
843
  msgstr ""
844
 
845
+ #: Includes/Page.php:720
846
  msgid "Requests to Process"
847
  msgstr ""
848
 
849
+ #: Includes/Page.php:724
850
  msgid "Status"
851
  msgstr ""
852
 
853
+ #: Includes/Page.php:742
854
  msgid "Manage"
855
  msgstr ""
856
 
857
+ #: Includes/Page.php:750
858
  msgid "Expired"
859
  msgstr ""
860
 
910
  msgid "Send"
911
  msgstr ""
912
 
913
+ #: wp-gdpr-compliance.php:131
914
  msgid "View WP GDPR Compliance settings"
915
  msgstr ""
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP GDPR Compliance ===
2
- Contributors: donnyoexman, jeffreyvisser, byjarno, van-ons
3
  Tags: gdpr, law, regulations, compliance, data, protection, privacy, data protection, eu, avg, comments, woocommerce, wc, contact form 7, cf7
4
  Requires at least: 4.5
5
  Tested up to: 4.9.4
6
  Requires PHP: 5.3
7
- Stable tag: 1.3.8
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -39,6 +39,12 @@ You'll find answers to many of your questions on [wpgdprc.com](https://www.wpgdp
39
 
40
  == Changelog ==
41
 
 
 
 
 
 
 
42
  = 1.3.8 =
43
  *Release date: June 1st, 2018*
44
  * Front-end bugfix.
1
  === WP GDPR Compliance ===
2
+ Contributors: donnyoexman, jeffreyvisser, byjarno, michaelvt, van-ons
3
  Tags: gdpr, law, regulations, compliance, data, protection, privacy, data protection, eu, avg, comments, woocommerce, wc, contact form 7, cf7
4
  Requires at least: 4.5
5
  Tested up to: 4.9.4
6
  Requires PHP: 5.3
7
+ Stable tag: 1.3.9
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
39
 
40
  == Changelog ==
41
 
42
+ = 1.3.9 =
43
+ *Release date: June 3rd, 2018*
44
+ * Small front-end fixes.
45
+ * Added translatable strings.
46
+ * Added shortcode [wpgdprc_consents_settings_link]. This will create a link to the consent settings.
47
+
48
  = 1.3.8 =
49
  *Release date: June 1st, 2018*
50
  * Front-end bugfix.
wp-gdpr-compliance.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: WP GDPR Compliance
5
  Plugin URI: https://www.wpgdprc.com/
6
  Description: This plugin assists website and webshop owners to comply with European privacy regulations known as GDPR. By May 24th, 2018 your website or shop has to comply to avoid large fines.
7
- Version: 1.3.8
8
  Author: Van Ons
9
  Author URI: https://www.van-ons.nl/
10
  License: GPL2
@@ -108,13 +108,16 @@ class WPGDPRC {
108
  // TODO: Better way to create database tables
109
  if (!Consent::databaseTableExists()) {
110
  Helper::createConsentsTables();
111
- } else if (Consent::getInstance()->getTotal(array('active' => array('value' => 1))) > 0) {
112
- if (empty($_COOKIE['wpgdprc-consent'])) {
113
- add_action('wp_footer', array(Action::getInstance(), 'addConsentBar'), 998);
114
  add_action('wp_footer', array(Action::getInstance(), 'addConsentModal'), 999);
115
- } else {
116
- add_action('wp_head', array(Action::getInstance(), 'addConsentsToHead'), 999);
117
- add_action('wp_footer', array(Action::getInstance(), 'addConsentsToFooter'), 999);
 
 
 
118
  }
119
  }
120
  }
4
  Plugin Name: WP GDPR Compliance
5
  Plugin URI: https://www.wpgdprc.com/
6
  Description: This plugin assists website and webshop owners to comply with European privacy regulations known as GDPR. By May 24th, 2018 your website or shop has to comply to avoid large fines.
7
+ Version: 1.3.9
8
  Author: Van Ons
9
  Author URI: https://www.van-ons.nl/
10
  License: GPL2
108
  // TODO: Better way to create database tables
109
  if (!Consent::databaseTableExists()) {
110
  Helper::createConsentsTables();
111
+ } else {
112
+ add_shortcode('wpgdprc_consents_settings_link', array(Shortcode::getInstance(), 'consentsSettingsLink'));
113
+ if (Consent::getInstance()->getTotal(array('active' => array('value' => 1))) > 0) {
114
  add_action('wp_footer', array(Action::getInstance(), 'addConsentModal'), 999);
115
+ if (empty($_COOKIE['wpgdprc-consent'])) {
116
+ add_action('wp_footer', array(Action::getInstance(), 'addConsentBar'), 998);
117
+ } else {
118
+ add_action('wp_head', array(Action::getInstance(), 'addConsentsToHead'), 999);
119
+ add_action('wp_footer', array(Action::getInstance(), 'addConsentsToFooter'), 999);
120
+ }
121
  }
122
  }
123
  }