@@ -275,12 +275,20 @@ Lastly, add your shape to the list of shapes available on the Website Builder.
275
275
.. code-block :: xml
276
276
:caption: ``/website_airproof/views/snippets/options.xml``
277
277
278
- <template id =" snippet_options_background_options" inherit_id =" website.snippet_options_background_options" name =" Shapes" >
279
- <xpath expr =" //*[hasclass('o_we_shape_menu')]/*[last()]" position =" after" >
280
- <we-select-page string =" Theme" >
281
- <we-button data-shape =" illustration/hexagons/01" data-select-label =" Hexagon 01" />
282
- </we-select-page >
283
- </xpath >
278
+ <template id =" snippet_options_background_options" inherit_id =" website.snippet_options_background_options" name =" Airproof - Shapes" >
279
+ <xpath expr =" //*[hasclass('o_we_bg_shape_menu')]/header[hasclass('o_pager_nav')]//*[hasclass('o_pager_nav_btn')][last()]" position =" after" >
280
+ <button type =" button" class =" o_pager_nav_btn p-0 text-uppercase" data-scroll-to =" x_wd_scroll_bgshapes_aiproof" >
281
+ <span class =" w-100" >Airproof</span >
282
+ </button >
283
+ </xpath >
284
+ <xpath expr =" //*[hasclass('o_we_bg_shape_menu')]/div[hasclass('o_pager_container')]" position =" inside" >
285
+ <div class =" x_scroll_bgshapes_klingspor" >
286
+ <we-title >Airproof</we-title >
287
+ <we-select-page string =" Airproof" >
288
+ <we-button data-shape =" illustration/airproof/01" data-select-label =" Airproof 01" />
289
+ </we-select-page >
290
+ </div >
291
+ </xpath >
284
292
</template >
285
293
286
294
.. _website_themes/shapes/bg/custom/use :
@@ -292,8 +300,8 @@ In your XML pages, you can use your shape in the same way as the others.
292
300
293
301
.. code-block :: xml
294
302
295
- <section class =" ..." data-oe-shape-data =" {'shape': 'illustration/hexagons /01', 'colors': 'c4': '#8595A2', 'c5': 'rgba(0, 255, 0)'}" >
296
- <div class =" o_we_shape o_illustration_hexagons_01 " />
303
+ <section class =" ..." data-oe-shape-data =" {'shape': 'illustration/airproof /01', 'colors': 'c4': '#8595A2', 'c5': 'rgba(0, 255, 0)'}" >
304
+ <div class =" o_we_shape o_illustration_airproof_01 " />
297
305
<div class =" container" >
298
306
<!-- Content -->
299
307
</div >
0 commit comments