WP DSGVO Tools - Version 3.1.29

Version Description

  • changed company names of Facebook
  • added imprint url and privacy policy url to wpml-config.xml to support translationing of these urls
  • added secure cookie option on https

=

Download this release

Release Info

Developer legalweb
Plugin Icon 128x128 WP DSGVO Tools
Version 3.1.29
Comparing to
See all releases

Code changes from version 3.1.28 to 3.1.29

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: legalweb
3
  Donate link: https://legalweb.io
4
  Tags: gdpr, dsgvo, datenschutz, privacy, privacy policy, imprint, impressum, wordpress, compliance, privacy, woocommerce, law
5
  Requires at least: 3.0.1
6
- Tested up to: 5.8.1
7
- Stable tag: 3.1.28
8
  Requires PHP: 5.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -201,10 +201,15 @@ Just install via WordPress plugin feature or upload zip and activate it.
201
  11. Delete request
202
  12. Settings for page operator which are used for privacy policy and imprint
203
 
 
 
 
 
 
204
 
205
  == Changelog ==
206
  = 3.1.28 =
207
- * fixed wrong method called
208
 
209
  = 3.1.27 =
210
  * improved sanitation and escaping
3
  Donate link: https://legalweb.io
4
  Tags: gdpr, dsgvo, datenschutz, privacy, privacy policy, imprint, impressum, wordpress, compliance, privacy, woocommerce, law
5
  Requires at least: 3.0.1
6
+ Tested up to: 6.0.0
7
+ Stable tag: 3.1.29
8
  Requires PHP: 5.6.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
201
  11. Delete request
202
  12. Settings for page operator which are used for privacy policy and imprint
203
 
204
+ == Changelog ==
205
+ = 3.1.29 =
206
+ * changed company names of Facebook
207
+ * added imprint url and privacy policy url to wpml-config.xml to support translationing of these urls
208
+ * added secure cookie option on https
209
 
210
  == Changelog ==
211
  = 3.1.28 =
212
+ * fixed cookie notice preview images
213
 
214
  = 3.1.27 =
215
  * improved sanitation and escaping
admin/class-sp-dsgvo-admin.php CHANGED
@@ -277,7 +277,7 @@ class SPDSGVOAdmin{
277
 
278
  printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
279
  }
280
-
281
  if (SPDSGVOSettings::get('show_notice_update_check_settings') === '1')
