Skip to content

Commit

Permalink
[IMP] theme_*: review s_numbers_boxed snippet occurrences
Browse files Browse the repository at this point in the history
*: anelusia, artists, avantgarde, aviato, beauty, bewise, bistro,
bookstore, buzzy, clean, cobalt, enark, kea, kiddo, loftspace, monglia,
nano, notes, odoo_experts, orchid, paptic, real_estate, treehouse,
vehicle, yes, zap

This commit reviews the occurrences of the `s_numbers_boxed` snippet
within themes

task-4094382
Part of task-4077427
  • Loading branch information
chgo-odoo committed Oct 8, 2024
1 parent a2c0751 commit 4ab7870
Show file tree
Hide file tree
Showing 46 changed files with 695 additions and 0 deletions.
1 change: 1 addition & 0 deletions theme_anelusia/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
'views/snippets/s_wavy_grid.xml',
'views/snippets/s_shape_image.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_boxed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
36 changes: 36 additions & 0 deletions theme_anelusia/views/snippets/s_numbers_boxed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/28", "colors":{"c1": "o-color-1", "c3": "o-color-5"}, "flip":[], "showOnMobile":true}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Wavy_28 o_we_animated" style="background-image: url('/web_editor/shape/web_editor/Wavy/28.svg?c1=o-color-1&amp;c3=o-color-5&amp;);"/>
</xpath>
<!-- Grid Item 2 -->
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[2]//h3" position="replace" mode="inner">
30+
</xpath>
<!-- Grid Item 3 -->
<xpath expr="(//div[hasclass('o_grid_item')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[3]//h3" position="replace" mode="inner">
45%
</xpath>
<!-- Grid Item 4 -->
<xpath expr="(//div[hasclass('o_grid_item')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[4]//h3" position="replace" mode="inner">
8+
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_artists/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
'views/snippets/s_title_form.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_boxed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
15 changes: 15 additions & 0 deletions theme_artists/views/snippets/s_numbers_boxed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Float/12", "flip":[], "showOnMobile":true}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Floats_12 o_we_animated"/>
</xpath>
</template>

</odoo>
26 changes: 26 additions & 0 deletions theme_avantgarde/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -836,4 +836,30 @@
</xpath>
</template>

<!-- ======== Numbers boxed ======== -->
<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Grid Item 2 -->
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[2]//h3" position="replace" mode="inner">
30+
</xpath>
<!-- Grid Item 3 -->
<xpath expr="(//div[hasclass('o_grid_item')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[3]//h3" position="replace" mode="inner">
45%
</xpath>
<!-- Grid Item 4 -->
<xpath expr="(//div[hasclass('o_grid_item')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[4]//h3" position="replace" mode="inner">
8+
</xpath>

</template>

</odoo>
1 change: 1 addition & 0 deletions theme_aviato/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
'views/snippets/s_images_constellation.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_boxed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
36 changes: 36 additions & 0 deletions theme_aviato/views/snippets/s_numbers_boxed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Blobs/06", "flip":[], "showOnMobile":true}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Blobs_06"/>
</xpath>
<!-- Grid Item 2 -->
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[2]//h3" position="replace" mode="inner">
30+
</xpath>
<!-- Grid Item 3 -->
<xpath expr="(//div[hasclass('o_grid_item')])[3]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[3]//h3" position="replace" mode="inner">
45%
</xpath>
<!-- Grid Item 4 -->
<xpath expr="(//div[hasclass('o_grid_item')])[4]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[4]//h3" position="replace" mode="inner">
8+
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_beauty/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
'views/snippets/s_shape_image.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_boxed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
36 changes: 36 additions & 0 deletions theme_beauty/views/snippets/s_numbers_boxed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Blobs/12", "colors":{"c1": "o-color-2"}, "flip":[], "showOnMobile":true}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Blobs_12" style="background-image: url('/web_editor/shape/web_editor/Blobs/12.svg?c1=o-color-2&amp;);"/>
</xpath>
<!-- Grid Item 2 -->
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[2]//h3" position="replace" mode="inner">
30+
</xpath>
<!-- Grid Item 3 -->
<xpath expr="(//div[hasclass('o_grid_item')])[3]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[3]//h3" position="replace" mode="inner">
45%
</xpath>
<!-- Grid Item 4 -->
<xpath expr="(//div[hasclass('o_grid_item')])[4]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[4]//h3" position="replace" mode="inner">
8+
</xpath>
</template>

