This commit is contained in:
2025-03-28 19:05:48 +01:00
parent 6a18bcfe20
commit a03df0b268
477 changed files with 163274 additions and 313 deletions

View File

@@ -0,0 +1,62 @@
<?php
/* Smarty version 3.1.48, created on 2025-03-28 15:39:57
from '/home/admin/domains/lulandia.pl/public_html/modules/cookiesplus/views/templates/hook/gtm_consentmode.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.48',
'unifunc' => 'content_67e6b4bd6ba9d2_63049156',
'has_nocache_code' => false,
'file_dependency' =>
array (
'88b6f0f6b7b4e5cbdc96f702a4be86d48880e862' =>
array (
0 => '/home/admin/domains/lulandia.pl/public_html/modules/cookiesplus/views/templates/hook/gtm_consentmode.tpl',
1 => 1740605694,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_67e6b4bd6ba9d2_63049156 (Smarty_Internal_Template $_smarty_tpl) {
echo '<script'; ?>
data-keepinline='true'>
<?php $_smarty_tpl->_assignInScope('consentType', "default");?>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gtm']->value, 'value', false, 'key');
$_smarty_tpl->tpl_vars['value']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->do_else = false;
?>
<?php if ($_smarty_tpl->tpl_vars['value']->value) {?>
<?php $_smarty_tpl->_assignInScope('consentType', "update");?>
<?php break 1;?>
<?php }?>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('consent', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['consentType']->value, ENT_QUOTES, 'UTF-8');?>
', {
'ad_storage' : '<?php if ((isset($_smarty_tpl->tpl_vars['gtm']->value['ad_storage'])) && $_smarty_tpl->tpl_vars['gtm']->value['ad_storage']) {?>granted<?php } else { ?>denied<?php }?>',
'ad_user_data' : '<?php if ((isset($_smarty_tpl->tpl_vars['gtm']->value['ad_user_data'])) && $_smarty_tpl->tpl_vars['gtm']->value['ad_user_data']) {?>granted<?php } else { ?>denied<?php }?>',
'ad_personalization' : '<?php if ((isset($_smarty_tpl->tpl_vars['gtm']->value['ad_personalization'])) && $_smarty_tpl->tpl_vars['gtm']->value['ad_personalization']) {?>granted<?php } else { ?>denied<?php }?>',
'analytics_storage' : '<?php if ((isset($_smarty_tpl->tpl_vars['gtm']->value['analytics_storage'])) && $_smarty_tpl->tpl_vars['gtm']->value['analytics_storage']) {?>granted<?php } else { ?>denied<?php }?>',
'functionality_storage' : '<?php if ((isset($_smarty_tpl->tpl_vars['gtm']->value['functionality_storage'])) && $_smarty_tpl->tpl_vars['gtm']->value['functionality_storage']) {?>granted<?php } else { ?>denied<?php }?>',
'personalization_storage' : '<?php if ((isset($_smarty_tpl->tpl_vars['gtm']->value['personalization_storage'])) && $_smarty_tpl->tpl_vars['gtm']->value['personalization_storage']) {?>granted<?php } else { ?>denied<?php }?>',
'security_storage' : '<?php if ((isset($_smarty_tpl->tpl_vars['gtm']->value['security_storage'])) && $_smarty_tpl->tpl_vars['gtm']->value['security_storage']) {?>granted<?php } else { ?>denied<?php }?>',
'wait_for_update' : 1000
});
gtag('set', 'url_passthrough', false);
gtag('set', 'ads_data_redaction', true);
<?php echo '</script'; ?>
>
<?php }
}