mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
e7a6c43233
*: artists, avantgarde, aviato, bookstore, buzzy, clean, graphene, kea, kiddo, loftspace, monglia, odoo_experts, orchid, paptic, real_estate, vehicle This commit mirrors the changes made to the `s_three_columns` and the `s_comparisons` snippets, adding the use of the `s_card` snippet in them in the community counterpart. task-4115012 part of task-3619705 closes odoo/design-themes#868 Related: odoo/odoo#176684 Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
60 lines
2.6 KiB
XML
60 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<odoo>
|
||
|
||
<template id="s_three_columns" inherit_id="website.s_three_columns">
|
||
<!-- Section -->
|
||
<xpath expr="//section" position="attributes">
|
||
<attribute name="class" add="pt16 pb56 o_cc3" remove="pt32 pb32 o_cc2" separator=" "/>
|
||
</xpath>
|
||
<!-- Column #01 -->
|
||
<xpath expr="//*[hasclass('s_card')]" position="attributes">
|
||
<attribute name="style" add="--card-img-aspect-ratio: 132%" separator="; "/>
|
||
</xpath>
|
||
<xpath expr="//figure" position="attributes">
|
||
<attribute name="class" remove="ratio-16x9" add="o_card_img_ratio_custom" separator=" "/>
|
||
</xpath>
|
||
<xpath expr="//h5" position="replace" mode="inner">
|
||
Paris
|
||
</xpath>
|
||
<xpath expr="//p" position="replace" mode="inner">
|
||
Paris' monument-lined boulevards, museums, classical bistros and boutiques are enhanced by a new wave of multimedia galleries, creative wine bars..
|
||
</xpath>
|
||
<xpath expr="//p" position="after">
|
||
<a href="#" class="btn btn-primary">Book now</a>
|
||
</xpath>
|
||
<!-- Column #02 -->
|
||
<xpath expr="(//*[hasclass('s_card')])[2]" position="attributes">
|
||
<attribute name="style" add="--card-img-aspect-ratio: 132%" separator="; "/>
|
||
</xpath>
|
||
<xpath expr="(//figure)[2]" position="attributes">
|
||
<attribute name="class" remove="ratio-16x9" add="o_card_img_ratio_custom" separator=" "/>
|
||
</xpath>
|
||
<xpath expr="(//h5)[2]" position="replace" mode="inner">
|
||
Rome
|
||
</xpath>
|
||
<xpath expr="(//p)[2]" position="replace" mode="inner">
|
||
A heady mix of haunting ruins, awe-inspiring art and vibrant street life, Italy’s hot-blooded capital is one of the world’s most romantic and charismatic cities.
|
||
</xpath>
|
||
<xpath expr="(//p)[2]" position="after">
|
||
<a href="#" class="btn btn-primary">Book now</a>
|
||
</xpath>
|
||
<!-- Column #03 -->
|
||
<xpath expr="(//*[hasclass('s_card')])[3]" position="attributes">
|
||
<attribute name="style" add="--card-img-aspect-ratio: 132%" separator="; "/>
|
||
</xpath>
|
||
<xpath expr="(//figure)[3]" position="attributes">
|
||
<attribute name="class" remove="ratio-16x9" add="o_card_img_ratio_custom" separator=" "/>
|
||
</xpath>
|
||
<xpath expr="(//h5)[3]" position="replace" mode="inner">
|
||
Prague
|
||
</xpath>
|
||
<xpath expr="(//p)[3]" position="replace" mode="inner">
|
||
Prague is the equal of Paris in terms of beauty. Its history goes back a millennium. And the beer? The best in Europe. Prague is the perfect city to walk around.
|
||
</xpath>
|
||
<xpath expr="(//p)[3]" position="after">
|
||
<a href="#" class="btn btn-primary">Book now</a>
|
||
</xpath>
|
||
</template>
|
||
|
||
</odoo>
|