</odoo>
34 changes: 34 additions & 0 deletions theme_bewise/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1138,4 +1138,38 @@
</xpath>
</template>

<!-- ======== NUMBERS BOXED ======== -->
<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Blobs/08", "colors":{"c1": "o-color-1"}, "flip":[], "showOnMobile":true}</attribute>
<attribute name="class" add="o_cc3" remove="o_cc5" separator=" "/>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Blobs_08" style="background-image: url('/web_editor/shape/web_editor/Blobs/08.svg?c1=o-color-1&amp;);"/>
</xpath>
<!-- Grid Item 2 -->
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[2]//h3" position="replace" mode="inner">
30+
</xpath>
<!-- Grid Item 3 -->
<xpath expr="(//div[hasclass('o_grid_item')])[3]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[3]//h3" position="replace" mode="inner">
45%
</xpath>
<!-- Grid Item 4 -->
<xpath expr="(//div[hasclass('o_grid_item')])[4]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[4]//h3" position="replace" mode="inner">
8+
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_bistro/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
'views/snippets/s_images_constellation.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_boxed.xml',
'views/new_page_template.xml',

],
Expand Down
28 changes: 28 additions & 0 deletions theme_bistro/views/snippets/s_numbers_boxed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Grid Item 2 -->
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[2]//h3" position="replace" mode="inner">
30+
</xpath>
<!-- Grid Item 3 -->
<xpath expr="(//div[hasclass('o_grid_item')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[3]//h3" position="replace" mode="inner">
45%
</xpath>
<!-- Grid Item 4 -->
<xpath expr="(//div[hasclass('o_grid_item')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[4]//h3" position="replace" mode="inner">
8+
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_bookstore/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
'views/snippets/s_text_cover.xml',
'views/snippets/s_accordion.xml',
'views/snippets/s_accordion_image.xml',
'views/snippets/s_numbers_boxed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
36 changes: 36 additions & 0 deletions theme_bookstore/views/snippets/s_numbers_boxed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Blobs/08", "colors":{"c1": "o-color-1"}, "flip":[], "showOnMobile":true}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Blobs_08" style="background-image: url('/web_editor/shape/web_editor/Blobs/08.svg?c1=o-color-1&amp;);"/>
</xpath>
<!-- Grid Item 2 -->
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[2]//h3" position="replace" mode="inner">
30+
</xpath>
<!-- Grid Item 3 -->
<xpath expr="(//div[hasclass('o_grid_item')])[3]" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[3]//h3" position="replace" mode="inner">
45%
</xpath>
<!-- Grid Item 4 -->
<xpath expr="(//div[hasclass('o_grid_item')])[4]" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[4]//h3" position="replace" mode="inner">
8+
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_buzzy/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
'views/snippets/s_image_frame.xml',
'views/snippets/s_wavy_grid.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_boxed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
32 changes: 32 additions & 0 deletions theme_buzzy/views/snippets/s_numbers_boxed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc5" separator=" "/>
</xpath>
<!-- Grid Item 2 -->
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[2]//h3" position="replace" mode="inner">
30+
</xpath>
<!-- Grid Item 3 -->
<xpath expr="(//div[hasclass('o_grid_item')])[3]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[3]//h3" position="replace" mode="inner">
45%
</xpath>
<!-- Grid Item 4 -->
<xpath expr="(//div[hasclass('o_grid_item')])[4]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[4]//h3" position="replace" mode="inner">
8+
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_clean/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'views/snippets/s_shape_image.xml',
'views/snippets/s_images_constellation.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_numbers_boxed.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
32 changes: 32 additions & 0 deletions theme_clean/views/snippets/s_numbers_boxed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_numbers_boxed" inherit_id="website.s_numbers_boxed">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc5" separator=" "/>
</xpath>
<!-- Grid Item 2 -->
<xpath expr="(//div[hasclass('o_grid_item')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[2]//h3" position="replace" mode="inner">
30+
</xpath>
<!-- Grid Item 3 -->
<xpath expr="(//div[hasclass('o_grid_item')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[3]//h3" position="replace" mode="inner">
45%
</xpath>
<!-- Grid Item 4 -->
<xpath expr="(//div[hasclass('o_grid_item')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('o_grid_item')])[4]//h3" position="replace" mode="inner">
8+
</xpath>
</template>

</odoo>
Loading

0 comments on commit 4ab7870

Please sign in to comment.