Packages

Handle cookie consent for stats and embedded content.

Current section

Files

Jump to
zotonic_mod_cookie_consent priv templates _html_body.tpl
Raw

priv/templates/_html_body.tpl

{# Show the cookie consent dialog if consent is needed #}
{% wire name="cookie-consent"
action={script script="
if ($('#cookie-consent').length == 0) {
z_event('cookie-consent-banner', {});
}
"}
%}
{% wire name="cookie-consent-banner"
action={
insert_top
target=" body"
template="_cookie_consent.tpl"
}
%}
{% lib "js/z.cookie_consent.js" %}