Version Description
- bbPress Integration bei Datenauszug und Lö:schanfrage (nur Premium)
- buddyPress Integration (Felder, Nachrichten) bei Datenauszug und Lö:schanfrage (nur Premium)
- Styles der Formulare und Buttons werden nun hauptsächlich vom Theme übernommen
- Placeholder bei Datenauszug und Löschanfrage angepasst
- [user_privacy_settings] Cache Problem gelöst
- [user_privacy_settings] nun responsive
- Absenderemailadresse bei generierten Mails wird nun von den Einstellungen übernommen
- Kleinere Fehlerbehebungen
Download this release
Release Info
Developer | shapepress |
Plugin | WP DSGVO Tools |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.4.0
- README.txt +12 -0
- includes/helpers.php +4 -2
- includes/models/subject-access-request.php +1 -0
- includes/models/unsubscriber.php +1 -0
- public/actions/user-permissions.php +1 -0
- public/css/sp-dsgvo-public.css +87 -146
- public/shortcodes/privacy-settings-form.php +46 -43
- public/shortcodes/subject-access-request/subject-access-request.php +4 -4
- public/shortcodes/super-unsubscribe/unsubscribe-form.php +2 -2
- sp-dsgvo.php +2 -2
README.txt
CHANGED
@@ -43,6 +43,8 @@ Features
|
|
43 |
* Gravity Forms Integration
|
44 |
* **Filter zum Erweitern des Datenauszugs und der Löschanfrage**
|
45 |
* Mailchimp Integration
|
|
|
|
|
46 |
* **Cookie Notice anpassbar**
|
47 |
* **Email Benachrichtigung bei neuen Anfragen**
|
48 |
* Support Forum & professioneller Support
|
@@ -72,6 +74,16 @@ WICHTIG: Vor der Installation bitte alle bisher aktivierten Cookie Notice Plugin
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
= 1.3.8 =
|
76 |
* Kosmetik
|
77 |
|
43 |
* Gravity Forms Integration
|
44 |
* **Filter zum Erweitern des Datenauszugs und der Löschanfrage**
|
45 |
* Mailchimp Integration
|
46 |
+
* **bbPress** Integration
|
47 |
+
* **buddyPress** Integration
|
48 |
* **Cookie Notice anpassbar**
|
49 |
* **Email Benachrichtigung bei neuen Anfragen**
|
50 |
* Support Forum & professioneller Support
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.4.0 =
|
78 |
+
* bbPress Integration bei Datenauszug und Lö:schanfrage (nur Premium)
|
79 |
+
* buddyPress Integration (Felder, Nachrichten) bei Datenauszug und Lö:schanfrage (nur Premium)
|
80 |
+
* Styles der Formulare und Buttons werden nun hauptsächlich vom Theme übernommen
|
81 |
+
* Placeholder bei Datenauszug und Löschanfrage angepasst
|
82 |
+
* [user_privacy_settings] Cache Problem gelöst
|
83 |
+
* [user_privacy_settings] nun responsive
|
84 |
+
* Absenderemailadresse bei generierten Mails wird nun von den Einstellungen übernommen
|
85 |
+
* Kleinere Fehlerbehebungen
|
86 |
+
|
87 |
= 1.3.8 =
|
88 |
* Kosmetik
|
89 |
|
includes/helpers.php
CHANGED
@@ -68,6 +68,8 @@ if(!function_exists('hasUserGivenPermissionFor')){
|
|
68 |
$user = wp_get_current_user();
|
69 |
|
70 |
if($slug === 'cookies'){
|
|
|
|
|
71 |
if($user instanceof WP_User && $user->ID){
|
72 |
$userPermissions = get_user_meta($user->ID, 'sp_dsgvo_user_permissions', TRUE);
|
73 |
}else{
|
@@ -76,10 +78,10 @@ if(!function_exists('hasUserGivenPermissionFor')){
|
|
76 |
}
|
77 |
|
78 |
if(isset($userPermissions['cookies'])){
|
79 |
-
|
80 |
}
|
81 |
//error_log('hasUserGivenPermissionFor: '.$slug .': '. 'NULL');
|
82 |
-
return
|
83 |
}
|
84 |
|
85 |
|
68 |
$user = wp_get_current_user();
|
69 |
|
70 |
if($slug === 'cookies'){
|
71 |
+
$cnAccepted = sp_dsgvo_cn_cookies_accepted();
|
72 |
+
|
73 |
if($user instanceof WP_User && $user->ID){
|
74 |
$userPermissions = get_user_meta($user->ID, 'sp_dsgvo_user_permissions', TRUE);
|
75 |
}else{
|
78 |
}
|
79 |
|
80 |
if(isset($userPermissions['cookies'])){
|
81 |
+
return $userPermissions['cookies'] == '1'|| $cnAccepted;
|
82 |
}
|
83 |
//error_log('hasUserGivenPermissionFor: '.$slug .': '. 'NULL');
|
84 |
+
return $cnAccepted; // at last its false -> opt-in
|
85 |
}
|
86 |
|
87 |
|
includes/models/subject-access-request.php
CHANGED
@@ -63,6 +63,7 @@ Class SPDSGVOSubjectAccessRequest extends SPDSGVOModel {
|
|
63 |
|
64 |
// Send Email
|
65 |
$email = SPDSGVOMail::init()
|
|
|
66 |
->to($this->email)
|
67 |
->subject('Anfrage zum Datenauszug: '. parse_url(home_url(), PHP_URL_HOST))
|
68 |
->beforeTemplate(SPDSGVO::pluginDir('includes/emails/header.html'))
|
63 |
|
64 |
// Send Email
|
65 |
$email = SPDSGVOMail::init()
|
66 |
+
->from(SPDSGVOSettings::get('admin_email'))
|
67 |
->to($this->email)
|
68 |
->subject('Anfrage zum Datenauszug: '. parse_url(home_url(), PHP_URL_HOST))
|
69 |
->beforeTemplate(SPDSGVO::pluginDir('includes/emails/header.html'))
|
includes/models/unsubscriber.php
CHANGED
@@ -96,6 +96,7 @@ Class SPDSGVOUnsubscriber extends SPDSGVOModel {
|
|
96 |
|
97 |
$email = SPDSGVOMail::init()
|
98 |
->to($this->email)
|
|
|
99 |
->subject('Bestägigung der Datenlöschung: '. parse_url(home_url(), PHP_URL_HOST))
|
100 |
->beforeTemplate(SPDSGVO::pluginDir('includes/emails/header.html'))
|
101 |
->afterTemplate( SPDSGVO::pluginDir('includes/emails/footer.html'))
|
96 |
|
97 |
$email = SPDSGVOMail::init()
|
98 |
->to($this->email)
|
99 |
+
->from(SPDSGVOSettings::get('admin_email'))
|
100 |
->subject('Bestägigung der Datenlöschung: '. parse_url(home_url(), PHP_URL_HOST))
|
101 |
->beforeTemplate(SPDSGVO::pluginDir('includes/emails/header.html'))
|
102 |
->afterTemplate( SPDSGVO::pluginDir('includes/emails/footer.html'))
|
public/actions/user-permissions.php
CHANGED
@@ -9,6 +9,7 @@ Class SPDSGVOUserPermissionsAction extends SPDSGVOAjaxAction{
|
|
9 |
$meta = array();
|
10 |
$services = $this->get('services', NULL, FALSE);
|
11 |
|
|
|
12 |
if(is_array($services)){
|
13 |
foreach($services as $slug => $service){
|
14 |
$meta[$slug] = ($service == '1')? '1' : '0';
|
9 |
$meta = array();
|
10 |
$services = $this->get('services', NULL, FALSE);
|
11 |
|
12 |
+
//error_log('SPDSGVOUserPermissionsAction: updating settings');
|
13 |
if(is_array($services)){
|
14 |
foreach($services as $slug => $service){
|
15 |
$meta[$slug] = ($service == '1')? '1' : '0';
|
public/css/sp-dsgvo-public.css
CHANGED
@@ -15,7 +15,6 @@
|
|
15 |
background-color: red
|
16 |
}
|
17 |
|
18 |
-
|
19 |
.okcBeginAnimate {
|
20 |
-webkit-animation: myfirst 2s;
|
21 |
animation: myfirst 2s;
|
@@ -27,12 +26,11 @@
|
|
27 |
from {opacity: 0;
|
28 |
}
|
29 |
|
|
|
30 |
to {
|
31 |
opacity: 1;
|
32 |
}
|
33 |
|
34 |
-
}
|
35 |
-
|
36 |
/* Standard syntax */
|
37 |
@
|
38 |
keyframes myfirst {
|
@@ -44,6 +42,9 @@ to {
|
|
44 |
}
|
45 |
|
46 |
}
|
|
|
|
|
|
|
47 |
|
48 |
/*!
|
49 |
* Milligram v1.3.0
|
@@ -57,16 +58,16 @@ to {
|
|
57 |
.sp-dsgvo-framework .button, .sp-dsgvo-framework button,
|
58 |
.sp-dsgvo-framework input[type=button], .sp-dsgvo-framework input[type=reset],
|
59 |
.sp-dsgvo-framework input[type=submit] {
|
60 |
-
border-radius: .4rem;
|
61 |
-
color: #fff;
|
62 |
cursor: pointer;
|
63 |
display: inline-block;
|
64 |
-
|
|
|
|
|
65 |
font-weight: 700;
|
66 |
height: 3.8rem;
|
67 |
letter-spacing: .1rem;
|
68 |
line-height: 3.8rem;
|
69 |
-
padding: 0 3rem;
|
70 |
text-align: center;
|
71 |
text-decoration: none;
|
72 |
text-transform: uppercase;
|
@@ -90,79 +91,6 @@ to {
|
|
90 |
opacity: .5
|
91 |
}
|
92 |
|
93 |
-
.sp-dsgvo-framework .button[disabled]:focus, .sp-dsgvo-framework .button[disabled]:hover,
|
94 |
-
.sp-dsgvo-framework button[disabled]:focus, .sp-dsgvo-framework button[disabled]:hover,
|
95 |
-
.sp-dsgvo-framework input[type=button][disabled]:focus,
|
96 |
-
.sp-dsgvo-framework input[type=button][disabled]:hover,
|
97 |
-
.sp-dsgvo-framework input[type=reset][disabled]:focus,
|
98 |
-
.sp-dsgvo-framework input[type=reset][disabled]:hover,
|
99 |
-
.sp-dsgvo-framework input[type=submit][disabled]:focus,
|
100 |
-
.sp-dsgvo-framework input[type=submit][disabled]:hover {
|
101 |
-
|
102 |
-
}
|
103 |
-
|
104 |
-
.sp-dsgvo-framework .button.button-outline, .sp-dsgvo-framework button.button-outline,
|
105 |
-
.sp-dsgvo-framework input[type=button].button-outline,
|
106 |
-
.sp-dsgvo-framework input[type=reset].button-outline,
|
107 |
-
.sp-dsgvo-framework input[type=submit].button-outline {
|
108 |
-
|
109 |
-
}
|
110 |
-
|
111 |
-
.sp-dsgvo-framework .button.button-outline:focus, .sp-dsgvo-framework .button.button-outline:hover,
|
112 |
-
.sp-dsgvo-framework button.button-outline:focus, .sp-dsgvo-framework button.button-outline:hover,
|
113 |
-
.sp-dsgvo-framework input[type=button].button-outline:focus,
|
114 |
-
.sp-dsgvo-framework input[type=button].button-outline:hover,
|
115 |
-
.sp-dsgvo-framework input[type=reset].button-outline:focus,
|
116 |
-
.sp-dsgvo-framework input[type=reset].button-outline:hover,
|
117 |
-
.sp-dsgvo-framework input[type=submit].button-outline:focus,
|
118 |
-
.sp-dsgvo-framework input[type=submit].button-outline:hover {
|
119 |
-
|
120 |
-
}
|
121 |
-
|
122 |
-
.sp-dsgvo-framework .button.button-outline[disabled]:focus,
|
123 |
-
.sp-dsgvo-framework .button.button-outline[disabled]:hover,
|
124 |
-
.sp-dsgvo-framework button.button-outline[disabled]:focus,
|
125 |
-
.sp-dsgvo-framework button.button-outline[disabled]:hover,
|
126 |
-
.sp-dsgvo-framework input[type=button].button-outline[disabled]:focus,
|
127 |
-
.sp-dsgvo-framework input[type=button].button-outline[disabled]:hover,
|
128 |
-
.sp-dsgvo-framework input[type=reset].button-outline[disabled]:focus,
|
129 |
-
.sp-dsgvo-framework input[type=reset].button-outline[disabled]:hover,
|
130 |
-
.sp-dsgvo-framework input[type=submit].button-outline[disabled]:focus,
|
131 |
-
.sp-dsgvo-framework input[type=submit].button-outline[disabled]:hover {
|
132 |
-
|
133 |
-
}
|
134 |
-
|
135 |
-
.sp-dsgvo-framework .button.button-clear, .sp-dsgvo-framework button.button-clear,
|
136 |
-
.sp-dsgvo-framework input[type=button].button-clear,
|
137 |
-
.sp-dsgvo-framework input[type=reset].button-clear, .sp-dsgvo-framework input[type=submit].button-clear
|
138 |
-
{
|
139 |
-
|
140 |
-
}
|
141 |
-
|
142 |
-
.sp-dsgvo-framework .button.button-clear:focus, .sp-dsgvo-framework .button.button-clear:hover,
|
143 |
-
.sp-dsgvo-framework button.button-clear:focus, .sp-dsgvo-framework button.button-clear:hover,
|
144 |
-
.sp-dsgvo-framework input[type=button].button-clear:focus,
|
145 |
-
.sp-dsgvo-framework input[type=button].button-clear:hover,
|
146 |
-
.sp-dsgvo-framework input[type=reset].button-clear:focus,
|
147 |
-
.sp-dsgvo-framework input[type=reset].button-clear:hover,
|
148 |
-
.sp-dsgvo-framework input[type=submit].button-clear:focus,
|
149 |
-
.sp-dsgvo-framework input[type=submit].button-clear:hover {
|
150 |
-
|
151 |
-
}
|
152 |
-
|
153 |
-
.sp-dsgvo-framework .button.button-clear[disabled]:focus,
|
154 |
-
.sp-dsgvo-framework .button.button-clear[disabled]:hover,
|
155 |
-
.sp-dsgvo-framework button.button-clear[disabled]:focus,
|
156 |
-
.sp-dsgvo-framework button.button-clear[disabled]:hover,
|
157 |
-
.sp-dsgvo-framework input[type=button].button-clear[disabled]:focus,
|
158 |
-
.sp-dsgvo-framework input[type=button].button-clear[disabled]:hover,
|
159 |
-
.sp-dsgvo-framework input[type=reset].button-clear[disabled]:focus,
|
160 |
-
.sp-dsgvo-framework input[type=reset].button-clear[disabled]:hover,
|
161 |
-
.sp-dsgvo-framework input[type=submit].button-clear[disabled]:focus,
|
162 |
-
.sp-dsgvo-framework input[type=submit].button-clear[disabled]:hover {
|
163 |
-
|
164 |
-
}
|
165 |
-
|
166 |
.sp-dsgvo-framework code {
|
167 |
background: #f4f5f6;
|
168 |
border-radius: .4rem;
|
@@ -188,7 +116,7 @@ to {
|
|
188 |
.sp-dsgvo-framework hr {
|
189 |
border: 0;
|
190 |
border-top: .1rem solid #f4f5f6;
|
191 |
-
margin:
|
192 |
}
|
193 |
|
194 |
.sp-dsgvo-framework input[type=email], .sp-dsgvo-framework input[type=number],
|
@@ -199,12 +127,12 @@ to {
|
|
199 |
-webkit-appearance: none;
|
200 |
-moz-appearance: none;
|
201 |
appearance: none;
|
202 |
-
background-color: transparent;
|
203 |
border: .1rem solid #d1d1d1;
|
204 |
-
border-radius: .4rem;
|
205 |
box-shadow: none;
|
206 |
box-sizing: inherit;
|
207 |
-
height: 3.8rem;
|
208 |
padding: .6rem 1rem;
|
209 |
width: 100%
|
210 |
}
|
@@ -214,7 +142,7 @@ to {
|
|
214 |
.sp-dsgvo-framework input[type=tel]:focus, .sp-dsgvo-framework input[type=text]:focus,
|
215 |
.sp-dsgvo-framework input[type=url]:focus, .sp-dsgvo-framework select:focus,
|
216 |
.sp-dsgvo-framework textarea:focus {
|
217 |
-
border-color: #9b4dca;
|
218 |
outline: 0
|
219 |
}
|
220 |
|
@@ -222,7 +150,7 @@ to {
|
|
222 |
background:
|
223 |
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" viewBox="0 0 29 14" width="29"><path fill="#d1d1d1" d="M9.37727 3.625l5.08154 6.93523L19.54036 3.625"/></svg>')
|
224 |
center right no-repeat;
|
225 |
-
padding-right: 3rem
|
226 |
}
|
227 |
|
228 |
.sp-dsgvo-framework select:focus {
|
@@ -236,8 +164,8 @@ to {
|
|
236 |
|
237 |
.sp-dsgvo-framework label, .sp-dsgvo-framework legend {
|
238 |
display: block;
|
239 |
-
font-size: 1.6rem;
|
240 |
-
font-weight: 700;
|
241 |
margin-bottom: .5rem
|
242 |
}
|
243 |
|
@@ -265,6 +193,10 @@ to {
|
|
265 |
width: 100%
|
266 |
}
|
267 |
|
|
|
|
|
|
|
|
|
268 |
.sp-dsgvo-framework .row {
|
269 |
display: flex;
|
270 |
flex-direction: column;
|
@@ -312,6 +244,11 @@ to {
|
|
312 |
width: 100%
|
313 |
}
|
314 |
|
|
|
|
|
|
|
|
|
|
|
315 |
.sp-dsgvo-framework .row .column.column-offset-10 {
|
316 |
margin-left: 10%
|
317 |
}
|
@@ -473,6 +410,7 @@ to {
|
|
473 |
.sp-dsgvo-framework fieldset, .sp-dsgvo-framework input,
|
474 |
.sp-dsgvo-framework select, .sp-dsgvo-framework textarea {
|
475 |
/* margin-bottom: 1.5rem */
|
|
|
476 |
}
|
477 |
|
478 |
.sp-dsgvo-framework blockquote, .sp-dsgvo-framework dl,
|
@@ -570,98 +508,101 @@ to {
|
|
570 |
}
|
571 |
|
572 |
#cookie-notice {
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
}
|
585 |
|
586 |
.cookie-notice-container {
|
587 |
-
|
588 |
text-align: center;
|
589 |
}
|
590 |
|
591 |
-
.cookie-notice-container #cn-notice-icon
|
592 |
-
|
593 |
-
float:left;
|
594 |
width: 25px;
|
595 |
}
|
596 |
|
597 |
.cn-top {
|
598 |
-
|
599 |
}
|
600 |
|
601 |
.cn-bottom {
|
602 |
-
|
603 |
}
|
604 |
|
605 |
#cookie-notice .button {
|
606 |
-
|
607 |
}
|
608 |
|
609 |
#cookie-notice .button.wp-default {
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
|
|
|
|
|
|
636 |
}
|
637 |
|
638 |
/* TODO this css file will be added on a lot of pages so selectors should very direct */
|
639 |
-
input[name="gdpr-cb"]{
|
640 |
-
|
641 |
-
|
642 |
}
|
643 |
|
644 |
-
label[for="gdpr-cb"]{
|
645 |
-
|
646 |
}
|
647 |
-
|
648 |
-
|
649 |
-
|
|
|
650 |
}
|
651 |
|
652 |
-
.gdpr-cb-info-text{
|
653 |
/* display:none; */
|
654 |
-
color:red;
|
655 |
}
|
656 |
/*
|
657 |
this is class for small info box when checkbox in new comment is not checked
|
658 |
*/
|
659 |
-
.gdpr-warning{
|
660 |
-
|
661 |
}
|
662 |
/*
|
663 |
this is class for submit button in new comment form when checkbox is not checked
|
664 |
*/
|
665 |
-
.gdpr-disabled{
|
666 |
-
|
667 |
}
|
15 |
background-color: red
|
16 |
}
|
17 |
|
|
|
18 |
.okcBeginAnimate {
|
19 |
-webkit-animation: myfirst 2s;
|
20 |
animation: myfirst 2s;
|
26 |
from {opacity: 0;
|
27 |
}
|
28 |
|
29 |
+
}
|
30 |
to {
|
31 |
opacity: 1;
|
32 |
}
|
33 |
|
|
|
|
|
34 |
/* Standard syntax */
|
35 |
@
|
36 |
keyframes myfirst {
|
42 |
}
|
43 |
|
44 |
}
|
45 |
+
.sp-dsgvo-framework .table-scroll {
|
46 |
+
overflow-x: auto;
|
47 |
+
}
|
48 |
|
49 |
/*!
|
50 |
* Milligram v1.3.0
|
58 |
.sp-dsgvo-framework .button, .sp-dsgvo-framework button,
|
59 |
.sp-dsgvo-framework input[type=button], .sp-dsgvo-framework input[type=reset],
|
60 |
.sp-dsgvo-framework input[type=submit] {
|
|
|
|
|
61 |
cursor: pointer;
|
62 |
display: inline-block;
|
63 |
+
/* border-radius: .4rem; */
|
64 |
+
color: #fff;
|
65 |
+
/* font-size: 1.1rem;
|
66 |
font-weight: 700;
|
67 |
height: 3.8rem;
|
68 |
letter-spacing: .1rem;
|
69 |
line-height: 3.8rem;
|
70 |
+
padding: 0 3rem; */
|
71 |
text-align: center;
|
72 |
text-decoration: none;
|
73 |
text-transform: uppercase;
|
91 |
opacity: .5
|
92 |
}
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
.sp-dsgvo-framework code {
|
95 |
background: #f4f5f6;
|
96 |
border-radius: .4rem;
|
116 |
.sp-dsgvo-framework hr {
|
117 |
border: 0;
|
118 |
border-top: .1rem solid #f4f5f6;
|
119 |
+
margin: 1rem 0
|
120 |
}
|
121 |
|
122 |
.sp-dsgvo-framework input[type=email], .sp-dsgvo-framework input[type=number],
|
127 |
-webkit-appearance: none;
|
128 |
-moz-appearance: none;
|
129 |
appearance: none;
|
130 |
+
/* background-color: transparent;
|
131 |
border: .1rem solid #d1d1d1;
|
132 |
+
border-radius: .4rem; */
|
133 |
box-shadow: none;
|
134 |
box-sizing: inherit;
|
135 |
+
/* height: 3.8rem; */
|
136 |
padding: .6rem 1rem;
|
137 |
width: 100%
|
138 |
}
|
142 |
.sp-dsgvo-framework input[type=tel]:focus, .sp-dsgvo-framework input[type=text]:focus,
|
143 |
.sp-dsgvo-framework input[type=url]:focus, .sp-dsgvo-framework select:focus,
|
144 |
.sp-dsgvo-framework textarea:focus {
|
145 |
+
/* border-color: #9b4dca; */
|
146 |
outline: 0
|
147 |
}
|
148 |
|
150 |
background:
|
151 |
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" viewBox="0 0 29 14" width="29"><path fill="#d1d1d1" d="M9.37727 3.625l5.08154 6.93523L19.54036 3.625"/></svg>')
|
152 |
center right no-repeat;
|
153 |
+
/* padding-right: 3rem */
|
154 |
}
|
155 |
|
156 |
.sp-dsgvo-framework select:focus {
|
164 |
|
165 |
.sp-dsgvo-framework label, .sp-dsgvo-framework legend {
|
166 |
display: block;
|
167 |
+
/* font-size: 1.6rem;
|
168 |
+
font-weight: 700; */
|
169 |
margin-bottom: .5rem
|
170 |
}
|
171 |
|
193 |
width: 100%
|
194 |
}
|
195 |
|
196 |
+
.sp-dsgvo-framework .container.container-no-padding {
|
197 |
+
padding: 0
|
198 |
+
}
|
199 |
+
|
200 |
.sp-dsgvo-framework .row {
|
201 |
display: flex;
|
202 |
flex-direction: column;
|
244 |
width: 100%
|
245 |
}
|
246 |
|
247 |
+
.sp-dsgvo-framework .row .column.strong {
|
248 |
+
font-weight: 700
|
249 |
+
}
|
250 |
+
|
251 |
+
|
252 |
.sp-dsgvo-framework .row .column.column-offset-10 {
|
253 |
margin-left: 10%
|
254 |
}
|
410 |
.sp-dsgvo-framework fieldset, .sp-dsgvo-framework input,
|
411 |
.sp-dsgvo-framework select, .sp-dsgvo-framework textarea {
|
412 |
/* margin-bottom: 1.5rem */
|
413 |
+
|
414 |
}
|
415 |
|
416 |
.sp-dsgvo-framework blockquote, .sp-dsgvo-framework dl,
|
508 |
}
|
509 |
|
510 |
#cookie-notice {
|
511 |
+
display: none;
|
512 |
+
position: fixed;
|
513 |
+
min-width: 100%;
|
514 |
+
height: auto;
|
515 |
+
z-index: 100000;
|
516 |
+
font-size: 13px;
|
517 |
+
line-height: 20px;
|
518 |
+
left: 0;
|
519 |
+
text-align: center;
|
520 |
+
background-color: #333333;
|
521 |
+
color: #ffffff;
|
522 |
}
|
523 |
|
524 |
.cookie-notice-container {
|
525 |
+
padding: 10px;
|
526 |
text-align: center;
|
527 |
}
|
528 |
|
529 |
+
.cookie-notice-container #cn-notice-icon {
|
530 |
+
float: left;
|
|
|
531 |
width: 25px;
|
532 |
}
|
533 |
|
534 |
.cn-top {
|
535 |
+
top: 0;
|
536 |
}
|
537 |
|
538 |
.cn-bottom {
|
539 |
+
bottom: 0;
|
540 |
}
|
541 |
|
542 |
#cookie-notice .button {
|
543 |
+
margin-left: 10px;
|
544 |
}
|
545 |
|
546 |
#cookie-notice .button.wp-default {
|
547 |
+
font-family: sans-serif;
|
548 |
+
line-height: 18px;
|
549 |
+
padding: 2px 12px !important;
|
550 |
+
background: linear-gradient(to bottom, #FEFEFE, #F4F4F4) repeat scroll 0
|
551 |
+
0 #F3F3F3 !important;
|
552 |
+
border-color: #BBB !important;
|
553 |
+
color: #333 !important;
|
554 |
+
text-shadow: 0 1px 0 #FFF;
|
555 |
+
-moz-box-sizing: border-box;
|
556 |
+
border-radius: 3px 3px 3px 3px !important;
|
557 |
+
border-style: solid !important;
|
558 |
+
border-width: 1px !important;
|
559 |
+
cursor: pointer;
|
560 |
+
display: inline-block;
|
561 |
+
font-size: 12px !important;
|
562 |
+
font-style: normal !important;
|
563 |
+
text-decoration: none !important;
|
564 |
+
white-space: nowrap !important;
|
565 |
+
outline: none !important;
|
566 |
+
width: initial;
|
567 |
+
height: initial;
|
568 |
+
}
|
569 |
+
|
570 |
+
#cookie-notice .button.wp-default:hover, #cookie-notice .button.wp-default:focus
|
571 |
+
{
|
572 |
+
background: linear-gradient(to bottom, #FFFFFF, #F3F3F3) repeat scroll 0
|
573 |
+
0 #F3F3F3 !important;
|
574 |
+
border-color: #999999 !important;
|
575 |
+
color: #222222 !important;
|
576 |
}
|
577 |
|
578 |
/* TODO this css file will be added on a lot of pages so selectors should very direct */
|
579 |
+
input[name="gdpr-cb"] {
|
580 |
+
background-color: red;
|
581 |
+
display: inline-block !important;
|
582 |
}
|
583 |
|
584 |
+
label[for="gdpr-cb"] {
|
585 |
+
display: inline;
|
586 |
}
|
587 |
+
|
588 |
+
p.notice {
|
589 |
+
margin-bottom: 0;
|
590 |
+
color: #f0ad4e;
|
591 |
}
|
592 |
|
593 |
+
.gdpr-cb-info-text {
|
594 |
/* display:none; */
|
595 |
+
color: red;
|
596 |
}
|
597 |
/*
|
598 |
this is class for small info box when checkbox in new comment is not checked
|
599 |
*/
|
600 |
+
.gdpr-warning {
|
601 |
+
background-color: orange;
|
602 |
}
|
603 |
/*
|
604 |
this is class for submit button in new comment form when checkbox is not checked
|
605 |
*/
|
606 |
+
.gdpr-disabled {
|
607 |
+
background-color: #c1c1c1 !important;
|
608 |
}
|
public/shortcodes/privacy-settings-form.php
CHANGED
@@ -1,52 +1,55 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function SPDSGVOUserPrivacySettingsFormShortcode($atts)
|
4 |
-
|
5 |
-
|
6 |
-
), $atts);
|
7 |
-
|
8 |
-
ob_start();
|
9 |
?>
|
10 |
-
<form method="post" action="<?= admin_url('/admin-ajax.php'); ?>" class="sp-dsgvo-framework">
|
11 |
-
<input type="hidden" name="action" value="user-permissions">
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
40 |
|
41 |
<?php if(!is_user_logged_in()): ?>
|
42 |
-
<p
|
|
|
|
|
|
|
|
|
43 |
<?php endif; ?>
|
44 |
|
45 |
<input type="submit" value="Speichern">
|
46 |
-
|
47 |
-
|
48 |
-
<?php
|
49 |
-
return ob_get_clean();
|
50 |
-
}
|
51 |
|
|
|
|
|
|
|
|
|
52 |
add_shortcode('user_privacy_settings_form', 'SPDSGVOUserPrivacySettingsFormShortcode');
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function SPDSGVOUserPrivacySettingsFormShortcode($atts)
|
4 |
+
{
|
5 |
+
$atts = shortcode_atts(array(
|
6 |
+
), $atts);
|
7 |
+
|
8 |
+
ob_start();
|
9 |
?>
|
|
|
|
|
10 |
|
11 |
+
<form method="post" action="<?= admin_url('/admin-ajax.php'); ?>"
|
12 |
+
class="sp-dsgvo-framework">
|
13 |
+
<input type="hidden" name="action" value="user-permissions">
|
14 |
+
<div class="container container-no-padding">
|
15 |
+
<div class="row">
|
16 |
+
<div class="column strong">Dienst</div>
|
17 |
+
<div class="column column-50 strong">Grund der Nutzung</div>
|
18 |
+
<div class="column strong">AGB</div>
|
19 |
+
<div class="column strong">Aktiviert</div>
|
20 |
+
</div>
|
21 |
+
<hr />
|
22 |
+
<?php foreach(SPDSGVOSettings::get('services') as $slug => $service): ?>
|
23 |
+
<div class="row">
|
24 |
+
<div class="column"><?= $service['name'] ?></div>
|
25 |
+
<div class="column column-50"><?= $service['reason'] ?></div>
|
26 |
+
<div class="column"><a href="<?= @$service['link'] ?>" target="_blank">AGB</a></div>
|
27 |
+
<div class="column"><select name="services[<?= $slug ?>]">
|
28 |
+
<option
|
29 |
+
<?= (hasUserGivenPermissionFor($service['slug']))? ' selected ' : '' ?>
|
30 |
+
value="1">Ja</option>
|
31 |
+
<option
|
32 |
+
<?= (hasUserGivenPermissionFor($service['slug']))? '' : ' selected ' ?>
|
33 |
+
value="0">Nein</option>
|
34 |
+
</select></div>
|
35 |
+
</div>
|
36 |
+
<hr />
|
37 |
+
<?php endforeach; ?>
|
38 |
+
</div>
|
39 |
|
40 |
<?php if(!is_user_logged_in()): ?>
|
41 |
+
<p>
|
42 |
+
<small>Da Sie nicht eingeloggt sind speichern wir diese Einstellungen
|
43 |
+
in einem Cookie. Diese Einstellungen sind somit nur auf diesem PC
|
44 |
+
aktiv.</small>
|
45 |
+
</p>
|
46 |
<?php endif; ?>
|
47 |
|
48 |
<input type="submit" value="Speichern">
|
49 |
+
</form>
|
|
|
|
|
|
|
|
|
50 |
|
51 |
+
<?php
|
52 |
+
return ob_get_clean();
|
53 |
+
}
|
54 |
+
|
55 |
add_shortcode('user_privacy_settings_form', 'SPDSGVOUserPrivacySettingsFormShortcode');
|
public/shortcodes/subject-access-request/subject-access-request.php
CHANGED
@@ -6,8 +6,8 @@ function SPDSGVODownloadMyDataShortcode($atts){
|
|
6 |
$lastName = '';
|
7 |
$email = '';
|
8 |
if(is_user_logged_in()){
|
9 |
-
|
10 |
-
|
11 |
$email = wp_get_current_user()->user_email;
|
12 |
}
|
13 |
|
@@ -24,12 +24,12 @@ function SPDSGVODownloadMyDataShortcode($atts){
|
|
24 |
<div class="row">
|
25 |
<div class="column">
|
26 |
<label for="email-field">Vorname</label>
|
27 |
-
<input required type="text" id="first-name-field" name="first_name" value="<?= $firstName ?>" placeholder="
|
28 |
</div>
|
29 |
|
30 |
<div class="column">
|
31 |
<label for="email-field">Nachname</label>
|
32 |
-
<input required type="text" id="last-name-field" name="last_name" value="<?= $lastName ?>" placeholder="
|
33 |
</div>
|
34 |
</div>
|
35 |
|
6 |
$lastName = '';
|
7 |
$email = '';
|
8 |
if(is_user_logged_in()){
|
9 |
+
$firstName = wp_get_current_user()->user_firstname;
|
10 |
+
$lastName = wp_get_current_user()->user_lastname;
|
11 |
$email = wp_get_current_user()->user_email;
|
12 |
}
|
13 |
|
24 |
<div class="row">
|
25 |
<div class="column">
|
26 |
<label for="email-field">Vorname</label>
|
27 |
+
<input required type="text" id="first-name-field" name="first_name" value="<?= $firstName ?>" placeholder="Vorname" spellcheck="false" />
|
28 |
</div>
|
29 |
|
30 |
<div class="column">
|
31 |
<label for="email-field">Nachname</label>
|
32 |
+
<input required type="text" id="last-name-field" name="last_name" value="<?= $lastName ?>" placeholder="Nachname" spellcheck="false" />
|
33 |
</div>
|
34 |
</div>
|
35 |
|
public/shortcodes/super-unsubscribe/unsubscribe-form.php
CHANGED
@@ -7,8 +7,8 @@ function SPDSGVOUnsubscribeShortcode($atts){
|
|
7 |
$email = '';
|
8 |
|
9 |
if(is_user_logged_in()){
|
10 |
-
$firstName =
|
11 |
-
$lastName =
|
12 |
$email = wp_get_current_user()->user_email;
|
13 |
}
|
14 |
|
7 |
$email = '';
|
8 |
|
9 |
if(is_user_logged_in()){
|
10 |
+
$firstName = wp_get_current_user()->user_firstname;
|
11 |
+
$lastName = wp_get_current_user()->user_lastname;
|
12 |
$email = wp_get_current_user()->user_email;
|
13 |
}
|
14 |
|
sp-dsgvo.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: WP DSGVO Tools
|
17 |
* Plugin URI: https://wp-dsgvo.eu
|
18 |
* Description: WP DSGVO Tools helfen beim Erfüllen der Richtlinien der Datenschutzgrundverordnung (<a target="_blank" href="https://ico.org.uk/for-organisations/data-protection-reform/overview-of-the-gdpr/">DSGVO</a>), spezialisiert auf Österreich und Deutschland.
|
19 |
-
* Version: 1.
|
20 |
* Author: Shapepress eU
|
21 |
* Author URI: https://www.shapepress.com
|
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', '1.
|
32 |
define('sp_dsgvo_NAME', 'sp-dsgvo');
|
33 |
|
34 |
/**
|
16 |
* Plugin Name: WP DSGVO Tools
|
17 |
* Plugin URI: https://wp-dsgvo.eu
|
18 |
* Description: WP DSGVO Tools helfen beim Erfüllen der Richtlinien der Datenschutzgrundverordnung (<a target="_blank" href="https://ico.org.uk/for-organisations/data-protection-reform/overview-of-the-gdpr/">DSGVO</a>), spezialisiert auf Österreich und Deutschland.
|
19 |
+
* Version: 1.4.0
|
20 |
* Author: Shapepress eU
|
21 |
* Author URI: https://www.shapepress.com
|
22 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
28 |
die();
|
29 |
}
|
30 |
|
31 |
+
define('sp_dsgvo_VERSION', '1.4.0');
|
32 |
define('sp_dsgvo_NAME', 'sp-dsgvo');
|
33 |
|
34 |
/**
|