Version Description
- improved script injection
- removed Google Fonts
Download this release
Release Info
Developer | legalweb |
Plugin | WP DSGVO Tools |
Version | 3.1.30 |
Comparing to | |
See all releases |
Code changes from version 3.1.29 to 3.1.30
- README.txt +7 -3
- admin/tabs/v3/page-basics/page.php +3 -0
- includes/class-sp-dsgvo-constants.php +1 -1
- public/js/sp-dsgvo-public.js +46 -7
- public/js/sp-dsgvo-public.min.js +1 -1
- sp-dsgvo.php +2 -2
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:
|
7 |
-
Stable tag: 3.1.
|
8 |
Requires PHP: 5.6.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -96,7 +96,7 @@ freely configurable provider
|
|
96 |
* (with <a target="_blank" href="https://wordpress.org/plugins/legalweb-cloud/">LegalWeb Cloud</a> plugin: freely configurable payment services)
|
97 |
|
98 |
#### **Font services**
|
99 |
-
*
|
100 |
* ( <a target="_blank" href="https://wordpress.org/plugins/legalweb-cloud/">LegalWeb Cloud</a> plugin: freely configurable font services)
|
101 |
|
102 |
#### **Forms**
|
@@ -202,6 +202,10 @@ Just install via WordPress plugin feature or upload zip and activate it.
|
|
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
|
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.9.0
|
7 |
+
Stable tag: 3.1.30
|
8 |
Requires PHP: 5.6.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
96 |
* (with <a target="_blank" href="https://wordpress.org/plugins/legalweb-cloud/">LegalWeb Cloud</a> plugin: freely configurable payment services)
|
97 |
|
98 |
#### **Font services**
|
99 |
+
* Adobe Fonts, Font Awesome, Fonts.com
|
100 |
* ( <a target="_blank" href="https://wordpress.org/plugins/legalweb-cloud/">LegalWeb Cloud</a> plugin: freely configurable font services)
|
101 |
|
102 |
#### **Forms**
|
202 |
12. Settings for page operator which are used for privacy policy and imprint
|
203 |
|
204 |
== Changelog ==
|
205 |
+
= 3.1.30 =
|
206 |
+
* improved script injection
|
207 |
+
* removed Google Fonts
|
208 |
+
|
209 |
= 3.1.29 =
|
210 |
* changed company names of Facebook
|
211 |
* added imprint url and privacy policy url to wpml-config.xml to support translationing of these urls
|
admin/tabs/v3/page-basics/page.php
CHANGED
@@ -220,6 +220,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
220 |
}
|
221 |
?>
|
222 |
</div>
|
|
|
223 |
<div id="container-block-google-fonts" class="<?php echo esc_attr(in_array('google-fonts', $selectedFontProvider) ? 'spdsgvo-d-block' : 'spdsgvo-d-none') ?>" style="display: none !important;">
|
224 |
<?php
|
225 |
spDsgvoWriteInput('switch', ''.$key, 'page_basics_block_google_fonts', SPDSGVOSettings::get('page_basics_use_google_fonts'),
|
@@ -228,6 +229,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
228 |
__('Block Google Fonts until the visitor opted-in.', 'shapepress-dsgvo'));
|
229 |
?>
|
230 |
</div>
|
|
|
231 |
<div class="form-group">
|
232 |
<input type="submit" class="btn btn-primary btn-block" value="<?php esc_attr_e('Save changes', 'shapepress-dsgvo');?>">
|
233 |
</div>
|
@@ -235,6 +237,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
235 |
</div>
|
236 |
</div>
|
237 |
|
|
|
238 |
<!-- forms -->
|
239 |
<div class="card">
|
240 |
<div class="card-header">
|
220 |
}
|
221 |
?>
|
222 |
</div>
|
223 |
+
<!--
|
224 |
<div id="container-block-google-fonts" class="<?php echo esc_attr(in_array('google-fonts', $selectedFontProvider) ? 'spdsgvo-d-block' : 'spdsgvo-d-none') ?>" style="display: none !important;">
|
225 |
<?php
|
226 |
spDsgvoWriteInput('switch', ''.$key, 'page_basics_block_google_fonts', SPDSGVOSettings::get('page_basics_use_google_fonts'),
|
229 |
__('Block Google Fonts until the visitor opted-in.', 'shapepress-dsgvo'));
|
230 |
?>
|
231 |
</div>
|
232 |
+
-->
|
233 |
<div class="form-group">
|
234 |
<input type="submit" class="btn btn-primary btn-block" value="<?php esc_attr_e('Save changes', 'shapepress-dsgvo');?>">
|
235 |
</div>
|
237 |
</div>
|
238 |
</div>
|
239 |
|
240 |
+
|
241 |
<!-- forms -->
|
242 |
<div class="card">
|
243 |
<div class="card-header">
|
includes/class-sp-dsgvo-constants.php
CHANGED
@@ -95,7 +95,7 @@ class SPDSGVOConstants
|
|
95 |
|
96 |
public static function getFontServices()
|
97 |
{
|
98 |
-
return array('google-fonts' => 'Google Fonts',
|
99 |
'adobe-fonts' => 'Adobe Fonts',
|
100 |
'fontawesome' => 'Font Awesome',
|
101 |
'fonts-com' => 'Fonts.com');
|
95 |
|
96 |
public static function getFontServices()
|
97 |
{
|
98 |
+
return array(//'google-fonts' => 'Google Fonts',
|
99 |
'adobe-fonts' => 'Adobe Fonts',
|
100 |
'fontawesome' => 'Font Awesome',
|
101 |
'fonts-com' => 'Fonts.com');
|
public/js/sp-dsgvo-public.js
CHANGED
@@ -745,26 +745,53 @@ const CATEGORY_SLUG_MANDATORY = 'necessary';
|
|
745 |
var htmlContentOnly = $.parseHTML(txt.value);
|
746 |
|
747 |
slugContainer.empty();
|
748 |
-
slugContainer.append((htmlContentOnly));
|
749 |
|
750 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
751 |
var scripts = parsedDocument.getElementsByTagName('script');
|
752 |
|
753 |
if (scripts.length > 0) {
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
// iterate over all script tags and create a duplicate tags for each
|
758 |
|
759 |
for (var i = 0; i < scripts.length; i++) {
|
760 |
var s = document.createElement('script');
|
761 |
s.innerHTML = scripts[i].innerHTML;
|
762 |
-
s.async = scripts[i].async;
|
|
|
|
|
763 |
if (scripts[i].src != null && scripts[i].src != '') s.src = scripts[i].src;
|
764 |
if (scripts[i].type != null && scripts[i].type != '') s.type = scripts[i].type;
|
765 |
// add the new node to the page
|
766 |
-
|
|
|
767 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
768 |
}
|
769 |
}
|
770 |
catch (e) {
|
@@ -777,6 +804,18 @@ const CATEGORY_SLUG_MANDATORY = 'necessary';
|
|
777 |
|
778 |
}
|
779 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
780 |
function enableEmbeddingByPlaceholderClick(embeddingSlug)
|
781 |
{
|
782 |
var currentConfig = getEnabledIntegrationsFromCookie();
|
745 |
var htmlContentOnly = $.parseHTML(txt.value);
|
746 |
|
747 |
slugContainer.empty();
|
|
|
748 |
|
749 |
+
if (Array.isArray(htmlContentOnly)) {
|
750 |
+
htmlContentOnly.forEach(element => {
|
751 |
+
if (element.nodeType === 1) {
|
752 |
+
slugContainer.append(element);
|
753 |
+
}
|
754 |
+
});
|
755 |
+
} else {
|
756 |
+
slugContainer.append(htmlContentOnly);
|
757 |
+
}
|
758 |
+
|
759 |
+
var parsedDocument = new DOMParser().parseFromString(txt.value, "text/html");
|
760 |
var scripts = parsedDocument.getElementsByTagName('script');
|
761 |
|
762 |
if (scripts.length > 0) {
|
763 |
+
var scriptsWithSrcTag = [];
|
764 |
+
var scriptsWithoutSrcTag = [];
|
|
|
765 |
// iterate over all script tags and create a duplicate tags for each
|
766 |
|
767 |
for (var i = 0; i < scripts.length; i++) {
|
768 |
var s = document.createElement('script');
|
769 |
s.innerHTML = scripts[i].innerHTML;
|
770 |
+
s.async = false;//scripts[i].async;
|
771 |
+
s.defer = false;
|
772 |
+
s.setAttribute("defer", "");
|
773 |
if (scripts[i].src != null && scripts[i].src != '') s.src = scripts[i].src;
|
774 |
if (scripts[i].type != null && scripts[i].type != '') s.type = scripts[i].type;
|
775 |
// add the new node to the page
|
776 |
+
if (scripts[i].src != null && scripts[i].src != '') scriptsWithSrcTag.push(s); else scriptsWithoutSrcTag.push(s);
|
777 |
+
//this.appendChild(s);
|
778 |
}
|
779 |
+
|
780 |
+
// save all Promises as array
|
781 |
+
let promises = [];
|
782 |
+
scriptsWithSrcTag.forEach(function(script) {
|
783 |
+
promises.push(loadScriptFromUrl(script));
|
784 |
+
});
|
785 |
+
|
786 |
+
Promise.all(promises)
|
787 |
+
.then(function() {
|
788 |
+
for (var i = 0; i < scriptsWithoutSrcTag.length; i++) {
|
789 |
+
document.body.appendChild(scriptsWithoutSrcTag[i]);
|
790 |
+
}
|
791 |
+
console.log('all scripts loaded');
|
792 |
+
}).catch(function(script) {
|
793 |
+
console.log(script + ' failed to load');
|
794 |
+
});
|
795 |
}
|
796 |
}
|
797 |
catch (e) {
|
804 |
|
805 |
}
|
806 |
|
807 |
+
function loadScriptFromUrl(script) {
|
808 |
+
return new Promise(function(resolve, reject) {
|
809 |
+
script.onload = function() {
|
810 |
+
resolve(script.src);
|
811 |
+
};
|
812 |
+
script.onerror = function() {
|
813 |
+
reject(script.src);
|
814 |
+
};
|
815 |
+
document.body.appendChild(script);
|
816 |
+
});
|
817 |
+
}
|
818 |
+
|
819 |
function enableEmbeddingByPlaceholderClick(embeddingSlug)
|
820 |
{
|
821 |
var currentConfig = getEnabledIntegrationsFromCookie();
|
public/js/sp-dsgvo-public.min.js
CHANGED
@@ -1 +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);
|
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(g){"use strict";var n=null;var o=null;function e(){var e=g(".sp-dsgvo-lang-active"),t=g(".sp-dsgvo-lang-dropdown"),o=g(".sp-dsgvo-popup-language-switcher");e.on("click tap touchstart",function(){t.toggleClass("active")});g(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=g("#sp-dsgvo-privacy-content-category-content");if(e.length>0){n=new SimpleBar(g("#sp-dsgvo-privacy-content-category-content")[0],{autoHide:false})}var t=g(".sp-dsgvo-popup-more-information-content");if(t.length>0){o=new SimpleBar(g(".sp-dsgvo-popup-more-information-content")[0],{autoHide:false})}}function a(){var e=g(".dsgvo-terms-toggle");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();var t=g(this),o=g("#terms_content_"+t.attr("data-id"));o.addClass("active");if(n!=null)n.recalculate();g(window).resize()})}function i(){var e=g(".sp-dsgvo-show-privacy-popup");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();u()});e=g(".lwb-ppsp");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();u()});e=g(".sp-dsgvo-navigate-privacy-policy");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();window.location=spDsgvoGeneralConfig.privacyPolicyPageUrl});e=g(".sp-dsgvo-direct-enable-popup");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();var t=g(this).data("slug");if(t==null||t=="")return;I(t)})}function r(){g(".sp-dsgvo-popup-overlay").on("click tap touchstart",function(e){var t=g(e.target);if(t.is(".sp-dsgvo-privacy-popup")||t.parents().is(".sp-dsgvo-privacy-popup")){return}else{if(P()==false){k("dismissAll");l(true)}else{l(false)}}})}function s(){var e=g(".sp-dsgvo-popup-close");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();if(P()==false){k("dismissAll");l(true)}else{l(false)}});var t=g(".sp-dsgvo-privacy-btn-accept-nothing");t.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();k("dismissAll");l(false)});var o=g(".sp-dsgvo-privacy-btn-accept-selection");o.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();k("acceptSelected");l(false)});var n=g(".sp-dsgvo-privacy-btn-accept-all");n.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();k("acceptAll");l(false)})}function c(){g(".sp-dsgvo-switch-integration").not(":disabled").prop("checked",false);g(".sp-dsgvo-switch-integration").change(function(){p()});var e=R();e.forEach(function(e){g("#sp-dsgvo-switch-integration-"+e).prop("checked",true)})}function p(){var e=R();var o=g(".sp-dsgvo-switch-integration:checked").map(function(){return g(this).data("slug")}).get();var t=e.length===o.length&&e.every(function(e,t){return e===o[t]});if(t==false){g(".sp-dsgvo-privacy-btn-accept-selection").addClass("green");g(".sp-dsgvo-privacy-btn-accept-selection").removeClass("grey")}else{g(".sp-dsgvo-privacy-btn-accept-selection").removeClass("green");g(".sp-dsgvo-privacy-btn-accept-selection").addClass("grey")}}function l(e){var t=g(".sp-dsgvo-popup-overlay");if(t.length>0){t.fadeOut();t.addClass("sp-dsgvo-overlay-hidden");if(spDsgvoGeneralConfig.showNoticeOnClose==1&&e){d()}}}function u(){c();var e=g(".sp-dsgvo-popup-overlay");if(e.length>0){f();e.fadeIn();e.removeClass("sp-dsgvo-overlay-hidden")}}function d(){var e=g("#cookie-notice");if(spDsgvoGeneralConfig.noticeHideEffect==="fade"){e.fadeIn()}else if(spDsgvoGeneralConfig.noticeHideEffect==="slide"){e.slideDown()}else{e.css("display","flex")}g("body").addClass("cookies-not-accepted")}function f(){var e=g("#cookie-notice");if(e.is(":visible")==false)return;if(spDsgvoGeneralConfig.noticeHideEffect==="fade"){e.fadeOut(function(){g("#cookie-notice").hide();g("#cookie-notice-blocker").hide();g("body").removeClass("cookies-not-accepted")})}else if(spDsgvoGeneralConfig.noticeHideEffect==="slide"){e.slideUp(function(){g("#cookie-notice").hide();g("#cookie-notice-blocker").hide();g("body").removeClass("cookies-not-accepted")})}else{g("#cookie-notice").hide();g("#cookie-notice-blocker").hide();g("body").removeClass("cookies-not-accepted")}}function v(){if(spDsgvoIntegrationConfig==null)return;if(x(spDsgvoIntegrationConfig).length==0&&spDsgvoGeneralConfig.forceCookieInfo==0)return;if(spDsgvoGeneralConfig.currentPageId==spDsgvoGeneralConfig.privacyPolicyPageId||spDsgvoGeneralConfig.currentPageId==spDsgvoGeneralConfig.imprintPageId){return}if(P()==false){if(spDsgvoGeneralConfig.initialDisplayType=="cookie_notice"){d()}else if(spDsgvoGeneralConfig.initialDisplayType=="policy_popup"){u()}}}function h(t,e,o){g("#sp-dsgvo-popup-more-information-title").html(t);g("#sp-dsgvo-popup-more-information-progress").show();g(".sp-dsgvo-privacy-popup-title-general").hide();g("#sp-dsgvo-privacy-content-category-content").hide();g("#sp-dsgvo-privacy-footer").hide();g(".sp-dsgvo-header-description-text").hide();g("#sp-dsgvo-more-information-switch-cb").attr("data-slug",e);g("#sp-dsgvo-more-information-switch-cb").prop("checked",g("#sp-dsgvo-switch-integration-"+e).prop("checked"));g("#sp-dsgvo-more-information-switch-cb").prop("disabled",g("#sp-dsgvo-switch-integration-"+e).prop("disabled"));g(".sp-dsgvo-privacy-popup-title-details").show();g("#sp-dsgvo-popup-more-information").show();var n=U(e);g.get(spDsgvoGeneralConfig.wpJsonUrl+"lwTextEndpoint",{slug:e,textId:"popup",locale:o,includeTagManager:n.usedTagmanager},function(e){g("#sp-dsgvo-popup-more-information-title").html(t);g("#sp-dsgvo-popup-more-information-content").html(e);g("#sp-dsgvo-popup-more-information-progress").hide();g(".sp-dsgvo-privacy-popup-title-details").show();g("#sp-dsgvo-popup-more-information").show()}).fail(function(){m()})}function m(){g("#sp-dsgvo-popup-more-information").hide();g(".sp-dsgvo-privacy-popup-title-details").hide();g("#sp-dsgvo-popup-more-information-progress").hide();g("#sp-dsgvo-popup-more-information-content").html("");g("#sp-dsgvo-more-information-switch-cb").attr("data-slug","");g("#sp-dsgvo-more-information-switch-cb").prop("checked",false);g(".sp-dsgvo-privacy-popup-title-general").show();g(".sp-dsgvo-header-description-text").show();g("#sp-dsgvo-privacy-content-category-content").show();g("#sp-dsgvo-privacy-footer").show()}function y(){var e=g(".sp-dsgvo-more-information-link");e.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();var t=g(this);var o=t.attr("data-title");var n=t.attr("data-slug");h(o,n,spDsgvoGeneralConfig.locale)});var t=g(".sp-dsgvo-popup-more-information-close");t.on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();m()});g("#sp-dsgvo-more-information-switch-cb").change(function(){var e=g(this);var t=e.attr("data-slug");if(t=="")return;if(g(this).prop("disabled"))return;g("#sp-dsgvo-switch-integration-"+t).prop("checked",e.prop("checked"));p()})}function C(){g('input[name="sp-dsgvo-switch-category"]').change(function(){var e=g(this);var t=e.attr("data-slug");g('input[data-category="'+t+'"]').each(function(){if(g(this).prop("disabled"))return;var e=g(this).attr("data-category");g(this).prop("checked",g("#sp-dsgvo-switch-category-"+e).prop("checked"))});p()})}function b(){g("#cn-btn-settings").on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();f();u()})}function k(e){if(e==null||e=="")return;var t=spDsgvoGeneralConfig.allIntegrationSlugs;var o=g(".sp-dsgvo-switch-integration:checkbox:checked");var n=[];switch(e){case"acceptAll":n=t;break;case"acceptSelected":g(".sp-dsgvo-switch-integration:checkbox:checked").each(function(){n.push(g(this).data("slug"))});break;case"dismissAll":n=[];break}var a=R();var i=0;var r=0;n.forEach(function(e){var t=U(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)}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=R();var o=0;var n=0;e.forEach(function(e){var t=U(e);if(t==null)return;if(t.usedTagmanager=="google-tagmanager"){o++}if(t.usedTagmanager=="matomo-tagmanager"){n++}});if(o>0&&D()==false){var t=U("google-tagmanager");if(t==null)return;try{g("head").append(atob(t.jsCode))}catch(e){console.log("could not activate "+t.slug)}}if(n>0&&E()==false){var t=U("matomo-tagmanager");if(t==null)return;try{g("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=U(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:A(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=g("head").html().indexOf("sp-dsgvo-script-container-"+t.slug);var o=g("head").html().lastIndexOf("sp-dsgvo-script-container-"+t.slug);if(e==o){try{g("head").append(atob(t.jsCode))}catch(e){console.log("could not activate "+t.slug)}}}else{var n=g(".sp-dsgvo-script-container-"+t.slug);var a=n.length;if(a==false){n=g("<div/>",{class:"sp-dsgvo-script-container sp-dsgvo-script-container-"+t.slug}).appendTo(t.insertLocation);a=true}var i=g.trim(n.html())=="";if(a&&i){try{n.append(atob(t.jsCode))}catch(e){console.log("could not activate "+t.slug)}}}}function A(u){var e=g(".sp-dsgvo-embedding-"+u.slug);e.each(function(){var t=g(this);var e=t.find(".sp-dsgvo-hidden-embedding-content");if(e==null||e.html()==null||e.html()=="")return;try{var o=atob(e.html());var n=document.createElement("textarea");n.innerHTML=o;var a=g.parseHTML(n.value);t.empty();if(Array.isArray(a)){a.forEach(e=>{if(e.nodeType===1){t.append(e)}})}else{t.append(a)}var i=(new DOMParser).parseFromString(n.value,"text/html");var r=i.getElementsByTagName("script");if(r.length>0){var s=[];var c=[];for(var p=0;p<r.length;p++){var l=document.createElement("script");l.innerHTML=r[p].innerHTML;l.async=false;l.defer=false;l.setAttribute("defer","");if(r[p].src!=null&&r[p].src!="")l.src=r[p].src;if(r[p].type!=null&&r[p].type!="")l.type=r[p].type;if(r[p].src!=null&&r[p].src!="")s.push(l);else c.push(l)}let t=[];s.forEach(function(e){t.push(S(e))});Promise.all(t).then(function(){for(var e=0;e<c.length;e++){document.body.appendChild(c[e])}console.log("all scripts loaded")}).catch(function(e){console.log(e+" failed to load")})}}catch(e){console.log("could not enable embedding: "+u.slug)}})}function S(o){return new Promise(function(e,t){o.onload=function(){e(o.src)};o.onerror=function(){t(o.src)};document.body.appendChild(o)})}function I(e){var t=R();var o=U(e);if(o==null)return;A(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){var i=0;var r=R();if(r.length==0&&a.length==0)return;if(r==null||r==""||r==""||Array.isArray(r)==false){g(".sp-dsgvo-script-container").each(function(){g(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){N(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){N(e)})}}}});if(i>0){location.reload()}}function L(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 O(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 P(){var e=L(spDsgvoGeneralConfig.cookieName);return O(e)}function R(){var t=[];var e=L(spDsgvoGeneralConfig.cookieName);if(e!=""){try{var o=JSON.parse(decodeURIComponent(e));t=o.integrations}catch(e){t=[]}}return t}function N(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 U(t){var o=null;spDsgvoIntegrationConfig.forEach(function(e){if(e.slug==t){o=e;return}});return o}function x(e){var t=[];e.forEach(function(e){if(e.category!=CATEGORY_SLUG_MANDATORY){t.push(e)}});return t}function Y(t){var o=false;var e=R();e.forEach(function(e){if(e==t){o=true;return}});return o}g(document).ready(function(){T();e();y();a();s();C();c();t();b();i();r();v()});const H="iframe/blocked";const M={blacklisted:[]};function j(e,t){var o=B(e.toLowerCase());if(o==null)return false;var n=Y(o.slug)==false;return n}function B(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 q={characterData:true,characterDataOldValue:true,childList:true,subtree:true};function J(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(j(s,c)){M.blacklisted.push(r.cloneNode());r.type=H;var o=V(r);const p=function(e){if(r.getAttribute("type")===H)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);Q()}}}}}function V(e){var t=F(e);var o=B(e.src);var n=btoa(t);var a=o.placeholder;a=a.replace("{encodedContent}",n);return a}function F(e){var t=document.createElement("div");t.appendChild(e.cloneNode(true));return t.innerHTML}function Q(){g(".sp-dsgvo-direct-enable-popup").on("click tap touchstart",function(e){e.preventDefault();e.stopPropagation();var t=g(this).data("slug");if(t==null||t=="")return;I(t)})}const z=new MutationObserver(J);var $=document.documentElement||document.body;if(spDsgvoGeneralConfig.clientSideBlocking=="1"){z.observe($,q)}})(jQuery);
|
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.
|
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.
|
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.30
|
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.30');
|
32 |
define('sp_dsgvo_NAME', 'sp-dsgvo');
|
33 |
define('sp_dsgvo_PLUGIN_NAME', 'shapepress-dsgvo');
|
34 |
define('sp_dsgvo_LEGAL_TEXTS_MIN_VERSION', '1579021814');
|