[IMP] theme_anelusia, *: adapt s_key_images

*: theme_aviato, theme_beauty, theme_bewise, theme_bistro,
theme_bookstore, theme_buzzy, theme_clean, theme_cobalt, theme_enark,
theme_graphene, theme_kea, theme_kiddo, theme_monglia, theme_nano,
theme_notes, theme_odoo_experts, theme_orchid, theme_paptic,
theme_real_estate, theme_treehouse, theme_vehicle, theme_yes, theme_zap

This commit adapts customizations for `s_key_images`, added in
https://github.com/odoo/odoo/pull/177463

task-4105059
Part of task-4077427

closes odoo/design-themes#878

Related: odoo/odoo#177463
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
This commit is contained in:
Brieuc-brd
2024-08-21 18:40:17 +02:00
parent aa380a4f2c
commit 421d9acaf4
77 changed files with 1403 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@
'views/snippets/s_features.xml',
'views/snippets/s_image_text.xml',
'views/snippets/s_image_title.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_media_list.xml',
'views/snippets/s_picture.xml',
'views/snippets/s_freegrid.xml',
+22
View File
@@ -304,4 +304,26 @@
<field name="url">/theme_treehouse/static/src/img/backgrounds/02.jpg</field>
</record>
<!-- Key Images -->
<record id="s_key_images_default_image_1" model="theme.ir.attachment">
<field name="key">website.s_key_images_default_image_1</field>
<field name="name">website.s_key_images_default_image_1</field>
<field name="url">/theme_treehouse/static/src/img/content/cover.jpg</field>
</record>
<record id="s_key_images_default_image_2" model="theme.ir.attachment">
<field name="key">website.s_key_images_default_image_2</field>
<field name="name">website.s_key_images_default_image_2</field>
<field name="url">/theme_treehouse/static/src/img/content/three_columns_03.jpg</field>
</record>
<record id="s_key_images_default_image_3" model="theme.ir.attachment">
<field name="key">website.s_key_images_default_image_3</field>
<field name="name">website.s_key_images_default_image_3</field>
<field name="url">/theme_treehouse/static/src/img/content/image_text.jpg</field>
</record>
<record id="s_key_images_default_image_4" model="theme.ir.attachment">
<field name="key">website.s_key_images_default_image_4</field>
<field name="name">website.s_key_images_default_image_4</field>
<field name="url">/theme_treehouse/static/src/img/content/three_columns_02.jpg</field>
</record>
</odoo>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_key_images" inherit_id="website.s_key_images">
<xpath expr="//h2" position="replace" mode="inner">
Protecting Our Planet for Future Generations
</xpath>
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
Leading Initiatives to Preserve and Restore the Environment
</xpath>
<xpath expr="//div[hasclass('col-lg-3')]//p[3]" position="replace" mode="inner">
Innovative solutions for sustainable living
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[2]//p[3]" position="replace" mode="inner">
Community-driven projects for a greener future
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[3]//p[3]" position="replace" mode="inner">
Educational programs to raise environmental awareness
</xpath>
<xpath expr="(//div[hasclass('col-lg-3')])[4]//p[3]" position="replace" mode="inner">
Join us in making a positive impact on our planet
</xpath>
</template>
</odoo>