Improved GDPR compliance

- Add more customization
TODO: Update styling
This commit is contained in:
Walz
2025-04-07 17:12:31 +02:00
parent e8b0d03d9c
commit 5172966eb2
5 changed files with 208 additions and 15 deletions

View File

@ -14,6 +14,13 @@
<div class="gdpr-cookie-modal-body">
<p>{$gdprCookieMessage}</p>
<div class="gdpr-cookie-info-block">
<p><strong>{l s='Data Controller:' mod='gdprcookieconsent'}</strong> {$gdprCookieDataController}</p>
<p><strong>{l s='Cookie Retention Period:' mod='gdprcookieconsent'}</strong> {$gdprCookieRetentionPeriod}</p>
<p><strong>{l s='Third-Party Recipients:' mod='gdprcookieconsent'}</strong> {$gdprCookieThirdParties}</p>
<p><strong>{l s='Your Rights:' mod='gdprcookieconsent'}</strong> {l s='You can withdraw your consent at any time by clicking the "Manage Cookie Preferences" button or by deleting cookies in your browser settings.' mod='gdprcookieconsent'}</p>
</div>
<div class="gdpr-cookie-categories">
<div class="gdpr-cookie-category">
<input type="checkbox" id="gdpr-cookie-necessary" checked disabled>
@ -51,10 +58,18 @@
<div id="gdpr-cookie-banner" class="gdpr-cookie-banner">
<div class="gdpr-cookie-banner-content">
<p>{$gdprCookieMessage}</p>
<div class="gdpr-cookie-banner-info">
<p><small><strong>{l s='Data Controller:' mod='gdprcookieconsent'}</strong> {$gdprCookieDataController} |
<strong>{l s='Retention:' mod='gdprcookieconsent'}</strong> {$gdprCookieRetentionPeriod}</small></p>
</div>
<div class="gdpr-cookie-banner-buttons">
<button id="gdpr-cookie-banner-decline" class="gdpr-cookie-banner-decline">{$gdprCookieDecline}</button>
<button id="gdpr-cookie-banner-settings" class="gdpr-cookie-banner-settings">{$gdprCookieSettings}</button>
<button id="gdpr-cookie-banner-accept" class="gdpr-cookie-banner-accept">{$gdprCookieAccept}</button>
</div>
</div>
</div>
<div id="gdpr-cookie-manage-button" class="gdpr-cookie-manage-button" style="display: none;">
<button id="gdpr-cookie-manage" class="gdpr-cookie-manage">{$gdprCookieManageText}</button>
</div>

View File

@ -0,0 +1,11 @@
{*
* GDPR Cookie Consent Module for PrestaShop
*
* @author Walzen665
* @copyright Copyright (c) 2025
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*}
<div id="gdpr-cookie-manage-button" class="gdpr-cookie-manage-button" style="display: none;">
<button id="gdpr-cookie-manage" class="gdpr-cookie-manage">{$gdprCookieManageText}</button>
</div>