Skip to content
Code-Schnipsel Gruppen Projekte
Commit f996fbfb erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

fix: show info about accepted privacy policy in SimpleContact email if sent...

fix: show info about accepted privacy policy in SimpleContact email if sent from brick #114
Übergeordneter 7b2b280d
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -90,7 +90,7 @@ function ($brickId, $project, $siteId, $message, $name, $email, $privacyPolicyAc
<span style=\"font-weight: bold;\">E-mail:</span> {$email}<br />
";
if ($privacyPolicyCheckbox) {
if ($privacyPolicyAccepted) {
$body .= '<span style="font-weight: bold;">';
$body .= QUI::getLocale()->get(
'quiqqer/bricks',
......
......@@ -35,9 +35,18 @@ public function __construct($attributes = [])
'useCaptcha' => false
]);
parent::__construct($attributes);
if (!isset($attributes['showPrivacyPolicyCheckbox'])) {
$Site = $this->getSite();
if ($Site) {
$this->setAttribute(
'showPrivacyPolicyCheckbox', $Site->getAttribute('quiqqer.settings.sitetypes.contact.showPrivacyPolicyCheckbox')
);
}
}
$this->addCSSFile(
dirname(__FILE__).'/SimpleContact.css'
);
......@@ -46,8 +55,8 @@ public function __construct($attributes = [])
/**
* (non-PHPdoc)
*
* @see \QUI\Control::create()
* @throws QUI\Exception
* @see \QUI\Control::create()
*/
public function getBody()
{
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren