12assert(is_string($this->
data[
'yesTarget']));
13assert(is_string($this->
data[
'noTarget']));
14assert($this->
data[
'sppp'] ===
false || is_string($this->
data[
'sppp']));
21$this->
data[
'header'] = $this->t(
'{consent:consent:consent_header}');
22$this->
data[
'head'] =
'<link rel="stylesheet" type="text/css" href="/' .
23 $this->
data[
'baseurlpath'] .
'module.php/consent/style.css" />' .
"\n";
25$this->includeAtTemplateBase(
'includes/header.php');
27<
p><?
php echo $this->
data[
'consent_accept']; ?></
p>
29if (isset($this->data[
'consent_purpose'])) {
30 echo
'<p>'.$this->data[
'consent_purpose'].
'</p>';
33<form style=
"display: inline; margin: 0px; padding: 0px"
34 action=
"<?php echo htmlspecialchars($this->data['yesTarget']); ?>">
37if ($this->data[
'usestorage']) {
38 $checked = ($this->data[
'checked'] ?
'checked="checked"' :
'');
39 echo
'<input type="checkbox" name="saveconsent" '.$checked.
40 ' value="1" /> '.$this->t(
'{consent:consent:remember}');
43 <
input type=
"hidden" name=
"StateId" value=
"<?php echo htmlspecialchars($this->data['stateId']); ?>" />
44 <button type=
"submit" name=
"yes" class=
"btn" id=
"yesbutton">
45 <?
php echo htmlspecialchars($this->t(
'{consent:consent:yes}')) ?>
49<form style=
"display: inline; margin-left: .5em;" action=
"<?php echo htmlspecialchars($this->data['noTarget']); ?>"
53foreach ($this->data[
'noData'] as
$name => $value) {
54 echo(
'<input type="hidden" name="' . htmlspecialchars(
$name) .
55 '" value="' . htmlspecialchars($value) .
'" />');
58 <
input type=
"hidden" name=
"StateId" value=
"<?php echo htmlspecialchars($this->data['stateId']); ?>" />
59 <button type=
"submit" class=
"btn" name=
"no" id=
"nobutton">
60 <?
php echo htmlspecialchars($this->t(
'{consent:consent:no}')) ?>
65if ($this->data[
'sppp'] !==
false) {
66 echo
"<p>" . htmlspecialchars($this->t(
'{consent:consent:consent_privacypolicy}')) .
" ";
67 echo
'<a target="_blank" href="' . htmlspecialchars($this->data[
'sppp']) .
'">' .
$dstName .
"</a>";
71echo
'<h3 id="attributeheader">' .
73 '{consent:consent:consent_attributes_header}',
78echo $this->data[
'attributes_html'];
80$this->includeAtTemplateBase(
'includes/footer.php');
An exception for terminatinating execution or to throw for unit testing.