[IMP] website, *: add the possibility to hide the copyright section
*: web Part of https://github.com/odoo/odoo/pull/49142 task-2229551
This commit is contained in:
@@ -486,7 +486,7 @@
|
||||
</main>
|
||||
<footer t-if="not no_footer" id="bottom" data-anchor="true" t-attf-class="bg-light o_footer">
|
||||
<div id="footer"/>
|
||||
<div class="o_footer_copyright">
|
||||
<div t-if="not no_copyright" class="o_footer_copyright">
|
||||
<div class="container py-3">
|
||||
<div class="row">
|
||||
<div class="col-sm text-center text-sm-left text-muted">
|
||||
|
||||
@@ -571,6 +571,10 @@
|
||||
data-customize-website-views="website.template_footer_slideout"
|
||||
data-customize-website-variable="slideout_shadow"/>
|
||||
</we-select>
|
||||
<we-checkbox string="Copyright"
|
||||
data-customize-website-views="website.footer_no_copyright|"
|
||||
data-no-preview="true"
|
||||
data-reload="/"/>
|
||||
</div>
|
||||
|
||||
<div data-js="HideFooter"
|
||||
|
||||
@@ -553,6 +553,13 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Hide Copyright -->
|
||||
<template id="footer_no_copyright" inherit_id="website.layout" name="Footer No Copyright" active="False">
|
||||
<xpath expr="//div[hasclass('o_footer_copyright')]" position="before">
|
||||
<t t-set="no_copyright" t-value="True"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="cookies_bar" inherit_id="website.footer_custom" name="Cookies Bar">
|
||||
<xpath expr="//footer" position="after">
|
||||
<div id="website_cookies_bar" t-if="website.cookies_bar" class="s_popup o_snippet_invisible" data-name="Cookies Bar" data-vcss="001" data-invisible="1">
|
||||
|
||||
Reference in New Issue
Block a user