282
  {
283
  $class = 'notice notice-warning is-dismissible update-check-settings-notice';
@@ -285,7 +285,8 @@ class SPDSGVOAdmin{
285
 
286
  printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
287
  }
288
-
 
289
  if (SPDSGVOSettings::get('show_notice_update_310') === '1')
290
  {
291
  $class = 'notice notice-info is-dismissible sp-dsgvo-admin-notice update-notice-version-310';
@@ -293,7 +294,7 @@ class SPDSGVOAdmin{
293
 
294
  printf( '<div class="%1$s"><h4>WP DSGVO Tools (GDPR)</h4><p>%2$s</p></div>', esc_attr( $class ), $message );
295
  }
296
-
297
  if (SPDSGVOSettings::get('show_notice_webinars') === '1')
298
  {
299
  $class = 'notice notice-info is-dismissible sp-dsgvo-admin-notice feature-notice-webinars';
@@ -302,7 +303,7 @@ class SPDSGVOAdmin{
302
 
303
  printf( '<div class="%1$s"><h4>WP DSGVO Tools (GDPR)</h4><p>%2$s</p></div>', esc_attr( $class ), $message );
304
  }
305
-
306
  if (SPDSGVOSettings::get('show_notice_securityleak0921') === '1')
307
  {
308
  $class = 'notice notice-warning is-dismissible sp-dsgvo-admin-notice update-notice-securityleak0921';
@@ -310,6 +311,7 @@ class SPDSGVOAdmin{
310
 
311
  printf( '<div class="%1$s"><h4>WP DSGVO Tools (GDPR)</h4><p>%2$s</p></div>', esc_attr( $class ), $message );
312
  }
 
313
  }
314
  /*
315
  function showUpgradeMessage($currentPluginMetadata, $newPluginMetadata)
277
 
278
  printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
279
  }
280
+ /*
281
  if (SPDSGVOSettings::get('show_notice_update_check_settings') === '1')
282
  {
283
  $class = 'notice notice-warning is-dismissible update-check-settings-notice';
285
 
286
  printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
287
  }
288
+ */
289
+ /*
290
  if (SPDSGVOSettings::get('show_notice_update_310') === '1')
291
  {
292
  $class = 'notice notice-info is-dismissible sp-dsgvo-admin-notice update-notice-version-310';
294
 
295
  printf( '<div class="%1$s"><h4>WP DSGVO Tools (GDPR)</h4><p>%2$s</p></div>', esc_attr( $class ), $message );
296
  }
297
+ */
298
  if (SPDSGVOSettings::get('show_notice_webinars') === '1')
299
  {
300
  $class = 'notice notice-info is-dismissible sp-dsgvo-admin-notice feature-notice-webinars';
303
 
304
  printf( '<div class="%1$s"><h4>WP DSGVO Tools (GDPR)</h4><p>%2$s</p></div>', esc_attr( $class ), $message );
305
  }
306
+ /*
307
  if (SPDSGVOSettings::get('show_notice_securityleak0921') === '1')
308
  {
309
  $class = 'notice notice-warning is-dismissible sp-dsgvo-admin-notice update-notice-securityleak0921';
311
 
312
  printf( '<div class="%1$s"><h4>WP DSGVO Tools (GDPR)</h4><p>%2$s</p></div>', esc_attr( $class ), $message );
313
  }
314
+ */
315
  }
316
  /*
317
  function showUpgradeMessage($currentPluginMetadata, $newPluginMetadata)
admin/tabs/v3/common-settings/class-sp-dsgvo-common-settings-validate-license-action.php CHANGED
@@ -35,7 +35,7 @@ class SPDSGVOCommonSettingsValidateLicenseAction extends SPDSGVOAjaxAction
35
  $body = wp_remote_retrieve_body( $request );
36
  error_log('body: '.$body);
37
 
38
- if ($body !== false)
39
  {
40
  SPDSGVOSettings::set('licence_details_fetched', '1');
41
  SPDSGVOSettings::set('licence_details_fetched_new', '1');
35
  $body = wp_remote_retrieve_body( $request );
36
  error_log('body: '.$body);
37
 
38
+ if ($body != false && (strpos($body, 'INVALID_LICENCE_REQUEST') === false))
39
  {
40
  SPDSGVOSettings::set('licence_details_fetched', '1');
41
  SPDSGVOSettings::set('licence_details_fetched_new', '1');
admin/tabs/v3/popup-notice/page.php CHANGED
@@ -217,33 +217,33 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
217
  </div>
218
 
219
  <div class="form-group">
220
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie1.png')) ?>"
221
  class="cookie-style-admin-show--01">
222
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie2.png')) ?>"
223
  class="cookie-style-admin-show--02">
224
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie3.png')) ?>"
225
  class="cookie-style-admin-show--03">
226
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie4.png')) ?>"
227
  class="cookie-style-admin-show--04">
228
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie5.png')) ?>"
229
  class="cookie-style-admin-show--05">
230
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie6.png')) ?>"
231
  class="cookie-style-admin-show--06">
232
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie7.png')) ?>"
233
  class="cookie-style-admin-show--07">
234
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie8.png')) ?>"
235
  class="cookie-style-admin-show--08">
236
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie9.png')) ?>"
237
  class="cookie-style-admin-show--09">
238
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie10.png')) ?>"
239
  class="cookie-style-admin-show--10">
240
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie11.png')) ?>"
241
  class="cookie-style-admin-show--11">
242
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie12.png')) ?>"
243
  class="cookie-style-admin-show--12">
244
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie13.png')) ?>"
245
  class="cookie-style-admin-show--13">
246
- <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin\images\cookies\Cookie14.png')) ?>"
247
  class="cookie-style-admin-show--14">
248
  </div>
249
  </div>
217
  </div>
218
 
219
  <div class="form-group">
220
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie1.png')) ?>"
221
  class="cookie-style-admin-show--01">
222
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie2.png')) ?>"
223
  class="cookie-style-admin-show--02">
224
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie3.png')) ?>"
225
  class="cookie-style-admin-show--03">
226
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie4.png')) ?>"
227
  class="cookie-style-admin-show--04">
228
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie5.png')) ?>"
229
  class="cookie-style-admin-show--05">
230
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie6.png')) ?>"
231
  class="cookie-style-admin-show--06">
232
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie7.png')) ?>"
233
  class="cookie-style-admin-show--07">
234
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie8.png')) ?>"
235
  class="cookie-style-admin-show--08">
236
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie9.png')) ?>"
237
  class="cookie-style-admin-show--09">
238
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie10.png')) ?>"
239
  class="cookie-style-admin-show--10">
240
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie11.png')) ?>"
241
  class="cookie-style-admin-show--11">
242
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie12.png')) ?>"
243
  class="cookie-style-admin-show--12">
244
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie13.png')) ?>"
245
  class="cookie-style-admin-show--13">
246
+ <img src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/cookies/Cookie14.png')) ?>"
247
  class="cookie-style-admin-show--14">
248
  </div>
249
  </div>
includes/cron/do-check-privacy-policy-texts.php CHANGED
@@ -4,7 +4,7 @@ Class DoCheckPrivacyPolicyTexts extends SPDSGVOCron
4
  {
5
 
6
  public $interval = array(
7
- 'days' => 1,
8
  );
9
 
10
  public function handle()
4
  {
5
 
6
  public $interval = array(
7
+ 'days' => 2,
8
  );
9
 
10
  public function handle()
includes/cron/do-validate-license.php CHANGED
@@ -3,7 +3,7 @@
3
  Class DoValidateLicense extends SPDSGVOCron{
4
 
5
  public $interval = array(
6
- 'days' => 1,
7
  );
8
 
9
  public function handle(){
@@ -34,8 +34,8 @@ Class DoValidateLicense extends SPDSGVOCron{
34
 
35
  $body = wp_remote_retrieve_body( $request );
36
  //error_log('body: '.$body);
37
-
38
- if ($body !== false)
39
  {
40
  SPDSGVOSettings::set('licence_details_fetched', '1');
41
  SPDSGVOSettings::set('licence_details_fetched_new', '1');
3
  Class DoValidateLicense extends SPDSGVOCron{
4
 
5
  public $interval = array(
6
+ 'days' => 2,
7
  );
8
 
9
  public function handle(){
34
 
35
  $body = wp_remote_retrieve_body( $request );
36
  //error_log('body: '.$body);
37
+
38
+ if ($body !== false && (strpos($body, 'INVALID_LICENCE_REQUEST') === false))
39
  {
40
  SPDSGVOSettings::set('licence_details_fetched', '1');
41
  SPDSGVOSettings::set('licence_details_fetched_new', '1');
includes/integrations/embeddings/facebook-feed/class-sp-dsgvo-facebook-feed-api.php CHANGED
@@ -5,7 +5,7 @@ class SPDSGVOFacebookFeedApi extends SPDSGVOEmbeddingApiBase
5
  protected function __construct()
6
  {
7
  $this->name = "Facebook";
8
- $this->company = "Facebook Inc.";
9
  $this->country = "Ireland, USA";
10
  $this->slug = 'facebook-feed';
11
  $this->storageId = 'fbfeed';
5
  protected function __construct()
6
  {
7
  $this->name = "Facebook";
8
+ $this->company = "Meta Platforms Ireland Ltd.";
9
  $this->country = "Ireland, USA";
10
  $this->slug = 'facebook-feed';
11
  $this->storageId = 'fbfeed';
includes/integrations/embeddings/instagram/class-sp-dsgvo-instagram-api.php CHANGED
@@ -5,7 +5,7 @@ class SPDSGVOInstagramApi extends SPDSGVOEmbeddingApiBase
5
  protected function __construct()
6
  {
7
  $this->name = "Instagram";
8
- $this->company = "Facebook Inc.";
9
  $this->country = "Ireland, USA";
10
  $this->slug = 'insta';
11
  $this->storageId = 'insta';
5
  protected function __construct()
6
  {
7
  $this->name = "Instagram";
8
+ $this->company = "Meta Platforms Ireland Ltd.";
9
  $this->country = "Ireland, USA";
10
  $this->slug = 'insta';
11
  $this->storageId = 'insta';
includes/integrations/targeting/fbpixel/class-sp-dsgvo-fb-pixel-api.php CHANGED
@@ -7,7 +7,7 @@ class SPDSGVOFbPixelApi extends SPDSGVOIntegrationApiBase
7
  protected function __construct()
8
  {
9
  $this->name = "Facebook Pixel";
10
- $this->company = "Facebook Inc.";
11
  $this->country = "Ireland, USA";
12
  $this->slug = 'facebook-pixel';
13
  $this->storageId = 'fbpixel';
7
  protected function __construct()
8
  {
9
  $this->name = "Facebook Pixel";
10
+ $this->company = "Meta Platforms Ireland Ltd.";
11
  $this->country = "Ireland, USA";
12
  $this->slug = 'facebook-pixel';
13
  $this->storageId = 'fbpixel';
public/class-sp-dsgvo-public.php CHANGED
@@ -69,7 +69,7 @@ class SPDSGVOPublic
69
  */
70
  public function enqueue_scripts()
71
  {
72
- wp_enqueue_script(sp_dsgvo_NAME, plugin_dir_url(__FILE__) . 'js/sp-dsgvo-public.js', array(
73
  'jquery'
74
  ), sp_dsgvo_VERSION, false);
75
 
@@ -303,8 +303,8 @@ class SPDSGVOPublic
303
  $overlay_class = 'sp-dsgvo-popup-overlay sp-dsgvo-overlay-hidden';
304
  $overlay_class .= ' not-accepted'; // todo check if needed
305
 
306
- $imprintUrl = get_permalink($settings['imprint_page']);
307
- $privacyPolicyUrl = get_permalink($settings['privacy_policy_page']);
308
 
309
  $allCategories = SPDSGVOCookieCategoryApi::getCookieCategories();
310
  $integrationCountByCategory = array();
69
  */
70
  public function enqueue_scripts()
71
  {
72
+ wp_enqueue_script(sp_dsgvo_NAME, plugin_dir_url(__FILE__) . 'js/sp-dsgvo-public.min.js', array(
73
  'jquery'
74
  ), sp_dsgvo_VERSION, false);
75
 
303
  $overlay_class = 'sp-dsgvo-popup-overlay sp-dsgvo-overlay-hidden';
304
  $overlay_class .= ' not-accepted'; // todo check if needed
305
 
306
+ $imprintUrl = get_permalink(SPDSGVOSettings::get('imprint_page'));//get_permalink($settings['imprint_page']);
307
+ $privacyPolicyUrl = get_permalink(SPDSGVOSettings::get('privacy_policy_page')); //get_permalink($settings['privacy_policy_page']);
308
 
309
  $allCategories = SPDSGVOCookieCategoryApi::getCookieCategories();
310
  $integrationCountByCategory = array();
public/js/sp-dsgvo-public.js CHANGED
@@ -579,11 +579,12 @@ const CATEGORY_SLUG_MANDATORY = 'necessary';
579
  cookieData.integrations = checkedIntegrationSlugs;//
580
  cookieData.lastChangeOn = new Date().getTime();
581
 
 
582
  var flatData = encodeURIComponent(JSON.stringify(cookieData));
583
  var d = new Date();
584
  d.setTime(d.getTime() + parseInt(lifeTime) * 1000);
585
  var expires = "expires=" + d.toUTCString();
586
- document.cookie = spDsgvoGeneralConfig.cookieName + "=" + flatData + ";" + expires + ";path=/";
587
 
588
  }
589
 
579
  cookieData.integrations = checkedIntegrationSlugs;//
580
  cookieData.lastChangeOn = new Date().getTime();
581
 
582
+ var secure = location.protocol !== 'https:' ? "" : ';Secure;';
583
  var flatData = encodeURIComponent(JSON.stringify(cookieData));
584
  var d = new Date();
585
  d.setTime(d.getTime() + parseInt(lifeTime) * 1000);
586
  var expires = "expires=" + d.toUTCString();
587
+ document.cookie = spDsgvoGeneralConfig.cookieName + "=" + flatData + ";" + expires + ";path=/" +secure;
588
 
589
  }
590
 
public/js/sp-dsgvo-public.min.js ADDED
@@ -0,0 +1 @@
 
1
+ const CATEGORY_SLUG_STATISTICS="statistics";const CATEGORY_SLUG_TARGETING="targeting";const CATEGORY_SLUG_EMBEDDINGS="embeddings";const CATEGORY_SLUG_LIVECHAT="live-chat";const CATEGORY_SLUG_CHATBOTS="chat-bots";const CATEGORY_SLUG_PLUGINS="plugins";const CATEGORY_SLUG_MANDATORY="necessary";(function(n){n(document).ready(function(){n(document).on("click","#popup_accept_button",function(e){e.preventDefault();var t=n("select[name='google-fonts'] option:selected").text();if(t==="Yes"){var o=n(document).find("link[data-href]");n.each(o,function(){n(this).attr("href",n(this).attr("data-href")).removeAttr("data-href")})}});n(window).scroll(function(){if(n("#cookie-notice").is(":visible")==false)return;var e=parseInt(n("#cookie-notice").css("height"));if(n(window).scrollTop()+n(window).height()>n(document).height()-(e+20)){n(document.body).css("padding-bottom",e+"px")}else{n(document.body).css("padding-bottom","inherit")}});var e=n(".sp-dsgvo-iframe-button-create");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();n("<iframe />",{src:"https://www.youtube.com/embed/ApvLgliq_lY?feature=oembed"}).appendTo("#iframeContainer")});var e=n(".sp-dsgvo-iframe-button-unblock");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();unblock(n(this).attr("data-slug"))})})})(jQuery);(function(l){"use strict";var n=null;var o=null;function e(){var e=l(".sp-dsgvo-lang-active"),t=l(".sp-dsgvo-lang-dropdown"),o=l(".sp-dsgvo-popup-language-switcher");e.on("click tap touchstart",function(){t.toggleClass("active")});l(document).on("click tap touchstart ",function(e){if(!o.is(e.target)&&o.has(e.target).length===0){t.removeClass("active")}})}function t(){var e=l("#sp-dsgvo-privacy-content-category-content");if(e.length>0){n=new SimpleBar(l("#sp-dsgvo-privacy-content-category-content")[0],{autoHide:false})}var t=l(".sp-dsgvo-popup-more-information-content");if(t.length>0){o=new SimpleBar(l(".sp-dsgvo-popup-more-information-content")[0],{autoHide:false})}}function a(){var e=l(".dsgvo-terms-toggle");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();var t=l(this),o=l("#terms_content_"+t.attr("data-id"));o.addClass("active");if(n!=null)n.recalculate();l(window).resize()})}function i(){var e=l(".sp-dsgvo-show-privacy-popup");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();g()});e=l(".lwb-ppsp");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();g()});e=l(".sp-dsgvo-navigate-privacy-policy");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();window.location=spDsgvoGeneralConfig.privacyPolicyPageUrl});e=l(".sp-dsgvo-direct-enable-popup");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();var t=l(this).data("slug");if(t==null||t=="")return;I(t)})}function r(){l(".sp-dsgvo-popup-overlay").on("click tap touchstart",function(e){var t=l(e.target);if(t.is(".sp-dsgvo-privacy-popup")||t.parents().is(".sp-dsgvo-privacy-popup")){return}else{if(O()==false){k("dismissAll");u(true)}else{u(false)}}})}function s(){var e=l(".sp-dsgvo-popup-close");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();if(O()==false){k("dismissAll");u(true)}else{u(false)}});var t=l(".sp-dsgvo-privacy-btn-accept-nothing");t.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();k("dismissAll");u(false)});var o=l(".sp-dsgvo-privacy-btn-accept-selection");o.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();k("acceptSelected");u(false)});var n=l(".sp-dsgvo-privacy-btn-accept-all");n.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();k("acceptAll");u(false)})}function c(){l(".sp-dsgvo-switch-integration").not(":disabled").prop("checked",false);l(".sp-dsgvo-switch-integration").change(function(){p()});var e=P();e.forEach(function(e){l("#sp-dsgvo-switch-integration-"+e).prop("checked",true)})}function p(){var e=P();var o=l(".sp-dsgvo-switch-integration:checked").map(function(){return l(this).data("slug")}).get();var t=e.length===o.length&&e.every(function(e,t){return e===o[t]});if(t==false){l(".sp-dsgvo-privacy-btn-accept-selection").addClass("green");l(".sp-dsgvo-privacy-btn-accept-selection").removeClass("grey")}else{l(".sp-dsgvo-privacy-btn-accept-selection").removeClass("green");l(".sp-dsgvo-privacy-btn-accept-selection").addClass("grey")}}function u(e){var t=l(".sp-dsgvo-popup-overlay");if(t.length>0){t.fadeOut();t.addClass("sp-dsgvo-overlay-hidden");if(spDsgvoGeneralConfig.showNoticeOnClose==1&&e){d()}}}function g(){c();var e=l(".sp-dsgvo-popup-overlay");if(e.length>0){f();e.fadeIn();e.removeClass("sp-dsgvo-overlay-hidden")}}function d(){var e=l("#cookie-notice");if(spDsgvoGeneralConfig.noticeHideEffect==="fade"){e.fadeIn()}else if(spDsgvoGeneralConfig.noticeHideEffect==="slide"){e.slideDown()}else{e.css("display","flex")}l("body").addClass("cookies-not-accepted")}function f(){var e=l("#cookie-notice");if(e.is(":visible")==false)return;if(spDsgvoGeneralConfig.noticeHideEffect==="fade"){e.fadeOut(function(){l("#cookie-notice").hide();l("#cookie-notice-blocker").hide();l("body").removeClass("cookies-not-accepted")})}else if(spDsgvoGeneralConfig.noticeHideEffect==="slide"){e.slideUp(function(){l("#cookie-notice").hide();l("#cookie-notice-blocker").hide();l("body").removeClass("cookies-not-accepted")})}else{l("#cookie-notice").hide();l("#cookie-notice-blocker").hide();l("body").removeClass("cookies-not-accepted")}}function v(){if(spDsgvoIntegrationConfig==null)return;if(U(spDsgvoIntegrationConfig).length==0&&spDsgvoGeneralConfig.forceCookieInfo==0)return;if(spDsgvoGeneralConfig.currentPageId==spDsgvoGeneralConfig.privacyPolicyPageId||spDsgvoGeneralConfig.currentPageId==spDsgvoGeneralConfig.imprintPageId){return}if(O()==false){if(spDsgvoGeneralConfig.initialDisplayType=="cookie_notice"){d()}else if(spDsgvoGeneralConfig.initialDisplayType=="policy_popup"){g()}}}function h(t,e,o){l("#sp-dsgvo-popup-more-information-title").html(t);l("#sp-dsgvo-popup-more-information-progress").show();l(".sp-dsgvo-privacy-popup-title-general").hide();l("#sp-dsgvo-privacy-content-category-content").hide();l("#sp-dsgvo-privacy-footer").hide();l(".sp-dsgvo-header-description-text").hide();l("#sp-dsgvo-more-information-switch-cb").attr("data-slug",e);l("#sp-dsgvo-more-information-switch-cb").prop("checked",l("#sp-dsgvo-switch-integration-"+e).prop("checked"));l("#sp-dsgvo-more-information-switch-cb").prop("disabled",l("#sp-dsgvo-switch-integration-"+e).prop("disabled"));l(".sp-dsgvo-privacy-popup-title-details").show();l("#sp-dsgvo-popup-more-information").show();var n=N(e);l.get(spDsgvoGeneralConfig.wpJsonUrl+"lwTextEndpoint",{slug:e,textId:"popup",locale:o,includeTagManager:n.usedTagmanager},function(e){l("#sp-dsgvo-popup-more-information-title").html(t);l("#sp-dsgvo-popup-more-information-content").html(e);l("#sp-dsgvo-popup-more-information-progress").hide();l(".sp-dsgvo-privacy-popup-title-details").show();l("#sp-dsgvo-popup-more-information").show()}).fail(function(){m()})}function m(){l("#sp-dsgvo-popup-more-information").hide();l(".sp-dsgvo-privacy-popup-title-details").hide();l("#sp-dsgvo-popup-more-information-progress").hide();l("#sp-dsgvo-popup-more-information-content").html("");l("#sp-dsgvo-more-information-switch-cb").attr("data-slug","");l("#sp-dsgvo-more-information-switch-cb").prop("checked",false);l(".sp-dsgvo-privacy-popup-title-general").show();l(".sp-dsgvo-header-description-text").show();l("#sp-dsgvo-privacy-content-category-content").show();l("#sp-dsgvo-privacy-footer").show()}function y(){var e=l(".sp-dsgvo-more-information-link");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();var t=l(this);var o=t.attr("data-title");var n=t.attr("data-slug");h(o,n,spDsgvoGeneralConfig.locale)});var t=l(".sp-dsgvo-popup-more-information-close");t.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();m()});l("#sp-dsgvo-more-information-switch-cb").change(function(){var e=l(this);var t=e.attr("data-slug");if(t=="")return;if(l(this).prop("disabled"))return;l("#sp-dsgvo-switch-integration-"+t).prop("checked",e.prop("checked"));p()})}function C(){l('input[name="sp-dsgvo-switch-category"]').change(function(){var e=l(this);var t=e.attr("data-slug");l('input[data-category="'+t+'"]').each(function(){if(l(this).prop("disabled"))return;var e=l(this).attr("data-category");l(this).prop("checked",l("#sp-dsgvo-switch-category-"+e).prop("checked"))});p()})}function b(){l("#cn-btn-settings").on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();f();g()})}function k(e){if(e==null||e=="")return;var t=spDsgvoGeneralConfig.allIntegrationSlugs;var o=l(".sp-dsgvo-switch-integration:checkbox:checked");var n=[];switch(e){case"acceptAll":n=t;break;case"acceptSelected":l(".sp-dsgvo-switch-integration:checkbox:checked").each(function(){n.push(l(this).data("slug"))});break;case"dismissAll":n=[];break}var a=P();var i=0;var r=0;n.forEach(function(e){var t=N(e);if(t==null)return;if(t.usedTagmanager=="google-analytics"){i++}if(t.usedTagmanager=="matomo-analytics"){r++}});if(i>0)n.push("google-tagmanager");if(r>0)n.push("matomo-tagmanager");w(n);T();A(a)}function w(e){var t=0;if(e!=null&&e.length>0){t=spDsgvoGeneralConfig.cookieLifeTime}else{t=spDsgvoGeneralConfig.cookieLifeTimeDismiss}var o={};o.version=spDsgvoGeneralConfig.cookieVersion;o.lifeTime=t;o.integrations=e;o.lastChangeOn=(new Date).getTime();var n=location.protocol!=="https:"?"":";Secure;";var a=encodeURIComponent(JSON.stringify(o));var i=new Date;i.setTime(i.getTime()+parseInt(t)*1e3);var r="expires="+i.toUTCString();document.cookie=spDsgvoGeneralConfig.cookieName+"="+a+";"+r+";path=/"+n}function D(){return window.google_tag_manager!=null}function E(){return window._mtm!=null}function T(){var e=P();var o=0;var n=0;e.forEach(function(e){var t=N(e);if(t==null)return;if(t.usedTagmanager=="google-tagmanager"){o++}if(t.usedTagmanager=="matomo-tagmanager"){n++}});if(o>0&&D()==false){var t=N("google-tagmanager");if(t==null)return;try{l("head").append(atob(t.jsCode))}catch(e){console.log("could not activate "+t.slug)}}if(n>0&&E()==false){var t=N("matomo-tagmanager");if(t==null)return;try{l("head").append(atob(t.jsCode))}catch(e){console.log("could not activate "+t.slug)}}e.forEach(function(e){if(e=="google-tagmanager")return;if(e=="matomo-tagmanager")return;var t=N(e);if(t==null)return;switch(t.category){case CATEGORY_SLUG_STATISTICS:G(t);break;case CATEGORY_SLUG_TARGETING:G(t);break;case CATEGORY_SLUG_CHATBOTS:G(t);break;case CATEGORY_SLUG_EMBEDDINGS:S(t);break}var o=new CustomEvent("lw-optinout",{detail:{integrationId:t.slug,integrationCategory:t.category,integrationCode:t.jsCode,mode:"optin",time:new Date},bubbles:true,cancelable:false});document.querySelector(".sp-dsgvo-privacy-popup").dispatchEvent(o)})}function G(t){if(t.insertLocation=="head"){var e=l("head").html().indexOf("sp-dsgvo-script-container-"+t.slug);var o=l("head").html().lastIndexOf("sp-dsgvo-script-container-"+t.slug);if(e==o){try{l("head").append(atob(t.jsCode))}catch(e){console.log("could not activate "+t.slug)}}}else{var n=l(".sp-dsgvo-script-container-"+t.slug);var a=n.length;if(a==false){n=l("<div/>",{class:"sp-dsgvo-script-container sp-dsgvo-script-container-"+t.slug}).appendTo(t.insertLocation);a=true}var i=l.trim(n.html())=="";if(a&&i){try{n.append(atob(t.jsCode))}catch(e){console.log("could not activate "+t.slug)}}}}function S(p){var e=l(".sp-dsgvo-embedding-"+p.slug);e.each(function(){var e=l(this);var t=e.find(".sp-dsgvo-hidden-embedding-content");if(t==null||t.html()==null||t.html()=="")return;try{var o=atob(t.html());var n=document.createElement("textarea");n.innerHTML=o;var a=l.parseHTML(n.value);e.empty();e.append(a);var i=(new DOMParser).parseFromString(o,"text/html");var r=i.getElementsByTagName("script");if(r.length>0){for(var s=0;s<r.length;s++){var c=document.createElement("script");c.innerHTML=r[s].innerHTML;c.async=r[s].async;if(r[s].src!=null&&r[s].src!="")c.src=r[s].src;if(r[s].type!=null&&r[s].type!="")c.type=r[s].type;this.appendChild(c)}}}catch(e){console.log("could not enable embedding: "+p.slug)}})}function I(e){var t=P();var o=N(e);if(o==null)return;S(o);t.push(e);w(t);var n=new CustomEvent("lw-optinout",{detail:{integrationId:o.slug,integrationCategory:o.category,integrationCode:o.jsCode,mode:"optin",time:new Date},bubbles:true,cancelable:false});document.querySelector(".sp-dsgvo-privacy-popup").dispatchEvent(n)}function A(a){var i=0;var r=P();if(r.length==0&&a.length==0)return;if(r==null||r==""||r==""||Array.isArray(r)==false){l(".sp-dsgvo-script-container").each(function(){l(this).empty()});spDsgvoIntegrationConfig.forEach(function(e){var t=e.cookieNames;if(t!=null||t!=""){var o=t.split(";");if(o!=null&&o.length>0){o.forEach(function(e){R(e)})}}if(a.includes(e.slug)){var n=new CustomEvent("lw-optinout",{detail:{integrationId:e.slug,integrationCategory:e.category,integrationCode:e.jsCode,mode:"optout",time:new Date},bubbles:true,cancelable:false});document.querySelector(".sp-dsgvo-privacy-popup").dispatchEvent(n)}});location.reload();return}spDsgvoIntegrationConfig.forEach(function(e){if(r.includes(e.slug)==false){if(a.includes(e.slug))i++;var t=new CustomEvent("lw-optinout",{detail:{integrationId:e.slug,integrationCategory:e.category,integrationCode:e.jsCode,mode:"optout",time:new Date},bubbles:true,cancelable:false});document.querySelector(".sp-dsgvo-privacy-popup").dispatchEvent(t);var o=e.cookieNames;if(o!=null||o!=""){var n=o.split(";");if(n!=null&&n.length>0){n.forEach(function(e){R(e)})}}}});if(i>0){location.reload()}}function _(e){var t=e+"=";var o=decodeURIComponent(document.cookie);var n=o.split(";");for(var a=0;a<n.length;a++){var i=n[a];while(i.charAt(0)==" "){i=i.substring(1)}if(i.indexOf(t)==0){return i.substring(t.length,i.length)}}return""}function L(e){if(e==null||e=="")return false;var t={};try{t=JSON.parse(decodeURIComponent(e))}catch(e){return false}if(t.version<spDsgvoGeneralConfig.cookieVersion){return false}return true}function O(){var e=_(spDsgvoGeneralConfig.cookieName);return L(e)}function P(){var t=[];var e=_(spDsgvoGeneralConfig.cookieName);if(e!=""){try{var o=JSON.parse(decodeURIComponent(e));t=o.integrations}catch(e){t=[]}}return t}function R(e){if(e=="")return;var t=new RegExp("^"+e,"g");if(t.test(document.cookie)==false)return;var o=document.cookie.split(/=[^;]*(?:;\s*|$)/);for(var n=0;n<o.length;n++){if(t.test(o[n])){document.cookie=o[n]+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT;"}}}function N(t){var o=null;spDsgvoIntegrationConfig.forEach(function(e){if(e.slug==t){o=e;return}});return o}function U(e){var t=[];e.forEach(function(e){if(e.category!=CATEGORY_SLUG_MANDATORY){t.push(e)}});return t}function x(t){var o=false;var e=P();e.forEach(function(e){if(e==t){o=true;return}});return o}l(document).ready(function(){T();e();y();a();s();C();c();t();b();i();r();v()});const Y="iframe/blocked";const H={blacklisted:[]};function M(e,t){var o=j(e.toLowerCase());if(o==null)return false;var n=x(o.slug)==false;return n}function j(n){if(spDsgvoIntegrationConfig==null)return null;var a=null;var i=false;spDsgvoIntegrationConfig.forEach(function(e){if(i)return;var t=e.hosts;if(t!=null&&t!=""){var o=t.split(";");if(o!=null&&o.length>0){o.forEach(function(e){if(n.indexOf(e.toLowerCase())>=0){i=true;return}});if(i){a=e;return}}}});return a}const B={characterData:true,characterDataOldValue:true,childList:true,subtree:true};function q(t){for(let e=0;e<t.length;e++){const i=t[e].addedNodes;for(let e=0;e<i.length;e++){const r=i[e];if(r.nodeType===1&&r.tagName==="IFRAME"){const s=r.src;const c=r.type;if(M(s,c)){H.blacklisted.push(r.cloneNode());r.type=Y;var o=J(r);const p=function(e){if(r.getAttribute("type")===Y)e.preventDefault();r.removeEventListener("beforescriptexecute",p)};r.addEventListener("beforescriptexecute",p);var n=r.parentElement;r.parentElement&&r.parentElement.removeChild(r);var a=document.createElement("div");a.innerHTML=o;n.appendChild(a);F()}}}}}function J(e){var t=V(e);var o=j(e.src);var n=btoa(t);var a=o.placeholder;a=a.replace("{encodedContent}",n);return a}function V(e){var t=document.createElement("div");t.appendChild(e.cloneNode(true));return t.innerHTML}function F(){l(".sp-dsgvo-direct-enable-popup").on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();var t=l(this).data("slug");if(t==null||t=="")return;I(t)})}const Q=new MutationObserver(q);var z=document.documentElement||document.body;if(spDsgvoGeneralConfig.clientSideBlocking=="1"){Q.observe(z,B)}})(jQuery);
public/shortcodes/privacy-policy.php CHANGED
@@ -55,10 +55,20 @@ function SPDSGVOPrivacyPolicyShortcode($atts){
55
  $responsibleText .= SPDSGVOSettings::get('spdsgvo_company_info_street').", ";
56
  $responsibleText .= SPDSGVOSettings::get('spdsgvo_company_info_zip') . " ";
57
  $responsibleText .= SPDSGVOSettings::get('spdsgvo_company_info_loc') .", ";
58
- $responsibleText .= SPDSGVOSettings::get('spdsgvo_company_info_countrycode') .", ";
 
 
 
 
 
 
59
  if (empty(SPDSGVOSettings::get('spdsgvo_company_info_email')) == false)
60
  $responsibleText .= '<a href="mailto:' . SPDSGVOSettings::get('spdsgvo_company_info_email').'">'.SPDSGVOSettings::get("spdsgvo_company_info_email").'</a>' .", ";
61
  if (empty(SPDSGVOSettings::get('spdsgvo_company_info_phone')) == false) $responsibleText .= SPDSGVOSettings::get('spdsgvo_company_info_phone');
 
 
 
 
62
  $privacyPolicy[] = SPDSGVOGetFormatedHtmlTextArray('p', $responsibleText);
63
  // </editor-fold>
64
 
55
  $responsibleText .= SPDSGVOSettings::get('spdsgvo_company_info_street').", ";
56
  $responsibleText .= SPDSGVOSettings::get('spdsgvo_company_info_zip') . " ";
57
  $responsibleText .= SPDSGVOSettings::get('spdsgvo_company_info_loc') .", ";
58
+
59
+ $countryCodeTemp = SPDSGVOSettings::get('spdsgvo_company_info_countrycode');
60
+ if ($countryCodeTemp == "AT") $countryCodeTemp = "Österreich";
61
+ if ($countryCodeTemp == "DE") $countryCodeTemp = "Deutschland";
62
+ if ($countryCodeTemp == "CH") $countryCodeTemp = "Schweiz";
63
+ if ($countryCodeTemp == "IT") $countryCodeTemp = "Italien";
64
+ $responsibleText .= $countryCodeTemp .", ";
65
  if (empty(SPDSGVOSettings::get('spdsgvo_company_info_email')) == false)
66
  $responsibleText .= '<a href="mailto:' . SPDSGVOSettings::get('spdsgvo_company_info_email').'">'.SPDSGVOSettings::get("spdsgvo_company_info_email").'</a>' .", ";
67
  if (empty(SPDSGVOSettings::get('spdsgvo_company_info_phone')) == false) $responsibleText .= SPDSGVOSettings::get('spdsgvo_company_info_phone');
68
+
69
+ $responsibleTextSeparator = apply_filters('spdsgvo_change_responsibleText_separator', ', ');
70
+ if (empty($responsibleTextSepartor) !== false) $responsibleText = str_replace( ", ", $responsibleTextSeparator,$responsibleText);
71
+
72
  $privacyPolicy[] = SPDSGVOGetFormatedHtmlTextArray('p', $responsibleText);
73
  // </editor-fold>
74
 
sp-dsgvo.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WP DSGVO Tools (GDPR)
17
  * Plugin URI: https://legalweb.io
18
  * Description: WP DSGVO Tools (GDPR) help you to fulfill the GDPR (DGSVO) compliance guidance (<a target="_blank" href="https://ico.org.uk/for-organisations/data-protection-reform/overview-of-the-gdpr/">GDPR</a>)
19
- * Version: 3.1.28
20
  * Author: legalweb
21
  * Author URI: https://www.legalweb.io
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
@@ -28,7 +28,7 @@ if (! defined('WPINC')) {
28
  die();
29
  }
30
 
31
- define('sp_dsgvo_VERSION', '3.1.28');
32
  define('sp_dsgvo_NAME', 'sp-dsgvo');
33
  define('sp_dsgvo_PLUGIN_NAME', 'shapepress-dsgvo');
34
  define('sp_dsgvo_LEGAL_TEXTS_MIN_VERSION', '1579021814');
16
  * Plugin Name: WP DSGVO Tools (GDPR)
17
  * Plugin URI: https://legalweb.io
18
  * Description: WP DSGVO Tools (GDPR) help you to fulfill the GDPR (DGSVO) compliance guidance (<a target="_blank" href="https://ico.org.uk/for-organisations/data-protection-reform/overview-of-the-gdpr/">GDPR</a>)
19
+ * Version: 3.1.29
20
  * Author: legalweb
21
  * Author URI: https://www.legalweb.io
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
28
  die();
29
  }
30
 
31
+ define('sp_dsgvo_VERSION', '3.1.29');
32
  define('sp_dsgvo_NAME', 'sp-dsgvo');
33
  define('sp_dsgvo_PLUGIN_NAME', 'shapepress-dsgvo');
34
  define('sp_dsgvo_LEGAL_TEXTS_MIN_VERSION', '1579021814');
wpml-config.xml CHANGED
@@ -15,6 +15,8 @@
15
  <key name="sp_dsgvo_cookie_notice_text"/>
16
  <key name="sp_dsgvo_woo_privacy_text"/>
17
  <key name="sp_dsgvo_imprint"/>
 
 
18
  <key name="sp_dsgvo_privacy_policy_custom_header"/>
19
  <key name="sp_dsgvo_integration_ga">
20
  <key name="propertyId"></key>
15
  <key name="sp_dsgvo_cookie_notice_text"/>
16
  <key name="sp_dsgvo_woo_privacy_text"/>
17
  <key name="sp_dsgvo_imprint"/>
18
+ <key name="sp_dsgvo_imprint_page"/>
19
+ <key name="sp_dsgvo_privacy_policy_page"/>
20
  <key name="sp_dsgvo_privacy_policy_custom_header"/>
21
  <key name="sp_dsgvo_integration_ga">
22
  <key name="propertyId"></key>