Files
design-themes/theme_nano/views/snippets/s_references_social.xml
Denis Rygaert 88b06392a3 [FIX] theme_anelusia, *: update xpath to removed s_nb_column_fixed
*: theme_bewise, theme_cobalt, theme_kiddo, theme_loftspace,
   theme_monglia, theme_nano, theme_notes, theme_odoo_experts,
   theme_orchid, theme_paptic, theme_yes, theme_zap

Multiple snippet template where changed to ensure that the title is not
considered as a column and allowing changing the nb of columns again.
This commit adapts all the xpath that were impacted by those changes.

task-4310468

closes odoo/design-themes#1047

Related: odoo/odoo#195409
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-03-31 23:05:39 +00:00

63 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_references_social" inherit_id="website.s_references_social">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('row')]/div/h3" position="replace" mode="inner">
Barbershop
</xpath>
<xpath expr="//div[hasclass('row')]/div[2]/h3" position="replace" mode="inner">
Oceandor
</xpath>
<xpath expr="//div[hasclass('row')]/div[3]/h3" position="replace" mode="inner">
Mountain
</xpath>
<xpath expr="//div[hasclass('row')]/div[4]/h3" position="replace" mode="inner">
Hosoren
</xpath>
<!-- Column #1 -->
<xpath expr="(//div[hasclass('col-lg-3')])//i[hasclass('fa-facebook')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])//i[hasclass('fa-twitter')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<!-- Column #2 -->
<xpath expr="(//div[hasclass('col-lg-3')])[2]//i[hasclass('fa-facebook')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[2]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[2]//i[hasclass('fa-twitter')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<!-- Column #3 -->
<xpath expr="(//div[hasclass('col-lg-3')])[3]//i[hasclass('fa-facebook')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[3]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[3]//i[hasclass('fa-twitter')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<!-- Column #4 -->
<xpath expr="(//div[hasclass('col-lg-3')])[4]//i[hasclass('fa-facebook')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[4]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[4]//i[hasclass('fa-twitter')]" position="attributes">
<attribute name="class" remove="rounded shadow-sm" separator=" "/>
</xpath>
</template>
</odoo>