Files
2025-06-24 14:14:35 +02:00

133 lines
4.4 KiB
Smarty

{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/
* @copyright 2010-2019 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER
* support@mypresta.eu
*}
<script>
{literal}
function setcook() {
var nazwa = 'cookie_ue';
var wartosc = '1';
var expire = new Date();
expire.setMonth(expire.getMonth() + 12);
document.cookie = nazwa + "=" + escape(wartosc) + ";path=/;" + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
}
{/literal}
{if Configuration::get('uecookie_close_anim')==1}
{literal}
function closeUeNotify() {
$('#cookieNotice').fadeOut(1500);
setcook();
}
{/literal}
{/if}
{literal}
{/literal}
{if Configuration::get('uecookie_close_anim')==0}
{literal}
function closeUeNotify() {
{/literal}{if $vareu->uecookie_position==2}{literal}
$('#cookieNotice').animate(
{bottom: '-200px'},
2500, function () {
$('#cookieNotice').hide();
});
setcook();
{/literal}{else}{literal}
$('#cookieNotice').animate(
{top: '-200px'},
2500, function () {
$('#cookieNotice').hide();
});
setcook();
{/literal}{/if}{literal}
}
{/literal}
{/if}
{literal}
{/literal}
</script>
<style>
{literal}
.closeFontAwesome:before {
content: "\f00d";
font-family: "FontAwesome";
display: inline-block;
font-size: 23px;
line-height: 23px;
color: {/literal}#{$vareu->uecookie_closex}{literal};
padding-right: 15px;
cursor: pointer;
}
.closeButtonNormal {
{/literal} {if Configuration::get('uecookie_x_where')!=3}display: block;{else}display: inline-block; margin:5px;{/if} {literal}
color: {/literal}#{$vareu->uecookie_close_txt}{literal};
background: {/literal}#{$vareu->uecookie_close_bg}{literal};
cursor: pointer;
text-align: center;
padding: 4px 10px;
cursor: pointer;
border: 1px solid #000;
border-radius: 25px;
margin-left: 15px;
}
#cookieNotice {
z-index: 10;
}
#cookieNotice p {
margin: 0px;
padding: 0px;
}
#cookieNoticeContent {
display: flex;
justify-content: center;
align-items: center;
color: #000;
padding: 5px;
}
#cookieNoticeContent a {
color: rgb(28, 115, 231);
}
{/literal}
</style>
{if Configuration::get('uecookie_x_fa')==1}
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
{/if}
<div id="cookieNotice" style=" width: 100%; position: fixed; {if $vareu->uecookie_position==2}bottom:0px; box-shadow: 0px 0 10px 0 #{$vareu->uecookie_shadow};{else} top:0px; box-shadow: 0 0 10px 0 #{$vareu->uecookie_shadow};{/if} background: #{$vareu->uecookie_bg}; font-size: 14px; line-height: 1.3em; font-family: arial; left: 0px; text-align:center; color:#FFF; opacity: {$vareu->uecookie_opacity} ">
<div id="cookieNoticeContent" style="position:relative; margin:auto; width:100%;">
{if Configuration::get('uecookie_x_where')==1}
{if Configuration::get('uecookie_usex')==1}
<img src="/themes/at_movic/assets/img/icon-close.svg" onclick="closeUeNotify()">
{else}
<span class="closeButtonNormal" onclick="closeUeNotify()">{l s='close' mod='uecookie'}</span>
{/if}
{/if}
{$uecookie nofilter}
{if Configuration::get('uecookie_x_where')==2}
{if Configuration::get('uecookie_usex')==1}
<img src="/themes/at_movic/assets/img/icon-close.svg" onclick="closeUeNotify()">
{else}
<span class="closeButtonNormal" onclick="closeUeNotify()">{l s='close' mod='uecookie'}</span>
{/if}
{/if}
{if Configuration::get('uecookie_x_where')==3}
{if Configuration::get('uecookie_usex')==1}
<img src="/themes/at_movic/assets/img/icon-close.svg" onclick="closeUeNotify()">
{else}
<span class="closeButtonNormal" onclick="closeUeNotify()">{l s='close' mod='uecookie'}</span>
{/if}
{/if}
</div>
</div>