mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
f3bd5ab20b
Commit [1] refreshed the design of the KEA theme but unfortunately introduced the wrong path to a shape on the s_picture snippet. This used to cause a traceback but [2] fixed it. However, it is still worth correcting the path so that shapes automatically chain under the s_picture snippet of that theme. To do so, a simple check is added when the option computes the next shape, and looks for the broken path, if it finds it, it corrects it. Steps to reproduce: - Use the KEA theme - Drop the "Picture" snippet - Drop the text snippet under it - Enable the background shape option for the text snippet - The first shape is selected instead of the next one in the series. To fix properly in master of course. [1]: https://github.com/odoo/design-themes/commit/88b81d41dadbfaad5d0b36ba2f1c595e309438ba [2]: https://github.com/odoo/odoo/commit/e985f8ef7a358c5aae9245267e18e65ea8383400 opw-3082292 closes odoo/design-themes#619 Related: odoo/odoo#107224 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
41 lines
1.8 KiB
XML
41 lines
1.8 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="o_cc2" separator=" "/>
|
|
<!-- TODO: adapt in master, this was fixed in JS -->
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/Wavy_03","flip":["y"]}</attribute>
|
|
</xpath>
|
|
<!-- Shape -->
|
|
<xpath expr="//div[hasclass('container')]" position="before">
|
|
<div class="o_we_shape o_web_editor_Wavy_03 o_we_flip_y"/>
|
|
</xpath>
|
|
<!-- Title -->
|
|
<xpath expr="//h2" position="replace" mode="inner">
|
|
Experience a new world
|
|
</xpath>
|
|
<!-- Image -->
|
|
<xpath expr="//img" position="attributes">
|
|
<attribute name="class" remove="img-thumbnail" separator=" "/>
|
|
<attribute name="style">width: 100%;</attribute>
|
|
<attribute name="src">/web_editor/image_shape/website.s_media_list_default_image_1/web_editor/basic/bsc_organic_2.svg</attribute>
|
|
<attribute name="data-shape">web_editor/basic/bsc_organic_2</attribute>
|
|
<attribute name="data-shape-colors">;;;;</attribute>
|
|
</xpath>
|
|
<!-- Paragraphs -->
|
|
<xpath expr="//p" position="replace" mode="inner">
|
|
Put yourself at the center of an extraordinary gaming universe with exclusive games.
|
|
</xpath>
|
|
<xpath expr="//p" position="attributes">
|
|
<attribute name="style" add="text-align: center;" separator=" "/>
|
|
</xpath>
|
|
<!-- Caption -->
|
|
<xpath expr="//figcaption" position="replace">
|
|
<figcaption class="figure-caption text-muted py-3">Watch as a living game world comes alive all around you, with a seamless field of view wherever you look.</figcaption>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|