Initial commit: OCA Website packages (16 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:06 +02:00
commit 0578ef7638
660 changed files with 37334 additions and 0 deletions

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Tecnativa - Jairo Llopis
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data>
<template id="frontend_layout" inherit_id="website.layout">
<!-- This should be the first script loaded;
see https://cookiebot.com/goto/help -->
<xpath expr="//head/script" position="before">
<t
t-if="website.cookiebot_enabled and website.cookiebot_dgid and not editable"
>
<script
id="Cookiebot"
src="https://consent.cookiebot.com/uc.js"
t-att-data-cbid="website.cookiebot_dgid"
data-blockingmode="auto"
type="text/javascript"
/>
</t>
</xpath>
<!-- Google Analytics prior consent protection;
see https://support.cookiebot.com/hc/en-us/articles/360003813893-Controlling-Google-Analytics-Universal-with-Cookiebot -->
<xpath expr="//script[@id='tracking_code']" position="attributes">
<attribute
name="t-att-type"
>website.cookiebot_enabled and website.cookiebot_dgid and 'text/plain'</attribute>
<attribute name="data-cookieconsent">statistics</attribute>
</xpath>
</template>
</data>

View file

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Tecnativa - Jairo Llopis
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data>
<template id="layout_footer_copyright" inherit_id="website.footer_custom">
<xpath
expr="//footer//div/span[hasclass('o_footer_copyright_name')]"
position="after"
>
<span t-if="website.cookiebot_enabled and website.cookiebot_dgid">- <a
href="/legal/cookies-policy"
>Cookies Policy</a></span>
</xpath>
</template>
<template id="cookies" name="Cookies Policy">
<t t-call="website.layout">
<div id="wrap">
<div id="oe_structure_before_50" class="oe_structure">
<section data-snippet-id="title">
<h1 class="text-center">Cookie Declaration</h1>
</section>
</div>
<section
t-if="website.cookiebot_enabled and website.cookiebot_dgid and not editable"
class="mb-5 mt-5"
>
<div class="container">
<div class="row">
<div class="col-12">
<script
id="CookieDeclaration"
t-attf-src="https://consent.cookiebot.com/{{website.cookiebot_dgid}}/cd.js"
type="text/javascript"
async=""
/>
</div>
</div>
</div>
</section>
<div id="oe_structure_after_50" class="oe_structure" />
</div>
</t>
</template>
<record id="cookies_page" model="website.page">
<field name="url">/legal/cookies-policy</field>
<field name="website_published" eval="True" />
<field name="view_id" ref="cookies" />
</record>
</data>