Zaktualizowano rozmiary plików w konfiguracji oraz dodano nową klasę Combination z odpowiednimi polami i metodami.
This commit is contained in:
32
modules/cookiesplus/views/templates/front/index.php
Normal file
32
modules/cookiesplus/views/templates/front/index.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
45
modules/cookiesplus/views/templates/front/pdf/consent.tpl
Normal file
45
modules/cookiesplus/views/templates/front/pdf/consent.tpl
Normal file
@@ -0,0 +1,45 @@
|
||||
{**
|
||||
* 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
|
||||
*}
|
||||
{$style nofilter}
|
||||
|
||||
<table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;">
|
||||
<tr>
|
||||
<td colspan="12">
|
||||
{$info nofilter}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12" height="10"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12">
|
||||
{$finalities nofilter}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12" height="10"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
81
modules/cookiesplus/views/templates/front/pdf/finalities.tpl
Normal file
81
modules/cookiesplus/views/templates/front/pdf/finalities.tpl
Normal file
@@ -0,0 +1,81 @@
|
||||
{**
|
||||
* 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
|
||||
*}
|
||||
<h2>{l s='Cookie finalities' mod='cookiesplus'}</h2>
|
||||
|
||||
{foreach from=$finalities item=finality}
|
||||
<h3>{$finality['name'] nofilter}</h3>
|
||||
<br/>
|
||||
{l s='Enabled' mod='cookiesplus'}:
|
||||
<strong>
|
||||
{if $finality['technical']}
|
||||
<span class="finality-enabled"> {l s='Always enabled' mod='cookiesplus'} </span>
|
||||
{else}
|
||||
{if isset($finality["cookiesplus-finality-{$finality['id_cookiesplus_finality']|intval}"])
|
||||
&& $finality["cookiesplus-finality-{$finality['id_cookiesplus_finality']|intval}"] == 'off'}
|
||||
<span class="finality-disabled"> {l s='No' mod='cookiesplus'} </span>
|
||||
{/if}
|
||||
{if isset($finality["cookiesplus-finality-{$finality['id_cookiesplus_finality']|intval}"])
|
||||
&& ($finality["cookiesplus-finality-{$finality['id_cookiesplus_finality']|intval}"] == 'na'
|
||||
|| $finality["cookiesplus-finality-{$finality['id_cookiesplus_finality']|intval}"] == false)}
|
||||
<span class="finality-disabled"> {l s='No' mod='cookiesplus'} </span>
|
||||
{/if}
|
||||
{if isset($finality["cookiesplus-finality-{$finality['id_cookiesplus_finality']|intval}"])
|
||||
&& $finality["cookiesplus-finality-{$finality['id_cookiesplus_finality']|intval}"] == 'on'}
|
||||
<span class="finality-enabled"> {l s='Yes' mod='cookiesplus'} </span>
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<br/>
|
||||
<br/>
|
||||
{$finality['description'] nofilter}
|
||||
<br/>
|
||||
<br/>
|
||||
{if $finality['cookies']|count > 0}
|
||||
<table class="border" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%" class="header" valign="middle">{l s='Cookie name' mod='cookiesplus'}</th>
|
||||
<th width="20%" class="header" valign="middle">{l s='Provider' mod='cookiesplus'}</th>
|
||||
<th width="40%" class="header" valign="middle">{l s='Purpose' mod='cookiesplus'}</th>
|
||||
<th width="20%" class="header" valign="middle">{l s='Expiry' mod='cookiesplus'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$finality['cookies'] item=finalityCookie}
|
||||
<tr>
|
||||
<td width="20%"
|
||||
label="{l s='Cookie name' mod='cookiesplus'}">{$finalityCookie['name']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td width="20%"
|
||||
label="{l s='Provider' mod='cookiesplus'}">{if $finalityCookie['provider_url']}{$finalityCookie['provider']|escape:'htmlall':'UTF-8'}{/if}</td>
|
||||
<td width="40%"
|
||||
label="{l s='Purpose' mod='cookiesplus'}">{$finalityCookie['purpose']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td width="20%"
|
||||
label="{l s='Expiry' mod='cookiesplus'}">{$finalityCookie['expiry']|escape:'htmlall':'UTF-8'}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<br/>
|
||||
<br/>
|
||||
{/if}
|
||||
{/foreach}
|
||||
32
modules/cookiesplus/views/templates/front/pdf/index.php
Normal file
32
modules/cookiesplus/views/templates/front/pdf/index.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
61
modules/cookiesplus/views/templates/front/pdf/info.tpl
Normal file
61
modules/cookiesplus/views/templates/front/pdf/info.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
{**
|
||||
* 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
|
||||
*}
|
||||
<h2>{l s='Cookie consent information' mod='cookiesplus'}</h2>
|
||||
<br >
|
||||
{l s='Cookie information last updated on:' mod='cookiesplus'} {$info['last_update']|escape:'htmlall':'UTF-8'}
|
||||
<br />
|
||||
<br />
|
||||
<table class="border" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="header" valign="middle">{l s='Field' mod='cookiesplus'}</th>
|
||||
<th class="header" valign="middle">{l s='Value' mod='cookiesplus'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{l s='Consent ID' mod='cookiesplus'}
|
||||
</td>
|
||||
<td>
|
||||
{$info['consent_hash']|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{l s='Consent date' mod='cookiesplus'}
|
||||
</td>
|
||||
<td>
|
||||
{$info['consent_date']|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{l s='Consent IP' mod='cookiesplus'}
|
||||
</td>
|
||||
<td>
|
||||
{$info['consent_ip']|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
70
modules/cookiesplus/views/templates/front/pdf/style.tpl
Normal file
70
modules/cookiesplus/views/templates/front/pdf/style.tpl
Normal file
@@ -0,0 +1,70 @@
|
||||
{**
|
||||
* 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
|
||||
*}
|
||||
{assign var=color_header value="#F0F0F0"}
|
||||
{assign var=color_border value="#F0F0F0"}
|
||||
{assign var=height_header value="20px"}
|
||||
{assign var=table_padding value="6px"}
|
||||
{assign var=font_size_text value="9pt"}
|
||||
{assign var=font_size_header value="9pt"}
|
||||
{assign var=height_header value="20px"}
|
||||
|
||||
<style>
|
||||
table, th, td {
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
padding: {$table_padding nofilter};
|
||||
font-size: {$font_size_text nofilter};
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
padding: {$table_padding nofilter};
|
||||
}
|
||||
|
||||
th.header {
|
||||
height: {$height_header nofilter};
|
||||
background-color: {$color_header nofilter};
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: {$font_size_header nofilter};
|
||||
height: {$height_header nofilter};
|
||||
}
|
||||
|
||||
table.border,
|
||||
table.border th,
|
||||
table.border td {
|
||||
border: 1px solid {$color_border nofilter};
|
||||
}
|
||||
|
||||
.finality-enabled {
|
||||
background-color: #4ED964;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.finality-disabled {
|
||||
background-color: #FF3A31;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user