- Repo for opensource odoo website theme (since V13.0)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

76 lines
3.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Snippet Body -->
<template name="Animated Boxes" id="s_animated_boxes">
<div class="s_animated_boxes row">
<div class="col-md-4 col-lg-4 item bg-alpha" data-name="Box item">
<div class="v-align">
<h3>Box title</h3>
<p>Box Description</p>
<div class="oe_structure"/>
</div>
<div class="slide bg-delta" data-name="Inner Slide">
<div class="v-align">
<h3>Slide title</h3>
<p>Slide Description</p>
<a class="btn btn-primary"><strong>My great button</strong></a>
</div>
</div>
</div>
<div class="col-md-4 col-lg-4 item bg-beta" data-name="Box item">
<div class="v-align">
<h3>Box title</h3>
<p>Box Description</p>
<div class="oe_structure"/>
</div>
<div class="slide bg-delta" data-name="Inner Slide">
<div class="v-align">
<h3>Slide title</h3>
<p>Slide Description</p>
<a class="btn btn-primary"><strong>My great button</strong></a>
</div>
</div>
</div>
<div class="col-md-4 col-lg-4 item bg-gamma" data-name="Box item">
<div class="v-align">
<h3>Box title</h3>
<p>Box Description</p>
<div class="oe_structure"/>
</div>
<div class="slide bg-delta" data-name="Inner Slide">
<div class="v-align">
<h3>Slide title</h3>
<p>Slide Description</p>
<a class="btn btn-primary"><strong>My great button</strong></a>
</div>
</div>
</div>
</div>
</template>
<!-- Snippet options -->
<template id="s_animated_boxes_options" inherit_id="website.snippet_options">
<xpath expr="//div[@data-js='background']" position="before">
<div data-js="s_animated_boxes" data-selector=".s_animated_boxes .item">
<we-button class="createSlide" data-create_slide="" data-no-preview="true">
<i class="fa fa-plus-circle"/> Add Slide
</we-button>
<we-button class="deleteSlide" data-delete_slide="" data-no-preview="true">
<i class="fa fa-trash-o"/> Delete Slide
</we-button>
</div>
</xpath>
<xpath expr="//*[@id='so_snippet_addition']" position="attributes">
<attribute name="data-selector" add=".s_animated_boxes" separator=","/>
</xpath>
<xpath expr="//div[@data-js='background']" position="attributes">
<attribute name="data-selector" add=".s_animated_boxes .item, .s_animated_boxes .slide"/>
</xpath>
<xpath expr="//div[@data-js='background_position']" position="attributes">
<attribute name="data-selector" add=".s_animated_boxes .item, .s_animated_boxes .slide"/>
</xpath>
<xpath expr="//div[@id='so_main_colorpicker']" position="attributes">
<attribute name="data-selector" add=".s_animated_boxes .item, .s_animated_boxes .slide"/>
</xpath>
</template>
</odoo>