forked from PrestaShop/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplayGDPRConsent.tpl
More file actions
47 lines (45 loc) · 1.91 KB
/
displayGDPRConsent.tpl
File metadata and controls
47 lines (45 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
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
42
43
44
45
46
47
{**
* 2007-2020 PrestaShop and Contributors
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='gdpr_checkbox'}
{capture name='gdprData'}{strip}{ldelim}
"moduleId": "{$psgdpr_id_module|escape:'htmlall':'UTF-8'}",
"frontController": "{$psgdpr_front_controller|escape:'htmlall':'UTF-8'}",
"idCustomer": "{$psgdpr_id_customer|escape:'htmlall':'UTF-8'}",
"customerToken": "{$psgdpr_customer_token|escape:'htmlall':'UTF-8'}",
"idGuest": "{$psgdpr_id_guest|escape:'htmlall':'UTF-8'}",
"guestToken": "{$psgdpr_guest_token|escape:'htmlall':'UTF-8'}"
{rdelim}{/strip}{/capture}
<div id="gdpr_consent_{$psgdpr_id_module|escape:'htmlall':'UTF-8'}"
class="gdpr-consent"
data-ps-ref="gdpr-consent"
data-ps-data="{$smarty.capture.gdprData}"
>
<span class="form-check">
<input id="psgdpr_consent_checkbox_{$psgdpr_id_module|escape:'htmlall':'UTF-8'}"
name="psgdpr_consent_checkbox"
type="checkbox"
value="1"
class="form-check-input"
data-ps-ref="gdpr-checkbox">
<label class="form-check-label" for="psgdpr_consent_checkbox_{$psgdpr_id_module|escape:'htmlall':'UTF-8'}">
{$psgdpr_consent_message nofilter}{* html data *}
</label>
</span>
</div>
{/block}