Files
interblue.pl/modules/cookiesplus/views/templates/admin/C_P_GTM_CONSENT.tpl

54 lines
2.9 KiB
Smarty

{**
* ISC License
*
* Copyright (c) 2024 idnovate.com
* idnovate is a Registered Trademark & Property of idnovate.com, innovación y desarrollo SCP
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*
* @author idnovate
* @copyright 2024 idnovate
* @license https://www.isc.org/licenses/ https://opensource.org/licenses/ISC ISC License
*}
<div class="cookiesplus-module-list-container">
<table id="cookiesplus-gtm-list" class="table">
<thead>
<tr class="column-headers">
<th>{l s='Cookie finality' mod='cookiesplus'}</th>
<th>{l s='Google consent type' mod='cookiesplus'}</th>
<th>{l s='Firing event' mod='cookiesplus'}</th>
</tr>
</thead>
<tbody>
{foreach from=$cookiesPlusFinalities item=cookiesPlusFinality}
<tr>
<td>
<span>{$cookiesPlusFinality['name']|escape:'quotes':'UTF-8'}</span>
</td>
<td>
{foreach from=$gtmFinalities item=gtmFinality}
<input type="checkbox" name="{$fieldNameGtm|escape:'htmlall':'UTF-8'}[{$cookiesPlusFinality['id_cookiesplus_finality']|escape:'htmlall':'UTF-8'}][gtmFinality][{$gtmFinality|escape:'htmlall':'UTF-8'}]" value="true" {if isset($valuesGtm[$cookiesPlusFinality['id_cookiesplus_finality']]['gtmFinality'][{$gtmFinality|escape:"htmlall":"UTF-8"}])}checked{/if}> {$gtmFinality|escape:'htmlall':'UTF-8'} <br/>
{/foreach}
</td>
<td>
<input type="text" name="{$fieldNameGtm|escape:'htmlall':'UTF-8'}[{$cookiesPlusFinality['id_cookiesplus_finality']|escape:'htmlall':'UTF-8'}][firingEvent]"
id="{$fieldNameGtm|escape:'htmlall':'UTF-8'}_module_{$cookiesPlusFinality['id_cookiesplus_finality']|escape:'htmlall':'UTF-8'}"
value="{if isset($valuesGtm[$cookiesPlusFinality['id_cookiesplus_finality']]['firingEvent'])}{$valuesGtm[$cookiesPlusFinality['id_cookiesplus_finality']]['firingEvent']|escape:'htmlall':'UTF-8'}{/if}"
/>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>