Files
design-themes/theme_bistro/views/snippets/s_picture.xml
T
Chrysanthe (chgo) 8ff74b77c6 [IMP] theme_*: review s_picture snippet occurrences
The goal of this commit is to fix xpath after the `s_picture` snippet
redesign, and eventually tweak some classes.

task-4047748

closes odoo/design-themes#824

Related: odoo/odoo#172740
Signed-off-by: Arthur Detroux (ard) <ard@odoo.com>
2024-07-24 10:26:52 +00:00

39 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_picture" inherit_id="website.s_picture">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" remove="pb64" separator=" "/>
</xpath>
<!-- Size -->
<xpath expr="//div[hasclass('col-lg-12')]" position="attributes">
<attribute name="class" add="col-lg-8 offset-lg-2" remove="col-lg-12" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Today's special
</xpath>
<!-- Text -->
<xpath expr="//p" position="replace" mode="inner">
Taste our chef's special, an almond macaroon with orange blossom buttercream.
</xpath>
<!-- Caption -->
<xpath expr="//figcaption" position="replace" mode="inner">
The perfect dessert to share for the table.
</xpath>
</template>
<template id="configurator_s_picture" inherit_id="website.configurator_s_picture">
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/04_001"}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('o_container_small')]" position="before">
<div class="o_we_shape o_web_editor_Origins_04_001"/>
</xpath>
</template>
</odoo>