mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_*: explode masonry snippet
See community commit for details Note: this also fixes avantgarde svg/screenshot at the same time: we remove the s_masonry_block but add the missing carousel. (image contribution by MANO) closes odoo/design-themes#1020 Related: odoo/odoo#183755 Related: odoo/upgrade#6642 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by: mano-odoo <mano@odoo.com>
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
'website.s_quotes_carousel_demo_image_0': '/theme_aviato/static/src/img/content/s_quote_bg_1.jpg',
|
||||
},
|
||||
'configurator_snippets': {
|
||||
'homepage': ['s_banner', 's_text_image', 's_image_text', 's_picture', 's_title', 's_masonry_block', 's_company_team', 's_showcase', 's_quotes_carousel'],
|
||||
'homepage': ['s_banner', 's_text_image', 's_image_text', 's_picture', 's_title', 's_masonry_block_default_template', 's_company_team', 's_showcase', 's_quotes_carousel'],
|
||||
},
|
||||
'license': 'LGPL-3',
|
||||
'live_test_url': 'https://theme-aviato.odoo.com',
|
||||
|
||||
@@ -29,7 +29,7 @@ const snippets = [
|
||||
groupName: "Text",
|
||||
},
|
||||
{
|
||||
id: 's_masonry_block',
|
||||
id: 's_masonry_block_default_template',
|
||||
name: 'Masonry',
|
||||
groupName: "Images",
|
||||
},
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
<odoo>
|
||||
|
||||
<template id="s_masonry_block" inherit_id="website.s_masonry_block" name="Masonry">
|
||||
<xpath expr="//section" position="replace">
|
||||
<section class="s_masonry_block o_cc1 pt24 pb104" data-vcss="001" data-vxml="001" data-oe-shape-data="{'shape':'web_editor/Connections/20','colors':{'c5':'o-color-3'},'flip':['y'],'showOnMobile':true}">
|
||||
<div class="o_we_shape o_web_editor_Connections_20 o_shape_show_mobile" style="background-image: url('/web_editor/shape/web_editor/Connections/20.svg?c5=o-color-3&flip=y'); background-position: 50% 0%;"/>
|
||||
<div class="container">
|
||||
<t t-call="website.s_masonry_block_default_template"/>
|
||||
</div>
|
||||
</section>
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="o_cc o_cc1 pt24 pb104" remove="pt48 pb48" separator=" "/>
|
||||
<attribute name="data-oe-shape-data">{'shape':'web_editor/Connections/20','colors':{'c5':'o-color-3'},'flip':['y'],'showOnMobile':true}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//section/div" position="before">
|
||||
<div class="o_we_shape o_web_editor_Connections_20 o_shape_show_mobile" style="background-image: url('/web_editor/shape/web_editor/Connections/20.svg?c5=o-color-3&flip=y'); background-position: 50% 0%;"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user