mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
d206c11972
This commit extracts the pre-defined section shapes from blocks into templates that are dedicated to being used by the configurator. For blocks that are not used in configurator pages, the configurator templates have not been created. task-3381714 Part-of: odoo/design-themes#692
37 lines
1.4 KiB
XML
37 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_image_text" inherit_id="website.s_image_text">
|
|
<!-- Section -->
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="class" add="o_cc o_cc5 pt80 pb80" remove="pt32 pb32" separator=" "/>
|
|
</xpath>
|
|
<!-- Text wrapper -->
|
|
<xpath expr="//div[hasclass('col-lg-6')][2]" position="attributes">
|
|
<attribute name="class" add="offset-lg-2" separator=" "/>
|
|
</xpath>
|
|
<!-- Title & Paragraph -->
|
|
<xpath expr="//h2" position="replace" mode="inner">
|
|
The History
|
|
</xpath>
|
|
<xpath expr="//p" position="replace" mode="inner">
|
|
<br/>
|
|
</xpath>
|
|
<xpath expr="//p[2]" position="replace" mode="inner">
|
|
The Miraillet Festival was born in 2002 from a common will of cultural, touristic and institutional actors of the region to propose a major cultural event in the very heart of the region during the summer period.
|
|
</xpath>
|
|
<!-- Img wrapper -->
|
|
<xpath expr="//div[hasclass('col-lg-6')]" position="attributes">
|
|
<attribute name="class" add="col-lg-4" remove="col-lg-6" separator=" "/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="configurator_s_image_text" inherit_id="website.configurator_s_image_text">
|
|
<!-- Shape option -->
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/11","flip":[]}</attribute>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|