/
cookienote.tpl
16 lines (16 loc) · 1.04 KB
/
cookienote.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[{if $oView->isEnabled() && $smarty.cookies.displayedCookiesNotification != '1'}]
[{oxscript include="js/libs/jquery.cookie.min.js"}]
[{oxscript add="$.cookie('testing', 'yes'); if(!$.cookie('testing')) $('#cookieNote').hide(); else{ $('#cookieNote').show(); $.cookie('testing', null, -1);}"}]
[{oxscript include="js/widgets/oxcookienote.min.js"}]
<div id="cookieNote">
<div class="alert alert-info" style="margin: 0;">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">×</span><span class="sr-only">[{oxmultilang ident='COOKIE_NOTE_CLOSE'}]</span>
</button>
[{oxmultilang ident='COOKIE_NOTE'}]
<span class="cancelCookie"><a href="[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=clearcookies"}]" title="[{oxmultilang ident='COOKIE_NOTE_DISAGREE'}]">[{oxmultilang ident='COOKIE_NOTE_DISAGREE'}]</a></span>
</div>
</div>
[{oxscript add="$('#cookieNote').oxCookieNote();"}]
[{/if}]
[{oxscript widget=$oView->getClassKey()}]