Version Description
- improved sanitation and escaping
Download this release
Release Info
Developer | legalweb |
Plugin | WP DSGVO Tools |
Version | 3.1.24 |
Comparing to | |
See all releases |
Code changes from version 3.1.23 to 3.1.24
- README.txt +6 -3
- admin/base.php +1 -1
- admin/class-sp-dsgvo-admin.php +1 -1
- admin/js/sp-dsgvo-admin.js +12 -0
- admin/tabs/gravity-forms/page.php +2 -2
- admin/tabs/integrations/page.php +1 -1
- admin/tabs/v3/common-settings/page.php +27 -27
- admin/tabs/v3/embeddings/page.php +9 -9
- admin/tabs/v3/operator/page.php +25 -25
- admin/tabs/v3/page-basics/page.php +9 -9
- admin/tabs/v3/popup-notice/page.php +75 -79
- admin/tabs/v3/subject-access-request/page.php +13 -13
- admin/tabs/v3/super-unsubscribe/class-sp-dsgvo-dismiss-unsubscribe-action.php +8 -1
- admin/tabs/v3/super-unsubscribe/page.php +30 -30
- includes/class-sp-dsgvo-ajax-action.php +45 -13
- includes/class-sp-dsgvo-embedding-api-base.php +10 -4
- includes/class-sp-dsgvo-integration-api-base.php +8 -3
- includes/class-sp-dsgvo-integration.php +38 -6
- includes/helpers.php +8 -8
- includes/integrations/embeddings/facebook-feed/page.php +1 -1
- includes/integrations/embeddings/gmaps/page.php +1 -1
- includes/integrations/embeddings/instagram/page.php +1 -1
- includes/integrations/embeddings/openstreetmap/page.php +1 -1
- includes/integrations/embeddings/soundcloud/page.php +1 -1
- includes/integrations/embeddings/twitter/page.php +1 -1
- includes/integrations/embeddings/vimeo/page.php +1 -1
- includes/integrations/embeddings/youtube/page.php +1 -1
- includes/integrations/statistics/clicky/class-sp-dsgvo-clicky-integration.php +1 -1
- includes/integrations/statistics/clicky/page.php +1 -1
- includes/integrations/statistics/etracker/class-sp-dsgvo-etracker-integration.php +1 -1
- includes/integrations/statistics/etracker/page.php +1 -1
- includes/integrations/statistics/googleanalytics/class-sp-dsgvo-google-analytics-integration.php +1 -1
- includes/integrations/statistics/googleanalytics/page.php +1 -1
- includes/integrations/statistics/hotjar/class-sp-dsgvo-hotjar-integration.php +1 -1
- includes/integrations/statistics/hotjar/page.php +1 -1
- includes/integrations/statistics/matomo/class-sp-dsgvo-matomo-integration.php +1 -1
- includes/integrations/statistics/matomo/page.php +1 -1
- includes/integrations/statistics/mautic/class-sp-dsgvo-mautic-integration.php +1 -1
- includes/integrations/statistics/mautic/page.php +1 -1
- includes/integrations/statistics/piwik/class-sp-dsgvo-piwik-integration.php +1 -1
- includes/integrations/statistics/piwik/page.php +1 -1
- includes/integrations/statistics/wpstatistics/page.php +1 -1
- includes/integrations/tagmanager/googletagmanager/class-sp-dsgvo-google-tagmanager-integration.php +1 -1
- includes/integrations/tagmanager/googletagmanager/page.php +3 -3
- includes/integrations/tagmanager/matomotagmanager/class-sp-dsgvo-matomo-tagmanager-integration.php +1 -1
- includes/integrations/tagmanager/matomotagmanager/page.php +1 -1
- includes/integrations/targeting/bingadsuet/class-sp-dsgvo-bing-ads-uet-integration.php +1 -1
- includes/integrations/targeting/bingadsuet/page.php +1 -1
- includes/integrations/targeting/criteo/class-sp-dsgvo-criteo-integration.php +1 -1
- includes/integrations/targeting/criteo/page.php +1 -1
- includes/integrations/targeting/fbpixel/class-sp-dsgvo-fb-pixel-integration.php +1 -1
- includes/integrations/targeting/fbpixel/page.php +1 -1
- includes/integrations/targeting/gadsense/class-sp-dsgvo-gadsense-integration.php +1 -1
- includes/integrations/targeting/gadsense/page.php +1 -1
- includes/integrations/targeting/linkedinpixel/class-sp-dsgvo-linkedin-pixel-integration.php +1 -1
- includes/integrations/targeting/linkedinpixel/page.php +1 -1
- public/actions/notice-action.php +4 -2
- public/class-sp-dsgvo-public.php +29 -98
- public/shortcodes/subject-access-request/subject-access-request-action.php +1 -1
- public/shortcodes/subject-access-request/subject-access-request.php +2 -2
- public/shortcodes/super-unsubscribe/unsubscribe-form.php +3 -3
- sp-dsgvo.php +2 -2
- templates/de_DE/emails/subject-access-request.php +2 -2
- templates/de_DE/emails/super-unsubscribe.php +3 -3
- templates/de_DE_formal/emails/subject-access-request.php +2 -2
- templates/de_DE_formal/emails/super-unsubscribe.php +2 -2
- templates/en_EN/emails/subject-access-request.php +3 -3
- templates/en_EN/emails/super-unsubscribe.php +3 -3
- templates/en_GB/emails/subject-access-request.php +2 -2
- templates/en_GB/emails/super-unsubscribe.php +2 -2
- templates/en_US/emails/subject-access-request.php +2 -2
- templates/en_US/emails/super-unsubscribe.php +3 -3
README.txt
CHANGED
@@ -4,7 +4,7 @@ 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.
|
8 |
Requires PHP: 5.6.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -203,13 +203,16 @@ Just install via WordPress plugin feature or upload zip and activate it.
|
|
203 |
|
204 |
|
205 |
== Changelog ==
|
206 |
-
= 3.1.
|
207 |
* improved sanitation and escaping
|
|
|
|
|
208 |
* updated 3rd party libraries
|
209 |
* removed short tags
|
|
|
210 |
|
211 |
= 3.1.22 =
|
212 |
-
*
|
213 |
|
214 |
= 3.1.21 =
|
215 |
* added mautic
|
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.24
|
8 |
Requires PHP: 5.6.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
203 |
|
204 |
|
205 |
== Changelog ==
|
206 |
+
= 3.1.24 =
|
207 |
* improved sanitation and escaping
|
208 |
+
|
209 |
+
= 3.1.23 =
|
210 |
* updated 3rd party libraries
|
211 |
* removed short tags
|
212 |
+
* fixed xss vulnerability
|
213 |
|
214 |
= 3.1.22 =
|
215 |
+
* improved sanitation and escaping
|
216 |
|
217 |
= 3.1.21 =
|
218 |
* added mautic
|
admin/base.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
<nav aria-label="breadcrumb">
|
21 |
<ol class="breadcrumb">
|
22 |
<li class="breadcrumb-item"><a href="#"><?php _e('WP DSGVO Tools (GDPR)', 'shapepress-dsgvo'); ?></a></li>
|
23 |
-
<li class="breadcrumb-item active" aria-current="page"><?php
|
24 |
</ol>
|
25 |
</nav>
|
26 |
<div class="row">
|
20 |
<nav aria-label="breadcrumb">
|
21 |
<ol class="breadcrumb">
|
22 |
<li class="breadcrumb-item"><a href="#"><?php _e('WP DSGVO Tools (GDPR)', 'shapepress-dsgvo'); ?></a></li>
|
23 |
+
<li class="breadcrumb-item active" aria-current="page"><?php esc_html_e($tabs[$tab]->getTabTitle(),'shapepress-dsgvo');;?></li>
|
24 |
</ol>
|
25 |
</nav>
|
26 |
<div class="row">
|
admin/class-sp-dsgvo-admin.php
CHANGED
@@ -320,7 +320,7 @@ class SPDSGVOAdmin{
|
|
320 |
$output = '<div class="sp-dsgvo_plugin_upgrade_notice"><div class="header">'. __('Important Upgrade Notice:','shapepress-dsgvo') .'</div> ';
|
321 |
$output .= $newPluginMetadata->upgrade_notice . '</div>';
|
322 |
$output = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $output);
|
323 |
-
echo $output;
|
324 |
}
|
325 |
}
|
326 |
*/
|
320 |
$output = '<div class="sp-dsgvo_plugin_upgrade_notice"><div class="header">'. __('Important Upgrade Notice:','shapepress-dsgvo') .'</div> ';
|
321 |
$output .= $newPluginMetadata->upgrade_notice . '</div>';
|
322 |
$output = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $output);
|
323 |
+
echo esc_html($output);
|
324 |
}
|
325 |
}
|
326 |
*/
|
admin/js/sp-dsgvo-admin.js
CHANGED
@@ -146,6 +146,18 @@ var spDsgvoActiveAdminSubmenu = '';
|
|
146 |
});
|
147 |
|
148 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
|
150 |
/* p912419 */
|
151 |
var DeclineCheckbox = document.getElementById('decline_button_allowed');
|
146 |
});
|
147 |
|
148 |
});
|
149 |
+
|
150 |
+
$('.update-notice-securityleak0921').on('click tap', function(event) {
|
151 |
+
|
152 |
+
var clicked = $(event.target);
|
153 |
+
if (clicked.is('.notice-dismiss') == false) return;
|
154 |
+
|
155 |
+
$.post( args.ajaxurl, {
|
156 |
+
action: 'notice-action',
|
157 |
+
id: 'update-notice-securityleak0921'
|
158 |
+
});
|
159 |
+
|
160 |
+
});
|
161 |
|
162 |
/* p912419 */
|
163 |
var DeclineCheckbox = document.getElementById('decline_button_allowed');
|
admin/tabs/gravity-forms/page.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<form method="post" action="<?php echo esc_attr(admin_url('/admin-ajax.php')); ?>">
|
2 |
<input type="hidden" name="action" value="admin-gravity-forms">
|
3 |
-
<?php wp_nonce_field( SPDSGVOGravityFormsAction::getActionName(). '-nonce' ); ?>
|
4 |
|
5 |
<h1><?php _e('Gravity Forms','shapepress-dsgvo')?></h1>
|
6 |
|
@@ -44,7 +44,7 @@
|
|
44 |
|
45 |
<input type="checkbox" id="" value="1"
|
46 |
name="gf_save_no_[<?php echo esc_attr($form['id']);?>][<?php echo esc_attr($field->id);?>]"
|
47 |
-
<?php echo esc_attr((isset( $gf_save_no_[$form['id']][$field->id] ) && $gf_save_no_[$form['id']][$field->id] === '1')? ' checked ' : ''); ?>> <?php echo $field->label; ?> <small><em>(<?php _e('Nicht in der Datenbank speichern.','shapepress-dsgvo'); ?>)</em></small>
|
48 |
|
49 |
<?php endforeach; ?>
|
50 |
</td>
|
1 |
<form method="post" action="<?php echo esc_attr(admin_url('/admin-ajax.php')); ?>">
|
2 |
<input type="hidden" name="action" value="admin-gravity-forms">
|
3 |
+
<?php wp_nonce_field( esc_attr(SPDSGVOGravityFormsAction::getActionName()). '-nonce' ); ?>
|
4 |
|
5 |
<h1><?php _e('Gravity Forms','shapepress-dsgvo')?></h1>
|
6 |
|
44 |
|
45 |
<input type="checkbox" id="" value="1"
|
46 |
name="gf_save_no_[<?php echo esc_attr($form['id']);?>][<?php echo esc_attr($field->id);?>]"
|
47 |
+
<?php echo esc_attr((isset( $gf_save_no_[$form['id']][$field->id] ) && $gf_save_no_[$form['id']][$field->id] === '1')? ' checked ' : ''); ?>> <?php echo esc_html($field->label); ?> <small><em>(<?php _e('Nicht in der Datenbank speichern.','shapepress-dsgvo'); ?>)</em></small>
|
48 |
|
49 |
<?php endforeach; ?>
|
50 |
</td>
|
admin/tabs/integrations/page.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
|
4 |
<form method="post" action="<?php echo esc_attr(SPDSGVOIntegrationsAction::formURL()); ?>">
|
5 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOIntegrationsAction::getActionName()) ?>">
|
6 |
-
<?php wp_nonce_field( SPDSGVOIntegrationsAction::getActionName(). '-nonce' ); ?>
|
7 |
|
8 |
<table class="lw-form-table">
|
9 |
<tbody>
|
3 |
|
4 |
<form method="post" action="<?php echo esc_attr(SPDSGVOIntegrationsAction::formURL()); ?>">
|
5 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOIntegrationsAction::getActionName()) ?>">
|
6 |
+
<?php wp_nonce_field( esc_attr(SPDSGVOIntegrationsAction::getActionName()). '-nonce' ); ?>
|
7 |
|
8 |
<table class="lw-form-table">
|
9 |
<tbody>
|
admin/tabs/v3/common-settings/page.php
CHANGED
@@ -20,7 +20,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
20 |
|
21 |
<form method="post" action="<?php echo esc_attr(admin_url('/admin-ajax.php')); ?>" style="display: inline">
|
22 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOCommonSettingsActivateAction::getActionName()); ?>">
|
23 |
-
<?php wp_nonce_field(SPDSGVOCommonSettingsActivateAction::getActionName() . '-nonce'); ?>
|
24 |
|
25 |
<div class="form-group">
|
26 |
<label for="exampleInputEmail1"><?php _e('License', 'shapepress-dsgvo') ?></label>
|
@@ -54,10 +54,10 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
54 |
<?php if (SPDSGVOSettings::get('license_activated') === '1'): ?>
|
55 |
<div style="font-weight:500">
|
56 |
<?php if (isPremiumEdition()): ?>
|
57 |
-
<?php echo isValidPremiumEdition() ? _e('Premium version has been activated', 'shapepress-dsgvo') : ('<span style ="color: red;">' . __('Invalid or expired license.', 'shapepress-dsgvo') . "</span>"); ?>
|
58 |
<?php endif; ?>
|
59 |
<?php if (isBlogEdition()): ?>
|
60 |
-
<?php echo isValidBlogEdition() ? _e('Blog version has been activated', 'shapepress-dsgvo') : _e('Invalid license.', 'shapepress-dsgvo'); ?>
|
61 |
<?php endif; ?>
|
62 |
</div>
|
63 |
|
@@ -97,7 +97,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
97 |
|
98 |
<form method="post" action="<?php echo esc_attr(admin_url('/admin-ajax.php')); ?>">
|
99 |
<input type="hidden" name="action" value="<?php echo SPDSGVOCommonSettingsAction::getActionName() ?>">
|
100 |
-
<?php wp_nonce_field(SPDSGVOCommonSettingsAction::getActionName() . '-nonce'); ?>
|
101 |
<input type="hidden" value="<?php echo esc_attr(SPDSGVOSettings::get('dsgvo_licence')); ?>" id="dsgvo_licence_hidden"
|
102 |
name="dsgvo_licence_hidden"/>
|
103 |
<input type="hidden" value="common-settings" id="subform" name="subform"/>
|
@@ -189,8 +189,8 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
189 |
</div>
|
190 |
<div class="card-body">
|
191 |
<form method="post" action="<?php echo esc_attr(admin_url('/admin-ajax.php')); ?>">
|
192 |
-
<input type="hidden" name="action" value="<?php echo SPDSGVOPrivacyPolicyAction::getActionName(); ?>">
|
193 |
-
<?php wp_nonce_field(SPDSGVOPrivacyPolicyAction::getActionName() . '-nonce'); ?>
|
194 |
|
195 |
<div class="form-group">
|
196 |
<?php $privacyPolicyPage = SPDSGVOSettings::get('privacy_policy_page'); ?>
|
@@ -198,7 +198,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
198 |
<select class="form-control" name="privacy_policy_page" id="privacy_policy_page">
|
199 |
<option value="0"><?php _e('Select', 'shapepress-dsgvo'); ?></option>
|
200 |
<?php foreach (get_pages(array('number' => 0)) as $key => $page): ?>
|
201 |
-
<option <?php echo selected($privacyPolicyPage == $page->ID) ?> value="<?php echo esc_attr($page->ID); ?>">
|
202 |
<?php echo esc_html($page->post_title); ?>
|
203 |
</option>
|
204 |
<?php endforeach; ?>
|
@@ -239,12 +239,12 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
239 |
<?php $hTagTitle = SPDSGVOSettings::get('privacy_policy_title_html_htag') ?>
|
240 |
<label for="privacy_policy_title_html_htag"><?php _e('Header stile of title', 'shapepress-dsgvo') ?></label>
|
241 |
<select class="form-control" name="privacy_policy_title_html_htag" id="privacy_policy_title_html_htag">
|
242 |
-
<option value="h1" <?php echo selected($hTagTitle == 'h1') ?>>h1</option>
|
243 |
-
<option value="h2" <?php echo selected($hTagTitle == 'h2') ?>>h2</option>
|
244 |
-
<option value="h3" <?php echo selected($hTagTitle == 'h3') ?>>h3</option>
|
245 |
-
<option value="h4" <?php echo selected($hTagTitle == 'h4') ?>>h4</option>
|
246 |
-
<option value="h5" <?php echo selected($hTagTitle == 'h5') ?>>h5</option>
|
247 |
-
<option value="h6" <?php echo selected($hTagTitle == 'h6') ?>>h6</option>
|
248 |
</select>
|
249 |
<small class="form-text text-muted"><?php _e('Specifies the html header tag of the header of the privacy policy.', 'shapepress-dsgvo') ?></small>
|
250 |
</div>
|
@@ -252,12 +252,12 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
252 |
<?php $hTagSubTitle = SPDSGVOSettings::get('privacy_policy_subtitle_html_htag') ?>
|
253 |
<label for="privacy_policy_title_html_htag"><?php _e('Header stile of subtitles', 'shapepress-dsgvo') ?></label>
|
254 |
<select class="form-control" name="privacy_policy_subtitle_html_htag" id="privacy_policy_subtitle_html_htag">
|
255 |
-
<option value="h1" <?php echo selected($hTagSubTitle == 'h1') ?>>h1</option>
|
256 |
-
<option value="h2" <?php echo selected($hTagSubTitle == 'h2') ?>>h2</option>
|
257 |
-
<option value="h3" <?php echo selected($hTagSubTitle == 'h3') ?>>h3</option>
|
258 |
-
<option value="h4" <?php echo selected($hTagSubTitle == 'h4') ?>>h4</option>
|
259 |
-
<option value="h5" <?php echo selected($hTagSubTitle == 'h5') ?>>h5</option>
|
260 |
-
<option value="h6" <?php echo selected($hTagSubTitle == 'h6') ?>>h6</option>
|
261 |
</select>
|
262 |
<small class="form-text text-muted"><?php _e('Specifies the html header tag of the subtitles of the privacy policy.', 'shapepress-dsgvo') ?></small>
|
263 |
</div>
|
@@ -265,12 +265,12 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
265 |
<?php $hTagSubSubTitle = SPDSGVOSettings::get('privacy_policy_subsubtitle_html_htag') ?>
|
266 |
<label for="privacy_policy_title_html_htag"><?php _e('Header stile of "subsubtitles"', 'shapepress-dsgvo') ?></label>
|
267 |
<select class="form-control" name="privacy_policy_subsubtitle_html_htag" id="privacy_policy_subsubtitle_html_htag">
|
268 |
-
<option value="h1" <?php echo selected($hTagSubSubTitle == 'h1') ?>>h1</option>
|
269 |
-
<option value="h2" <?php echo selected($hTagSubSubTitle == 'h2') ?>>h2</option>
|
270 |
-
<option value="h3" <?php echo selected($hTagSubSubTitle == 'h3') ?>>h3</option>
|
271 |
-
<option value="h4" <?php echo selected($hTagSubSubTitle == 'h4') ?>>h4</option>
|
272 |
-
<option value="h5" <?php echo selected($hTagSubSubTitle == 'h5') ?>>h5</option>
|
273 |
-
<option value="h6" <?php echo selected($hTagSubSubTitle == 'h6') ?>>h6</option>
|
274 |
</select>
|
275 |
<small class="form-text text-muted"><?php _e('Specifies the html header tag of the "subsubtitles" of the privacy policy.', 'shapepress-dsgvo') ?></small>
|
276 |
</div>
|
@@ -301,7 +301,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
301 |
</div>
|
302 |
<div class="col">
|
303 |
<label for="textsVersion"><?php _e('Last update check','shapepress-dsgvo');?></label>
|
304 |
-
<input type="text" readonly="" class="form-control-plaintext" id="textVersion" value="<?php echo date("d.m.y H:i",SPDSGVOSettings::get('legal_web_texts_last_check'))?>">
|
305 |
</div>
|
306 |
</div>
|
307 |
<div class="form-group">
|
@@ -325,7 +325,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
325 |
<div class="card-body">
|
326 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
327 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOCommonSettingsAction::getActionName()); ?>">
|
328 |
-
<?php wp_nonce_field(SPDSGVOCommonSettingsAction::getActionName() . '-nonce'); ?>
|
329 |
<input type="hidden" value="<?php echo esc_attr(SPDSGVOSettings::get('dsgvo_licence')); ?>" id="dsgvo_licence_hidden"
|
330 |
name="dsgvo_licence_hidden"/>
|
331 |
<input type="hidden" value="forms" id="subform" name="subform"/>
|
20 |
|
21 |
<form method="post" action="<?php echo esc_attr(admin_url('/admin-ajax.php')); ?>" style="display: inline">
|
22 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOCommonSettingsActivateAction::getActionName()); ?>">
|
23 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOCommonSettingsActivateAction::getActionName()) . '-nonce'); ?>
|
24 |
|
25 |
<div class="form-group">
|
26 |
<label for="exampleInputEmail1"><?php _e('License', 'shapepress-dsgvo') ?></label>
|
54 |
<?php if (SPDSGVOSettings::get('license_activated') === '1'): ?>
|
55 |
<div style="font-weight:500">
|
56 |
<?php if (isPremiumEdition()): ?>
|
57 |
+
<?php echo wp_kses_post(isValidPremiumEdition() ? _e('Premium version has been activated', 'shapepress-dsgvo') : ('<span style ="color: red;">' . __('Invalid or expired license.', 'shapepress-dsgvo') . "</span>")); ?>
|
58 |
<?php endif; ?>
|
59 |
<?php if (isBlogEdition()): ?>
|
60 |
+
<?php echo wp_kses_post(isValidBlogEdition() ? _e('Blog version has been activated', 'shapepress-dsgvo') : _e('Invalid license.', 'shapepress-dsgvo')); ?>
|
61 |
<?php endif; ?>
|
62 |
</div>
|
63 |
|
97 |
|
98 |
<form method="post" action="<?php echo esc_attr(admin_url('/admin-ajax.php')); ?>">
|
99 |
<input type="hidden" name="action" value="<?php echo SPDSGVOCommonSettingsAction::getActionName() ?>">
|
100 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOCommonSettingsAction::getActionName()) . '-nonce'); ?>
|
101 |
<input type="hidden" value="<?php echo esc_attr(SPDSGVOSettings::get('dsgvo_licence')); ?>" id="dsgvo_licence_hidden"
|
102 |
name="dsgvo_licence_hidden"/>
|
103 |
<input type="hidden" value="common-settings" id="subform" name="subform"/>
|
189 |
</div>
|
190 |
<div class="card-body">
|
191 |
<form method="post" action="<?php echo esc_attr(admin_url('/admin-ajax.php')); ?>">
|
192 |
+
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOPrivacyPolicyAction::getActionName()); ?>">
|
193 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOPrivacyPolicyAction::getActionName()) . '-nonce'); ?>
|
194 |
|
195 |
<div class="form-group">
|
196 |
<?php $privacyPolicyPage = SPDSGVOSettings::get('privacy_policy_page'); ?>
|
198 |
<select class="form-control" name="privacy_policy_page" id="privacy_policy_page">
|
199 |
<option value="0"><?php _e('Select', 'shapepress-dsgvo'); ?></option>
|
200 |
<?php foreach (get_pages(array('number' => 0)) as $key => $page): ?>
|
201 |
+
<option <?php echo esc_attr(selected($privacyPolicyPage == $page->ID)); ?> value="<?php echo esc_attr($page->ID); ?>">
|
202 |
<?php echo esc_html($page->post_title); ?>
|
203 |
</option>
|
204 |
<?php endforeach; ?>
|
239 |
<?php $hTagTitle = SPDSGVOSettings::get('privacy_policy_title_html_htag') ?>
|
240 |
<label for="privacy_policy_title_html_htag"><?php _e('Header stile of title', 'shapepress-dsgvo') ?></label>
|
241 |
<select class="form-control" name="privacy_policy_title_html_htag" id="privacy_policy_title_html_htag">
|
242 |
+
<option value="h1" <?php echo esc_attr(selected($hTagTitle == 'h1')) ?>>h1</option>
|
243 |
+
<option value="h2" <?php echo esc_attr(selected($hTagTitle == 'h2')) ?>>h2</option>
|
244 |
+
<option value="h3" <?php echo esc_attr(selected($hTagTitle == 'h3')) ?>>h3</option>
|
245 |
+
<option value="h4" <?php echo esc_attr(selected($hTagTitle == 'h4')) ?>>h4</option>
|
246 |
+
<option value="h5" <?php echo esc_attr(selected($hTagTitle == 'h5')) ?>>h5</option>
|
247 |
+
<option value="h6" <?php echo esc_attr(selected($hTagTitle == 'h6')) ?>>h6</option>
|
248 |
</select>
|
249 |
<small class="form-text text-muted"><?php _e('Specifies the html header tag of the header of the privacy policy.', 'shapepress-dsgvo') ?></small>
|
250 |
</div>
|
252 |
<?php $hTagSubTitle = SPDSGVOSettings::get('privacy_policy_subtitle_html_htag') ?>
|
253 |
<label for="privacy_policy_title_html_htag"><?php _e('Header stile of subtitles', 'shapepress-dsgvo') ?></label>
|
254 |
<select class="form-control" name="privacy_policy_subtitle_html_htag" id="privacy_policy_subtitle_html_htag">
|
255 |
+
<option value="h1" <?php echo esc_attr(selected($hTagSubTitle == 'h1')) ?>>h1</option>
|
256 |
+
<option value="h2" <?php echo esc_attr(selected($hTagSubTitle == 'h2')) ?>>h2</option>
|
257 |
+
<option value="h3" <?php echo esc_attr(selected($hTagSubTitle == 'h3')) ?>>h3</option>
|
258 |
+
<option value="h4" <?php echo esc_attr(selected($hTagSubTitle == 'h4')) ?>>h4</option>
|
259 |
+
<option value="h5" <?php echo esc_attr(selected($hTagSubTitle == 'h5')) ?>>h5</option>
|
260 |
+
<option value="h6" <?php echo esc_attr(selected($hTagSubTitle == 'h6')) ?>>h6</option>
|
261 |
</select>
|
262 |
<small class="form-text text-muted"><?php _e('Specifies the html header tag of the subtitles of the privacy policy.', 'shapepress-dsgvo') ?></small>
|
263 |
</div>
|
265 |
<?php $hTagSubSubTitle = SPDSGVOSettings::get('privacy_policy_subsubtitle_html_htag') ?>
|
266 |
<label for="privacy_policy_title_html_htag"><?php _e('Header stile of "subsubtitles"', 'shapepress-dsgvo') ?></label>
|
267 |
<select class="form-control" name="privacy_policy_subsubtitle_html_htag" id="privacy_policy_subsubtitle_html_htag">
|
268 |
+
<option value="h1" <?php echo esc_attr(selected($hTagSubSubTitle == 'h1')) ?>>h1</option>
|
269 |
+
<option value="h2" <?php echo esc_attr(selected($hTagSubSubTitle == 'h2')) ?>>h2</option>
|
270 |
+
<option value="h3" <?php echo esc_attr(selected($hTagSubSubTitle == 'h3')) ?>>h3</option>
|
271 |
+
<option value="h4" <?php echo esc_attr(selected($hTagSubSubTitle == 'h4')) ?>>h4</option>
|
272 |
+
<option value="h5" <?php echo esc_attr(selected($hTagSubSubTitle == 'h5')) ?>>h5</option>
|
273 |
+
<option value="h6" <?php echo esc_attr(selected($hTagSubSubTitle == 'h6')) ?>>h6</option>
|
274 |
</select>
|
275 |
<small class="form-text text-muted"><?php _e('Specifies the html header tag of the "subsubtitles" of the privacy policy.', 'shapepress-dsgvo') ?></small>
|
276 |
</div>
|
301 |
</div>
|
302 |
<div class="col">
|
303 |
<label for="textsVersion"><?php _e('Last update check','shapepress-dsgvo');?></label>
|
304 |
+
<input type="text" readonly="" class="form-control-plaintext" id="textVersion" value="<?php echo esc_attr(date("d.m.y H:i",SPDSGVOSettings::get('legal_web_texts_last_check')))?>">
|
305 |
</div>
|
306 |
</div>
|
307 |
<div class="form-group">
|
325 |
<div class="card-body">
|
326 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
327 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOCommonSettingsAction::getActionName()); ?>">
|
328 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOCommonSettingsAction::getActionName()) . '-nonce'); ?>
|
329 |
<input type="hidden" value="<?php echo esc_attr(SPDSGVOSettings::get('dsgvo_licence')); ?>" id="dsgvo_licence_hidden"
|
330 |
name="dsgvo_licence_hidden"/>
|
331 |
<input type="hidden" value="forms" id="subform" name="subform"/>
|
admin/tabs/v3/embeddings/page.php
CHANGED
@@ -19,7 +19,7 @@ require_once(SPDSGVO::pluginDir('public/inc/embedding-placeholder-styles.php'));
|
|
19 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
20 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOEmbeddingsIntegrationAction::getActionName()); ?>">
|
21 |
<input type="hidden" name="saveAction" value="save">
|
22 |
-
<?php wp_nonce_field(SPDSGVOEmbeddingsIntegrationAction::getActionName() . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('color', '', 'embed_placeholder_text_color', SPDSGVOSettings::get('embed_placeholder_text_color'),
|
@@ -41,11 +41,11 @@ require_once(SPDSGVO::pluginDir('public/inc/embedding-placeholder-styles.php'));
|
|
41 |
<?php $cnButtonBorderSize = SPDSGVOSettings::get('embed_placeholder_border_size_button'); ?>
|
42 |
<select class="form-control" name="embed_placeholder_border_size_button"
|
43 |
id="embed_placeholder_border_size_button">
|
44 |
-
<option value="1px" <?php echo selected($cnButtonBorderSize == '1px') ?>>1px</option>
|
45 |
-
<option value="2px" <?php echo selected($cnButtonBorderSize == '2px') ?>>2px</option>
|
46 |
-
<option value="3px" <?php echo selected($cnButtonBorderSize == '3px') ?>>3px</option>
|
47 |
-
<option value="4px" <?php echo selected($cnButtonBorderSize == '4px') ?>>4px</option>
|
48 |
-
<option value="5px" <?php echo selected($cnButtonBorderSize == '5px') ?>>5px</option>
|
49 |
</select>
|
50 |
</div>
|
51 |
|
@@ -83,7 +83,7 @@ require_once(SPDSGVO::pluginDir('public/inc/embedding-placeholder-styles.php'));
|
|
83 |
<div class="sp-dsgvo-blocked-embedding-placeholder sp-dsgvo-blocked-embedding-placeholder-dummy <?php echo esc_attr(SPDSGVOSettings::get('embed_placeholder_custom_css_classes'))?>">
|
84 |
<div class="sp-dsgvo-blocked-embedding-placeholder-header">
|
85 |
<img class="sp-dsgvo-blocked-embedding-placeholder-header-icon" src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/legalwebio-logo-icon-black.svg')); ?>">
|
86 |
-
<?php echo sprintf(__('We need your consent to load the content of %s.','shapepress-dsgvo'), '...'); ?>
|
87 |
</div>
|
88 |
<div class="sp-dsgvo-blocked-embedding-placeholder-body">
|
89 |
<span>Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat.</span>
|
@@ -96,7 +96,7 @@ require_once(SPDSGVO::pluginDir('public/inc/embedding-placeholder-styles.php'));
|
|
96 |
<form method="post" class="mt-3" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
97 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOEmbeddingsIntegrationAction::getActionName()); ?>">
|
98 |
<input type="hidden" name="saveAction" value="restore">
|
99 |
-
<?php wp_nonce_field(SPDSGVOEmbeddingsIntegrationAction::getActionName() . '-nonce'); ?>
|
100 |
<div class="form-group">
|
101 |
<input type="submit" class="btn btn-secondary btn-block" value="<?php _e('Restore defaults', 'shapepress-dsgvo');?>">
|
102 |
</div>
|
@@ -121,7 +121,7 @@ require_once(SPDSGVO::pluginDir('public/inc/embedding-placeholder-styles.php'));
|
|
121 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
122 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOEmbeddingsIntegrationAction::getActionName()); ?>">
|
123 |
<input type="hidden" name="saveAction" value="common">
|
124 |
-
<?php wp_nonce_field(SPDSGVOEmbeddingsIntegrationAction::getActionName() . '-nonce'); ?>
|
125 |
<?php
|
126 |
spDsgvoWriteInput('switch', '', 'embed_enable_js_blocking', SPDSGVOSettings::get('embed_enable_js_blocking'),
|
127 |
__('Enable blocking of dynamic loaded embeddings', 'shapepress-dsgvo'),
|
19 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
20 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOEmbeddingsIntegrationAction::getActionName()); ?>">
|
21 |
<input type="hidden" name="saveAction" value="save">
|
22 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOEmbeddingsIntegrationAction::getActionName()) . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('color', '', 'embed_placeholder_text_color', SPDSGVOSettings::get('embed_placeholder_text_color'),
|
41 |
<?php $cnButtonBorderSize = SPDSGVOSettings::get('embed_placeholder_border_size_button'); ?>
|
42 |
<select class="form-control" name="embed_placeholder_border_size_button"
|
43 |
id="embed_placeholder_border_size_button">
|
44 |
+
<option value="1px" <?php echo esc_attr(selected($cnButtonBorderSize == '1px')) ?>>1px</option>
|
45 |
+
<option value="2px" <?php echo esc_attr(selected($cnButtonBorderSize == '2px')) ?>>2px</option>
|
46 |
+
<option value="3px" <?php echo esc_attr(selected($cnButtonBorderSize == '3px')) ?>>3px</option>
|
47 |
+
<option value="4px" <?php echo esc_attr(selected($cnButtonBorderSize == '4px')) ?>>4px</option>
|
48 |
+
<option value="5px" <?php echo esc_attr(selected($cnButtonBorderSize == '5px')) ?>>5px</option>
|
49 |
</select>
|
50 |
</div>
|
51 |
|
83 |
<div class="sp-dsgvo-blocked-embedding-placeholder sp-dsgvo-blocked-embedding-placeholder-dummy <?php echo esc_attr(SPDSGVOSettings::get('embed_placeholder_custom_css_classes'))?>">
|
84 |
<div class="sp-dsgvo-blocked-embedding-placeholder-header">
|
85 |
<img class="sp-dsgvo-blocked-embedding-placeholder-header-icon" src="<?php echo esc_url(SPDSGVO::pluginURI('admin/images/legalwebio-logo-icon-black.svg')); ?>">
|
86 |
+
<?php echo esc_html(sprintf(__('We need your consent to load the content of %s.','shapepress-dsgvo'), '...')); ?>
|
87 |
</div>
|
88 |
<div class="sp-dsgvo-blocked-embedding-placeholder-body">
|
89 |
<span>Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat.</span>
|
96 |
<form method="post" class="mt-3" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
97 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOEmbeddingsIntegrationAction::getActionName()); ?>">
|
98 |
<input type="hidden" name="saveAction" value="restore">
|
99 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOEmbeddingsIntegrationAction::getActionName()) . '-nonce'); ?>
|
100 |
<div class="form-group">
|
101 |
<input type="submit" class="btn btn-secondary btn-block" value="<?php _e('Restore defaults', 'shapepress-dsgvo');?>">
|
102 |
</div>
|
121 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
122 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOEmbeddingsIntegrationAction::getActionName()); ?>">
|
123 |
<input type="hidden" name="saveAction" value="common">
|
124 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOEmbeddingsIntegrationAction::getActionName()) . '-nonce'); ?>
|
125 |
<?php
|
126 |
spDsgvoWriteInput('switch', '', 'embed_enable_js_blocking', SPDSGVOSettings::get('embed_enable_js_blocking'),
|
127 |
__('Enable blocking of dynamic loaded embeddings', 'shapepress-dsgvo'),
|
admin/tabs/v3/operator/page.php
CHANGED
@@ -9,7 +9,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
9 |
|
10 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
11 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOOperatorAction::getActionName()); ?>">
|
12 |
-
<?php wp_nonce_field(SPDSGVOOperatorAction::getActionName() . '-nonce'); ?>
|
13 |
<!-- operator person details-->
|
14 |
<div class="card">
|
15 |
<div class="card-header">
|
@@ -18,7 +18,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
18 |
<div class="card-body">
|
19 |
<div class="form">
|
20 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOOperatorAction::getActionName()); ?>">
|
21 |
-
<?php wp_nonce_field(SPDSGVOOperatorAction::getActionName() . '-nonce'); ?>
|
22 |
|
23 |
<div class="form-group">
|
24 |
<?php $operatorType = SPDSGVOSettings::get('page_operator_type');?>
|
@@ -46,7 +46,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
46 |
</select>
|
47 |
</div>
|
48 |
|
49 |
-
<div class="page-operator-type-container page-operator-type-container-corporation <?php echo $operatorType == 'corporation' ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>">
|
50 |
<?php
|
51 |
// in case corperate
|
52 |
spDsgvoWriteInput('text', '', 'page_operator_corporate_name', SPDSGVOSettings::get('page_operator_corporate_name'),
|
@@ -70,7 +70,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
70 |
?>
|
71 |
</div>
|
72 |
|
73 |
-
<div class="page-operator-type-container page-operator-type-container-one-man <?php echo $operatorType == 'one-man' ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>">
|
74 |
<?php
|
75 |
// in case of one-man
|
76 |
spDsgvoWriteInput('text', '', 'page_operator_company_law_person', SPDSGVOSettings::get('page_operator_company_law_person'),
|
@@ -88,7 +88,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
88 |
?>
|
89 |
</div>
|
90 |
|
91 |
-
<div class="page-operator-type-container page-operator-type-container-private <?php echo $operatorType == 'private' ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>">
|
92 |
<?php
|
93 |
// in case of private
|
94 |
spDsgvoWriteInput('text', '', 'page_operator_operator_name', SPDSGVOSettings::get('page_operator_operator_name'),
|
@@ -98,7 +98,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
98 |
?>
|
99 |
</div>
|
100 |
|
101 |
-
<div class="page-operator-type-container page-operator-type-container-society <?php echo $operatorType == 'society' ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>">
|
102 |
<?php
|
103 |
|
104 |
spDsgvoWriteInput('text', '', 'page_operator_society_name', SPDSGVOSettings::get('page_operator_society_name'),
|
@@ -122,7 +122,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
122 |
?>
|
123 |
</div>
|
124 |
|
125 |
-
<div class="page-operator-type-container page-operator-type-container-corp-public-law <?php echo $operatorType == 'corp-public-law' || $operatorType == 'corp-private-law' ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>">
|
126 |
|
127 |
<?php
|
128 |
// in case of corp-public-law
|
@@ -155,22 +155,22 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
155 |
$selectedCountry = SPDSGVOSettings::get('spdsgvo_company_info_countrycode');
|
156 |
$countryList = SPDSGVOConstants::getCountries();
|
157 |
?>
|
158 |
-
<div class="label-operator-type label-operator-type-private <?php echo $operatorType == 'private' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'; ?>">
|
159 |
<label for="spdsgvo_company_info_countrycode"><?php _e('Place of residence', 'shapepress-dsgvo') ?></label>
|
160 |
</div>
|
161 |
-
<div class="label-operator-type label-operator-type-one-man <?php echo $operatorType == 'one-man' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'; ?>">
|
162 |
<label for="spdsgvo_company_info_countrycode"><?php _e('Registered business address', 'shapepress-dsgvo') ?></label>
|
163 |
</div>
|
164 |
-
<div class="label-operator-type label-operator-type-society <?php echo $operatorType == 'society' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'; ?>">
|
165 |
<label for="spdsgvo_company_info_countrycode"><?php _e('Club seat', 'shapepress-dsgvo') ?></label>
|
166 |
</div>
|
167 |
-
<div class="label-operator-type label-operator-type-corporation <?php echo $operatorType == 'corporation' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'; ?>">
|
168 |
<label for="spdsgvo_company_info_countrycode"><?php _e('Registered business address', 'shapepress-dsgvo') ?></label>
|
169 |
</div>
|
170 |
|
171 |
<select name="spdsgvo_company_info_countrycode" id="spdsgvo_company_info_countrycode" class="form-control">
|
172 |
<?php foreach ($countryList as $key => $name) :?>
|
173 |
-
<option value="<?php echo $key?>" <?php selected($selectedCountry, $key); ?>><?php echo $name; ?></option>
|
174 |
<?php endforeach; ?>
|
175 |
</select>
|
176 |
<small class="form-text text-muted"><?php _e('Important: This setting defines the legal basis of all the texts which WP DSGVO Tools (GDPR) provides. Setting a wrong country risks to be not confirm with the GDPR.', 'shapepress-dsgvo') ?></small>
|
@@ -215,10 +215,10 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
215 |
|
216 |
<!-- US privacy shield -->
|
217 |
|
218 |
-
<div class="page-operator-container-us <?php echo $selectedCountry == 'US' ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>"">
|
219 |
<?php
|
220 |
|
221 |
-
spDsgvoWriteInput('switch', '', 'page_operator_privacy_shield', SPDSGVOSettings::get('page_operator_privacy_shield'
|
222 |
__('Privacy Shield', 'shapepress-dsgvo'),
|
223 |
'',
|
224 |
__('Enable, if you/your business is privacy shield certified.','shapepress-dsgvo'));
|
@@ -226,7 +226,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
226 |
?>
|
227 |
</div>
|
228 |
|
229 |
-
<div class="page-operator-type-container page-operator-type-container-one-man page-operator-type-container-corporation page-operator-type-container-society <?php echo $operatorType != 'private' ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>">
|
230 |
<?php
|
231 |
spDsgvoWriteInput('text', '', 'spdsgvo_company_fn_nr', SPDSGVOSettings::get('spdsgvo_company_fn_nr'),
|
232 |
__('Commercial book no.', 'shapepress-dsgvo'),
|
@@ -283,8 +283,8 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
283 |
</div>
|
284 |
<div class="card-body">
|
285 |
<div class="form">
|
286 |
-
<input type="hidden" name="action" value="<?php echo SPDSGVOOperatorAction::getActionName() ?>">
|
287 |
-
<?php wp_nonce_field(SPDSGVOOperatorAction::getActionName() . '-nonce'); ?>
|
288 |
|
289 |
<div class="form-group">
|
290 |
<?php $operator_pp_responsibility_type = SPDSGVOSettings::get('operator_pp_responsibility_type'); ?>
|
@@ -313,7 +313,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
313 |
<small class="form-text text-muted"><?php _e('Specifies if your company has an inhouse data security officer, an external person or no responsible person.', 'shapepress-dsgvo') ?></small>
|
314 |
</div>
|
315 |
|
316 |
-
<div id="container-pp-responsibility-internal" class="container-pp-responsibility <?php echo $operator_pp_responsibility_type == 'internal' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'
|
317 |
|
318 |
<label><?php _e('Internal data security officer', 'shapepress-dsgvo') ?></label>
|
319 |
|
@@ -341,7 +341,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
341 |
</div>
|
342 |
|
343 |
<div id="container-pp-responsibility-external"
|
344 |
-
class="form-group container-pp-responsibility <?php echo $operator_pp_responsibility_type == 'external' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'
|
345 |
|
346 |
<label><?php _e('External data security officer', 'shapepress-dsgvo') ?></label>
|
347 |
|
@@ -408,7 +408,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
408 |
</div>
|
409 |
|
410 |
<div id="container-pp-responsibility-none"
|
411 |
-
class="form-group container-pp-responsibility <?php echo $operator_pp_responsibility_type == 'none' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'?>">
|
412 |
|
413 |
<?php $operator_pp_responsibility_contact = SPDSGVOSettings::get('operator_pp_responsibility_contact'); ?>
|
414 |
<label><?php _e('Does your company has responsible person for privacy issues?', 'shapepress-dsgvo') ?></label>
|
@@ -438,7 +438,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
438 |
</div>
|
439 |
|
440 |
<div id="container-dso-contact-internal"
|
441 |
-
class="container-dso-contact <?php echo $operator_pp_responsibility_type == 'none' && $operator_pp_responsibility_contact == 'internal' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'
|
442 |
|
443 |
<label><?php _e('Internal contact for privacy issues', 'shapepress-dsgvo') ?></label>
|
444 |
|
@@ -466,7 +466,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
466 |
</div>
|
467 |
|
468 |
<div id="container-dso-contact-external"
|
469 |
-
class="container-dso-contact <?php echo $operator_pp_responsibility_type == 'none' && $operator_pp_responsibility_contact == 'external' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'
|
470 |
|
471 |
<label><?php _e('External contact for privacy issues', 'shapepress-dsgvo') ?></label>
|
472 |
|
@@ -549,7 +549,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
549 |
<div class="card-body">
|
550 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
551 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOImprintAction::getActionName()); ?>">
|
552 |
-
<?php wp_nonce_field(SPDSGVOImprintAction::getActionName() . '-nonce'); ?>
|
553 |
<input type="hidden" name="subform" value="imprint-settings">
|
554 |
|
555 |
<div class="form-group">
|
@@ -558,8 +558,8 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
558 |
<select class="form-control" name="imprint_page" id="imprint_page">
|
559 |
<option value="0"><?php _e('Select', 'shapepress-dsgvo'); ?></option>
|
560 |
<?php foreach (get_pages(array('number' => 0)) as $key => $page): ?>
|
561 |
-
<option <?php echo selected($imprintPage == $page->ID) ?> value="<?php echo $page->ID ?>">
|
562 |
-
<?php echo $page->post_title ?>
|
563 |
</option>
|
564 |
<?php endforeach; ?>
|
565 |
</select>
|
9 |
|
10 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
11 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOOperatorAction::getActionName()); ?>">
|
12 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOOperatorAction::getActionName()) . '-nonce'); ?>
|
13 |
<!-- operator person details-->
|
14 |
<div class="card">
|
15 |
<div class="card-header">
|
18 |
<div class="card-body">
|
19 |
<div class="form">
|
20 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOOperatorAction::getActionName()); ?>">
|
21 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOOperatorAction::getActionName()) . '-nonce'); ?>
|
22 |
|
23 |
<div class="form-group">
|
24 |
<?php $operatorType = SPDSGVOSettings::get('page_operator_type');?>
|
46 |
</select>
|
47 |
</div>
|
48 |
|
49 |
+
<div class="page-operator-type-container page-operator-type-container-corporation <?php echo esc_attr($operatorType == 'corporation' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
50 |
<?php
|
51 |
// in case corperate
|
52 |
spDsgvoWriteInput('text', '', 'page_operator_corporate_name', SPDSGVOSettings::get('page_operator_corporate_name'),
|
70 |
?>
|
71 |
</div>
|
72 |
|
73 |
+
<div class="page-operator-type-container page-operator-type-container-one-man <?php echo esc_attr($operatorType == 'one-man' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
74 |
<?php
|
75 |
// in case of one-man
|
76 |
spDsgvoWriteInput('text', '', 'page_operator_company_law_person', SPDSGVOSettings::get('page_operator_company_law_person'),
|
88 |
?>
|
89 |
</div>
|
90 |
|
91 |
+
<div class="page-operator-type-container page-operator-type-container-private <?php echo esc_attr($operatorType == 'private' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
92 |
<?php
|
93 |
// in case of private
|
94 |
spDsgvoWriteInput('text', '', 'page_operator_operator_name', SPDSGVOSettings::get('page_operator_operator_name'),
|
98 |
?>
|
99 |
</div>
|
100 |
|
101 |
+
<div class="page-operator-type-container page-operator-type-container-society <?php echo esc_attr($operatorType == 'society' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
102 |
<?php
|
103 |
|
104 |
spDsgvoWriteInput('text', '', 'page_operator_society_name', SPDSGVOSettings::get('page_operator_society_name'),
|
122 |
?>
|
123 |
</div>
|
124 |
|
125 |
+
<div class="page-operator-type-container page-operator-type-container-corp-public-law <?php echo esc_attr($operatorType == 'corp-public-law' || $operatorType == 'corp-private-law' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
126 |
|
127 |
<?php
|
128 |
// in case of corp-public-law
|
155 |
$selectedCountry = SPDSGVOSettings::get('spdsgvo_company_info_countrycode');
|
156 |
$countryList = SPDSGVOConstants::getCountries();
|
157 |
?>
|
158 |
+
<div class="label-operator-type label-operator-type-private <?php echo esc_attr($operatorType == 'private' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'); ?>">
|
159 |
<label for="spdsgvo_company_info_countrycode"><?php _e('Place of residence', 'shapepress-dsgvo') ?></label>
|
160 |
</div>
|
161 |
+
<div class="label-operator-type label-operator-type-one-man <?php echo esc_attr($operatorType == 'one-man' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'); ?>">
|
162 |
<label for="spdsgvo_company_info_countrycode"><?php _e('Registered business address', 'shapepress-dsgvo') ?></label>
|
163 |
</div>
|
164 |
+
<div class="label-operator-type label-operator-type-society <?php echo esc_attr($operatorType == 'society' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'); ?>">
|
165 |
<label for="spdsgvo_company_info_countrycode"><?php _e('Club seat', 'shapepress-dsgvo') ?></label>
|
166 |
</div>
|
167 |
+
<div class="label-operator-type label-operator-type-corporation <?php echo esc_attr($operatorType == 'corporation' ? 'spdsgvo-d-block' : 'spdsgvo-d-none'); ?>">
|
168 |
<label for="spdsgvo_company_info_countrycode"><?php _e('Registered business address', 'shapepress-dsgvo') ?></label>
|
169 |
</div>
|
170 |
|
171 |
<select name="spdsgvo_company_info_countrycode" id="spdsgvo_company_info_countrycode" class="form-control">
|
172 |
<?php foreach ($countryList as $key => $name) :?>
|
173 |
+
<option value="<?php echo esc_attr($key)?>" <?php selected($selectedCountry, $key); ?>><?php echo esc_html($name); ?></option>
|
174 |
<?php endforeach; ?>
|
175 |
</select>
|
176 |
<small class="form-text text-muted"><?php _e('Important: This setting defines the legal basis of all the texts which WP DSGVO Tools (GDPR) provides. Setting a wrong country risks to be not confirm with the GDPR.', 'shapepress-dsgvo') ?></small>
|
215 |
|
216 |
<!-- US privacy shield -->
|
217 |
|
218 |
+
<div class="page-operator-container-us <?php echo esc_attr($selectedCountry == 'US' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>"">
|
219 |
<?php
|
220 |
|
221 |
+
spDsgvoWriteInput('switch', '', 'page_operator_privacy_shield', SPDSGVOSettings::get('page_operator_privacy_shield'),
|
222 |
__('Privacy Shield', 'shapepress-dsgvo'),
|
223 |
'',
|
224 |
__('Enable, if you/your business is privacy shield certified.','shapepress-dsgvo'));
|
226 |
?>
|
227 |
</div>
|
228 |
|
229 |
+
<div class="page-operator-type-container page-operator-type-container-one-man page-operator-type-container-corporation page-operator-type-container-society <?php echo esc_attr($operatorType != 'private' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
230 |
<?php
|
231 |
spDsgvoWriteInput('text', '', 'spdsgvo_company_fn_nr', SPDSGVOSettings::get('spdsgvo_company_fn_nr'),
|
232 |
__('Commercial book no.', 'shapepress-dsgvo'),
|
283 |
</div>
|
284 |
<div class="card-body">
|
285 |
<div class="form">
|
286 |
+
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOOperatorAction::getActionName()) ?>">
|
287 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOOperatorAction::getActionName()) . '-nonce'); ?>
|
288 |
|
289 |
<div class="form-group">
|
290 |
<?php $operator_pp_responsibility_type = SPDSGVOSettings::get('operator_pp_responsibility_type'); ?>
|
313 |
<small class="form-text text-muted"><?php _e('Specifies if your company has an inhouse data security officer, an external person or no responsible person.', 'shapepress-dsgvo') ?></small>
|
314 |
</div>
|
315 |
|
316 |
+
<div id="container-pp-responsibility-internal" class="container-pp-responsibility <?php echo esc_attr($operator_pp_responsibility_type == 'internal' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
317 |
|
318 |
<label><?php _e('Internal data security officer', 'shapepress-dsgvo') ?></label>
|
319 |
|
341 |
</div>
|
342 |
|
343 |
<div id="container-pp-responsibility-external"
|
344 |
+
class="form-group container-pp-responsibility <?php echo esc_attr($operator_pp_responsibility_type == 'external' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
345 |
|
346 |
<label><?php _e('External data security officer', 'shapepress-dsgvo') ?></label>
|
347 |
|
408 |
</div>
|
409 |
|
410 |
<div id="container-pp-responsibility-none"
|
411 |
+
class="form-group container-pp-responsibility <?php echo esc_attr($operator_pp_responsibility_type == 'none' ? 'spdsgvo-d-block' : 'spdsgvo-d-none')?>">
|
412 |
|
413 |
<?php $operator_pp_responsibility_contact = SPDSGVOSettings::get('operator_pp_responsibility_contact'); ?>
|
414 |
<label><?php _e('Does your company has responsible person for privacy issues?', 'shapepress-dsgvo') ?></label>
|
438 |
</div>
|
439 |
|
440 |
<div id="container-dso-contact-internal"
|
441 |
+
class="container-dso-contact <?php echo esc_attr($operator_pp_responsibility_type == 'none' && $operator_pp_responsibility_contact == 'internal' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
442 |
|
443 |
<label><?php _e('Internal contact for privacy issues', 'shapepress-dsgvo') ?></label>
|
444 |
|
466 |
</div>
|
467 |
|
468 |
<div id="container-dso-contact-external"
|
469 |
+
class="container-dso-contact <?php echo esc_attr($operator_pp_responsibility_type == 'none' && $operator_pp_responsibility_contact == 'external' ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
470 |
|
471 |
<label><?php _e('External contact for privacy issues', 'shapepress-dsgvo') ?></label>
|
472 |
|
549 |
<div class="card-body">
|
550 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
551 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOImprintAction::getActionName()); ?>">
|
552 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOImprintAction::getActionName()) . '-nonce'); ?>
|
553 |
<input type="hidden" name="subform" value="imprint-settings">
|
554 |
|
555 |
<div class="form-group">
|
558 |
<select class="form-control" name="imprint_page" id="imprint_page">
|
559 |
<option value="0"><?php _e('Select', 'shapepress-dsgvo'); ?></option>
|
560 |
<?php foreach (get_pages(array('number' => 0)) as $key => $page): ?>
|
561 |
+
<option <?php echo selected($imprintPage == $page->ID) ?> value="<?php echo esc_attr($page->ID) ?>">
|
562 |
+
<?php echo esc_html($page->post_title); ?>
|
563 |
</option>
|
564 |
<?php endforeach; ?>
|
565 |
</select>
|
admin/tabs/v3/page-basics/page.php
CHANGED
@@ -6,7 +6,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
6 |
?>
|
7 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
8 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOPageBasicsAction::getActionName()) ?>">
|
9 |
-
<?php wp_nonce_field(SPDSGVOPageBasicsAction::getActionName() . '-nonce'); ?>
|
10 |
|
11 |
<div class="card-columns">
|
12 |
<!-- hosting -->
|
@@ -17,7 +17,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
17 |
<div class="card-body">
|
18 |
<div class="form">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOPageBasicsAction::getActionName()); ?>">
|
20 |
-
<?php wp_nonce_field(SPDSGVOPageBasicsAction::getActionName() . '-nonce'); ?>
|
21 |
|
22 |
<div class="form-group">
|
23 |
<?php
|
@@ -72,7 +72,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
72 |
|
73 |
?>
|
74 |
|
75 |
-
<div id="container-logfiles-life" class="<?php echo $useLogFiles == 1 ? '' : 'spdsgvo-d-none';?>">
|
76 |
<?php
|
77 |
|
78 |
spDsgvoWriteInput('text', '', 'page_basics_logfiles_life', SPDSGVOSettings::get('page_basics_logfiles_life'),
|
@@ -108,7 +108,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
108 |
|
109 |
?>
|
110 |
|
111 |
-
<div class="form-group <?php echo $useCdnProvider == 1 ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>" id="container-basics-use-cdn">
|
112 |
<label><?php _e('CDN Provider', 'shapepress-dsgvo') ?></label>
|
113 |
<?php
|
114 |
|
@@ -166,7 +166,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
166 |
|
167 |
?>
|
168 |
|
169 |
-
<div class="form-group <?php echo $usePaymentProvider == 1 ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>" id="container-basics-use-payment-provider">
|
170 |
<label><?php _e('Payment Provider', 'shapepress-dsgvo') ?></label>
|
171 |
<?php
|
172 |
|
@@ -220,7 +220,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
220 |
}
|
221 |
?>
|
222 |
</div>
|
223 |
-
<div id="container-block-google-fonts" class="<?php echo 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'),
|
226 |
__('Block Google Fonts', 'shapepress-dsgvo'),
|
@@ -280,7 +280,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
280 |
__('Enable if your visitor can comment your posts.', 'shapepress-dsgvo'));
|
281 |
?>
|
282 |
|
283 |
-
<div class="container-basics-forms_comments <?php echo checked('1', SPDSGVOSettings::get('page_basics_forms_comments')) ? 'spdsgvo-d-block' : 'spdsgvo-d-none' ?>">
|
284 |
|
285 |
<div class="form-group">
|
286 |
<label><?php _e('Which personal data of the website visitor will be published in a commentary?', 'shapepress-dsgvo') ?></label>
|
@@ -381,7 +381,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
381 |
|
382 |
?>
|
383 |
|
384 |
-
<div id="container-basics-use-newsletter" <div class="<?php echo $useNewsletterProvider == 1 ? 'spdsgvo-d-block' : 'spdsgvo-d-none';?>">
|
385 |
<div class="form-group">
|
386 |
<?php
|
387 |
$selectedNewsletter = SPDSGVOSettings::get('page_basics_newsletter_provider');
|
@@ -398,7 +398,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
398 |
?>
|
399 |
</div>
|
400 |
|
401 |
-
<div id="container-other-newsletter" class="lw-form-table <?php echo checked(in_array('other', $selectedNewsletter)) ? 'spdsgvo-d-block' : 'spdsgvo-d-none' ?>">
|
402 |
|
403 |
<div class="form-group">
|
404 |
<small class="text-muted form-text"><?php _e('Please complete those services that you have included in your website but are not listed in the list. The privacy policy of the respective service provider can be found on the website of the provider. In order to determine whether the US service provider Privacy Shield is certified, a query can be made in the list provided at this link: <a href="https://www.privacyshield.gov/list" target="_blank">https://www.privacyshield.gov/list</a>.', 'shapepress-dsgvo') ?></small>
|
6 |
?>
|
7 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
8 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOPageBasicsAction::getActionName()) ?>">
|
9 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOPageBasicsAction::getActionName()) . '-nonce'); ?>
|
10 |
|
11 |
<div class="card-columns">
|
12 |
<!-- hosting -->
|
17 |
<div class="card-body">
|
18 |
<div class="form">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOPageBasicsAction::getActionName()); ?>">
|
20 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOPageBasicsAction::getActionName()) . '-nonce'); ?>
|
21 |
|
22 |
<div class="form-group">
|
23 |
<?php
|
72 |
|
73 |
?>
|
74 |
|
75 |
+
<div id="container-logfiles-life" class="<?php echo esc_attr($useLogFiles == 1 ? '' : 'spdsgvo-d-none');?>">
|
76 |
<?php
|
77 |
|
78 |
spDsgvoWriteInput('text', '', 'page_basics_logfiles_life', SPDSGVOSettings::get('page_basics_logfiles_life'),
|
108 |
|
109 |
?>
|
110 |
|
111 |
+
<div class="form-group <?php echo esc_attr($useCdnProvider == 1 ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>" id="container-basics-use-cdn">
|
112 |
<label><?php _e('CDN Provider', 'shapepress-dsgvo') ?></label>
|
113 |
<?php
|
114 |
|
166 |
|
167 |
?>
|
168 |
|
169 |
+
<div class="form-group <?php echo esc_attr($usePaymentProvider == 1 ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>" id="container-basics-use-payment-provider">
|
170 |
<label><?php _e('Payment Provider', 'shapepress-dsgvo') ?></label>
|
171 |
<?php
|
172 |
|
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'),
|
226 |
__('Block Google Fonts', 'shapepress-dsgvo'),
|
280 |
__('Enable if your visitor can comment your posts.', 'shapepress-dsgvo'));
|
281 |
?>
|
282 |
|
283 |
+
<div class="container-basics-forms_comments <?php echo esc_attr(checked('1', SPDSGVOSettings::get('page_basics_forms_comments')) ? 'spdsgvo-d-block' : 'spdsgvo-d-none'); ?>">
|
284 |
|
285 |
<div class="form-group">
|
286 |
<label><?php _e('Which personal data of the website visitor will be published in a commentary?', 'shapepress-dsgvo') ?></label>
|
381 |
|
382 |
?>
|
383 |
|
384 |
+
<div id="container-basics-use-newsletter" <div class="<?php echo esc_attr($useNewsletterProvider == 1 ? 'spdsgvo-d-block' : 'spdsgvo-d-none');?>">
|
385 |
<div class="form-group">
|
386 |
<?php
|
387 |
$selectedNewsletter = SPDSGVOSettings::get('page_basics_newsletter_provider');
|
398 |
?>
|
399 |
</div>
|
400 |
|
401 |
+
<div id="container-other-newsletter" class="lw-form-table <?php echo esc_attr(checked(in_array('other', $selectedNewsletter)) ? 'spdsgvo-d-block' : 'spdsgvo-d-none'); ?>">
|
402 |
|
403 |
<div class="form-group">
|
404 |
<small class="text-muted form-text"><?php _e('Please complete those services that you have included in your website but are not listed in the list. The privacy policy of the respective service provider can be found on the website of the provider. In order to determine whether the US service provider Privacy Shield is certified, a query can be made in the list provided at this link: <a href="https://www.privacyshield.gov/list" target="_blank">https://www.privacyshield.gov/list</a>.', 'shapepress-dsgvo') ?></small>
|
admin/tabs/v3/popup-notice/page.php
CHANGED
@@ -8,7 +8,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
8 |
<div class="card-columns">
|
9 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
10 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOCookieNoticeAction::getActionName());?>">
|
11 |
-
<?php wp_nonce_field(SPDSGVOCookieNoticeAction::getActionName() . '-nonce'); ?>
|
12 |
<!-- notice/popup general -->
|
13 |
<div class="card">
|
14 |
<div class="card-header">
|
@@ -62,21 +62,21 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
62 |
<?php $cnCookieValidity = SPDSGVOSettings::get('cn_cookie_validity'); ?>
|
63 |
<label for="cn_cookie_validity"><?php _e('Cookie lifetime if accepted', 'shapepress-dsgvo') ?></label>
|
64 |
<select class="form-control" name="cn_cookie_validity" id="cn_cookie_validity">
|
65 |
-
<option value="86400" <?php echo selected($cnCookieValidity == 86400) ?>>1
|
66 |
<?php _e('Day', 'shapepress-dsgvo') ?></option>
|
67 |
-
<option value="604800" <?php echo selected($cnCookieValidity == 604800) ?>>1
|
68 |
<?php _e('Week', 'shapepress-dsgvo') ?></option>
|
69 |
<option value="2592000"
|
70 |
-
<?php echo selected($cnCookieValidity == 2592000) ?>>1 <?php _e('Month',
|
71 |
'shapepress-dsgvo') ?></option>
|
72 |
<option value="7862400"
|
73 |
-
<?php echo selected($cnCookieValidity == 7862400) ?>>2 <?php _e('Month',
|
74 |
'shapepress-dsgvo') ?></option>
|
75 |
<option value="15811200"
|
76 |
-
<?php echo selected($cnCookieValidity == 15811200) ?>>6 <?php _e('Month',
|
77 |
'shapepress-dsgvo') ?></option>
|
78 |
<option value="31536000"
|
79 |
-
<?php echo selected($cnCookieValidity == 31536000) ?>>1 <?php _e('Year',
|
80 |
'shapepress-dsgvo') ?></option>
|
81 |
</select>
|
82 |
<small class="form-text text-muted"><?php _e('For this period, the cookie gets stored if the user accepts. After this period your visitors have to make the cookie choice again.', 'shapepress-dsgvo') ?></small>
|
@@ -85,21 +85,21 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
85 |
<?php $cnCookieValidity = SPDSGVOSettings::get('cn_cookie_validity_dismiss'); ?>
|
86 |
<label for="cn_cookie_validity"><?php _e('Cookie lifetime if dismissed', 'shapepress-dsgvo') ?></label>
|
87 |
<select class="form-control" name="cn_cookie_validity_dismiss" id="cn_cookie_validity_dismiss">
|
88 |
-
<option value="86400" <?php echo selected($cnCookieValidity == 86400) ?>>1
|
89 |
<?php _e('Day', 'shapepress-dsgvo') ?></option>
|
90 |
-
<option value="604800" <?php echo selected($cnCookieValidity == 604800) ?>>1
|
91 |
<?php _e('Week', 'shapepress-dsgvo') ?></option>
|
92 |
<option value="2592000"
|
93 |
-
<?php echo selected($cnCookieValidity == 2592000) ?>>1 <?php _e('Month',
|
94 |
'shapepress-dsgvo') ?></option>
|
95 |
<option value="7862400"
|
96 |
-
<?php echo selected($cnCookieValidity == 7862400) ?>>2 <?php _e('Month',
|
97 |
'shapepress-dsgvo') ?></option>
|
98 |
<option value="15811200"
|
99 |
-
<?php echo selected($cnCookieValidity == 15811200) ?>>6 <?php _e('Month',
|
100 |
'shapepress-dsgvo') ?></option>
|
101 |
<option value="31536000"
|
102 |
-
<?php echo selected($cnCookieValidity == 31536000) ?>>1 <?php _e('Year',
|
103 |
'shapepress-dsgvo') ?></option>
|
104 |
</select>
|
105 |
<small class="form-text text-muted"><?php _e('For this period, the cookie gets stored when a user clicks cancel or dismiss all. After this period your visitors have to make the cookie choice again.', 'shapepress-dsgvo') ?></small>
|
@@ -161,7 +161,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
161 |
<label><?php _e('Popup header logo', 'shapepress-dsgvo') ?></label>
|
162 |
<small class="form-text text-muted"><?php _e('We recommend to use a square image.', 'shapepress-dsgvo') ?></small>
|
163 |
<div class="image-preview-wrapper d-flex justify-content-center pb-2" >
|
164 |
-
<img id='logo_image-preview' class="image-preview mb-3" src='<?php echo $src; ?>'
|
165 |
style="height: 50px">
|
166 |
</div>
|
167 |
<div class="position-relative w-100">
|
@@ -197,57 +197,53 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
197 |
<?php // todo: set names for styles, add default style?>
|
198 |
<?php $cnCookieStyle = SPDSGVOSettings::get('cookie_style'); ?>
|
199 |
<select class="form-control" id="cookie_style" name="cookie_style"
|
200 |
-
<?php echo $hasValidLicense == false ? 'disabled' : ''; ?>>
|
201 |
-
<option value="00" <?php echo selected($cnCookieStyle == '00') ?>><?php _e('Default', 'shapepress-dsgvo') ?></option>
|
202 |
-
<option value="01" <?php echo selected($cnCookieStyle == '01') ?>>1</option>
|
203 |
-
<option value="02" <?php echo selected($cnCookieStyle == '02') ?>>2</option>
|
204 |
-
<option value="03" <?php echo selected($cnCookieStyle == '03') ?>>3</option>
|
205 |
-
<option value="04" <?php echo selected($cnCookieStyle == '04') ?>>4</option>
|
206 |
-
<option value="05" <?php echo selected($cnCookieStyle == '05') ?>>5</option>
|
207 |
-
<option value="06" <?php echo selected($cnCookieStyle == '06') ?>>6</option>
|
208 |
-
<option value="07" <?php echo selected($cnCookieStyle == '07') ?>>7</option>
|
209 |
-
<option value="08" <?php echo selected($cnCookieStyle == '08') ?>>8</option>
|
210 |
-
<option value="09" <?php echo selected($cnCookieStyle == '09') ?>>9</option>
|
211 |
-
<option value="10" <?php echo selected($cnCookieStyle == '10') ?>>10</option>
|
212 |
-
<option value="11" <?php echo selected($cnCookieStyle == '11') ?>>11</option>
|
213 |
-
<option value="12" <?php echo selected($cnCookieStyle == '12') ?>>12</option>
|
214 |
-
<!--
|
215 |
-
<option value="13" <?php echo selected($cnCookieStyle == '13') ?>>13</option>
|
216 |
-
<option value="14" <?php echo selected($cnCookieStyle == '14') ?>>14</option>
|
217 |
-
-->
|
218 |
</select>
|
219 |
<small class="form-text text-muted"><?php _e('Choose one of our cookie notice style templates.', 'shapepress-dsgvo') ?></small>
|
220 |
|
221 |
</div>
|
222 |
|
223 |
<div class="form-group">
|
224 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie1.png') ?>"
|
225 |
class="cookie-style-admin-show--01">
|
226 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie2.png') ?>"
|
227 |
class="cookie-style-admin-show--02">
|
228 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie3.png') ?>"
|
229 |
class="cookie-style-admin-show--03">
|
230 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie4.png') ?>"
|
231 |
class="cookie-style-admin-show--04">
|
232 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie5.png') ?>"
|
233 |
class="cookie-style-admin-show--05">
|
234 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie6.png') ?>"
|
235 |
class="cookie-style-admin-show--06">
|
236 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie7.png') ?>"
|
237 |
class="cookie-style-admin-show--07">
|
238 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie8.png') ?>"
|
239 |
class="cookie-style-admin-show--08">
|
240 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie9.png') ?>"
|
241 |
class="cookie-style-admin-show--09">
|
242 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie10.png') ?>"
|
243 |
class="cookie-style-admin-show--10">
|
244 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie11.png') ?>"
|
245 |
class="cookie-style-admin-show--11">
|
246 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie12.png') ?>"
|
247 |
class="cookie-style-admin-show--12">
|
248 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie13.png') ?>"
|
249 |
class="cookie-style-admin-show--13">
|
250 |
-
<img src="<?php echo SPDSGVO::pluginURI('admin\images\cookies\Cookie14.png') ?>"
|
251 |
class="cookie-style-admin-show--14">
|
252 |
</div>
|
253 |
</div>
|
@@ -266,10 +262,10 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
266 |
<?php $cnNoticePosition = SPDSGVOSettings::get('cn_position'); ?>
|
267 |
<label for="cn_position"><?php _e('Position:', 'shapepress-dsgvo') ?></label>
|
268 |
<select class="form-control" name="cn_position" id="cn_position">
|
269 |
-
<option value="top" <?php echo selected($cnNoticePosition == 'top') ?>><?php _e('On top',
|
270 |
'shapepress-dsgvo') ?></option>
|
271 |
<option value="bottom"
|
272 |
-
<?php echo selected($cnNoticePosition == 'bottom') ?>><?php _e('Bottom',
|
273 |
'shapepress-dsgvo') ?></option>
|
274 |
</select>
|
275 |
<small class="form-text text-muted"><?php _e('Specifies the location where the cookie notice should be displayed.', 'shapepress-dsgvo') ?></small>
|
@@ -279,13 +275,13 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
279 |
<?php $cnNoticeAnimation = SPDSGVOSettings::get('cn_animation'); ?>
|
280 |
<label for="cn_animation"><?php _e('Animation', 'shapepress-dsgvo') ?></label>
|
281 |
<select class="form-control" name="cn_animation" id="cn_animation">
|
282 |
-
<option value="none" <?php echo selected($cnNoticeAnimation == 'none') ?>><?php _e('None',
|
283 |
'shapepress-dsgvo') ?></option>
|
284 |
<option value="fade"
|
285 |
-
<?php echo selected($cnNoticeAnimation == 'fade') ?>><?php _e('fade',
|
286 |
'shapepress-dsgvo') ?></option>
|
287 |
<option value="hide"
|
288 |
-
<?php echo selected($cnNoticeAnimation == 'hide') ?>><?php _e('hide',
|
289 |
'shapepress-dsgvo') ?></option>
|
290 |
</select>
|
291 |
<small class="form-text text-muted"><?php _e('Animation when accepting the cookie message.', 'shapepress-dsgvo') ?></small>
|
@@ -297,24 +293,24 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
297 |
<?php $cnSizeText = SPDSGVOSettings::get('cn_size_text'); ?>
|
298 |
<select class="form-control" name="cn_size_text"
|
299 |
id="cn_size_text">
|
300 |
-
<option value="inherit" <?php echo selected($cnSizeText == 'inherit') ?>><?php _e('Default',
|
301 |
'shapepress-dsgvo') ?></option>
|
302 |
-
<option value="11px" <?php echo selected($cnSizeText == '11px') ?>>11px</option>
|
303 |
-
<option value="12px" <?php echo selected($cnSizeText == '12px') ?>>12px</option>
|
304 |
-
<option value="13px" <?php echo selected($cnSizeText == '13px') ?>>13px</option>
|
305 |
-
<option value="14px" <?php echo selected($cnSizeText == '14px') ?>>14px</option>
|
306 |
-
<option value="15px" <?php echo selected($cnSizeText == '15px') ?>>15px</option>
|
307 |
-
<option value="16px" <?php echo selected($cnSizeText == '16px') ?>>16px</option>
|
308 |
-
<option value="17px" <?php echo selected($cnSizeText == '17px') ?>>17px</option>
|
309 |
-
<option value="18px" <?php echo selected($cnSizeText == '18px') ?>>18px</option>
|
310 |
-
<option value="19px" <?php echo selected($cnSizeText == '19px') ?>>19px</option>
|
311 |
-
<option value="20px" <?php echo selected($cnSizeText == '20px') ?>>20px</option>
|
312 |
</select>
|
313 |
</div>
|
314 |
<div class="position-relative">
|
315 |
|
316 |
|
317 |
-
<div class="cn-customize-standard-notice-container <?php echo $cnCookieStyle == '00' ? 'spdsgvo-d-block': 'spdsgvo-d-none'
|
318 |
|
319 |
|
320 |
<?php
|
@@ -351,11 +347,11 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
351 |
<?php $cnButtonBorderSize = SPDSGVOSettings::get('cn_border_size_button'); ?>
|
352 |
<select class="form-control" name="cn_border_size_button"
|
353 |
id="cn_border_size_button">
|
354 |
-
<option value="1px" <?php echo selected($cnButtonBorderSize == '1px') ?>>1px</option>
|
355 |
-
<option value="2px" <?php echo selected($cnButtonBorderSize == '2px') ?>>2px</option>
|
356 |
-
<option value="3px" <?php echo selected($cnButtonBorderSize == '3px') ?>>3px</option>
|
357 |
-
<option value="4px" <?php echo selected($cnButtonBorderSize == '4px') ?>>4px</option>
|
358 |
-
<option value="5px" <?php echo selected($cnButtonBorderSize == '5px') ?>>5px</option>
|
359 |
</select>
|
360 |
</div>
|
361 |
|
@@ -395,17 +391,17 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
395 |
<?php $cnHeightContainer = SPDSGVOSettings::get('cn_height_container'); ?>
|
396 |
<select class="form-control" name="cn_height_container"
|
397 |
id="cn_height_container">
|
398 |
-
<option value="auto" <?php echo selected($cnHeightContainer == 'auto') ?>><?php _e('Default',
|
399 |
'shapepress-dsgvo') ?></option>
|
400 |
-
<option value="40px" <?php echo selected($cnHeightContainer == '40px') ?>>40px</option>
|
401 |
-
<option value="45px" <?php echo selected($cnHeightContainer == '45px') ?>>45px</option>
|
402 |
-
<option value="50px" <?php echo selected($cnHeightContainer == '50px') ?>>50px</option>
|
403 |
-
<option value="55px" <?php echo selected($cnHeightContainer == '55px') ?>>55px</option>
|
404 |
-
<option value="60px" <?php echo selected($cnHeightContainer == '60px') ?>>60px</option>
|
405 |
-
<option value="65px" <?php echo selected($cnHeightContainer == '65px') ?>>65px</option>
|
406 |
-
<option value="70px" <?php echo selected($cnHeightContainer == '70px') ?>>70px</option>
|
407 |
-
<option value="75px" <?php echo selected($cnHeightContainer == '75px') ?>>75px</option>
|
408 |
-
<option value="80px" <?php echo selected($cnHeightContainer == '80px') ?>>80px</option>
|
409 |
</select>
|
410 |
</div>
|
411 |
|
@@ -413,7 +409,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
413 |
</div>
|
414 |
|
415 |
|
416 |
-
<div class="form-group cn-customize-standard-notice-container <?php echo $cnCookieStyle == '00' ? 'spdsgvo-d-block': 'spdsgvo-d-none'
|
417 |
<?php
|
418 |
spDsgvoWriteInput('toggle', '', 'cn_show_dsgvo_icon', SPDSGVOSettings::get('cn_show_dsgvo_icon'),
|
419 |
__('Show WP DSGVO Tools (GDPR) icon', 'shapepress-dsgvo'),
|
8 |
<div class="card-columns">
|
9 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
10 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOCookieNoticeAction::getActionName());?>">
|
11 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOCookieNoticeAction::getActionName()) . '-nonce'); ?>
|
12 |
<!-- notice/popup general -->
|
13 |
<div class="card">
|
14 |
<div class="card-header">
|
62 |
<?php $cnCookieValidity = SPDSGVOSettings::get('cn_cookie_validity'); ?>
|
63 |
<label for="cn_cookie_validity"><?php _e('Cookie lifetime if accepted', 'shapepress-dsgvo') ?></label>
|
64 |
<select class="form-control" name="cn_cookie_validity" id="cn_cookie_validity">
|
65 |
+
<option value="86400" <?php echo esc_attr(selected($cnCookieValidity == 86400)) ?>>1
|
66 |
<?php _e('Day', 'shapepress-dsgvo') ?></option>
|
67 |
+
<option value="604800" <?php echo esc_attr(selected($cnCookieValidity == 604800)) ?>>1
|
68 |
<?php _e('Week', 'shapepress-dsgvo') ?></option>
|
69 |
<option value="2592000"
|
70 |
+
<?php echo esc_attr(selected($cnCookieValidity == 2592000)) ?>>1 <?php _e('Month',
|
71 |
'shapepress-dsgvo') ?></option>
|
72 |
<option value="7862400"
|
73 |
+
<?php echo esc_attr(selected($cnCookieValidity == 7862400)) ?>>2 <?php _e('Month',
|
74 |
'shapepress-dsgvo') ?></option>
|
75 |
<option value="15811200"
|
76 |
+
<?php echo esc_attr(selected($cnCookieValidity == 15811200)) ?>>6 <?php _e('Month',
|
77 |
'shapepress-dsgvo') ?></option>
|
78 |
<option value="31536000"
|
79 |
+
<?php echo esc_attr(selected($cnCookieValidity == 31536000)) ?>>1 <?php _e('Year',
|
80 |
'shapepress-dsgvo') ?></option>
|
81 |
</select>
|
82 |
<small class="form-text text-muted"><?php _e('For this period, the cookie gets stored if the user accepts. After this period your visitors have to make the cookie choice again.', 'shapepress-dsgvo') ?></small>
|
85 |
<?php $cnCookieValidity = SPDSGVOSettings::get('cn_cookie_validity_dismiss'); ?>
|
86 |
<label for="cn_cookie_validity"><?php _e('Cookie lifetime if dismissed', 'shapepress-dsgvo') ?></label>
|
87 |
<select class="form-control" name="cn_cookie_validity_dismiss" id="cn_cookie_validity_dismiss">
|
88 |
+
<option value="86400" <?php echo esc_attr(selected($cnCookieValidity == 86400)) ?>>1
|
89 |
<?php _e('Day', 'shapepress-dsgvo') ?></option>
|
90 |
+
<option value="604800" <?php echo esc_attr(selected($cnCookieValidity == 604800)) ?>>1
|
91 |
<?php _e('Week', 'shapepress-dsgvo') ?></option>
|
92 |
<option value="2592000"
|
93 |
+
<?php echo esc_attr(selected($cnCookieValidity == 2592000)) ?>>1 <?php _e('Month',
|
94 |
'shapepress-dsgvo') ?></option>
|
95 |
<option value="7862400"
|
96 |
+
<?php echo esc_attr(selected($cnCookieValidity == 7862400)) ?>>2 <?php _e('Month',
|
97 |
'shapepress-dsgvo') ?></option>
|
98 |
<option value="15811200"
|
99 |
+
<?php echo esc_attr(selected($cnCookieValidity == 15811200)) ?>>6 <?php _e('Month',
|
100 |
'shapepress-dsgvo') ?></option>
|
101 |
<option value="31536000"
|
102 |
+
<?php echo esc_attr(selected($cnCookieValidity == 31536000)) ?>>1 <?php _e('Year',
|
103 |
'shapepress-dsgvo') ?></option>
|
104 |
</select>
|
105 |
<small class="form-text text-muted"><?php _e('For this period, the cookie gets stored when a user clicks cancel or dismiss all. After this period your visitors have to make the cookie choice again.', 'shapepress-dsgvo') ?></small>
|
161 |
<label><?php _e('Popup header logo', 'shapepress-dsgvo') ?></label>
|
162 |
<small class="form-text text-muted"><?php _e('We recommend to use a square image.', 'shapepress-dsgvo') ?></small>
|
163 |
<div class="image-preview-wrapper d-flex justify-content-center pb-2" >
|
164 |
+
<img id='logo_image-preview' class="image-preview mb-3" src='<?php echo esc_url($src); ?>'
|
165 |
style="height: 50px">
|
166 |
</div>
|
167 |
<div class="position-relative w-100">
|
197 |
<?php // todo: set names for styles, add default style?>
|
198 |
<?php $cnCookieStyle = SPDSGVOSettings::get('cookie_style'); ?>
|
199 |
<select class="form-control" id="cookie_style" name="cookie_style"
|
200 |
+
<?php echo esc_attr($hasValidLicense == false ? 'disabled' : ''); ?>>
|
201 |
+
<option value="00" <?php echo esc_attr(selected($cnCookieStyle == '00')) ?>><?php _e('Default', 'shapepress-dsgvo') ?></option>
|
202 |
+
<option value="01" <?php echo esc_attr(selected($cnCookieStyle == '01')) ?>>1</option>
|
203 |
+
<option value="02" <?php echo esc_attr(selected($cnCookieStyle == '02')) ?>>2</option>
|
204 |
+
<option value="03" <?php echo esc_attr(selected($cnCookieStyle == '03')) ?>>3</option>
|
205 |
+
<option value="04" <?php echo esc_attr(selected($cnCookieStyle == '04')) ?>>4</option>
|
206 |
+
<option value="05" <?php echo esc_attr(selected($cnCookieStyle == '05')) ?>>5</option>
|
207 |
+
<option value="06" <?php echo esc_attr(selected($cnCookieStyle == '06')) ?>>6</option>
|
208 |
+
<option value="07" <?php echo esc_attr(selected($cnCookieStyle == '07')) ?>>7</option>
|
209 |
+
<option value="08" <?php echo esc_attr(selected($cnCookieStyle == '08')) ?>>8</option>
|
210 |
+
<option value="09" <?php echo esc_attr(selected($cnCookieStyle == '09')) ?>>9</option>
|
211 |
+
<option value="10" <?php echo esc_attr(selected($cnCookieStyle == '10')) ?>>10</option>
|
212 |
+
<option value="11" <?php echo esc_attr(selected($cnCookieStyle == '11')) ?>>11</option>
|
213 |
+
<option value="12" <?php echo esc_attr(selected($cnCookieStyle == '12')) ?>>12</option>
|
|
|
|
|
|
|
|
|
214 |
</select>
|
215 |
<small class="form-text text-muted"><?php _e('Choose one of our cookie notice style templates.', 'shapepress-dsgvo') ?></small>
|
216 |
|
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>
|
262 |
<?php $cnNoticePosition = SPDSGVOSettings::get('cn_position'); ?>
|
263 |
<label for="cn_position"><?php _e('Position:', 'shapepress-dsgvo') ?></label>
|
264 |
<select class="form-control" name="cn_position" id="cn_position">
|
265 |
+
<option value="top" <?php echo esc_attr(selected($cnNoticePosition == 'top')) ?>><?php _e('On top',
|
266 |
'shapepress-dsgvo') ?></option>
|
267 |
<option value="bottom"
|
268 |
+
<?php echo esc_attr(selected($cnNoticePosition == 'bottom')) ?>><?php _e('Bottom',
|
269 |
'shapepress-dsgvo') ?></option>
|
270 |
</select>
|
271 |
<small class="form-text text-muted"><?php _e('Specifies the location where the cookie notice should be displayed.', 'shapepress-dsgvo') ?></small>
|
275 |
<?php $cnNoticeAnimation = SPDSGVOSettings::get('cn_animation'); ?>
|
276 |
<label for="cn_animation"><?php _e('Animation', 'shapepress-dsgvo') ?></label>
|
277 |
<select class="form-control" name="cn_animation" id="cn_animation">
|
278 |
+
<option value="none" <?php echo esc_attr(selected($cnNoticeAnimation == 'none')) ?>><?php _e('None',
|
279 |
'shapepress-dsgvo') ?></option>
|
280 |
<option value="fade"
|
281 |
+
<?php echo esc_attr(selected($cnNoticeAnimation == 'fade')) ?>><?php _e('fade',
|
282 |
'shapepress-dsgvo') ?></option>
|
283 |
<option value="hide"
|
284 |
+
<?php echo esc_attr(selected($cnNoticeAnimation == 'hide')) ?>><?php _e('hide',
|
285 |
'shapepress-dsgvo') ?></option>
|
286 |
</select>
|
287 |
<small class="form-text text-muted"><?php _e('Animation when accepting the cookie message.', 'shapepress-dsgvo') ?></small>
|
293 |
<?php $cnSizeText = SPDSGVOSettings::get('cn_size_text'); ?>
|
294 |
<select class="form-control" name="cn_size_text"
|
295 |
id="cn_size_text">
|
296 |
+
<option value="inherit" <?php echo esc_attr(selected($cnSizeText == 'inherit')) ?>><?php _e('Default',
|
297 |
'shapepress-dsgvo') ?></option>
|
298 |
+
<option value="11px" <?php echo esc_attr(selected($cnSizeText == '11px')) ?>>11px</option>
|
299 |
+
<option value="12px" <?php echo esc_attr(selected($cnSizeText == '12px')) ?>>12px</option>
|
300 |
+
<option value="13px" <?php echo esc_attr(selected($cnSizeText == '13px')) ?>>13px</option>
|
301 |
+
<option value="14px" <?php echo esc_attr(selected($cnSizeText == '14px')) ?>>14px</option>
|
302 |
+
<option value="15px" <?php echo esc_attr(selected($cnSizeText == '15px')) ?>>15px</option>
|
303 |
+
<option value="16px" <?php echo esc_attr(selected($cnSizeText == '16px')) ?>>16px</option>
|
304 |
+
<option value="17px" <?php echo esc_attr(selected($cnSizeText == '17px')) ?>>17px</option>
|
305 |
+
<option value="18px" <?php echo esc_attr(selected($cnSizeText == '18px')) ?>>18px</option>
|
306 |
+
<option value="19px" <?php echo esc_attr(selected($cnSizeText == '19px')) ?>>19px</option>
|
307 |
+
<option value="20px" <?php echo esc_attr(selected($cnSizeText == '20px')) ?>>20px</option>
|
308 |
</select>
|
309 |
</div>
|
310 |
<div class="position-relative">
|
311 |
|
312 |
|
313 |
+
<div class="cn-customize-standard-notice-container <?php echo esc_attr($cnCookieStyle == '00' ? 'spdsgvo-d-block': 'spdsgvo-d-none');?>">
|
314 |
|
315 |
|
316 |
<?php
|
347 |
<?php $cnButtonBorderSize = SPDSGVOSettings::get('cn_border_size_button'); ?>
|
348 |
<select class="form-control" name="cn_border_size_button"
|
349 |
id="cn_border_size_button">
|
350 |
+
<option value="1px" <?php echo esc_attr(selected($cnButtonBorderSize == '1px')) ?>>1px</option>
|
351 |
+
<option value="2px" <?php echo esc_attr(selected($cnButtonBorderSize == '2px')) ?>>2px</option>
|
352 |
+
<option value="3px" <?php echo esc_attr(selected($cnButtonBorderSize == '3px')) ?>>3px</option>
|
353 |
+
<option value="4px" <?php echo esc_attr(selected($cnButtonBorderSize == '4px')) ?>>4px</option>
|
354 |
+
<option value="5px" <?php echo esc_attr(selected($cnButtonBorderSize == '5px')) ?>>5px</option>
|
355 |
</select>
|
356 |
</div>
|
357 |
|
391 |
<?php $cnHeightContainer = SPDSGVOSettings::get('cn_height_container'); ?>
|
392 |
<select class="form-control" name="cn_height_container"
|
393 |
id="cn_height_container">
|
394 |
+
<option value="auto" <?php echo esc_attr(selected($cnHeightContainer == 'auto')) ?>><?php _e('Default',
|
395 |
'shapepress-dsgvo') ?></option>
|
396 |
+
<option value="40px" <?php echo esc_attr(selected($cnHeightContainer == '40px')) ?>>40px</option>
|
397 |
+
<option value="45px" <?php echo esc_attr(selected($cnHeightContainer == '45px')) ?>>45px</option>
|
398 |
+
<option value="50px" <?php echo esc_attr(selected($cnHeightContainer == '50px')) ?>>50px</option>
|
399 |
+
<option value="55px" <?php echo esc_attr(selected($cnHeightContainer == '55px')) ?>>55px</option>
|
400 |
+
<option value="60px" <?php echo esc_attr(selected($cnHeightContainer == '60px')) ?>>60px</option>
|
401 |
+
<option value="65px" <?php echo esc_attr(selected($cnHeightContainer == '65px')) ?>>65px</option>
|
402 |
+
<option value="70px" <?php echo esc_attr(selected($cnHeightContainer == '70px')) ?>>70px</option>
|
403 |
+
<option value="75px" <?php echo esc_attr(selected($cnHeightContainer == '75px')) ?>>75px</option>
|
404 |
+
<option value="80px" <?php echo esc_attr(selected($cnHeightContainer == '80px')) ?>>80px</option>
|
405 |
</select>
|
406 |
</div>
|
407 |
|
409 |
</div>
|
410 |
|
411 |
|
412 |
+
<div class="form-group cn-customize-standard-notice-container <?php echo esc_attr($cnCookieStyle == '00' ? 'spdsgvo-d-block': 'spdsgvo-d-none');?>">
|
413 |
<?php
|
414 |
spDsgvoWriteInput('toggle', '', 'cn_show_dsgvo_icon', SPDSGVOSettings::get('cn_show_dsgvo_icon'),
|
415 |
__('Show WP DSGVO Tools (GDPR) icon', 'shapepress-dsgvo'),
|
admin/tabs/v3/subject-access-request/page.php
CHANGED
@@ -16,20 +16,20 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
16 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
17 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOAdminSubjectAccessRequestAction::getActionName()); ?>">
|
18 |
<input type="hidden" name="subform" value="common-settings" />
|
19 |
-
<?php wp_nonce_field(SPDSGVOAdminSubjectAccessRequestAction::getActionName() . '-nonce'); ?>
|
20 |
|
21 |
<div class="form-group">
|
22 |
<label for="sar_cron"><?php _e('Automatic processing', 'shapepress-dsgvo') ?></label>
|
23 |
<?php $sarCron = SPDSGVOSettings::get('sar_cron'); ?>
|
24 |
<select class="form-control" name="sar_cron" id="sar_cron">
|
25 |
-
<option value="0" <?php echo selected($sarCron === '0') ?>><?php _e('none', 'shapepress-dsgvo') ?></option>
|
26 |
-
<option value="1" <?php echo selected($sarCron === '1') ?>>
|
27 |
1 <?php _e('day', 'shapepress-dsgvo') ?></option>
|
28 |
-
<option value="2" <?php echo selected($sarCron === '2') ?>>
|
29 |
2 <?php _e('days', 'shapepress-dsgvo') ?></option>
|
30 |
-
<option value="3" <?php echo selected($sarCron === '3') ?>>
|
31 |
3 <?php _e('days', 'shapepress-dsgvo') ?></option>
|
32 |
-
<option value="7" <?php echo selected($sarCron === '4') ?>>
|
33 |
1 <?php _e('weeks', 'shapepress-dsgvo') ?></option>
|
34 |
</select>
|
35 |
|
@@ -49,7 +49,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
49 |
<select class="form-control" name="sar_page" id="sar_page">
|
50 |
<option value="0"><?php _e('Select', 'shapepress-dsgvo'); ?></option>
|
51 |
<?php foreach (get_pages(array('number' => 0)) as $key => $page): ?>
|
52 |
-
<option <?php echo selected($sarPage == $page->ID) ?> value="<?php echo $page->ID ?>">
|
53 |
<?php echo esc_html($page->post_title); ?>
|
54 |
</option>
|
55 |
<?php endforeach; ?>
|
@@ -93,7 +93,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
93 |
<input type="hidden" name="action"
|
94 |
value="<?php echo esc_attr(SPDSGVOAdminSubjectAccessRequestAction::getActionName()); ?>">
|
95 |
<input type="hidden" name="subform" value="notification-settings" />
|
96 |
-
<?php wp_nonce_field(SPDSGVOAdminSubjectAccessRequestAction::getActionName() . '-nonce'); ?>
|
97 |
|
98 |
<div class="position-relative">
|
99 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
@@ -172,9 +172,9 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
172 |
<?php if (count($pending) !== 0): ?>
|
173 |
<?php foreach ($pending as $key => $pendingRequest): ?>
|
174 |
|
175 |
-
<tr class="<?php echo ($key % 2 == 0) ? 'alternate' : '' ?>">
|
176 |
<td class="column-request-id">
|
177 |
-
<?php echo $pendingRequest->ID ?>
|
178 |
</td>
|
179 |
<td class="column-email"><strong><?php echo esc_html($pendingRequest->email); ?></strong>
|
180 |
</td>
|
@@ -185,7 +185,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
185 |
<?php echo esc_html($pendingRequest->last_name); ?>
|
186 |
</td>
|
187 |
<td class="column-auto-deleting-on">
|
188 |
-
<?php echo $pendingRequest->dsgvo_accepted === '1' ? __('Yes', 'shapepress-dsgvo') : __('No', 'shapepress-dsgvo') ?>
|
189 |
</td>
|
190 |
<td class="column-unsubscribe-user"><a class="btn btn-outline-primary"
|
191 |
href="<?php echo wp_nonce_url(SPDSGVOAdminSubjectAccessRequestAction::url(array('process' => $pendingRequest->ID)),
|
@@ -248,7 +248,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
248 |
<input type="hidden" name="action"
|
249 |
value="<?php echo esc_attr(SPDSGVOSubjectAccessRequestAction::getActionName()); ?>"> <input
|
250 |
type="hidden" name="is_admin" value="1"> <br>
|
251 |
-
<?php wp_nonce_field(SPDSGVOSubjectAccessRequestAction::getActionName() . '-nonce'); ?>
|
252 |
|
253 |
<?php
|
254 |
spDsgvoWriteInput('text', '', 'email', '',
|
@@ -291,7 +291,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
291 |
'');
|
292 |
?>
|
293 |
<div class="form-group">
|
294 |
-
<input type="submit" class="btn btn-primary btn-block" value="<?php echo
|
295 |
</div>
|
296 |
</form>
|
297 |
</div>
|
16 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
17 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOAdminSubjectAccessRequestAction::getActionName()); ?>">
|
18 |
<input type="hidden" name="subform" value="common-settings" />
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOAdminSubjectAccessRequestAction::getActionName()) . '-nonce'); ?>
|
20 |
|
21 |
<div class="form-group">
|
22 |
<label for="sar_cron"><?php _e('Automatic processing', 'shapepress-dsgvo') ?></label>
|
23 |
<?php $sarCron = SPDSGVOSettings::get('sar_cron'); ?>
|
24 |
<select class="form-control" name="sar_cron" id="sar_cron">
|
25 |
+
<option value="0" <?php echo esc_attr(selected($sarCron === '0')) ?>><?php _e('none', 'shapepress-dsgvo') ?></option>
|
26 |
+
<option value="1" <?php echo esc_attr(selected($sarCron === '1')) ?>>
|
27 |
1 <?php _e('day', 'shapepress-dsgvo') ?></option>
|
28 |
+
<option value="2" <?php echo esc_attr(selected($sarCron === '2')) ?>>
|
29 |
2 <?php _e('days', 'shapepress-dsgvo') ?></option>
|
30 |
+
<option value="3" <?php echo esc_attr(selected($sarCron === '3')) ?>>
|
31 |
3 <?php _e('days', 'shapepress-dsgvo') ?></option>
|
32 |
+
<option value="7" <?php echo esc_attr(selected($sarCron === '4')) ?>>
|
33 |
1 <?php _e('weeks', 'shapepress-dsgvo') ?></option>
|
34 |
</select>
|
35 |
|
49 |
<select class="form-control" name="sar_page" id="sar_page">
|
50 |
<option value="0"><?php _e('Select', 'shapepress-dsgvo'); ?></option>
|
51 |
<?php foreach (get_pages(array('number' => 0)) as $key => $page): ?>
|
52 |
+
<option <?php echo esc_attr(selected($sarPage == $page->ID)) ?> value="<?php echo esc_attr($page->ID); ?>">
|
53 |
<?php echo esc_html($page->post_title); ?>
|
54 |
</option>
|
55 |
<?php endforeach; ?>
|
93 |
<input type="hidden" name="action"
|
94 |
value="<?php echo esc_attr(SPDSGVOAdminSubjectAccessRequestAction::getActionName()); ?>">
|
95 |
<input type="hidden" name="subform" value="notification-settings" />
|
96 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOAdminSubjectAccessRequestAction::getActionName()) . '-nonce'); ?>
|
97 |
|
98 |
<div class="position-relative">
|
99 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
172 |
<?php if (count($pending) !== 0): ?>
|
173 |
<?php foreach ($pending as $key => $pendingRequest): ?>
|
174 |
|
175 |
+
<tr class="<?php echo esc_attr(($key % 2 == 0) ? 'alternate' : ''); ?>">
|
176 |
<td class="column-request-id">
|
177 |
+
<?php echo esc_html($pendingRequest->ID); ?>
|
178 |
</td>
|
179 |
<td class="column-email"><strong><?php echo esc_html($pendingRequest->email); ?></strong>
|
180 |
</td>
|
185 |
<?php echo esc_html($pendingRequest->last_name); ?>
|
186 |
</td>
|
187 |
<td class="column-auto-deleting-on">
|
188 |
+
<?php echo esc_html($pendingRequest->dsgvo_accepted === '1' ? __('Yes', 'shapepress-dsgvo') : __('No', 'shapepress-dsgvo')); ?>
|
189 |
</td>
|
190 |
<td class="column-unsubscribe-user"><a class="btn btn-outline-primary"
|
191 |
href="<?php echo wp_nonce_url(SPDSGVOAdminSubjectAccessRequestAction::url(array('process' => $pendingRequest->ID)),
|
248 |
<input type="hidden" name="action"
|
249 |
value="<?php echo esc_attr(SPDSGVOSubjectAccessRequestAction::getActionName()); ?>"> <input
|
250 |
type="hidden" name="is_admin" value="1"> <br>
|
251 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOSubjectAccessRequestAction::getActionName()) . '-nonce'); ?>
|
252 |
|
253 |
<?php
|
254 |
spDsgvoWriteInput('text', '', 'email', '',
|
291 |
'');
|
292 |
?>
|
293 |
<div class="form-group">
|
294 |
+
<input type="submit" class="btn btn-primary btn-block" value="<?php echo esc_attr_e('Add entry', 'shapepress-dsgvo');?>">
|
295 |
</div>
|
296 |
</form>
|
297 |
</div>
|
admin/tabs/v3/super-unsubscribe/class-sp-dsgvo-dismiss-unsubscribe-action.php
CHANGED
@@ -5,9 +5,16 @@ Class SPDSGVODismissUnsubscribeAction extends SPDSGVOAjaxAction{
|
|
5 |
protected $action = 'admin-dismiss-unsubscribe';
|
6 |
|
7 |
protected function run(){
|
|
|
|
|
|
|
|
|
8 |
$id = $this->get('id');
|
9 |
if (is_numeric()) {
|
10 |
-
|
|
|
|
|
|
|
11 |
}
|
12 |
die();
|
13 |
}
|
5 |
protected $action = 'admin-dismiss-unsubscribe';
|
6 |
|
7 |
protected function run(){
|
8 |
+
|
9 |
+
$this->requireAdmin();
|
10 |
+
$this->checkCSRF();
|
11 |
+
|
12 |
$id = $this->get('id');
|
13 |
if (is_numeric()) {
|
14 |
+
$postType = get_post_type($id );
|
15 |
+
if ($postType == "subjectaccessrequest") {
|
16 |
+
wp_delete_post( $id );
|
17 |
+
}
|
18 |
}
|
19 |
die();
|
20 |
}
|
admin/tabs/v3/super-unsubscribe/page.php
CHANGED
@@ -14,9 +14,9 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
14 |
<div class="card-body">
|
15 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
16 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOSuperUnsubscribeAction::getActionName()); ?>"> <input
|
17 |
-
type="hidden" name="CSRF" value="<?php echo sp_dsgvo_CSRF_TOKEN() ?>">
|
18 |
<input type="hidden" name="subform" value="common-settings" />
|
19 |
-
<?php wp_nonce_field(SPDSGVOSuperUnsubscribeAction::getActionName() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', 'unsubscribe_auto_delete', SPDSGVOSettings::get('unsubscribe_auto_delete'),
|
@@ -29,18 +29,18 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
29 |
<label for="sar_cron"><?php _e('After period', 'shapepress-dsgvo') ?></label>
|
30 |
<?php $suAutoDelTime = SPDSGVOSettings::get('su_auto_del_time'); ?>
|
31 |
<select class="form-control" name="su_auto_del_time" id="su_auto_del_time">
|
32 |
-
<option value="0" <?php echo selected($suAutoDelTime === '0') ?>><?php _e('none', 'shapepress-dsgvo') ?></option>
|
33 |
-
<option value="1m" <?php echo selected($suAutoDelTime === '1m') ?>>
|
34 |
1 <?php _e('month', 'shapepress-dsgvo') ?></option>
|
35 |
-
<option value="3m" <?php echo selected($suAutoDelTime === '3m') ?>>
|
36 |
3 <?php _e('months', 'shapepress-dsgvo') ?></option>
|
37 |
-
<option value="6m" <?php echo selected($suAutoDelTime === '6m') ?>>
|
38 |
6 <?php _e('months', 'shapepress-dsgvo') ?></option>
|
39 |
-
<option value="1y" <?php echo selected($suAutoDelTime === '1y') ?>>
|
40 |
1 <?php _e('year', 'shapepress-dsgvo') ?></option>
|
41 |
-
<option value="6y" <?php echo selected($suAutoDelTime === '6y') ?>>
|
42 |
6 <?php _e('years', 'shapepress-dsgvo') ?></option>
|
43 |
-
<option value="7y" <?php echo selected($suAutoDelTime === '7y') ?>>
|
44 |
7 <?php _e('years', 'shapepress-dsgvo') ?></option>
|
45 |
</select>
|
46 |
|
@@ -62,7 +62,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
62 |
<select class="form-control" name="super_unsubscribe_page" id="super_unsubscribe_page">
|
63 |
<option value="0"><?php _e('Select', 'shapepress-dsgvo'); ?></option>
|
64 |
<?php foreach (get_pages(array('number' => 0)) as $key => $page): ?>
|
65 |
-
<option <?php echo selected($suPage == $page->ID) ?> value="<?php echo esc_attr($page->ID); ?>">
|
66 |
<?php echo esc_html($page->post_title); ?>
|
67 |
</option>
|
68 |
<?php endforeach; ?>
|
@@ -104,7 +104,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
104 |
<input type="hidden" name="action"
|
105 |
value="<?php echo esc_attr(SPDSGVOSuperUnsubscribeAction::getActionName()); ?>">
|
106 |
<input type="hidden" name="subform" value="integration-settings" />
|
107 |
-
<?php wp_nonce_field(SPDSGVOSuperUnsubscribeAction::getActionName() . '-nonce'); ?>
|
108 |
|
109 |
<div class="position-relative">
|
110 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
@@ -113,9 +113,9 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
113 |
<label for="su_woo_data_action"><?php _e('WooCommerce Data', 'shapepress-dsgvo') ?></label>
|
114 |
<?php $wooDataAction = SPDSGVOSettings::get('su_woo_data_action'); ?>
|
115 |
<select class="form-control" name="su_woo_data_action" id="su_woo_data_action">
|
116 |
-
<option value="ignore" <?php echo selected($wooDataAction === 'ignore') ?>><?php _e('No action', 'shapepress-dsgvo') ?></option>
|
117 |
-
<option value="pseudo" <?php echo selected($wooDataAction === 'pseudo') ?>><?php _e('Pseudonymise', 'shapepress-dsgvo') ?></option>
|
118 |
-
<option value="del" <?php echo selected($wooDataAction === 'del') ?>><?php _e('Delete', 'shapepress-dsgvo') ?></option>
|
119 |
</select>
|
120 |
<small class="form-text text-muted"><?php _e('Specifies what should happen to personal data of orders.', 'shapepress-dsgvo') ?></small>
|
121 |
</div>
|
@@ -124,9 +124,9 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
124 |
<label for="su_bbpress_data_action"><?php _e('bbPress Data', 'shapepress-dsgvo') ?></label>
|
125 |
<?php $bbPDataAction = SPDSGVOSettings::get('su_bbpress_data_action'); ?>
|
126 |
<select class="form-control" name="su_bbpress_data_action" id="su_bbpress_data_action">
|
127 |
-
<option value="ignore" <?php echo selected($bbPDataAction === 'ignore') ?>><?php _e('No action', 'shapepress-dsgvo') ?></option>
|
128 |
-
<option value="pseudo" <?php echo selected($bbPDataAction === 'pseudo') ?>><?php _e('Pseudonymise', 'shapepress-dsgvo') ?></option>
|
129 |
-
<option value="del" <?php echo selected($bbPDataAction === 'del') ?>><?php _e('Delete', 'shapepress-dsgvo') ?></option>
|
130 |
</select>
|
131 |
<small class="form-text text-muted"><?php _e('Specifies what should happen with forum entries.', 'shapepress-dsgvo') ?></small>
|
132 |
</div>
|
@@ -135,9 +135,9 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
135 |
<label for="su_buddypress_data_action"><?php _e('buddyPress Data', 'shapepress-dsgvo') ?></label>
|
136 |
<?php $buddyPressDataAction = SPDSGVOSettings::get('su_buddypress_data_action'); ?>
|
137 |
<select class="form-control" name="su_buddypress_data_action" id="su_buddypress_data_action">
|
138 |
-
<option value="ignore" <?php echo selected($buddyPressDataAction === 'ignore') ?>><?php _e('No action', 'shapepress-dsgvo') ?></option>
|
139 |
-
<option value="pseudo" <?php echo selected($buddyPressDataAction === 'pseudo') ?>><?php _e('Pseudonymise', 'shapepress-dsgvo') ?></option>
|
140 |
-
<option value="del" <?php echo selected($buddyPressDataAction === 'del') ?>><?php _e('Delete', 'shapepress-dsgvo') ?></option>
|
141 |
</select>
|
142 |
<small class="form-text text-muted"><?php _e('Specifies what should happen with forum entries.', 'shapepress-dsgvo') ?></small>
|
143 |
</div>
|
@@ -146,9 +146,9 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
146 |
<label for="su_cf7_data_action"><?php _e('CF7/Flamingo Data', 'shapepress-dsgvo') ?></label>
|
147 |
<?php $cf7DataAction = SPDSGVOSettings::get('su_cf7_data_action'); ?>
|
148 |
<select class="form-control" name="su_cf7_data_action" id="su_cf7_data_action">
|
149 |
-
<option value="ignore" <?php echo selected($cf7DataAction === 'ignore') ?>><?php _e('No action', 'shapepress-dsgvo') ?></option>
|
150 |
-
<option value="pseudo" <?php echo selected($cf7DataAction === 'pseudo') ?>><?php _e('Pseudonymise', 'shapepress-dsgvo') ?></option>
|
151 |
-
<option value="del" <?php echo selected($cf7DataAction === 'del') ?>><?php _e('Delete', 'shapepress-dsgvo') ?></option>
|
152 |
</select>
|
153 |
<small class="form-text text-muted"><?php _e('Specifies what to do with contact entries and messages.', 'shapepress-dsgvo') ?></small>
|
154 |
</div>
|
@@ -171,7 +171,7 @@ $hasValidLicense = isValidPremiumEdition() || isValidBlogEdition();
|
|
171 |
<input type="hidden" name="action"
|
172 |
value="<?php echo esc_attr(SPDSGVOSuperUnsubscribeAction::getActionName()); ?>">
|
173 |
<input type="hidden" name="subform" value="notification-settings" />
|
174 |
-
<?php wp_nonce_field(SPDSGVOSuperUnsubscribeAction::getActionName() . '-nonce'); ?>
|
175 |
|
176 |
<div class="position-relative">
|
177 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
@@ -238,14 +238,14 @@ if (isset($_GET['status']) && in_array($_GET['status'], $statuses)) {
|
|
238 |
<li>
|
239 |
<a
|
240 |
href="<?php echo esc_url(SPDSGVO::adminURL(array('tab' => 'super-unsubscribe', 'status' => 'pending'))) ?>"
|
241 |
-
class="<?php echo ($status === 'pending') ? 'current' : ''; ?>" aria-current="page">
|
242 |
<?php _e('Pending', 'shapepress-dsgvo') ?>
|
243 |
</a>
|
244 |
</li>
|
245 |
<li>
|
246 |
<a
|
247 |
href="<?php echo esc_url(SPDSGVO::adminURL(array('tab' => 'super-unsubscribe', 'status' => 'done'))) ?>"
|
248 |
-
class="<?php echo ($status === 'done') ? 'current' : ''; ?>" aria-current="page">
|
249 |
<?php _e('Done', 'shapepress-dsgvo') ?>
|
250 |
</a>
|
251 |
</li>
|
@@ -279,7 +279,7 @@ if (isset($_GET['status']) && in_array($_GET['status'], $statuses)) {
|
|
279 |
<?php if (count($confirmed) !== 0): ?>
|
280 |
<?php foreach ($confirmed as $key => $confirmedRequest): ?>
|
281 |
|
282 |
-
<tr class="<?php echo ($key % 2 == 0) ? 'alternate' : '' ?>">
|
283 |
<td class="column-request-id">
|
284 |
<span class="wpk-services-table-name"><?php _e('ID', 'shapepress-dsgvo') ?></span>
|
285 |
<?php echo esc_html($confirmedRequest->ID); ?>
|
@@ -298,7 +298,7 @@ if (isset($_GET['status']) && in_array($_GET['status'], $statuses)) {
|
|
298 |
</td>
|
299 |
<td class="column-auto-deleting-on">
|
300 |
<span class="wpk-services-table-name"><?php _e('GDPR approval', 'shapepress-dsgvo') ?></span>
|
301 |
-
<?php echo $confirmedRequest->dsgvo_accepted === '1' ? _e('Yes', 'shapepress-dsgvo') : _e('No', 'shapepress-dsgvo') ?>
|
302 |
</td>
|
303 |
<td class="column-auto-deleting-on">
|
304 |
<span class="wpk-services-table-name"><?php _e('State', 'shapepress-dsgvo') ?></span>
|
@@ -382,7 +382,7 @@ if (isset($_GET['status']) && in_array($_GET['status'], $statuses)) {
|
|
382 |
<input type="hidden" name="action"
|
383 |
value="<?php echo esc_attr(SPDSGVOSuperUnsubscribeFormAction::getActionName()); ?>"> <input
|
384 |
type="hidden" name="is_admin" value="1"> <br>
|
385 |
-
<?php wp_nonce_field(SPDSGVOSuperUnsubscribeFormAction::getActionName() . '-nonce'); ?>
|
386 |
|
387 |
<?php
|
388 |
spDsgvoWriteInput('text', '', 'email', '',
|
@@ -425,7 +425,7 @@ if (isset($_GET['status']) && in_array($_GET['status'], $statuses)) {
|
|
425 |
'');
|
426 |
?>
|
427 |
<div class="form-group">
|
428 |
-
<input type="submit" class="btn btn-primary btn-block" value="<?php echo
|
429 |
</div>
|
430 |
</form>
|
431 |
</div>
|
14 |
<div class="card-body">
|
15 |
<form method="post" action="<?php echo esc_url(admin_url('/admin-ajax.php')); ?>">
|
16 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOSuperUnsubscribeAction::getActionName()); ?>"> <input
|
17 |
+
type="hidden" name="CSRF" value="<?php echo esc_attr(sp_dsgvo_CSRF_TOKEN()) ?>">
|
18 |
<input type="hidden" name="subform" value="common-settings" />
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOSuperUnsubscribeAction::getActionName()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', 'unsubscribe_auto_delete', SPDSGVOSettings::get('unsubscribe_auto_delete'),
|
29 |
<label for="sar_cron"><?php _e('After period', 'shapepress-dsgvo') ?></label>
|
30 |
<?php $suAutoDelTime = SPDSGVOSettings::get('su_auto_del_time'); ?>
|
31 |
<select class="form-control" name="su_auto_del_time" id="su_auto_del_time">
|
32 |
+
<option value="0" <?php echo esc_attr(selected($suAutoDelTime === '0')) ?>><?php _e('none', 'shapepress-dsgvo') ?></option>
|
33 |
+
<option value="1m" <?php echo esc_attr(selected($suAutoDelTime === '1m')) ?>>
|
34 |
1 <?php _e('month', 'shapepress-dsgvo') ?></option>
|
35 |
+
<option value="3m" <?php echo esc_attr(selected($suAutoDelTime === '3m')) ?>>
|
36 |
3 <?php _e('months', 'shapepress-dsgvo') ?></option>
|
37 |
+
<option value="6m" <?php echo esc_attr(selected($suAutoDelTime === '6m')) ?>>
|
38 |
6 <?php _e('months', 'shapepress-dsgvo') ?></option>
|
39 |
+
<option value="1y" <?php echo esc_attr(selected($suAutoDelTime === '1y')) ?>>
|
40 |
1 <?php _e('year', 'shapepress-dsgvo') ?></option>
|
41 |
+
<option value="6y" <?php echo esc_attr(selected($suAutoDelTime === '6y')) ?>>
|
42 |
6 <?php _e('years', 'shapepress-dsgvo') ?></option>
|
43 |
+
<option value="7y" <?php echo esc_attr(selected($suAutoDelTime === '7y')) ?>>
|
44 |
7 <?php _e('years', 'shapepress-dsgvo') ?></option>
|
45 |
</select>
|
46 |
|
62 |
<select class="form-control" name="super_unsubscribe_page" id="super_unsubscribe_page">
|
63 |
<option value="0"><?php _e('Select', 'shapepress-dsgvo'); ?></option>
|
64 |
<?php foreach (get_pages(array('number' => 0)) as $key => $page): ?>
|
65 |
+
<option <?php echo esc_attr(selected($suPage == $page->ID)) ?> value="<?php echo esc_attr($page->ID); ?>">
|
66 |
<?php echo esc_html($page->post_title); ?>
|
67 |
</option>
|
68 |
<?php endforeach; ?>
|
104 |
<input type="hidden" name="action"
|
105 |
value="<?php echo esc_attr(SPDSGVOSuperUnsubscribeAction::getActionName()); ?>">
|
106 |
<input type="hidden" name="subform" value="integration-settings" />
|
107 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOSuperUnsubscribeAction::getActionName()) . '-nonce'); ?>
|
108 |
|
109 |
<div class="position-relative">
|
110 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
113 |
<label for="su_woo_data_action"><?php _e('WooCommerce Data', 'shapepress-dsgvo') ?></label>
|
114 |
<?php $wooDataAction = SPDSGVOSettings::get('su_woo_data_action'); ?>
|
115 |
<select class="form-control" name="su_woo_data_action" id="su_woo_data_action">
|
116 |
+
<option value="ignore" <?php echo esc_attr(selected($wooDataAction === 'ignore')) ?>><?php _e('No action', 'shapepress-dsgvo') ?></option>
|
117 |
+
<option value="pseudo" <?php echo esc_attr(selected($wooDataAction === 'pseudo')) ?>><?php _e('Pseudonymise', 'shapepress-dsgvo') ?></option>
|
118 |
+
<option value="del" <?php echo esc_attr(selected($wooDataAction === 'del')) ?>><?php _e('Delete', 'shapepress-dsgvo') ?></option>
|
119 |
</select>
|
120 |
<small class="form-text text-muted"><?php _e('Specifies what should happen to personal data of orders.', 'shapepress-dsgvo') ?></small>
|
121 |
</div>
|
124 |
<label for="su_bbpress_data_action"><?php _e('bbPress Data', 'shapepress-dsgvo') ?></label>
|
125 |
<?php $bbPDataAction = SPDSGVOSettings::get('su_bbpress_data_action'); ?>
|
126 |
<select class="form-control" name="su_bbpress_data_action" id="su_bbpress_data_action">
|
127 |
+
<option value="ignore" <?php echo esc_attr(selected($bbPDataAction === 'ignore')) ?>><?php _e('No action', 'shapepress-dsgvo') ?></option>
|
128 |
+
<option value="pseudo" <?php echo esc_attr(selected($bbPDataAction === 'pseudo')) ?>><?php _e('Pseudonymise', 'shapepress-dsgvo') ?></option>
|
129 |
+
<option value="del" <?php echo esc_attr(selected($bbPDataAction === 'del')) ?>><?php _e('Delete', 'shapepress-dsgvo') ?></option>
|
130 |
</select>
|
131 |
<small class="form-text text-muted"><?php _e('Specifies what should happen with forum entries.', 'shapepress-dsgvo') ?></small>
|
132 |
</div>
|
135 |
<label for="su_buddypress_data_action"><?php _e('buddyPress Data', 'shapepress-dsgvo') ?></label>
|
136 |
<?php $buddyPressDataAction = SPDSGVOSettings::get('su_buddypress_data_action'); ?>
|
137 |
<select class="form-control" name="su_buddypress_data_action" id="su_buddypress_data_action">
|
138 |
+
<option value="ignore" <?php echo esc_attr(selected($buddyPressDataAction === 'ignore')) ?>><?php _e('No action', 'shapepress-dsgvo') ?></option>
|
139 |
+
<option value="pseudo" <?php echo esc_attr(selected($buddyPressDataAction === 'pseudo')) ?>><?php _e('Pseudonymise', 'shapepress-dsgvo') ?></option>
|
140 |
+
<option value="del" <?php echo esc_attr(selected($buddyPressDataAction === 'del')) ?>><?php _e('Delete', 'shapepress-dsgvo') ?></option>
|
141 |
</select>
|
142 |
<small class="form-text text-muted"><?php _e('Specifies what should happen with forum entries.', 'shapepress-dsgvo') ?></small>
|
143 |
</div>
|
146 |
<label for="su_cf7_data_action"><?php _e('CF7/Flamingo Data', 'shapepress-dsgvo') ?></label>
|
147 |
<?php $cf7DataAction = SPDSGVOSettings::get('su_cf7_data_action'); ?>
|
148 |
<select class="form-control" name="su_cf7_data_action" id="su_cf7_data_action">
|
149 |
+
<option value="ignore" <?php echo esc_attr(selected($cf7DataAction === 'ignore')) ?>><?php _e('No action', 'shapepress-dsgvo') ?></option>
|
150 |
+
<option value="pseudo" <?php echo esc_attr(selected($cf7DataAction === 'pseudo')) ?>><?php _e('Pseudonymise', 'shapepress-dsgvo') ?></option>
|
151 |
+
<option value="del" <?php echo esc_attr(selected($cf7DataAction === 'del')) ?>><?php _e('Delete', 'shapepress-dsgvo') ?></option>
|
152 |
</select>
|
153 |
<small class="form-text text-muted"><?php _e('Specifies what to do with contact entries and messages.', 'shapepress-dsgvo') ?></small>
|
154 |
</div>
|
171 |
<input type="hidden" name="action"
|
172 |
value="<?php echo esc_attr(SPDSGVOSuperUnsubscribeAction::getActionName()); ?>">
|
173 |
<input type="hidden" name="subform" value="notification-settings" />
|
174 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOSuperUnsubscribeAction::getActionName()) . '-nonce'); ?>
|
175 |
|
176 |
<div class="position-relative">
|
177 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
238 |
<li>
|
239 |
<a
|
240 |
href="<?php echo esc_url(SPDSGVO::adminURL(array('tab' => 'super-unsubscribe', 'status' => 'pending'))) ?>"
|
241 |
+
class="<?php echo esc_attr(($status === 'pending') ? 'current' : ''); ?>" aria-current="page">
|
242 |
<?php _e('Pending', 'shapepress-dsgvo') ?>
|
243 |
</a>
|
244 |
</li>
|
245 |
<li>
|
246 |
<a
|
247 |
href="<?php echo esc_url(SPDSGVO::adminURL(array('tab' => 'super-unsubscribe', 'status' => 'done'))) ?>"
|
248 |
+
class="<?php echo esc_attr(($status === 'done') ? 'current' : ''); ?>" aria-current="page">
|
249 |
<?php _e('Done', 'shapepress-dsgvo') ?>
|
250 |
</a>
|
251 |
</li>
|
279 |
<?php if (count($confirmed) !== 0): ?>
|
280 |
<?php foreach ($confirmed as $key => $confirmedRequest): ?>
|
281 |
|
282 |
+
<tr class="<?php echo esc_attr(($key % 2 == 0) ? 'alternate' : '') ?>">
|
283 |
<td class="column-request-id">
|
284 |
<span class="wpk-services-table-name"><?php _e('ID', 'shapepress-dsgvo') ?></span>
|
285 |
<?php echo esc_html($confirmedRequest->ID); ?>
|
298 |
</td>
|
299 |
<td class="column-auto-deleting-on">
|
300 |
<span class="wpk-services-table-name"><?php _e('GDPR approval', 'shapepress-dsgvo') ?></span>
|
301 |
+
<?php echo esc_html($confirmedRequest->dsgvo_accepted === '1' ? _e('Yes', 'shapepress-dsgvo') : _e('No', 'shapepress-dsgvo')); ?>
|
302 |
</td>
|
303 |
<td class="column-auto-deleting-on">
|
304 |
<span class="wpk-services-table-name"><?php _e('State', 'shapepress-dsgvo') ?></span>
|
382 |
<input type="hidden" name="action"
|
383 |
value="<?php echo esc_attr(SPDSGVOSuperUnsubscribeFormAction::getActionName()); ?>"> <input
|
384 |
type="hidden" name="is_admin" value="1"> <br>
|
385 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOSuperUnsubscribeFormAction::getActionName()) . '-nonce'); ?>
|
386 |
|
387 |
<?php
|
388 |
spDsgvoWriteInput('text', '', 'email', '',
|
425 |
'');
|
426 |
?>
|
427 |
<div class="form-group">
|
428 |
+
<input type="submit" class="btn btn-primary btn-block" value="<?php echo esc_attr_e('Add entry', 'shapepress-dsgvo');?>">
|
429 |
</div>
|
430 |
</form>
|
431 |
</div>
|
includes/class-sp-dsgvo-ajax-action.php
CHANGED
@@ -30,13 +30,11 @@
|
|
30 |
abstract class SPDSGVOAjaxAction{
|
31 |
|
32 |
protected $action;
|
33 |
-
public $request;
|
34 |
public $user;
|
35 |
|
36 |
abstract protected function run();
|
37 |
|
38 |
public function __construct(){
|
39 |
-
$this->request = $_REQUEST; // we dont sanitize here, because we sanitize in the get(...) method
|
40 |
if($this->isLoggedIn()){
|
41 |
$this->user = wp_get_current_user();
|
42 |
}
|
@@ -105,7 +103,7 @@ abstract class SPDSGVOAjaxAction{
|
|
105 |
public function checkCSRF(){
|
106 |
|
107 |
$actionName = self::getActionName().'-nonce';
|
108 |
-
$submittedNonce = $_REQUEST['_wpnonce'];
|
109 |
|
110 |
if ( wp_verify_nonce( $submittedNonce, $actionName ) ) {
|
111 |
return TRUE;
|
@@ -149,10 +147,10 @@ abstract class SPDSGVOAjaxAction{
|
|
149 |
|
150 |
public static function url($params = array()){
|
151 |
$params = http_build_query(array_merge(array(
|
152 |
-
'action' => (new static())->action,
|
153 |
-
), $params));
|
154 |
|
155 |
-
|
|
|
156 |
}
|
157 |
|
158 |
public function isLoggedIn(){
|
@@ -160,7 +158,7 @@ abstract class SPDSGVOAjaxAction{
|
|
160 |
}
|
161 |
|
162 |
public function has($key){
|
163 |
-
if(isset($
|
164 |
return TRUE;
|
165 |
}
|
166 |
return FALSE;
|
@@ -176,24 +174,58 @@ abstract class SPDSGVOAjaxAction{
|
|
176 |
public function get($key, $default = NULL, $sanitizeMethod = 'sanitize_text_field', $stripslashes = TRUE){
|
177 |
if($this->has($key)){
|
178 |
|
179 |
-
|
180 |
|
181 |
-
if(is_array($
|
182 |
-
return $
|
183 |
}
|
184 |
-
|
185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
}
|
187 |
|
188 |
-
if($stripslashes){
|
189 |
$result = stripslashes($result);
|
190 |
}
|
191 |
|
192 |
return $result;
|
|
|
193 |
}
|
194 |
return $default;
|
195 |
}
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
public function returnBack(){
|
198 |
if(isset($_SERVER['HTTP_REFERER'])){
|
199 |
header('Location: '. $_SERVER['HTTP_REFERER']);
|
30 |
abstract class SPDSGVOAjaxAction{
|
31 |
|
32 |
protected $action;
|
|
|
33 |
public $user;
|
34 |
|
35 |
abstract protected function run();
|
36 |
|
37 |
public function __construct(){
|
|
|
38 |
if($this->isLoggedIn()){
|
39 |
$this->user = wp_get_current_user();
|
40 |
}
|
103 |
public function checkCSRF(){
|
104 |
|
105 |
$actionName = self::getActionName().'-nonce';
|
106 |
+
$submittedNonce = sanitize_text_field( $_REQUEST['_wpnonce']);
|
107 |
|
108 |
if ( wp_verify_nonce( $submittedNonce, $actionName ) ) {
|
109 |
return TRUE;
|
147 |
|
148 |
public static function url($params = array()){
|
149 |
$params = http_build_query(array_merge(array(
|
150 |
+
'action' => (new static())->action), $params),'', '&');
|
|
|
151 |
|
152 |
+
error_log($params);
|
153 |
+
return admin_url('/admin-ajax.php') .'?'. $params;
|
154 |
}
|
155 |
|
156 |
public function isLoggedIn(){
|
158 |
}
|
159 |
|
160 |
public function has($key){
|
161 |
+
if(isset($_REQUEST[$key])){
|
162 |
return TRUE;
|
163 |
}
|
164 |
return FALSE;
|
174 |
public function get($key, $default = NULL, $sanitizeMethod = 'sanitize_text_field', $stripslashes = TRUE){
|
175 |
if($this->has($key)){
|
176 |
|
177 |
+
$result = null;
|
178 |
|
179 |
+
if(is_array($_REQUEST[$key])){
|
180 |
+
return $_REQUEST[$key];
|
181 |
}
|
182 |
+
|
183 |
+
if ($sanitizeMethod != 'wp_kses_scripts') {
|
184 |
+
if(isset($sanitizeMethod) && function_exists($sanitizeMethod)){
|
185 |
+
$result = call_user_func($sanitizeMethod, $_REQUEST[$key]);
|
186 |
+
}
|
187 |
+
} else if ($sanitizeMethod == 'wp_kses_scripts'){
|
188 |
+
$result = wp_kses($_REQUEST[$key], $this->getAllowedHtmlForScriptsForKses());
|
189 |
+
} else {
|
190 |
+
return null;
|
191 |
}
|
192 |
|
193 |
+
if($stripslashes && isset($result)){
|
194 |
$result = stripslashes($result);
|
195 |
}
|
196 |
|
197 |
return $result;
|
198 |
+
|
199 |
}
|
200 |
return $default;
|
201 |
}
|
202 |
|
203 |
+
function getAllowedHtmlForScriptsForKses() {
|
204 |
+
return array_merge(
|
205 |
+
wp_kses_allowed_html( 'post' ),
|
206 |
+
array(
|
207 |
+
'script' => array(
|
208 |
+
'type' => array(),
|
209 |
+
'src' => array(),
|
210 |
+
'charset' => array(),
|
211 |
+
'async' => array()
|
212 |
+
),
|
213 |
+
'noscript' => array(),
|
214 |
+
'style' => array(
|
215 |
+
'type' => array()
|
216 |
+
),
|
217 |
+
'iframe' => array(
|
218 |
+
'src' => array(),
|
219 |
+
'height' => array(),
|
220 |
+
'width' => array(),
|
221 |
+
'frameborder' => array(),
|
222 |
+
'allowfullscreen' => array()
|
223 |
+
)
|
224 |
+
)
|
225 |
+
);
|
226 |
+
|
227 |
+
}
|
228 |
+
|
229 |
public function returnBack(){
|
230 |
if(isset($_SERVER['HTTP_REFERER'])){
|
231 |
header('Location: '. $_SERVER['HTTP_REFERER']);
|
includes/class-sp-dsgvo-embedding-api-base.php
CHANGED
@@ -147,15 +147,21 @@ abstract class SPDSGVOEmbeddingApiBase
|
|
147 |
|
148 |
public final function checkIfIntegrationIsAllowed($integrationSlug)
|
149 |
{
|
|
|
150 |
// first check if the visitor interacted with our notice/plugin
|
151 |
$cookieDecisionMade = isset($_COOKIE[SPDSGVOConstants::CCOKIE_NAME]);
|
152 |
if ($cookieDecisionMade == false) return false;
|
153 |
|
154 |
-
|
155 |
-
$integrationSettings = json_decode(
|
156 |
-
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
-
|
159 |
|
160 |
|
161 |
}
|
147 |
|
148 |
public final function checkIfIntegrationIsAllowed($integrationSlug)
|
149 |
{
|
150 |
+
|
151 |
// first check if the visitor interacted with our notice/plugin
|
152 |
$cookieDecisionMade = isset($_COOKIE[SPDSGVOConstants::CCOKIE_NAME]);
|
153 |
if ($cookieDecisionMade == false) return false;
|
154 |
|
155 |
+
// the settings are stored in an array like "integration-slug" => '0'
|
156 |
+
$integrationSettings = json_decode(sanitize_text_field(stripslashes($_COOKIE[SPDSGVOConstants::CCOKIE_NAME])));
|
157 |
+
// check if it is a class and has the property
|
158 |
+
if ($integrationSettings instanceof stdClass == false || !property_exists($integrationSettings, 'integrations')) return false;
|
159 |
+
|
160 |
+
$enabledIntegrations = filter_var_array($integrationSettings->integrations,FILTER_SANITIZE_ENCODED);
|
161 |
+
$integrationSettings = null; // we only need here the array of enabled integrations, which we sanitze and filter in the above lines. the rest gets nulled
|
162 |
+
if ($enabledIntegrations == false || isset($enabledIntegrations) == false) return false;
|
163 |
|
164 |
+
return in_array($integrationSlug, $enabledIntegrations);
|
165 |
|
166 |
|
167 |
}
|
includes/class-sp-dsgvo-integration-api-base.php
CHANGED
@@ -222,10 +222,15 @@ abstract class SPDSGVOIntegrationApiBase
|
|
222 |
if ($cookieDecisionMade == false) return false;
|
223 |
|
224 |
// the settings are stored in an array like "integration-slug" => '0'
|
225 |
-
|
226 |
-
|
|
|
227 |
|
228 |
-
|
|
|
|
|
|
|
|
|
229 |
|
230 |
|
231 |
}
|
222 |
if ($cookieDecisionMade == false) return false;
|
223 |
|
224 |
// the settings are stored in an array like "integration-slug" => '0'
|
225 |
+
$integrationSettings = json_decode(sanitize_text_field(stripslashes($_COOKIE[SPDSGVOConstants::CCOKIE_NAME])));
|
226 |
+
// check if it is a class and has the property
|
227 |
+
if ($integrationSettings instanceof stdClass == false || !property_exists($integrationSettings, 'integrations')) return false;
|
228 |
|
229 |
+
$enabledIntegrations = filter_var_array($integrationSettings->integrations,FILTER_SANITIZE_ENCODED);
|
230 |
+
$integrationSettings = null; // we only need here the array of enabled integrations, which we sanitze and filter in the above lines. the rest gets nulled
|
231 |
+
if ($enabledIntegrations == false || isset($enabledIntegrations) == false) return false;
|
232 |
+
|
233 |
+
return in_array($integrationSlug, $enabledIntegrations);
|
234 |
|
235 |
|
236 |
}
|
includes/class-sp-dsgvo-integration.php
CHANGED
@@ -88,13 +88,19 @@ class SPDSGVOIntegration extends SPDSGVOAdminTab{
|
|
88 |
public function get($key, $default = NULL, $sanitizeMethod = 'sanitize_text_field', $stripslashes = TRUE){
|
89 |
if($this->has($key)){
|
90 |
|
91 |
-
$result =
|
92 |
-
|
93 |
-
if(
|
94 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
|
97 |
-
if($stripslashes){
|
98 |
$result = stripslashes($result);
|
99 |
}
|
100 |
|
@@ -103,6 +109,32 @@ class SPDSGVOIntegration extends SPDSGVOAdminTab{
|
|
103 |
return $default;
|
104 |
}
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
public function redirectBack(){
|
107 |
ob_clean();
|
108 |
header('Location: '. $_SERVER['HTTP_REFERER']);
|
@@ -119,7 +151,7 @@ class SPDSGVOIntegration extends SPDSGVOAdminTab{
|
|
119 |
public function checkCSRF(){
|
120 |
|
121 |
$actionName = self::action().'-nonce';
|
122 |
-
$submittedNonce = $_REQUEST['_wpnonce'];
|
123 |
|
124 |
if ( wp_verify_nonce( $submittedNonce, $actionName ) ) {
|
125 |
return TRUE;
|
88 |
public function get($key, $default = NULL, $sanitizeMethod = 'sanitize_text_field', $stripslashes = TRUE){
|
89 |
if($this->has($key)){
|
90 |
|
91 |
+
$result = null;
|
92 |
+
|
93 |
+
if ($sanitizeMethod != 'wp_kses_scripts') {
|
94 |
+
if(isset($sanitizeMethod) && function_exists($sanitizeMethod)){
|
95 |
+
$result = call_user_func($sanitizeMethod, $_REQUEST[$key]);
|
96 |
+
}
|
97 |
+
} else if ($sanitizeMethod == 'wp_kses_scripts'){
|
98 |
+
$result = wp_kses($_REQUEST[$key], $this->getAllowedHtmlForScriptsForKses());
|
99 |
+
} else {
|
100 |
+
return null;
|
101 |
}
|
102 |
|
103 |
+
if($stripslashes && isset($result)){
|
104 |
$result = stripslashes($result);
|
105 |
}
|
106 |
|
109 |
return $default;
|
110 |
}
|
111 |
|
112 |
+
function getAllowedHtmlForScriptsForKses() {
|
113 |
+
return array_merge(
|
114 |
+
wp_kses_allowed_html( 'post' ),
|
115 |
+
array(
|
116 |
+
'script' => array(
|
117 |
+
'type' => array(),
|
118 |
+
'src' => array(),
|
119 |
+
'charset' => array(),
|
120 |
+
'async' => array()
|
121 |
+
),
|
122 |
+
'noscript' => array(),
|
123 |
+
'style' => array(
|
124 |
+
'type' => array()
|
125 |
+
),
|
126 |
+
'iframe' => array(
|
127 |
+
'src' => array(),
|
128 |
+
'height' => array(),
|
129 |
+
'width' => array(),
|
130 |
+
'frameborder' => array(),
|
131 |
+
'allowfullscreen' => array()
|
132 |
+
)
|
133 |
+
)
|
134 |
+
);
|
135 |
+
|
136 |
+
}
|
137 |
+
|
138 |
public function redirectBack(){
|
139 |
ob_clean();
|
140 |
header('Location: '. $_SERVER['HTTP_REFERER']);
|
151 |
public function checkCSRF(){
|
152 |
|
153 |
$actionName = self::action().'-nonce';
|
154 |
+
$submittedNonce = sanitize_text_field($_REQUEST['_wpnonce']);
|
155 |
|
156 |
if ( wp_verify_nonce( $submittedNonce, $actionName ) ) {
|
157 |
return TRUE;
|
includes/helpers.php
CHANGED
@@ -255,7 +255,7 @@ if (! function_exists('spDsgvoWriteInput')) {
|
|
255 |
*/
|
256 |
function spDsgvoWriteInput($type, $id, $settingsKey, $initalValue, $label, $placeholder, $infoText, $addFormGroup = true, $class = '', $cbValue = '1', $enabled = true, $visible = true )
|
257 |
{
|
258 |
-
if ($addFormGroup) echo '<div class="form-group '. ($visible ? '' : 'spdsgvo-d-none') .'">';
|
259 |
|
260 |
|
261 |
|
@@ -272,8 +272,8 @@ if (! function_exists('spDsgvoWriteInput')) {
|
|
272 |
?>
|
273 |
<div class="custom-control custom-<?php echo esc_attr($type);?>">
|
274 |
<input type="<?php echo esc_attr($inputType); ?>"" class="custom-control-input <?php echo esc_attr($class);?>" id="<?php echo esc_attr($id);?>" name="<?php echo esc_attr($settingsKey);?>"
|
275 |
-
value="<?php echo esc_attr($cbValue);?>" <?php echo checked($initalValue, $cbValue); ?>
|
276 |
-
<?php echo $enabled == false ? 'disabled' : ''
|
277 |
|
278 |
<?php if(empty($label) == false): ?>
|
279 |
<label class="custom-control-label" for="<?php echo esc_attr($id)?>"><?php echo wp_kses_post($label); ?></label>
|
@@ -291,8 +291,8 @@ if (! function_exists('spDsgvoWriteInput')) {
|
|
291 |
<?php if(empty($label) == false): ?>
|
292 |
<label for="<?php echo esc_attr($id);?>"><?php echo wp_kses_post($label); ?></label>
|
293 |
<?php endif; ?>
|
294 |
-
<input type="<?php echo $type?>" class="form-control <?php echo esc_attr($class)?>" id="<?php echo esc_attr($id)?>" name="<?php echo esc_attr($settingsKey)?>" placeholder="<?php echo esc_attr($placeholder);?>"
|
295 |
-
value="<?php echo esc_attr($initalValue); ?>" <?php echo $enabled == false ? 'readonly' : ''
|
296 |
<?php if(empty($infoText) == false): ?>
|
297 |
<small class="form-text text-muted"><?php echo wp_kses_post($infoText) ?></small>
|
298 |
<?php endif; ?>
|
@@ -306,7 +306,7 @@ if (! function_exists('spDsgvoWriteInput')) {
|
|
306 |
<?php if(empty($label) == false): ?>
|
307 |
<label for="<?php echo esc_attr($id)?>"><?php echo wp_kses_post($label); ?></label>
|
308 |
<?php endif; ?>
|
309 |
-
<textarea rows="5" class="form-control <?php echo esc_attr($class);?>" id="<?php echo esc_attr($id);?>" name="<?php echo esc_attr($settingsKey)?>" placeholder="<?php echo esc_attr($placeholder);?>" <?php echo $enabled == false ? 'disabled' : ''
|
310 |
<?php if(empty($infoText) == false): ?>
|
311 |
<small class="form-text text-muted"><?php echo wp_kses_post($infoText) ?></small>
|
312 |
<?php endif; ?>
|
@@ -327,7 +327,7 @@ if (! function_exists('spDsgvoWriteSelect')) {
|
|
327 |
|
328 |
?>
|
329 |
|
330 |
-
<label for="<?php echo $id
|
331 |
<select class="form-control <?php echo esc_attr($class);?>" id="<?php echo esc_attr($id);?>" name="<?php echo esc_attr($settingsKey)?>">
|
332 |
|
333 |
<?php if (empty($placeholder) == false) :?>
|
@@ -336,7 +336,7 @@ if (! function_exists('spDsgvoWriteSelect')) {
|
|
336 |
|
337 |
<?php foreach ($elements as $id => $element) :?>
|
338 |
|
339 |
-
<option value="<?php echo esc_attr($id); ?>" <?php echo selected($id == $initalValue) ?>><?php echo esc_html($element); ?></option>
|
340 |
|
341 |
<?php endforeach; ?>
|
342 |
// todo
|
255 |
*/
|
256 |
function spDsgvoWriteInput($type, $id, $settingsKey, $initalValue, $label, $placeholder, $infoText, $addFormGroup = true, $class = '', $cbValue = '1', $enabled = true, $visible = true )
|
257 |
{
|
258 |
+
if ($addFormGroup) echo wp_kses_post('<div class="form-group '. ($visible ? '' : 'spdsgvo-d-none') .'">');
|
259 |
|
260 |
|
261 |
|
272 |
?>
|
273 |
<div class="custom-control custom-<?php echo esc_attr($type);?>">
|
274 |
<input type="<?php echo esc_attr($inputType); ?>"" class="custom-control-input <?php echo esc_attr($class);?>" id="<?php echo esc_attr($id);?>" name="<?php echo esc_attr($settingsKey);?>"
|
275 |
+
value="<?php echo esc_attr($cbValue);?>" <?php echo esc_attr(checked($initalValue, $cbValue)); ?>
|
276 |
+
<?php echo esc_attr($enabled == false ? 'disabled' : '');?>>
|
277 |
|
278 |
<?php if(empty($label) == false): ?>
|
279 |
<label class="custom-control-label" for="<?php echo esc_attr($id)?>"><?php echo wp_kses_post($label); ?></label>
|
291 |
<?php if(empty($label) == false): ?>
|
292 |
<label for="<?php echo esc_attr($id);?>"><?php echo wp_kses_post($label); ?></label>
|
293 |
<?php endif; ?>
|
294 |
+
<input type="<?php echo esc_attr($type)?>" class="form-control <?php echo esc_attr($class)?>" id="<?php echo esc_attr($id)?>" name="<?php echo esc_attr($settingsKey)?>" placeholder="<?php echo esc_attr($placeholder);?>"
|
295 |
+
value="<?php echo esc_attr($initalValue); ?>" <?php echo esc_attr($enabled == false ? 'readonly' : '');?>>
|
296 |
<?php if(empty($infoText) == false): ?>
|
297 |
<small class="form-text text-muted"><?php echo wp_kses_post($infoText) ?></small>
|
298 |
<?php endif; ?>
|
306 |
<?php if(empty($label) == false): ?>
|
307 |
<label for="<?php echo esc_attr($id)?>"><?php echo wp_kses_post($label); ?></label>
|
308 |
<?php endif; ?>
|
309 |
+
<textarea rows="5" class="form-control <?php echo esc_attr($class);?>" id="<?php echo esc_attr($id);?>" name="<?php echo esc_attr($settingsKey)?>" placeholder="<?php echo esc_attr($placeholder);?>" <?php echo esc_attr($enabled == false ? 'disabled' : '');?>><?php echo esc_textarea($initalValue); ?></textarea>
|
310 |
<?php if(empty($infoText) == false): ?>
|
311 |
<small class="form-text text-muted"><?php echo wp_kses_post($infoText) ?></small>
|
312 |
<?php endif; ?>
|
327 |
|
328 |
?>
|
329 |
|
330 |
+
<label for="<?php echo esc_attr($id);?>"><?php echo esc_html($label); ?></label>
|
331 |
<select class="form-control <?php echo esc_attr($class);?>" id="<?php echo esc_attr($id);?>" name="<?php echo esc_attr($settingsKey)?>">
|
332 |
|
333 |
<?php if (empty($placeholder) == false) :?>
|
336 |
|
337 |
<?php foreach ($elements as $id => $element) :?>
|
338 |
|
339 |
+
<option value="<?php echo esc_attr($id); ?>" <?php echo esc_attr(selected($id == $initalValue)) ?>><?php echo esc_html($element); ?></option>
|
340 |
|
341 |
<?php endforeach; ?>
|
342 |
// todo
|
includes/integrations/embeddings/facebook-feed/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOFacebookFeedApi::getInstance();
|
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOFacebookFeedIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOFacebookFeedIntegration::action()); ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOFacebookFeedIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOFacebookFeedIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOFacebookFeedIntegration::action()); ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOFacebookFeedIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/embeddings/gmaps/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOGmapsApi::getInstance();
|
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOGmapsIntegration::formURL()); ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOGmapsIntegration::action()) ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOGmapsIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOGmapsIntegration::formURL()); ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOGmapsIntegration::action()) ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOGmapsIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/embeddings/instagram/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOInstagramApi::getInstance();
|
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOInstagramIntegration::formURL()); ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOInstagramIntegration::action()) ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOInstagramIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOInstagramIntegration::formURL()); ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOInstagramIntegration::action()) ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOInstagramIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/embeddings/openstreetmap/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOOpenstreetmapApi::getInstance();
|
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOOpenstreetmapIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOOpenstreetmapIntegration::action()) ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOOpenstreetmapIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOOpenstreetmapIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOOpenstreetmapIntegration::action()) ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOOpenstreetmapIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/embeddings/soundcloud/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOSoundcloudApi::getInstance();
|
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOSoundcloudIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOSoundcloudIntegration::action()) ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOSoundcloudIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOSoundcloudIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOSoundcloudIntegration::action()) ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOSoundcloudIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/embeddings/twitter/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOTwitterApi::getInstance();
|
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOTwitterIntegration::formURL()); ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOTwitterIntegration::action()) ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOTwitterIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOTwitterIntegration::formURL()); ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOTwitterIntegration::action()) ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOTwitterIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/embeddings/vimeo/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOVimeoApi::getInstance();
|
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOVimeoIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOVimeoIntegration::action()) ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOVimeoIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOVimeoIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOVimeoIntegration::action()) ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOVimeoIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/embeddings/youtube/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOYoutubeApi::getInstance();
|
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOYoutubeIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOYoutubeIntegration::action()) ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOYoutubeIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOYoutubeIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOYoutubeIntegration::action()) ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOYoutubeIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/statistics/clicky/class-sp-dsgvo-clicky-integration.php
CHANGED
@@ -41,7 +41,7 @@ class SPDSGVOClickyIntegration extends SPDSGVOIntegration{
|
|
41 |
$settings['useOwnCode'] = $this->get($this->slug.'_own_code', '0');
|
42 |
if ($settings['useOwnCode'] == '1')
|
43 |
{
|
44 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOClickyApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
45 |
} else
|
46 |
{
|
47 |
$settings['jsCode'] = $this->get(SPDSGVOClickyApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
41 |
$settings['useOwnCode'] = $this->get($this->slug.'_own_code', '0');
|
42 |
if ($settings['useOwnCode'] == '1')
|
43 |
{
|
44 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOClickyApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
45 |
} else
|
46 |
{
|
47 |
$settings['jsCode'] = $this->get(SPDSGVOClickyApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/statistics/clicky/page.php
CHANGED
@@ -15,7 +15,7 @@ $apiInstance = SPDSGVOClickyApi::getInstance();
|
|
15 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
16 |
<form method="post" action="<?php echo esc_url(SPDSGVOClickyIntegration::formURL()) ?>">
|
17 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOClickyIntegration::action()) ?>">
|
18 |
-
<?php wp_nonce_field(SPDSGVOClickyIntegration::action() . '-nonce'); ?>
|
19 |
|
20 |
<?php
|
21 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
15 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
16 |
<form method="post" action="<?php echo esc_url(SPDSGVOClickyIntegration::formURL()) ?>">
|
17 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOClickyIntegration::action()) ?>">
|
18 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOClickyIntegration::action()) . '-nonce'); ?>
|
19 |
|
20 |
<?php
|
21 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/statistics/etracker/class-sp-dsgvo-etracker-integration.php
CHANGED
@@ -41,7 +41,7 @@ class SPDSGVOEtrackerIntegration extends SPDSGVOIntegration{
|
|
41 |
$settings['useOwnCode'] = $this->get($this->slug.'_own_code', '0');
|
42 |
if ($settings['useOwnCode'] == '1')
|
43 |
{
|
44 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOEtrackerApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
45 |
} else
|
46 |
{
|
47 |
$settings['jsCode'] = $this->get(SPDSGVOEtrackerApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
41 |
$settings['useOwnCode'] = $this->get($this->slug.'_own_code', '0');
|
42 |
if ($settings['useOwnCode'] == '1')
|
43 |
{
|
44 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOEtrackerApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
45 |
} else
|
46 |
{
|
47 |
$settings['jsCode'] = $this->get(SPDSGVOEtrackerApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/statistics/etracker/page.php
CHANGED
@@ -17,7 +17,7 @@ $settings = $apiInstance->getSettings();
|
|
17 |
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOEtrackerIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOEtrackerIntegration::action()) ?>">
|
20 |
-
<?php wp_nonce_field(SPDSGVOEtrackerIntegration::action() . '-nonce'); ?>
|
21 |
|
22 |
<?php
|
23 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
17 |
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOEtrackerIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOEtrackerIntegration::action()) ?>">
|
20 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOEtrackerIntegration::action()) . '-nonce'); ?>
|
21 |
|
22 |
<?php
|
23 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/statistics/googleanalytics/class-sp-dsgvo-google-analytics-integration.php
CHANGED
@@ -35,7 +35,7 @@ class SPDSGVOGoogleAnalyticsIntegration extends SPDSGVOIntegration{
|
|
35 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
36 |
if ($settings['useOwnCode'] == '1')
|
37 |
{
|
38 |
-
$settings['jsCode'] = $this->get('ga_code', SPDSGVOGoogleAnalyticsApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
39 |
} else
|
40 |
{
|
41 |
$settings['jsCode'] = $this->get(SPDSGVOGoogleAnalyticsApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
35 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
36 |
if ($settings['useOwnCode'] == '1')
|
37 |
{
|
38 |
+
$settings['jsCode'] = $this->get('ga_code', SPDSGVOGoogleAnalyticsApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
39 |
} else
|
40 |
{
|
41 |
$settings['jsCode'] = $this->get(SPDSGVOGoogleAnalyticsApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/statistics/googleanalytics/page.php
CHANGED
@@ -14,7 +14,7 @@ $apiInstance = SPDSGVOGoogleAnalyticsApi::getInstance();
|
|
14 |
<div class="card-body">
|
15 |
<form method="post" action="<?php echo esc_url(SPDSGVOGoogleAnalyticsIntegration::formURL()) ?>">
|
16 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOGoogleAnalyticsIntegration::action()) ?>">
|
17 |
-
<?php wp_nonce_field(SPDSGVOGoogleAnalyticsIntegration::action() . '-nonce'); ?>
|
18 |
|
19 |
<?php
|
20 |
spDsgvoWriteInput('switch', '', 'ga_enable_analytics', $settings['isEnabled'],
|
14 |
<div class="card-body">
|
15 |
<form method="post" action="<?php echo esc_url(SPDSGVOGoogleAnalyticsIntegration::formURL()) ?>">
|
16 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOGoogleAnalyticsIntegration::action()) ?>">
|
17 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOGoogleAnalyticsIntegration::action()) . '-nonce'); ?>
|
18 |
|
19 |
<?php
|
20 |
spDsgvoWriteInput('switch', '', 'ga_enable_analytics', $settings['isEnabled'],
|
includes/integrations/statistics/hotjar/class-sp-dsgvo-hotjar-integration.php
CHANGED
@@ -43,7 +43,7 @@ class SPDSGVOHotjarIntegration extends SPDSGVOIntegration{
|
|
43 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
44 |
if ($settings['useOwnCode'] == '1')
|
45 |
{
|
46 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOHotjarApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
47 |
} else
|
48 |
{
|
49 |
$settings['jsCode'] = $this->get(SPDSGVOHotjarApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
43 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
44 |
if ($settings['useOwnCode'] == '1')
|
45 |
{
|
46 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOHotjarApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
47 |
} else
|
48 |
{
|
49 |
$settings['jsCode'] = $this->get(SPDSGVOHotjarApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/statistics/hotjar/page.php
CHANGED
@@ -19,7 +19,7 @@ $settings['useOwnCode'] = '1';
|
|
19 |
|
20 |
<form method="post" action="<?php echo esc_url(SPDSGVOHotjarIntegration::formURL()) ?>">
|
21 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOHotjarIntegration::action()) ?>">
|
22 |
-
<?php wp_nonce_field(SPDSGVOHotjarIntegration::action() . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
19 |
|
20 |
<form method="post" action="<?php echo esc_url(SPDSGVOHotjarIntegration::formURL()) ?>">
|
21 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOHotjarIntegration::action()) ?>">
|
22 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOHotjarIntegration::action()) . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/statistics/matomo/class-sp-dsgvo-matomo-integration.php
CHANGED
@@ -38,7 +38,7 @@ class SPDSGVOMatomoIntegration extends SPDSGVOIntegration{
|
|
38 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
39 |
if ($settings['useOwnCode'] == '1')
|
40 |
{
|
41 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOMatomoApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
42 |
} else
|
43 |
{
|
44 |
$settings['jsCode'] = $this->get(SPDSGVOMatomoApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
38 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
39 |
if ($settings['useOwnCode'] == '1')
|
40 |
{
|
41 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOMatomoApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
42 |
} else
|
43 |
{
|
44 |
$settings['jsCode'] = $this->get(SPDSGVOMatomoApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/statistics/matomo/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOMatomoApi::getInstance();
|
|
16 |
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOMatomoIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOMatomoIntegration::action()) ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOMatomoIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOMatomoIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOMatomoIntegration::action()) ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOMatomoIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/statistics/mautic/class-sp-dsgvo-mautic-integration.php
CHANGED
@@ -38,7 +38,7 @@ class SPDSGVOMauticIntegration extends SPDSGVOIntegration{
|
|
38 |
//$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
39 |
if ($settings['useOwnCode'] == '1')
|
40 |
{
|
41 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOMauticApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
42 |
} else
|
43 |
{
|
44 |
$settings['jsCode'] = $this->get(SPDSGVOMauticApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
38 |
//$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
39 |
if ($settings['useOwnCode'] == '1')
|
40 |
{
|
41 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOMauticApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
42 |
} else
|
43 |
{
|
44 |
$settings['jsCode'] = $this->get(SPDSGVOMauticApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/statistics/mautic/page.php
CHANGED
@@ -16,7 +16,7 @@ $apiInstance = SPDSGVOMauticApi::getInstance();
|
|
16 |
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOMauticIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOMauticIntegration::action()) ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOMauticIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
16 |
|
17 |
<form method="post" action="<?php echo esc_url(SPDSGVOMauticIntegration::formURL()) ?>">
|
18 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOMauticIntegration::action()) ?>">
|
19 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOMauticIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/statistics/piwik/class-sp-dsgvo-piwik-integration.php
CHANGED
@@ -44,7 +44,7 @@ class SPDSGVOPiwikIntegration extends SPDSGVOIntegration{
|
|
44 |
$settings['showAsTechMandatory'] = $this->get( $this->slug.'_showAsTechMandatory', '0');
|
45 |
if ($settings['useOwnCode'] == '1')
|
46 |
{
|
47 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOPiwikApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
48 |
} else
|
49 |
{
|
50 |
$settings['jsCode'] = $this->get(SPDSGVOPiwikApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
44 |
$settings['showAsTechMandatory'] = $this->get( $this->slug.'_showAsTechMandatory', '0');
|
45 |
if ($settings['useOwnCode'] == '1')
|
46 |
{
|
47 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOPiwikApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
48 |
} else
|
49 |
{
|
50 |
$settings['jsCode'] = $this->get(SPDSGVOPiwikApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/statistics/piwik/page.php
CHANGED
@@ -17,7 +17,7 @@ $apiInstance = SPDSGVOPiwikApi::getInstance();
|
|
17 |
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOPiwikIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOPiwikIntegration::action()) ?>">
|
20 |
-
<?php wp_nonce_field(SPDSGVOPiwikIntegration::action() . '-nonce'); ?>
|
21 |
|
22 |
<?php
|
23 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
17 |
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOPiwikIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOPiwikIntegration::action()) ?>">
|
20 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOPiwikIntegration::action()) . '-nonce'); ?>
|
21 |
|
22 |
<?php
|
23 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/statistics/wpstatistics/page.php
CHANGED
@@ -17,7 +17,7 @@ $apiInstance = SPDSGVOWpStatisticsApi::getInstance();
|
|
17 |
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOWpStatisticsIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOWpStatisticsIntegration::action()) ?>">
|
20 |
-
<?php wp_nonce_field(SPDSGVOWpStatisticsIntegration::action() . '-nonce'); ?>
|
21 |
|
22 |
<?php
|
23 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
17 |
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOWpStatisticsIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOWpStatisticsIntegration::action()) ?>">
|
20 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOWpStatisticsIntegration::action()) . '-nonce'); ?>
|
21 |
|
22 |
<?php
|
23 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/tagmanager/googletagmanager/class-sp-dsgvo-google-tagmanager-integration.php
CHANGED
@@ -42,7 +42,7 @@ class SPDSGVOGoogleTagmanagerIntegration extends SPDSGVOIntegration{
|
|
42 |
$settings['useOwnCode'] = $this->get('gtag_own_code', '0');
|
43 |
if ($settings['useOwnCode'] == '1')
|
44 |
{
|
45 |
-
$settings['jsCode'] = $this->get('gtag_code', SPDSGVOGoogleTagmanagerApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
46 |
} else
|
47 |
{
|
48 |
$settings['jsCode'] = $this->get(SPDSGVOGoogleTagmanagerApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
42 |
$settings['useOwnCode'] = $this->get('gtag_own_code', '0');
|
43 |
if ($settings['useOwnCode'] == '1')
|
44 |
{
|
45 |
+
$settings['jsCode'] = $this->get('gtag_code', SPDSGVOGoogleTagmanagerApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
46 |
} else
|
47 |
{
|
48 |
$settings['jsCode'] = $this->get(SPDSGVOGoogleTagmanagerApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/tagmanager/googletagmanager/page.php
CHANGED
@@ -14,9 +14,9 @@ $apiInstance = SPDSGVOGoogleTagmanagerApi::getInstance();
|
|
14 |
<div class="card-body">
|
15 |
<div class="position-relative">
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
-
<form method="post" action="<?php echo SPDSGVOGoogleTagmanagerIntegration::formURL() ?>">
|
18 |
-
<input type="hidden" name="action" value="<?php echo SPDSGVOGoogleTagmanagerIntegration::action() ?>">
|
19 |
-
<?php wp_nonce_field(SPDSGVOGoogleTagmanagerIntegration::action() . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', 'gtag_enable', $settings['isEnabled'],
|
14 |
<div class="card-body">
|
15 |
<div class="position-relative">
|
16 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
17 |
+
<form method="post" action="<?php echo esc_url(SPDSGVOGoogleTagmanagerIntegration::formURL()) ?>">
|
18 |
+
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOGoogleTagmanagerIntegration::action()) ?>">
|
19 |
+
<?php esc_attr(wp_nonce_field(SPDSGVOGoogleTagmanagerIntegration::action()) . '-nonce'); ?>
|
20 |
|
21 |
<?php
|
22 |
spDsgvoWriteInput('switch', '', 'gtag_enable', $settings['isEnabled'],
|
includes/integrations/tagmanager/matomotagmanager/class-sp-dsgvo-matomo-tagmanager-integration.php
CHANGED
@@ -42,7 +42,7 @@ class SPDSGVOMatomoTagmanagerIntegration extends SPDSGVOIntegration{
|
|
42 |
$settings['useOwnCode'] = '1';//$this->get($this->slug.'_own_code', '1');
|
43 |
if ($settings['useOwnCode'] == '1')
|
44 |
{
|
45 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOMatomoTagmanagerApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
46 |
} else
|
47 |
{
|
48 |
$settings['jsCode'] = $this->get(SPDSGVOMatomoTagmanagerApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
42 |
$settings['useOwnCode'] = '1';//$this->get($this->slug.'_own_code', '1');
|
43 |
if ($settings['useOwnCode'] == '1')
|
44 |
{
|
45 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOMatomoTagmanagerApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
46 |
} else
|
47 |
{
|
48 |
$settings['jsCode'] = $this->get(SPDSGVOMatomoTagmanagerApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/tagmanager/matomotagmanager/page.php
CHANGED
@@ -17,7 +17,7 @@ $apiInstance = SPDSGVOMatomoTagmanagerApi::getInstance();
|
|
17 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOMatomoTagmanagerIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOMatomoTagmanagerIntegration::action()) ?>">
|
20 |
-
<?php wp_nonce_field(SPDSGVOMatomoTagmanagerIntegration::action() . '-nonce'); ?>
|
21 |
|
22 |
<?php
|
23 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
17 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOMatomoTagmanagerIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOMatomoTagmanagerIntegration::action()) ?>">
|
20 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOMatomoTagmanagerIntegration::action()) . '-nonce'); ?>
|
21 |
|
22 |
<?php
|
23 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/targeting/bingadsuet/class-sp-dsgvo-bing-ads-uet-integration.php
CHANGED
@@ -44,7 +44,7 @@ class SPDSGVOBingAdsUetIntegration extends SPDSGVOIntegration{
|
|
44 |
|
45 |
if ($settings['useOwnCode'] == '1')
|
46 |
{
|
47 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOBingAdsUetApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
48 |
} else
|
49 |
{
|
50 |
$settings['jsCode'] = $this->get(SPDSGVOBingAdsUetApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
44 |
|
45 |
if ($settings['useOwnCode'] == '1')
|
46 |
{
|
47 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOBingAdsUetApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
48 |
} else
|
49 |
{
|
50 |
$settings['jsCode'] = $this->get(SPDSGVOBingAdsUetApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/targeting/bingadsuet/page.php
CHANGED
@@ -19,7 +19,7 @@ $settings['useOwnCode'] = '1';
|
|
19 |
|
20 |
<form method="post" action="<?php echo esc_url(SPDSGVOBingAdsUetIntegration::formURL()) ?>">
|
21 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOBingAdsUetIntegration::action()) ?>">
|
22 |
-
<?php wp_nonce_field(SPDSGVOBingAdsUetIntegration::action() . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
19 |
|
20 |
<form method="post" action="<?php echo esc_url(SPDSGVOBingAdsUetIntegration::formURL()) ?>">
|
21 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOBingAdsUetIntegration::action()) ?>">
|
22 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOBingAdsUetIntegration::action()) . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/targeting/criteo/class-sp-dsgvo-criteo-integration.php
CHANGED
@@ -42,7 +42,7 @@ class SPDSGVOCriteoIntegration extends SPDSGVOIntegration{
|
|
42 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
43 |
if ($settings['useOwnCode'] == '1')
|
44 |
{
|
45 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOCriteoApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
46 |
} else
|
47 |
{
|
48 |
$settings['jsCode'] = $this->get(SPDSGVOCriteoApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
42 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
43 |
if ($settings['useOwnCode'] == '1')
|
44 |
{
|
45 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOCriteoApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
46 |
} else
|
47 |
{
|
48 |
$settings['jsCode'] = $this->get(SPDSGVOCriteoApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/targeting/criteo/page.php
CHANGED
@@ -19,7 +19,7 @@ $settings['useOwnCode'] = '1';
|
|
19 |
|
20 |
<form method="post" action="<?php echo esc_url(SPDSGVOCriteoIntegration::formURL()) ?>">
|
21 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOCriteoIntegration::action()) ?>">
|
22 |
-
<?php wp_nonce_field(SPDSGVOCriteoIntegration::action() . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
19 |
|
20 |
<form method="post" action="<?php echo esc_url(SPDSGVOCriteoIntegration::formURL()) ?>">
|
21 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOCriteoIntegration::action()) ?>">
|
22 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOCriteoIntegration::action()) . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
includes/integrations/targeting/fbpixel/class-sp-dsgvo-fb-pixel-integration.php
CHANGED
@@ -43,7 +43,7 @@ class SPDSGVOFbPixelIntegration extends SPDSGVOIntegration{
|
|
43 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
44 |
if ($settings['useOwnCode'] == '1')
|
45 |
{
|
46 |
-
$settings['jsCode'] = $this->get('fbpixel_code', SPDSGVOFbPixelApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
47 |
} else
|
48 |
{
|
49 |
$settings['jsCode'] = $this->get(SPDSGVOFbPixelApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
43 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
44 |
if ($settings['useOwnCode'] == '1')
|
45 |
{
|
46 |
+
$settings['jsCode'] = $this->get('fbpixel_code', SPDSGVOFbPixelApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
47 |
} else
|
48 |
{
|
49 |
$settings['jsCode'] = $this->get(SPDSGVOFbPixelApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/targeting/fbpixel/page.php
CHANGED
@@ -17,7 +17,7 @@ $apiInstance = SPDSGVOFbPixelApi::getInstance();
|
|
17 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOFbPixelIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOFbPixelIntegration::action()) ?>">
|
20 |
-
<?php wp_nonce_field(SPDSGVOFbPixelIntegration::action() . '-nonce'); ?>
|
21 |
|
22 |
|
23 |
|
17 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
18 |
<form method="post" action="<?php echo esc_url(SPDSGVOFbPixelIntegration::formURL()) ?>">
|
19 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOFbPixelIntegration::action()) ?>">
|
20 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOFbPixelIntegration::action()) . '-nonce'); ?>
|
21 |
|
22 |
|
23 |
|
includes/integrations/targeting/gadsense/class-sp-dsgvo-gadsense-integration.php
CHANGED
@@ -43,7 +43,7 @@ class SPDSGVOGadsenseIntegration extends SPDSGVOIntegration{
|
|
43 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
44 |
if ($settings['useOwnCode'] == '1')
|
45 |
{
|
46 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOGadsenseApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
47 |
} else
|
48 |
{
|
49 |
$settings['jsCode'] = $this->get(SPDSGVOGadsenseApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
43 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
44 |
if ($settings['useOwnCode'] == '1')
|
45 |
{
|
46 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOGadsenseApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
47 |
} else
|
48 |
{
|
49 |
$settings['jsCode'] = $this->get(SPDSGVOGadsenseApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/targeting/gadsense/page.php
CHANGED
@@ -15,7 +15,7 @@ $apiInstance = SPDSGVOGadsenseApi::getInstance();
|
|
15 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
16 |
<form method="post" action="<?php echo esc_url(SPDSGVOGadsenseIntegration::formURL()) ?>">
|
17 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOGadsenseIntegration::action()) ?>">
|
18 |
-
<?php wp_nonce_field(SPDSGVOGadsenseIntegration::action() . '-nonce'); ?>
|
19 |
|
20 |
|
21 |
|
15 |
<?php spDsgvoWritePremiumOverlayIfInvalid($hasValidLicense); ?>
|
16 |
<form method="post" action="<?php echo esc_url(SPDSGVOGadsenseIntegration::formURL()) ?>">
|
17 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOGadsenseIntegration::action()) ?>">
|
18 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOGadsenseIntegration::action()) . '-nonce'); ?>
|
19 |
|
20 |
|
21 |
|
includes/integrations/targeting/linkedinpixel/class-sp-dsgvo-linkedin-pixel-integration.php
CHANGED
@@ -43,7 +43,7 @@ class SPDSGVOLinkedInPixelIntegration extends SPDSGVOIntegration{
|
|
43 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
44 |
if ($settings['useOwnCode'] == '1')
|
45 |
{
|
46 |
-
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOLinkedInPixelApi::getInstance()->getDefaultJsCode($settings['propertyId']),
|
47 |
} else
|
48 |
{
|
49 |
$settings['jsCode'] = $this->get(SPDSGVOLinkedInPixelApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
43 |
$settings['usedTagmanager'] = $this->get( $this->slug.'_usedTagmanager', '');
|
44 |
if ($settings['useOwnCode'] == '1')
|
45 |
{
|
46 |
+
$settings['jsCode'] = $this->get($this->slug.'_code', SPDSGVOLinkedInPixelApi::getInstance()->getDefaultJsCode($settings['propertyId']), 'wp_kses_scripts');
|
47 |
} else
|
48 |
{
|
49 |
$settings['jsCode'] = $this->get(SPDSGVOLinkedInPixelApi::getInstance()->getDefaultJsCode($settings['propertyId']));
|
includes/integrations/targeting/linkedinpixel/page.php
CHANGED
@@ -19,7 +19,7 @@ $settings['useOwnCode'] = '1';
|
|
19 |
|
20 |
<form method="post" action="<?php echo esc_url(SPDSGVOLinkedInPixelIntegration::formURL()) ?>">
|
21 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOLinkedInPixelIntegration::action()) ?>">
|
22 |
-
<?php wp_nonce_field(SPDSGVOLinkedInPixelIntegration::action() . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
19 |
|
20 |
<form method="post" action="<?php echo esc_url(SPDSGVOLinkedInPixelIntegration::formURL()) ?>">
|
21 |
<input type="hidden" name="action" value="<?php echo esc_attr(SPDSGVOLinkedInPixelIntegration::action()) ?>">
|
22 |
+
<?php wp_nonce_field(esc_attr(SPDSGVOLinkedInPixelIntegration::action()) . '-nonce'); ?>
|
23 |
|
24 |
<?php
|
25 |
spDsgvoWriteInput('switch', '', $apiInstance->getSlug().'_enable', $settings['isEnabled'],
|
public/actions/notice-action.php
CHANGED
@@ -5,9 +5,11 @@ Class SPDSGVONoticeAction extends SPDSGVOAjaxAction{
|
|
5 |
protected $action = 'notice-action';
|
6 |
|
7 |
protected function run(){
|
8 |
-
|
|
|
|
|
9 |
$noticeKey = $this->get('id');
|
10 |
-
|
11 |
|
12 |
if ($noticeKey == NULL || $noticeKey == '')
|
13 |
{
|
5 |
protected $action = 'notice-action';
|
6 |
|
7 |
protected function run(){
|
8 |
+
error_log('notice-action: run');
|
9 |
+
$this->requireAdmin();
|
10 |
+
|
11 |
$noticeKey = $this->get('id');
|
12 |
+
error_log('notice-action: '.$noticeKey);
|
13 |
|
14 |
if ($noticeKey == NULL || $noticeKey == '')
|
15 |
{
|
public/class-sp-dsgvo-public.php
CHANGED
@@ -96,30 +96,6 @@ class SPDSGVOPublic
|
|
96 |
|
97 |
}
|
98 |
|
99 |
-
/**
|
100 |
-
* Checks if cookie is setted
|
101 |
-
*
|
102 |
-
* @return bool
|
103 |
-
*/
|
104 |
-
public function cookies_set()
|
105 |
-
{
|
106 |
-
return apply_filters('cn_is_cookie_set', isset($_COOKIE[self::$cookie['name']]));
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* Checks if third party non functional cookies are accepted
|
111 |
-
*
|
112 |
-
* @return bool
|
113 |
-
*/
|
114 |
-
public static function cookies_accepted()
|
115 |
-
{
|
116 |
-
|
117 |
-
$noticeAccepted = isset($_COOKIE[self::$cookie['name']]) && strtoupper($_COOKIE[self::$cookie['name']]) === self::$cookie['value'];
|
118 |
-
$popupAccepted = isset($_COOKIE[self::$cookiePopup['name']]) && strtoupper($_COOKIE[self::$cookiePopup['name']]) === self::$cookiePopup['value'];
|
119 |
-
|
120 |
-
return apply_filters('cn_is_cookie_accepted', $noticeAccepted || $popupAccepted);
|
121 |
-
}
|
122 |
-
|
123 |
public function cookieNotice()
|
124 |
{
|
125 |
|
@@ -143,11 +119,11 @@ class SPDSGVOPublic
|
|
143 |
?>
|
144 |
<!--noptimize-->
|
145 |
<div id="cookie-notice" role="banner"
|
146 |
-
class="sp-dsgvo lwb-d-flex cn-<?php echo esc_attr($settings['cn_position']) ?> cookie-style-<?php echo esc_attr($settings['cookie_style']);?> <?php echo $settings['cn_custom_css_container'] !== '' ?
|
147 |
style="background-color: <?php echo esc_attr($settings['cn_background_color']) ?>;
|
148 |
color: <?php echo esc_attr($settings['cn_text_color']) ?>;
|
149 |
height: <?php echo esc_attr($settings['cn_height_container']) ?>;">
|
150 |
-
<div class="cookie-notice-container container-fluid lwb-d-md-flex <?php echo $noticeStyle == '00' ? 'justify-content-md-center align-items-md-center' : 'justify-content-around' ?>">
|
151 |
|
152 |
<?php
|
153 |
|
@@ -196,7 +172,7 @@ class SPDSGVOPublic
|
|
196 |
//}
|
197 |
?>
|
198 |
|
199 |
-
<span id="cn-notice-text" class="<?php echo $settings['cn_custom_css_text'] !== '' ?
|
200 |
style="font-size:<?php echo esc_attr($settings['cn_size_text']) ?>"><?php echo convDeChars($cookieNoticeCustomText); ?>
|
201 |
</span>
|
202 |
|
@@ -209,7 +185,7 @@ class SPDSGVOPublic
|
|
209 |
<?php endif; ?>
|
210 |
|
211 |
<a href="#" id="cn-btn-settings"
|
212 |
-
class="cn-set-cookie button button-default <?php echo $settings['cn_custom_css_buttons'] !== '' ?
|
213 |
style="background-color: <?php echo esc_attr($settings['cn_background_color_button']) ?>;
|
214 |
color: <?php echo esc_attr($settings['cn_text_color_button']) ?>;
|
215 |
border-color: <?php echo esc_attr($settings['cn_border_color_button']) ?>;
|
@@ -419,7 +395,7 @@ class SPDSGVOPublic
|
|
419 |
break;
|
420 |
}
|
421 |
|
422 |
-
$introductionText =
|
423 |
//$introductionText = convDeChars($introductionText); // let it uncommented until the first ticket about this gets opened
|
424 |
?>
|
425 |
|
@@ -507,7 +483,7 @@ class SPDSGVOPublic
|
|
507 |
<?php foreach($langs as $lang) : ?>
|
508 |
<a href="<?php echo esc_url($lang['url']); ?>">
|
509 |
<img src="<?php echo esc_url($lang['country_flag_url']); ?>" alt="<?php _e('Country flag', 'shapepress-dsgvo');?>" />
|
510 |
-
<span><?php echo $lang['native_name']; ?></span>
|
511 |
</a>
|
512 |
<?php endforeach; ?>
|
513 |
</div><!-- .dsgvo-lang-dropdown -->
|
@@ -567,7 +543,7 @@ class SPDSGVOPublic
|
|
567 |
</div>
|
568 |
|
569 |
<div class="sp-dsgvo-header-description-text lwb-row lwb-col-12 m-0 p-0">
|
570 |
-
<?php echo $introductionText; ?>
|
571 |
</div>
|
572 |
</div> <!--header wrapper xs-->
|
573 |
|
@@ -598,9 +574,9 @@ class SPDSGVOPublic
|
|
598 |
</div>
|
599 |
</div>
|
600 |
<div class="sp-dsgvo-link-wrapper lwb-col-md-5 px-0">
|
601 |
-
<a href="<?php echo $imprintUrl; ?>" target="_blank"><?php _e('Imprint', 'shapepress-dsgvo');?></a>
|
602 |
<span>|</span>
|
603 |
-
<a href="<?php echo $privacyPolicyUrl; ?>" target="_blank"><?php echo esc_html(SPDSGVOSettings::get('privacy_policy_custom_header'));?></a>
|
604 |
</div> <!-- .link-wrapper -->
|
605 |
|
606 |
<div class="sp-dsgvo-lang-wrapper lwb-col-md-2 px-0">
|
@@ -707,7 +683,7 @@ class SPDSGVOPublic
|
|
707 |
</div>
|
708 |
</div><!-- line1 wrapper -->
|
709 |
<div class="sp-dsgvo-header-description-text lwb-row lwb-col-12 m-0 p-0">
|
710 |
-
<?php echo $introductionText; ?>
|
711 |
</div>
|
712 |
|
713 |
</div> <!--header wrapper sm-->
|
@@ -836,15 +812,15 @@ class SPDSGVOPublic
|
|
836 |
<div>
|
837 |
<div class="sp-dsgvo-category-name lwb-row no-gutters">
|
838 |
<div class="lwb-col-12">
|
839 |
-
<?php
|
840 |
</div>
|
841 |
</div>
|
842 |
<div class="lwb-row no-gutters">
|
843 |
-
<div class="sp-dsgvo-category-description lwb-col-9"><?php
|
844 |
<div class="sp-dsgvo-category-toggle lwb-col-3">
|
845 |
|
846 |
<label class="switch switch-green float-right">
|
847 |
-
<input type="checkbox" class="switch-input" value="1" name="sp-dsgvo-switch-category" <?php echo $isReadonly ? 'checked disabled' : '' ?> data-slug="<?php echo $categorySlug
|
848 |
<span class="switch-label" data-on="<?php _e('Yes', 'shapepress-dsgvo');?>" data-off="<?php _e('No', 'shapepress-dsgvo');?>"></span>
|
849 |
<span class="switch-handle"></span>
|
850 |
</label>
|
@@ -867,28 +843,28 @@ class SPDSGVOPublic
|
|
867 |
<div class="sp-dsgvo-category-item lwb-row no-gutters pl-1">
|
868 |
<div class="lwb-col-9 lwb-col-md-6">
|
869 |
<div class="sp-dsgvo-category-item-name">
|
870 |
-
<?php echo $integration->getName();?>
|
871 |
<?php if($withTagmanager) :?>
|
872 |
-
<small><?php
|
873 |
<?php endif; ?>
|
874 |
</div>
|
875 |
<?php if($isLocal) :?>
|
876 |
<div class="sp-dsgvo-category-item-company"><?php _e('Local installation', 'shapepress-dsgvo');?></div>
|
877 |
<?php else: ?>
|
878 |
-
<div class="sp-dsgvo-category-item-company"><?php echo $integration->getCompany();?>, <?php echo $integration->getCountry();?></div>
|
879 |
<?php endif; ?>
|
880 |
|
881 |
<div class="sp-dsgvo-category-item-description-url d-block d-sm-none">
|
882 |
-
<a href="#" class="sp-dsgvo-more-information-link" data-slug="<?php echo $integrationSlug;?>" data-title="<?php echo $integration->getName();?>">ⓘ <?php _e('All Details', 'shapepress-dsgvo');?></a>
|
883 |
</div>
|
884 |
</div>
|
885 |
<div class="lwb-col-3 lwb-col-md-6 lwb-row no-gutters">
|
886 |
<div class="sp-dsgvo-category-item-description-url d-none d-sm-block lwb-col px-0 mx-0">
|
887 |
-
<a href="#" class="sp-dsgvo-more-information-link" data-slug="<?php echo $integrationSlug;?>" data-title="<?php echo $integration->getName();?>">ⓘ <?php _e('All Details', 'shapepress-dsgvo');?></a>
|
888 |
</div>
|
889 |
<div class="sp-dsgvo-category-item-toggle lwb-col px-0 mx-0">
|
890 |
<label class="switch switch-green float-right">
|
891 |
-
<input type="checkbox" class="switch-input sp-dsgvo-switch-integration" <?php echo $isReadonly == true ? 'checked disabled' : '' ?> value="1" name="sp-dsgvo-switch-integration" data-slug="<?php echo $integrationSlug
|
892 |
<span class="switch-label" data-on="<?php _e('Yes', 'shapepress-dsgvo');?>" data-off="<?php _e('No', 'shapepress-dsgvo');?>"></span>
|
893 |
<span class="switch-handle"></span>
|
894 |
</label>
|
@@ -923,7 +899,7 @@ class SPDSGVOPublic
|
|
923 |
font-weight: 300;
|
924 |
src: local('Roboto Light Italic'),
|
925 |
local('Roboto-LightItalic'),
|
926 |
-
url(<?php echo sp_dsgvo_URL; ?>public/css/fonts/roboto/Roboto-LightItalic-webfont.woff) format('woff');
|
927 |
font-display: swap;
|
928 |
|
929 |
}
|
@@ -935,7 +911,7 @@ class SPDSGVOPublic
|
|
935 |
font-weight: 400;
|
936 |
src: local('Roboto Italic'),
|
937 |
local('Roboto-Italic'),
|
938 |
-
url(<?php echo
|
939 |
font-display: swap;
|
940 |
}
|
941 |
|
@@ -946,7 +922,7 @@ class SPDSGVOPublic
|
|
946 |
font-weight: 700;
|
947 |
src: local('Roboto Bold Italic'),
|
948 |
local('Roboto-BoldItalic'),
|
949 |
-
url(<?php echo
|
950 |
font-display: swap;
|
951 |
}
|
952 |
|
@@ -957,7 +933,7 @@ class SPDSGVOPublic
|
|
957 |
font-weight: 900;
|
958 |
src: local('Roboto Black Italic'),
|
959 |
local('Roboto-BlackItalic'),
|
960 |
-
url(<?php echo
|
961 |
font-display: swap;
|
962 |
}
|
963 |
|
@@ -968,7 +944,7 @@ class SPDSGVOPublic
|
|
968 |
font-weight: 300;
|
969 |
src: local('Roboto Light'),
|
970 |
local('Roboto-Light'),
|
971 |
-
url(<?php echo
|
972 |
font-display: swap;
|
973 |
}
|
974 |
|
@@ -979,7 +955,7 @@ class SPDSGVOPublic
|
|
979 |
font-weight: 400;
|
980 |
src: local('Roboto Regular'),
|
981 |
local('Roboto-Regular'),
|
982 |
-
url(<?php echo
|
983 |
font-display: swap;
|
984 |
}
|
985 |
|
@@ -990,7 +966,7 @@ class SPDSGVOPublic
|
|
990 |
font-weight: 700;
|
991 |
src: local('Roboto Bold'),
|
992 |
local('Roboto-Bold'),
|
993 |
-
url(<?php echo
|
994 |
font-display: swap;
|
995 |
}
|
996 |
|
@@ -1001,7 +977,7 @@ class SPDSGVOPublic
|
|
1001 |
font-weight: 900;
|
1002 |
src: local('Roboto Black'),
|
1003 |
local('Roboto-Black'),
|
1004 |
-
url(<?php echo
|
1005 |
font-display: swap;
|
1006 |
}
|
1007 |
</style>
|
@@ -1009,7 +985,7 @@ class SPDSGVOPublic
|
|
1009 |
// Ende der Ausgabe
|
1010 |
$html = ob_get_contents();
|
1011 |
ob_end_clean();
|
1012 |
-
echo $html;
|
1013 |
}
|
1014 |
|
1015 |
}
|
@@ -1077,7 +1053,7 @@ class SPDSGVOPublic
|
|
1077 |
$content = str_replace( $match, '', $content );
|
1078 |
}
|
1079 |
|
1080 |
-
echo $content;
|
1081 |
}
|
1082 |
|
1083 |
public function writeFooterScripts()
|
@@ -1228,53 +1204,8 @@ class SPDSGVOPublic
|
|
1228 |
}
|
1229 |
}
|
1230 |
|
1231 |
-
/**
|
1232 |
-
* Checks if third party non functional cookies are accepted/rejected or returns default
|
1233 |
-
* Thanks to Felix :)
|
1234 |
-
* @return bool
|
1235 |
-
*/
|
1236 |
-
public static function cookies_accepted_default()
|
1237 |
-
{
|
1238 |
-
$userHadDecision = isset($_COOKIE[self::$cookie['name']]) || isset($_COOKIE[self::$cookiePopup['name']]);
|
1239 |
-
if($userHadDecision){
|
1240 |
-
$noticeAccepted = FALSE;
|
1241 |
-
$popupAccepted = FALSE;
|
1242 |
-
|
1243 |
-
try {
|
1244 |
-
$noticeAccepted = strtoupper($_COOKIE[self::$cookie['name']]) === self::$cookie['value'];
|
1245 |
-
} catch (Exception $e)
|
1246 |
-
{
|
1247 |
-
$noticeAccepted = FALSE;
|
1248 |
-
}
|
1249 |
-
|
1250 |
-
try {
|
1251 |
-
$popupAccepted = strtoupper($_COOKIE[self::$cookiePopup['name']]) === self::$cookiePopup['value'];
|
1252 |
-
} catch (Exception $e)
|
1253 |
-
{
|
1254 |
-
$popupAccepted = FALSE;
|
1255 |
-
}
|
1256 |
-
|
1257 |
-
return apply_filters('cn_is_cookie_accepted', $noticeAccepted || $popupAccepted);
|
1258 |
-
}else{
|
1259 |
-
$defaults = SPDSGVOSettings::get('services');
|
1260 |
-
if (isset($defaults['cookies'])) {
|
1261 |
-
return @$defaults['cookies']['default'] === '1';
|
1262 |
-
}
|
1263 |
-
}
|
1264 |
-
//error_log('hasUserGivenPermissionFor: ' . $slug . ': ' . 'FALSE');
|
1265 |
-
return FALSE;
|
1266 |
-
}
|
1267 |
|
1268 |
-
}
|
1269 |
|
1270 |
-
/**
|
1271 |
-
* Get the cookie notice status
|
1272 |
-
*
|
1273 |
-
* @return boolean
|
1274 |
-
*/
|
1275 |
-
function sp_dsgvo_cn_cookies_accepted()
|
1276 |
-
{
|
1277 |
-
return (bool) SPDSGVOPublic::cookies_accepted();
|
1278 |
}
|
1279 |
|
1280 |
|
96 |
|
97 |
}
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
public function cookieNotice()
|
100 |
{
|
101 |
|
119 |
?>
|
120 |
<!--noptimize-->
|
121 |
<div id="cookie-notice" role="banner"
|
122 |
+
class="sp-dsgvo lwb-d-flex cn-<?php echo esc_attr($settings['cn_position']) ?> cookie-style-<?php echo esc_attr($settings['cookie_style']);?> <?php echo esc_attr($settings['cn_custom_css_container'] !== '' ? ($settings['cn_custom_css_container']):''); ?> <?php echo esc_attr($noticeStyle != '00' ? 'cn-shadow-top' : '');?>"
|
123 |
style="background-color: <?php echo esc_attr($settings['cn_background_color']) ?>;
|
124 |
color: <?php echo esc_attr($settings['cn_text_color']) ?>;
|
125 |
height: <?php echo esc_attr($settings['cn_height_container']) ?>;">
|
126 |
+
<div class="cookie-notice-container container-fluid lwb-d-md-flex <?php echo esc_attr($noticeStyle == '00' ? 'justify-content-md-center align-items-md-center' : 'justify-content-around'); ?>">
|
127 |
|
128 |
<?php
|
129 |
|
172 |
//}
|
173 |
?>
|
174 |
|
175 |
+
<span id="cn-notice-text" class="<?php echo esc_attr($settings['cn_custom_css_text'] !== '' ? ($settings['cn_custom_css_text']):''); ?>"
|
176 |
style="font-size:<?php echo esc_attr($settings['cn_size_text']) ?>"><?php echo convDeChars($cookieNoticeCustomText); ?>
|
177 |
</span>
|
178 |
|
185 |
<?php endif; ?>
|
186 |
|
187 |
<a href="#" id="cn-btn-settings"
|
188 |
+
class="cn-set-cookie button button-default <?php echo esc_attr($settings['cn_custom_css_buttons'] !== '' ? ($settings['cn_custom_css_buttons']):''); ?>"
|
189 |
style="background-color: <?php echo esc_attr($settings['cn_background_color_button']) ?>;
|
190 |
color: <?php echo esc_attr($settings['cn_text_color_button']) ?>;
|
191 |
border-color: <?php echo esc_attr($settings['cn_border_color_button']) ?>;
|
395 |
break;
|
396 |
}
|
397 |
|
398 |
+
$introductionText = (str_replace('{OWNER-TEXT}', $ownerText, $introductionText));
|
399 |
//$introductionText = convDeChars($introductionText); // let it uncommented until the first ticket about this gets opened
|
400 |
?>
|
401 |
|
483 |
<?php foreach($langs as $lang) : ?>
|
484 |
<a href="<?php echo esc_url($lang['url']); ?>">
|
485 |
<img src="<?php echo esc_url($lang['country_flag_url']); ?>" alt="<?php _e('Country flag', 'shapepress-dsgvo');?>" />
|
486 |
+
<span><?php echo esc_html($lang['native_name']); ?></span>
|
487 |
</a>
|
488 |
<?php endforeach; ?>
|
489 |
</div><!-- .dsgvo-lang-dropdown -->
|
543 |
</div>
|
544 |
|
545 |
<div class="sp-dsgvo-header-description-text lwb-row lwb-col-12 m-0 p-0">
|
546 |
+
<?php echo esc_html($introductionText); ?>
|
547 |
</div>
|
548 |
</div> <!--header wrapper xs-->
|
549 |
|
574 |
</div>
|
575 |
</div>
|
576 |
<div class="sp-dsgvo-link-wrapper lwb-col-md-5 px-0">
|
577 |
+
<a href="<?php echo esc_url($imprintUrl); ?>" target="_blank"><?php _e('Imprint', 'shapepress-dsgvo');?></a>
|
578 |
<span>|</span>
|
579 |
+
<a href="<?php echo esc_url($privacyPolicyUrl); ?>" target="_blank"><?php echo esc_html(SPDSGVOSettings::get('privacy_policy_custom_header'));?></a>
|
580 |
</div> <!-- .link-wrapper -->
|
581 |
|
582 |
<div class="sp-dsgvo-lang-wrapper lwb-col-md-2 px-0">
|
683 |
</div>
|
684 |
</div><!-- line1 wrapper -->
|
685 |
<div class="sp-dsgvo-header-description-text lwb-row lwb-col-12 m-0 p-0">
|
686 |
+
<?php echo esc_html($introductionText); ?>
|
687 |
</div>
|
688 |
|
689 |
</div> <!--header wrapper sm-->
|
812 |
<div>
|
813 |
<div class="sp-dsgvo-category-name lwb-row no-gutters">
|
814 |
<div class="lwb-col-12">
|
815 |
+
<?php esc_html_e($categoryData['title'], 'shapepress-dsgvo');?> <small>(<?php echo esc_html(sprintf(_n('%s '.__('Service','shapepress-dsgvo'), '%s '.__('Services','shapepress-dsgvo'), $enabledIntegrationCount, 'shapepress-dsgvo'), $enabledIntegrationCount));?>)</small>
|
816 |
</div>
|
817 |
</div>
|
818 |
<div class="lwb-row no-gutters">
|
819 |
+
<div class="sp-dsgvo-category-description lwb-col-9"><?php esc_html_e($categoryData['description'], 'shapepress-dsgvo');?></div>
|
820 |
<div class="sp-dsgvo-category-toggle lwb-col-3">
|
821 |
|
822 |
<label class="switch switch-green float-right">
|
823 |
+
<input type="checkbox" class="switch-input" value="1" name="sp-dsgvo-switch-category" <?php echo esc_attr($isReadonly ? 'checked disabled' : ''); ?> data-slug="<?php echo esc_attr($categorySlug);?>" id="sp-dsgvo-switch-category-<?php echo esc_attr($categorySlug);?>">
|
824 |
<span class="switch-label" data-on="<?php _e('Yes', 'shapepress-dsgvo');?>" data-off="<?php _e('No', 'shapepress-dsgvo');?>"></span>
|
825 |
<span class="switch-handle"></span>
|
826 |
</label>
|
843 |
<div class="sp-dsgvo-category-item lwb-row no-gutters pl-1">
|
844 |
<div class="lwb-col-9 lwb-col-md-6">
|
845 |
<div class="sp-dsgvo-category-item-name">
|
846 |
+
<?php echo esc_html($integration->getName());?>
|
847 |
<?php if($withTagmanager) :?>
|
848 |
+
<small><?php echo esc_html(__('via', 'shapepress-dsgvo').' '. SPDSGVOConstants::getTagManager()[$usedTagmanager]);?></small>
|
849 |
<?php endif; ?>
|
850 |
</div>
|
851 |
<?php if($isLocal) :?>
|
852 |
<div class="sp-dsgvo-category-item-company"><?php _e('Local installation', 'shapepress-dsgvo');?></div>
|
853 |
<?php else: ?>
|
854 |
+
<div class="sp-dsgvo-category-item-company"><?php echo esc_html($integration->getCompany());?>, <?php echo esc_html($integration->getCountry());?></div>
|
855 |
<?php endif; ?>
|
856 |
|
857 |
<div class="sp-dsgvo-category-item-description-url d-block d-sm-none">
|
858 |
+
<a href="#" class="sp-dsgvo-more-information-link" data-slug="<?php echo esc_attr($integrationSlug);?>" data-title="<?php echo esc_attr($integration->getName());?>">ⓘ <?php _e('All Details', 'shapepress-dsgvo');?></a>
|
859 |
</div>
|
860 |
</div>
|
861 |
<div class="lwb-col-3 lwb-col-md-6 lwb-row no-gutters">
|
862 |
<div class="sp-dsgvo-category-item-description-url d-none d-sm-block lwb-col px-0 mx-0">
|
863 |
+
<a href="#" class="sp-dsgvo-more-information-link" data-slug="<?php echo esc_attr($integrationSlug);?>" data-title="<?php echo esc_attr($integration->getName());?>">ⓘ <?php _e('All Details', 'shapepress-dsgvo');?></a>
|
864 |
</div>
|
865 |
<div class="sp-dsgvo-category-item-toggle lwb-col px-0 mx-0">
|
866 |
<label class="switch switch-green float-right">
|
867 |
+
<input type="checkbox" class="switch-input sp-dsgvo-switch-integration" <?php echo esc_attr($isReadonly == true ? 'checked disabled' : '') ?> value="1" name="sp-dsgvo-switch-integration" data-slug="<?php echo esc_attr($integrationSlug);?>" data-category="<?php echo esc_attr($categorySlug)?>" id="sp-dsgvo-switch-integration-<?php echo esc_attr($integrationSlug)?>">
|
868 |
<span class="switch-label" data-on="<?php _e('Yes', 'shapepress-dsgvo');?>" data-off="<?php _e('No', 'shapepress-dsgvo');?>"></span>
|
869 |
<span class="switch-handle"></span>
|
870 |
</label>
|
899 |
font-weight: 300;
|
900 |
src: local('Roboto Light Italic'),
|
901 |
local('Roboto-LightItalic'),
|
902 |
+
url(<?php echo esc_url(sp_dsgvo_URL); ?>public/css/fonts/roboto/Roboto-LightItalic-webfont.woff) format('woff');
|
903 |
font-display: swap;
|
904 |
|
905 |
}
|
911 |
font-weight: 400;
|
912 |
src: local('Roboto Italic'),
|
913 |
local('Roboto-Italic'),
|
914 |
+
url(<?php echo esc_url(sp_dsgvo_URL);; ?>public/css/fonts/roboto/Roboto-Italic-webfont.woff) format('woff');
|
915 |
font-display: swap;
|
916 |
}
|
917 |
|
922 |
font-weight: 700;
|
923 |
src: local('Roboto Bold Italic'),
|
924 |
local('Roboto-BoldItalic'),
|
925 |
+
url(<?php echo esc_url(sp_dsgvo_URL);; ?>public/css/fonts/roboto/Roboto-BoldItalic-webfont.woff) format('woff');
|
926 |
font-display: swap;
|
927 |
}
|
928 |
|
933 |
font-weight: 900;
|
934 |
src: local('Roboto Black Italic'),
|
935 |
local('Roboto-BlackItalic'),
|
936 |
+
url(<?php echo esc_url(sp_dsgvo_URL);; ?>public/css/fonts/roboto/Roboto-BlackItalic-webfont.woff) format('woff');
|
937 |
font-display: swap;
|
938 |
}
|
939 |
|
944 |
font-weight: 300;
|
945 |
src: local('Roboto Light'),
|
946 |
local('Roboto-Light'),
|
947 |
+
url(<?php echo esc_url(sp_dsgvo_URL);; ?>public/css/fonts/roboto/Roboto-Light-webfont.woff) format('woff');
|
948 |
font-display: swap;
|
949 |
}
|
950 |
|
955 |
font-weight: 400;
|
956 |
src: local('Roboto Regular'),
|
957 |
local('Roboto-Regular'),
|
958 |
+
url(<?php echo esc_url(sp_dsgvo_URL);; ?>public/css/fonts/roboto/Roboto-Regular-webfont.woff) format('woff');
|
959 |
font-display: swap;
|
960 |
}
|
961 |
|
966 |
font-weight: 700;
|
967 |
src: local('Roboto Bold'),
|
968 |
local('Roboto-Bold'),
|
969 |
+
url(<?php echo esc_url(sp_dsgvo_URL);; ?>public/css/fonts/roboto/Roboto-Bold-webfont.woff) format('woff');
|
970 |
font-display: swap;
|
971 |
}
|
972 |
|
977 |
font-weight: 900;
|
978 |
src: local('Roboto Black'),
|
979 |
local('Roboto-Black'),
|
980 |
+
url(<?php echo esc_url(sp_dsgvo_URL);; ?>public/css/fonts/roboto/Roboto-Black-webfont.woff) format('woff');
|
981 |
font-display: swap;
|
982 |
}
|
983 |
</style>
|
985 |
// Ende der Ausgabe
|
986 |
$html = ob_get_contents();
|
987 |
ob_end_clean();
|
988 |
+
echo wp_kses($html, array('style' => array()));
|
989 |
}
|
990 |
|
991 |
}
|
1053 |
$content = str_replace( $match, '', $content );
|
1054 |
}
|
1055 |
|
1056 |
+
echo wp_kses_post($content);
|
1057 |
}
|
1058 |
|
1059 |
public function writeFooterScripts()
|
1204 |
}
|
1205 |
}
|
1206 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1207 |
|
|
|
1208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1209 |
}
|
1210 |
|
1211 |
|
public/shortcodes/subject-access-request/subject-access-request-action.php
CHANGED
@@ -45,7 +45,7 @@ Class SPDSGVOSubjectAccessRequestAction extends SPDSGVOAjaxAction{
|
|
45 |
}
|
46 |
|
47 |
if($this->has('is_ajax')){
|
48 |
-
echo
|
49 |
'success' => '1',
|
50 |
'zip_link' => SPDSGVODownloadSubjectAccessRequestAction::url(array(
|
51 |
'token' => $sar->token,
|
45 |
}
|
46 |
|
47 |
if($this->has('is_ajax')){
|
48 |
+
echo wp_json_encode(array(
|
49 |
'success' => '1',
|
50 |
'zip_link' => SPDSGVODownloadSubjectAccessRequestAction::url(array(
|
51 |
'token' => $sar->token,
|
public/shortcodes/subject-access-request/subject-access-request.php
CHANGED
@@ -13,14 +13,14 @@ function SPDSGVODownloadMyDataShortcode($atts){
|
|
13 |
|
14 |
ob_start();
|
15 |
?>
|
16 |
-
<?php if(isset($_REQUEST['result']) && $_REQUEST['result'] === 'success'): ?>
|
17 |
|
18 |
<p class="sp-dsgvo sar-success-message"><?php _e('Your request has been created','shapepress-dsgvo')?> <br> <?php _e('You will receive an email from us with a current extract of your data stored with us.','shapepress-dsgvo')?></p>
|
19 |
|
20 |
<?php else: ?>
|
21 |
<div class="sp-dsgvo sp-sar-form">
|
22 |
<form method="post" action="<?php echo esc_url(SPDSGVOSubjectAccessRequestAction::url()); ?>" class="sp-dsgvo-framework">
|
23 |
-
<?php wp_nonce_field( SPDSGVOSubjectAccessRequestAction::getActionName(). '-nonce' ); ?>
|
24 |
<fieldset>
|
25 |
|
26 |
<div class="lwb-row">
|
13 |
|
14 |
ob_start();
|
15 |
?>
|
16 |
+
<?php if(isset($_REQUEST['result']) && santize_text_field($_REQUEST['result']) === 'success'): ?>
|
17 |
|
18 |
<p class="sp-dsgvo sar-success-message"><?php _e('Your request has been created','shapepress-dsgvo')?> <br> <?php _e('You will receive an email from us with a current extract of your data stored with us.','shapepress-dsgvo')?></p>
|
19 |
|
20 |
<?php else: ?>
|
21 |
<div class="sp-dsgvo sp-sar-form">
|
22 |
<form method="post" action="<?php echo esc_url(SPDSGVOSubjectAccessRequestAction::url()); ?>" class="sp-dsgvo-framework">
|
23 |
+
<?php wp_nonce_field( esc_attr(SPDSGVOSubjectAccessRequestAction::getActionName()). '-nonce' ); ?>
|
24 |
<fieldset>
|
25 |
|
26 |
<div class="lwb-row">
|
public/shortcodes/super-unsubscribe/unsubscribe-form.php
CHANGED
@@ -14,18 +14,18 @@ function SPDSGVOUnsubscribeShortcode($atts){
|
|
14 |
|
15 |
ob_start();
|
16 |
?>
|
17 |
-
<?php if(isset($_REQUEST['result']) && $_REQUEST['result'] === 'success'): ?>
|
18 |
|
19 |
<p class="sp-dsgvo us-success-message"><?php _e('Request sent successfully. You will receive an email in a few minutes.','shapepress-dsgvo')?></p>
|
20 |
|
21 |
-
<?php elseif(isset($_REQUEST['result']) && $_REQUEST['result'] === 'confirmed'): ?>
|
22 |
|
23 |
<p class="sp-dsgvo us-success-message"><?php _e('Request successfully completed. Your data has been completely deleted.','shapepress-dsgvo')?></p>
|
24 |
|
25 |
<?php else: ?>
|
26 |
<div class="sp-dsgvo sp-unsubsribe-form">
|
27 |
<form method="post" action="<?php echo esc_url(SPDSGVOSuperUnsubscribeFormAction::url()) ?>" >
|
28 |
-
<?php wp_nonce_field( SPDSGVOSuperUnsubscribeFormAction::getActionName(). '-nonce' ); ?>
|
29 |
<fieldset>
|
30 |
<div class="lwb-row">
|
31 |
<div class="lwb-col-3">
|
14 |
|
15 |
ob_start();
|
16 |
?>
|
17 |
+
<?php if(isset($_REQUEST['result']) && santize_text_field($_REQUEST['result']) === 'success'): ?>
|
18 |
|
19 |
<p class="sp-dsgvo us-success-message"><?php _e('Request sent successfully. You will receive an email in a few minutes.','shapepress-dsgvo')?></p>
|
20 |
|
21 |
+
<?php elseif(isset($_REQUEST['result']) && santize_text_field($_REQUEST['result']) === 'confirmed'): ?>
|
22 |
|
23 |
<p class="sp-dsgvo us-success-message"><?php _e('Request successfully completed. Your data has been completely deleted.','shapepress-dsgvo')?></p>
|
24 |
|
25 |
<?php else: ?>
|
26 |
<div class="sp-dsgvo sp-unsubsribe-form">
|
27 |
<form method="post" action="<?php echo esc_url(SPDSGVOSuperUnsubscribeFormAction::url()) ?>" >
|
28 |
+
<?php wp_nonce_field( esc_attr(SPDSGVOSuperUnsubscribeFormAction::getActionName()). '-nonce' ); ?>
|
29 |
<fieldset>
|
30 |
<div class="lwb-row">
|
31 |
<div class="lwb-col-3">
|
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.24
|
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.24');
|
32 |
define('sp_dsgvo_NAME', 'sp-dsgvo');
|
33 |
define('sp_dsgvo_PLUGIN_NAME', 'shapepress-dsgvo');
|
34 |
define('sp_dsgvo_LEGAL_TEXTS_MIN_VERSION', '1579021814');
|
templates/de_DE/emails/subject-access-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
-
<?php echo isset($variables['title']) ? $variables['title'] : __('Subject access request','shapepress-dsgvo'); ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
@@ -44,7 +44,7 @@
|
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
-
<?php if( !empty( $variables['content'] ) ) : echo $variables['content']; else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
+
<?php echo esc_html(isset($variables['title']) ? $variables['title'] : __('Subject access request','shapepress-dsgvo')); ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
+
<?php if( !empty( $variables['content'] ) ) : echo esc_html($variables['content']); else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
templates/de_DE/emails/super-unsubscribe.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
-
style='color: #202020'>{{website}}</a><br> <?php echo isset($variables['title']) ? $variables['title'] : __('Delete request','shapepress-dsgvo'); ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
@@ -43,13 +43,13 @@
|
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
-
<?php if( !empty( $variables['content'] ) ) : echo $variables['content']; else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
50 |
<h2
|
51 |
style="color: #202020; display: block; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: center;">
|
52 |
-
<a color: #ffc600 target='_blank'
|
53 |
href="{{confirm_link}}"><?php _e('Confirm Delete', 'shapepress-dsgvo'); ?></a>
|
54 |
</h2>
|
55 |
<p style="margin: 0 0 16px;"><?php _e("If you don't want do delete your data just ignore this email.", 'shapepress-dsgvo'); ?></p>
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
+
style='color: #202020'>{{website}}</a><br> <?php echo esc_html(isset($variables['title']) ? $variables['title'] : __('Delete request','shapepress-dsgvo')); ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
+
<?php if( !empty( $variables['content'] ) ) : echo esc_html($variables['content']); else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
50 |
<h2
|
51 |
style="color: #202020; display: block; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: center;">
|
52 |
+
<a style="color: #ffc600" target='_blank'
|
53 |
href="{{confirm_link}}"><?php _e('Confirm Delete', 'shapepress-dsgvo'); ?></a>
|
54 |
</h2>
|
55 |
<p style="margin: 0 0 16px;"><?php _e("If you don't want do delete your data just ignore this email.", 'shapepress-dsgvo'); ?></p>
|
templates/de_DE_formal/emails/subject-access-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
-
<?php echo $title; // p912419 ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
@@ -44,7 +44,7 @@
|
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
-
<?php if( !empty( $content ) ) : echo $content; else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
+
<?php echo esc_html($title); // p912419 ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
+
<?php if( !empty( $content ) ) : echo esc_html($content); else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
templates/de_DE_formal/emails/super-unsubscribe.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
-
style='color: #202020'>{{website}}</a><br><?php echo $title; ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
@@ -43,7 +43,7 @@
|
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
-
<?php if( !empty( $content ) ) : echo $content; else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
+
style='color: #202020'>{{website}}</a><br><?php echo esc_html($title); ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
+
<?php if( !empty( $content ) ) : echo esc_html($content); else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
templates/en_EN/emails/subject-access-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
-
<?php echo isset($title) ? $title : __('Subject access request','shapepress-dsgvo'); ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
@@ -44,7 +44,7 @@
|
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
-
<?php if( !empty( $content ) ) : echo $content; else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
@@ -59,7 +59,7 @@
|
|
59 |
</p>
|
60 |
<h2
|
61 |
style="color: #202020; display: block; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: center;">
|
62 |
-
<a color: #202020 target='_blank'
|
63 |
href="{{confirm_link}}"></a>
|
64 |
</h2>
|
65 |
<?php endif; ?>
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
+
<?php echo esc_html(isset($title) ? $title : __('Subject access request','shapepress-dsgvo')); ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
+
<?php if( !empty( $content ) ) : echo esc_html($content); else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
59 |
</p>
|
60 |
<h2
|
61 |
style="color: #202020; display: block; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: center;">
|
62 |
+
<a style"color: #202020" target='_blank'
|
63 |
href="{{confirm_link}}"></a>
|
64 |
</h2>
|
65 |
<?php endif; ?>
|
templates/en_EN/emails/super-unsubscribe.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
-
style='color: #202020'>{{website}}</a><br> <?php echo isset($title) ? $title : __('Delete request','shapepress-dsgvo'); ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
@@ -43,13 +43,13 @@
|
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
-
<?php if( !empty( $content ) ) : echo $content; else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
50 |
<h2
|
51 |
style="color: #202020; display: block; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: center;">
|
52 |
-
<a color: #ffc600 target='_blank'
|
53 |
href="{{confirm_link}}"><?php _e('Confirm Delete', 'shapepress-dsgvo'); ?></a>
|
54 |
</h2>
|
55 |
<p style="margin: 0 0 16px;"><?php _e("If you don't want do delete your data just ignore this email.", 'shapepress-dsgvo'); ?></p>
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
+
style='color: #202020'>{{website}}</a><br> <?php echo esc_html(isset($title) ? $title : __('Delete request','shapepress-dsgvo')); ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
+
<?php if( !empty( $content ) ) : echo esc_html($content); else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
50 |
<h2
|
51 |
style="color: #202020; display: block; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: center;">
|
52 |
+
<a style="color: #ffc600" target='_blank'
|
53 |
href="{{confirm_link}}"><?php _e('Confirm Delete', 'shapepress-dsgvo'); ?></a>
|
54 |
</h2>
|
55 |
<p style="margin: 0 0 16px;"><?php _e("If you don't want do delete your data just ignore this email.", 'shapepress-dsgvo'); ?></p>
|
templates/en_GB/emails/subject-access-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
-
<?php echo $title; // p912419 ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
@@ -44,7 +44,7 @@
|
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
-
<?php if( !empty( $content ) ) : echo $content; else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
+
<?php echo esc_html($title); // p912419 ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
+
<?php if( !empty( $content ) ) : echo esc_html($content); else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
templates/en_GB/emails/super-unsubscribe.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
-
style='color: #202020'>{{website}}</a><br><?php echo $title; ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
@@ -43,7 +43,7 @@
|
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
-
<?php if( !empty( $content ) ) : echo $content; else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
+
style='color: #202020'>{{website}}</a><br><?php echo esc_html($title); ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
+
<?php if( !empty( $content ) ) : echo esc_html($content); else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
templates/en_US/emails/subject-access-request.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
-
<?php echo $title; // p912419 ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
@@ -44,7 +44,7 @@
|
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
-
<?php if( !empty( $content ) ) : echo $content; else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
style='color: #202020'>{{website}}</a><br>
|
21 |
+
<?php echo esc_html($title); // p912419 ?>
|
22 |
</h1>
|
23 |
</td>
|
24 |
</tr>
|
44 |
<div id="body_content_inner"
|
45 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
46 |
|
47 |
+
<?php if( !empty( $content ) ) : echo esc_html($content); else : ?>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('We have received your subject access request. A PDF document containing all the data we have stored about you is attached.
|
49 |
Amount of personal data found:', 'shapepress-dsgvo'); ?> {{count}}</p>
|
50 |
<p style="margin: 0 0 16px;">
|
templates/en_US/emails/super-unsubscribe.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
-
style='color: #202020'>{{website}}</a><br><?php echo $title; ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
@@ -43,13 +43,13 @@
|
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
-
<?php if( !empty( $content ) ) : echo $content; else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
50 |
<h2
|
51 |
style="color: #202020; display: block; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: center;">
|
52 |
-
<a color: #ffc600 target=
|
53 |
href="{{confirm_link}}"><?php _e('Confirm Delete', 'shapepress-dsgvo'); ?></a>
|
54 |
</h2>
|
55 |
<p style="margin: 0 0 16px;"><?php _e("If you don't want do delete your data just ignore this email.", 'shapepress-dsgvo'); ?></p>
|
17 |
<h1
|
18 |
style="color: #202020; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #202020;">
|
19 |
<a target='_blank' href="[CLIENTS.WEBSITE]"
|
20 |
+
style='color: #202020'>{{website}}</a><br><?php echo esc_html($title); ?>
|
21 |
</h1>
|
22 |
</td>
|
23 |
</tr>
|
43 |
<div id="body_content_inner"
|
44 |
style="color: #4d4c53; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 14px; line-height: 150%; text-align: left;">
|
45 |
|
46 |
+
<?php if( !empty( $content ) ) : echo esc_html($content); else : ?>
|
47 |
<p style="margin: 0 0 16px;"><?php _e('We have received your delete request.', 'shapepress-dsgvo'); ?></p>
|
48 |
<p style="margin: 0 0 16px;"><?php _e('If you confirm the following link, all your data stored at
|
49 |
{{website}} gets deleted.', 'shapepress-dsgvo'); ?></p>
|
50 |
<h2
|
51 |
style="color: #202020; display: block; font-family: & quot; Helvetica Neue&quot; , Helvetica , Roboto, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 130%; margin: 0 0 18px; text-align: center;">
|
52 |
+
<a style="color: #ffc600" target="_blank"
|
53 |
href="{{confirm_link}}"><?php _e('Confirm Delete', 'shapepress-dsgvo'); ?></a>
|
54 |
</h2>
|
55 |
<p style="margin: 0 0 16px;"><?php _e("If you don't want do delete your data just ignore this email.", 'shapepress-dsgvo'); ?></p>
|