Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] theme_*: review s_numbers_boxed snippet occurrences #979

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 -->
<xpath expr="//div[hasclass('o_grid_item')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_grid_item')]//h3" position="replace" mode="inner">
30+
</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">
45%
</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">
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 -->
<xpath expr="//div[hasclass('o_grid_item')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_grid_item')]//h3" position="replace" mode="inner">
30+
</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">
45%
</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">
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 -->
<xpath expr="//div[hasclass('o_grid_item')]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_grid_item')]//h3" position="replace" mode="inner">
30+
</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">
45%
</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">
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 -->
<xpath expr="//div[hasclass('o_grid_item')]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_grid_item')]//h3" position="replace" mode="inner">
30+
</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">
45%
</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">
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 -->
<xpath expr="//div[hasclass('o_grid_item')]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_grid_item')]//h3" position="replace" mode="inner">
30+
</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">
45%
</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">
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 -->
<xpath expr="//div[hasclass('o_grid_item')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_grid_item')]//h3" position="replace" mode="inner">
30+
</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">
45%
</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">
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 -->
<xpath expr="//div[hasclass('o_grid_item')]" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_grid_item')]//h3" position="replace" mode="inner">
30+
</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">
45%
</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">
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 -->
<xpath expr="//div[hasclass('o_grid_item')]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_grid_item')]//h3" position="replace" mode="inner">
30+
</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">
45%
</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">
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 -->
<xpath expr="//div[hasclass('o_grid_item')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('o_grid_item')]//h3" position="replace" mode="inner">
30+
</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">
45%
</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">
8+
</xpath>
</template>

</odoo>
Loading