oca-website/odoo-bringout-oca-website-website_cookiefirst/website_cookiefirst/views/website_template.xml
2025-08-29 15:43:06 +02:00

27 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="footer_copyright_company_name"
inherit_id="website.footer_copyright_company_name"
>
<xpath expr="//span[hasclass('o_footer_copyright_name')]" position="after">
<span>-
<a href="/legal/cookies-policy">Cookies Policy</a>
</span>
</xpath>
</template>
<template id="layout" inherit_id="website.layout">
<xpath expr="//script[@id='tracking_code']" position="attributes">
<attribute name="type">text/plain</attribute>
<attribute name="data-cookiefirst-category">performance</attribute>
</xpath>
<xpath expr="//script[last()]" position="after">
<t t-if="website.cookiefirst_identifier and website.domain">
<script
t-attf-src="https://consent.cookiefirst.com/sites/{{ (website.domain or '').replace('http://', '').replace('https://', '').replace('www.', '') }}-{{ website.cookiefirst_identifier }}/consent.js"
/>
</t>
</xpath>
</template>
</odoo>