Line 10... |
Line 10... |
10 |
|
10 |
|
11 |
jQuery(document).ready(function() {
|
11 |
jQuery(document).ready(function() {
|
12 |
|
12 |
|
13 |
<?php if ($this->get_option('wpsg_form_validation') == '1') { ?>
|
13 |
<?php if ($this->get_option('wpsg_form_validation') == '1') { ?>
|
14 |
|
14 |
|
15 |
if (typeof jQuery.validationEngine == "object")
|
15 |
if (typeof jQuery.validationEngine == "object")
|
16 |
{
|
16 |
{
|
17 |
|
17 |
|
18 |
jQuery("#form-step2").validationEngine('attach', {promptPosition : "centerRight", scroll: false});
|
18 |
jQuery("#form-step2").validationEngine('attach', {promptPosition : "centerRight", scroll: false});
|
19 |
|
19 |
|
20 |
jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function(){
|
20 |
jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function(){
|
21 |
jQuery("#form-step2").validationEngine('detach');
|
21 |
jQuery("#form-step2").validationEngine('detach');
|
22 |
});
|
22 |
});
|
23 |
|
23 |
|
24 |
}
|
24 |
}
|
25 |
|
25 |
|
26 |
<?php } else if ($this->get_option('wpsg_form_validation') == '2') { ?>
|
26 |
<?php } else if ($this->get_option('wpsg_form_validation') == '2') { ?>
|
27 |
|
27 |
|
28 |
jQuery.validator.addMethod("cRequired", jQuery.validator.methods.required, "<?php echo __('Dieses Feld ist ein Pflichtfeld.', 'wpsg'); ?>");
|
28 |
jQuery.validator.addMethod("cRequired", jQuery.validator.methods.required, "<?php echo __('Dieses Feld ist ein Pflichtfeld.', 'wpsg'); ?>");
|
29 |
jQuery.validator.addClassRules('validate[required]', { cRequired: true } );
|
29 |
jQuery.validator.addClassRules('validate[required]', { cRequired: true } );
|
30 |
jQuery("#form-step2").validate( {
|
30 |
jQuery("#form-step2").validate( {
|
31 |
ignore: '',
|
31 |
ignore: '',
|
32 |
errorClass: 'wpsg_error',
|
32 |
errorClass: 'wpsg_error',
|
33 |
onsubmit: false,
|
33 |
onsubmit: false,
|
34 |
showErrors: function(errorMap, errorList) {
|
34 |
showErrors: function(errorMap, errorList) {
|
35 |
|
35 |
|
36 |
this.defaultShowErrors();
|
36 |
this.defaultShowErrors();
|
37 |
|
37 |
|
38 |
}
|
38 |
}
|
39 |
} );
|
39 |
} );
|
40 |
|
40 |
|
41 |
jQuery('.wpsg_registerButton').bind('click', function() {
|
41 |
jQuery('.wpsg_registerButton').bind('click', function() {
|
42 |
|
42 |
|
43 |
var bReturn = jQuery('#form-step2').validate().form();
|
43 |
var bReturn = jQuery('#form-step2').validate().form();
|
44 |
if (jQuery('#form-step2 input.wpsg_error').length > 0) jQuery('#form-step2 input.wpsg_error')[0].focus();
|
44 |
if (jQuery('#form-step2 input.wpsg_error').length > 0) jQuery('#form-step2 input.wpsg_error')[0].focus();
|
45 |
return bReturn;
|
45 |
return bReturn;
|
46 |
|
46 |
|
47 |
} );
|
47 |
} );
|
48 |
|
48 |
|
49 |
<?php } ?>
|
49 |
<?php } ?>
|
50 |
|
50 |
|
51 |
|
51 |
|
52 |
// Visualisierung der Passwortstärke
|
52 |
// Visualisierung der Passwortstärke
|
53 |
|
- |
|
54 |
jQuery('input[type=password]').keyup(function(){
|
53 |
jQuery('input[type=password]').keyup(function(){
|
55 |
|
54 |
|
56 |
var password = jQuery(this).val();
|
55 |
var password = jQuery(this).val();
|
57 |
|
56 |
|
58 |
if (password.length < 6) {
|
57 |
if (password.length < 6) {
|
Line 102... |
Line 101... |
102 |
}else{
|
101 |
}else{
|
103 |
|
102 |
|
104 |
jQuery('#wpsg_pwd_speziell').removeClass('valid').addClass('invalid');
|
103 |
jQuery('#wpsg_pwd_speziell').removeClass('valid').addClass('invalid');
|
105 |
|
104 |
|
106 |
}
|
105 |
}
|
107 |
|
- |
|
108 |
|
106 |
|
109 |
jQuery('#wpsg_pwd_info').show();
|
107 |
jQuery('#wpsg_pwd_info').show();
|
110 |
|
108 |
|
111 |
|
- |
|
112 |
jQuery(this).blur(function(){
|
109 |
jQuery(this).blur(function(){
|
113 |
|
110 |
|
114 |
jQuery('#wpsg_pwd_info').hide();
|
111 |
jQuery('#wpsg_pwd_info').hide();
|
115 |
|
112 |
|
116 |
});
|
113 |
});
|
117 |
|
114 |
|
118 |
});
|
115 |
});
|
119 |
|
- |
|
120 |
|
116 |
|
121 |
// Validierung Spam
|
117 |
// Validierung Spam
|
122 |
<?php
|
118 |
<?php
|
123 |
if (isset($_GET["wpsg_spam_email"]) && $_GET["wpsg_spam_email"] != "") {
|
119 |
if (isset($_GET["wpsg_spam_email"]) && $_GET["wpsg_spam_email"] != "") {
|
124 |
echo "<p>Sie haben ein Feld ausgefüllt, das frei bleiben muss.</p>";
|
120 |
echo "<p>Sie haben ein Feld ausgefüllt, das frei bleiben muss.</p>";
|
125 |
exit;
|
121 |
exit;
|
126 |
}
|
122 |
}
|
127 |
?>
|
123 |
?>
|
128 |
|
124 |
|
129 |
});
|
125 |
});
|
130 |
|
126 |
|
131 |
<?php /* Copy&Paste für das Eingabefeld "E-Mail-Wiederholung sperren */ ?>
|
127 |
<?php /* Copy&Paste für das Eingabefeld "E-Mail-Wiederholung sperren */ ?>
|
132 |
window.onload = function() {
|
128 |
window.onload = function() {
|
Line 142... |
Line 138... |
142 |
|
138 |
|
143 |
</script>
|
139 |
</script>
|
144 |
|
140 |
|
145 |
<div class="wpsg wpsg_checkout wpsg_register">
|
141 |
<div class="wpsg wpsg_checkout wpsg_register">
|
146 |
|
142 |
|
- |
|
143 |
<style>
|
- |
|
144 |
.placeholder { display: none !important; }
|
- |
|
145 |
.m1_dsgvo_layer { position:relative; width:100%; height:100px; margin-bottom: 30px; }
|
147 |
<?php echo $this->writeFrontendMessage(); ?>
|
146 |
.m1_dsgvo_layer > .placeholder_text { height:100px; font-size: small; position:relative; left:0; top:0; z-index:2; background-color:rgba(0, 0, 0, 0.75); display:flex; justify-content:center; align-items:center; color:#FFFFFF; flex-direction:column; padding:1rem; text-align:center; }
|
- |
|
147 |
.m1_dsgvo_layer > .placeholder_text > button { color: rgba(0, 0, 0, 0.75); margin-top: 1rem;}
|
- |
|
148 |
</style>
|
148 |
|
149 |
|
149 |
<form id="form-step2" method="post" action="<?php echo $this->callMod('wpsg_mod_kundenverwaltung', 'getRegisterURL'); ?>">
|
150 |
<form id="form-step2" method="post" action="<?php echo $this->callMod('wpsg_mod_kundenverwaltung', 'getRegisterURL'); ?>">
|
- |
|
151 |
|
- |
|
152 |
<?php echo $this->writeFrontendMessage(); ?>
|
- |
|
153 |
|
- |
|
154 |
<h2><?php echo __('Registrierung', 'sto'); ?></h2>
|
150 |
|
155 |
|
151 |
<?php if ($this->view['pflicht']['firma'] != '2') { ?>
|
156 |
<?php if ($this->view['pflicht']['firma'] != '2') { ?>
|
152 |
<div class="wpsg_checkoutblock">
|
157 |
<div class="wpsg_checkoutblock">
|
153 |
<label for="wpsg_firma"><?php echo __("Firma", "wpsg"); ?>
|
158 |
<label for="wpsg_firma"><?php echo __("Firma", "wpsg"); ?>
|
154 |
<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
159 |
<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
Line 283... |
Line 288... |
283 |
</div>
|
288 |
</div>
|
284 |
|
289 |
|
285 |
<?php } ?>
|
290 |
<?php } ?>
|
286 |
|
291 |
|
287 |
<?php } ?>
|
292 |
<?php } ?>
|
288 |
|
293 |
|
289 |
<?php if ($this->view['pflicht']['plz'] != '2') { ?>
|
294 |
<?php if ($this->view['pflicht']['plz'] != '2') { ?>
|
290 |
<div class="wpsg_checkoutblock">
|
295 |
<div class="wpsg_checkoutblock">
|
291 |
<label for="plz" class="wpsg_register"><?php echo __("Postleitzahl", "wpsg"); ?>
|
296 |
<label for="plz" class="wpsg_register"><?php echo __("Postleitzahl", "wpsg"); ?>
|
292 |
<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
297 |
<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
293 |
</label>
|
298 |
</label>
|
294 |
<input class="wpsg_input_text <?php echo (($this->view['pflicht']['plz'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("plz", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="plz" name="wpsg[register][plz]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['plz'])); ?>" />
|
299 |
<input class="<?php echo (($this->view['pflicht']['plz'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("plz", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="plz" name="wpsg[register][plz]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['plz'])); ?>" />
|
295 |
</div>
|
300 |
</div>
|
296 |
<?php } ?>
|
301 |
<?php } ?>
|
297 |
|
302 |
|
298 |
<?php if ($this->view['pflicht']['ort'] != '2') { ?>
|
303 |
<?php if ($this->view['pflicht']['ort'] != '2') { ?>
|
299 |
<div class="wpsg_checkoutblock">
|
304 |
<div class="wpsg_checkoutblock">
|
300 |
<label for="ort" class="wpsg_register"><?php echo __("Ort", "wpsg"); ?>
|
305 |
<label for="ort" class="wpsg_register"><?php echo __("Ort", "wpsg"); ?>
|
301 |
<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
306 |
<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
302 |
</label>
|
307 |
</label>
|
303 |
<input class="<?php echo (($this->view['pflicht']['ort'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("ort", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="ort" name="wpsg[register][ort]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['ort'])); ?>" />
|
308 |
<input class="<?php echo (($this->view['pflicht']['ort'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("ort", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="ort" name="wpsg[register][ort]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['ort'])); ?>" />
|
304 |
</div>
|
309 |
</div>
|
305 |
<?php } ?>
|
310 |
<?php } ?>
|
306 |
|
311 |
|
307 |
<?php if ($this->view['pflicht']['land'] != '2') { ?>
|
312 |
<?php if ($this->view['pflicht']['land'] != '2') { ?>
|
308 |
<div class="wpsg_checkoutblock">
|
313 |
<div class="wpsg_checkoutblock">
|
309 |
<label for="wpsg_land" class="wpsg_register"><?php echo __("Land", "wpsg"); ?>
|
314 |
<label for="wpsg_land" class="wpsg_register"><?php echo __("Land", "wpsg"); ?>
|
310 |
<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
315 |
<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
311 |
</label>
|
316 |
</label>
|
312 |
<select name="wpsg[register][land]" class="<?php echo (($this->view['pflicht']['land'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_land">
|
317 |
<select name="wpsg[register][land]" class="<?php echo (($this->view['pflicht']['land'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_land">
|
313 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
318 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
314 |
<?php foreach ($this->view['laender'] as $l) { ?>
|
319 |
<?php foreach ($this->view['laender'] as $l) { ?>
|
315 |
<option value="<?php echo $l['id']; ?>" <?php echo (($l['id'] == $this->view['data']['land'])?'selected="selected"':(($this->get_option('wpsg_defaultland') == $l['id'])?'selected="selected"':'')); ?>><?php echo wpsg_hspc($l['name']); ?></option>
|
320 |
<option value="<?php echo $l['id']; ?>" <?php echo (($l['id'] == $this->view['data']['land'])?'selected="selected"':(($this->get_option('wpsg_defaultland') == $l['id'])?'selected="selected"':'')); ?>><?php echo wpsg_hspc($l['name']); ?></option>
|
Line 319... |
Line 324... |
319 |
<?php } ?>
|
324 |
<?php } ?>
|
320 |
|
325 |
|
321 |
<?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
|
326 |
<?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
|
322 |
<div class="wpsg_checkoutblock">
|
327 |
<div class="wpsg_checkoutblock">
|
323 |
<label for="wpsg_ustidnr" class="wpsg_register"><?php echo __("UStIdNr.", "wpsg"); ?>
|
328 |
<label for="wpsg_ustidnr" class="wpsg_register"><?php echo __("UStIdNr.", "wpsg"); ?>
|
324 |
<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
329 |
<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
325 |
</label>
|
330 |
</label>
|
326 |
<input class="<?php echo (($this->view['pflicht']['ustidnr'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("ustidnr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_ustidnr" name="wpsg[register][ustidnr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['ustidnr'])); ?>" />
|
331 |
<input class="<?php echo (($this->view['pflicht']['ustidnr'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("ustidnr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_ustidnr" name="wpsg[register][ustidnr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['ustidnr'])); ?>" />
|
327 |
</div>
|
332 |
</div>
|
328 |
<?php } ?>
|
333 |
<?php } ?>
|
329 |
|
334 |
|
Line 352... |
Line 357... |
352 |
<?php } } ?>
|
357 |
<?php } } ?>
|
353 |
<?php } ?>
|
358 |
<?php } ?>
|
354 |
<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
|
359 |
<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
|
355 |
<div class="wpsg_clear"></div>
|
360 |
<div class="wpsg_clear"></div>
|
356 |
|
361 |
|
357 |
<?php if ($this->get_option('wpsg_mod_kundenverwaltung_recaptcha_register') === '1') { ?>
|
362 |
<?php if ($this->get_option('wpsg_mod_kundenverwaltung_recaptcha_register') === '1') { ?>
|
358 |
<div class="wpsg_checkoutblock">
|
363 |
<div class="wpsg_checkoutblock">
|
359 |
<label>
|
364 |
<label class="recaptcha_v2_checkout ">
|
- |
|
365 |
|
360 |
<?php echo __('SPAM Schutz Abfrage'); ?> <span class="wpsg_required">*</span>:
|
366 |
<?php echo __('SPAM Schutz Abfrage'); ?> <span class="wpsg_required">*</span>:
|
- |
|
367 |
|
- |
|
368 |
<?php if ($this->get_option('wpsg_mod_kundenverwaltung_recaptcha_dsgvo_layer') != '1') { ?>
|
361 |
<div class="g-recaptcha" data-sitekey="<?php echo $this->get_option('wpsg_mod_kundenveraltung_recaptcha_key'); ?>"></div>
|
369 |
<div class="g-recaptcha" data-sitekey="<?php echo $this->get_option('wpsg_mod_kundenveraltung_recaptcha_key'); ?>"></div>
|
362 |
</label>
|
370 |
<?php } else { ?>
|
- |
|
371 |
<div class="wpsg_recaptcha placeholder"> <!-- Platzhalter für das Google ReCAPTCHA --> </div>
|
- |
|
372 |
<div class="m1_dsgvo_layer ">
|
- |
|
373 |
<div class="placeholder_text">
|
- |
|
374 |
<strong>Datenschutz ist uns wichtig!</strong>
|
- |
|
375 |
Daher wird das Google ReCAPTCHA erst geladen, wenn sie der Verwendung des Drittanbieters "Google LLC" zustimmen durch den möglicherweise Cookies gesetzt werden.<br />
|
- |
|
376 |
<button class="layer_link wpsg_required">Ich bin damit einverstanden.</button>
|
363 |
</div>
|
377 |
</div>
|
- |
|
378 |
</div>
|
- |
|
379 |
<?php } ?>
|
- |
|
380 |
|
- |
|
381 |
</label>
|
- |
|
382 |
</div>
|
364 |
<div class="wpsg_clear"></div>
|
383 |
<div class="wpsg_clear"></div>
|
365 |
<?php } ?>
|
384 |
<?php } ?>
|
366 |
|
385 |
|
367 |
<?php if ($this->get_option('wpsg_mod_kundenverwaltung_mathcaptcha') === '1') {
|
386 |
<?php if ($this->get_option('wpsg_mod_kundenverwaltung_mathcaptcha') === '1') {
|
368 |
|
387 |
|
369 |
$number1 = rand(0, 9);
|
388 |
$number1 = rand(0, 9);
|
370 |
$number2 = rand(0, 10);
|
389 |
$number2 = rand(0, 10);
|
371 |
$arOperator = ['+', '-', '*']; $operator = $arOperator[array_rand($arOperator)];
|
390 |
$arOperator = ['+', '-', '*']; $operator = $arOperator[array_rand($arOperator)];
|
372 |
|
391 |
|
373 |
$time = time();
|
392 |
$time = time();
|
374 |
|
393 |
|
375 |
switch ($operator) {
|
394 |
switch ($operator) {
|
376 |
|
395 |
|
377 |
case '+': $captcha_result = $number1 + $number2; break;
|
396 |
case '+': $captcha_result = $number1 + $number2; break;
|
378 |
case '-': $captcha_result = $number1 - $number2; break;
|
397 |
case '-': $captcha_result = $number1 - $number2; break;
|
379 |
case '*': $captcha_result = $number1 * $number2; break;
|
398 |
case '*': $captcha_result = $number1 * $number2; break;
|
380 |
|
399 |
|
381 |
default: throw new \Exception();
|
400 |
default: throw new \Exception();
|
382 |
|
401 |
|
383 |
}
|
402 |
}
|
384 |
|
403 |
|
385 |
\set_transient('wpsg_mod_kundenverwaltung_mathcaptcha_result', $captcha_result);
|
404 |
\set_transient('wpsg_mod_kundenverwaltung_mathcaptcha_result', $captcha_result);
|
386 |
|
405 |
|
387 |
?>
|
406 |
?>
|
388 |
|
407 |
|
389 |
<div class="wpsg_checkoutblock">
|
408 |
<div class="wpsg_checkoutblock">
|
390 |
<label for="wpsg_mod_kundenverwaltung_mathcaptcha" class="wpsg_register"><?php echo wpsg_translate(
|
409 |
<label for="wpsg_mod_kundenverwaltung_mathcaptcha" class="wpsg_register"><?php echo wpsg_translate(
|
391 |
__("Ergebnis aus #1# #2# #3#", "wpsg"),
|
410 |
__("Ergebnis aus #1# #2# #3#", "wpsg"),
|
392 |
$number1, $operator, $number2
|
411 |
$number1, $operator, $number2
|
393 |
); ?>:
|
412 |
); ?>:
|
394 |
<span class="wpsg_required">*</span>
|
413 |
<span class="wpsg_required">*</span>
|
395 |
</label>
|
414 |
</label>
|
396 |
<input
|
415 |
<input
|
397 |
class="validate[required] wpsg_register <?php echo ((in_array("wpsg_mod_kundenverwaltung_mathcaptcha", (array)$this->view['error']))?'wpsg_error':''); ?>"
|
416 |
class="validate[required] wpsg_register <?php echo ((in_array("wpsg_mod_kundenverwaltung_mathcaptcha", (array)$this->view['error']))?'wpsg_error':''); ?>"
|
398 |
type="text" id="wpsg_mod_kundenverwaltung_mathcaptcha" name="wpsg_mod_kundenverwaltung_mathcaptcha"
|
417 |
type="text" id="wpsg_mod_kundenverwaltung_mathcaptcha" name="wpsg_mod_kundenverwaltung_mathcaptcha"
|
399 |
placeholder="SPAM Schutz"
|
418 |
placeholder="SPAM Schutz"
|
400 |
value="" />
|
419 |
value="" />
|
401 |
</div>
|
420 |
</div>
|
402 |
|
421 |
|
403 |
<?php } ?>
|
422 |
<?php } ?>
|
404 |
|
423 |
|
405 |
<div class="wpsg_mandatoryfield_hint">
|
424 |
<div class="wpsg_mandatoryfield_hint">
|
406 |
<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
|
425 |
<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
|
407 |
</div>
|
426 |
</div>
|
408 |
|
427 |
|
409 |
<?php /* versteckte Sicherheitsabfrage als Bot-Schutz START*/ ?>
|
428 |
<?php /* versteckte Sicherheitsabfrage als Bot-Schutz START*/ ?>
|
410 |
<span style="display:none">
|
429 |
<span style="display:none">
|
411 |
<label for="wpsg_spam_email">Das Feld muss frei bleiben:</label>
|
430 |
<label for="wpsg_spam_email">Das Feld muss frei bleiben:</label>
|
412 |
<input type="text" name="wpsg_spam_email" id="wpsg_spam_email" title=" dieses Feld muss frei bleiben " />
|
431 |
<input type="text" name="wpsg_spam_email" id="wpsg_spam_email" title=" dieses Feld muss frei bleiben " />
|
413 |
</span>
|
432 |
</span>
|
414 |
<?php /* versteckte Sicherheitsabfrage als Bot-Schutz ENDE*/ ?>
|
433 |
<?php /* versteckte Sicherheitsabfrage als Bot-Schutz ENDE*/ ?>
|
415 |
|
434 |
|
416 |
<br />
|
435 |
<br />
|
417 |
|
436 |
|
418 |
<input type="submit" class="wpsg_button wpsg_registerButton" value="<?php echo __('Registrieren', 'wpsg'); ?>" name="wpsg_mod_kundenverwaltung_register" />
|
437 |
<input type="submit" class="wpsg_button wpsg_registerButton" value="<?php echo __('Registrieren', 'wpsg'); ?>" name="wpsg_mod_kundenverwaltung_register" />
|
419 |
|
438 |
|
420 |
<?php $this->ClearSessionErrors(); ?>
|
439 |
<?php $this->ClearSessionErrors(); ?>
|
421 |
|
440 |
|
422 |
<div class="wpsg_clear"></div>
|
441 |
<div class="wpsg_clear"></div>
|
423 |
</form>
|
442 |
</form>
|
- |
|
443 |
|
- |
|
444 |
<!-- <div class="g-recaptcha" data-sitekey="<?php echo $this->get_option('wpsg_mod_kundenveraltung_recaptcha_key'); ?>"></div> -->
|
- |
|
445 |
|
- |
|
446 |
<script>
|
- |
|
447 |
// DSGVO Layer Script
|
- |
|
448 |
document.querySelector('.layer_link').addEventListener('click', function() {
|
- |
|
449 |
|
- |
|
450 |
const recaptcha = document.createElement("div");
|
- |
|
451 |
const a = document.createAttribute("data-sitekey");
|
- |
|
452 |
const b = document.createAttribute("style");
|
- |
|
453 |
a.value = "<?php echo $this->get_option('wpsg_mod_kundenveraltung_recaptcha_key'); ?>";
|
- |
|
454 |
b.value = "float: left !important;";
|
- |
|
455 |
recaptcha.classList.add("g-recaptcha");
|
- |
|
456 |
recaptcha.setAttributeNode(a);
|
- |
|
457 |
recaptcha.setAttributeNode(b);
|
- |
|
458 |
|
- |
|
459 |
document.querySelector('.wpsg_recaptcha').appendChild(recaptcha);
|
- |
|
460 |
(function(){var w=window,C='___grecaptcha_cfg',cfg=w[C]=w[C]||{},N='grecaptcha';var gr=w[N]=w[N]||{};gr.ready=gr.ready||function(f){(cfg['fns']=cfg['fns']||[]).push(f);};w['__recaptcha_api']='https://www.google.com/recaptcha/api2/';(cfg['render']=cfg['render']||[]).push('onload');w['__google_recaptcha_client']=true;var d=document,po=d.createElement('script');po.type='text/javascript';po.async=true;po.src='https://www.gstatic.com/recaptcha/releases/vP4jQKq0YJFzU6e21-BGy3GP/recaptcha__de.js';po.crossOrigin='anonymous';po.integrity='sha384-xxpEMChSTl1oMpSrXrILE1mQOlVQNv6OGibce0r0HX1HeHF72bSDheOIehafBC9Y';var e=d.querySelector('script[nonce]'),n=e&&(e['nonce']||e.getAttribute('nonce'));if(n){po.setAttribute('nonce',n);}var s=d.getElementsByTagName('script')[0];s.parentNode.insertBefore(po, s);})();
|
- |
|
461 |
|
- |
|
462 |
document.querySelector('.m1_dsgvo_layer').classList.add('placeholder');
|
- |
|
463 |
document.querySelector('.wpsg_recaptcha').classList.remove('placeholder');
|
- |
|
464 |
|
- |
|
465 |
event.preventDefault();
|
- |
|
466 |
|
- |
|
467 |
});
|
- |
|
468 |
</script>
|
- |
|
469 |
|
424 |
</div>
|
470 |
</div>
|
425 |
|
471 |
|