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.
79 lines
4.1 KiB
79 lines
4.1 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Carousal Dashboard template -->
|
|
<template id="carousal_dashboard" inherit_id="website.snippets"
|
|
name="Carousal Dashboard">
|
|
<xpath expr="//div[@id='snippet_effect']/div[hasclass('o_panel_body')]"
|
|
position="inside">
|
|
<t t-snippet="all_in_one_website_kit.s_carousel_template"
|
|
t-thumbnail="/all_in_one_website_kit/static/src/images/carousel.png"/>
|
|
</xpath>
|
|
</template>
|
|
<template id="s_carousel_template" name="Insta Feed">
|
|
<section class="s_carousel_template pt24 pb24">
|
|
<div class="container">
|
|
<div class="products_carousel_slider oe_website_events">
|
|
<input type="hidden" name="products_count" t-if="objects"
|
|
t-att-value="len(objects)"/>
|
|
<div t-att-id="uniqueId" class="carousel slide d-flex"
|
|
data-ride="carousel">
|
|
<a class="carousel-control-prev" href="#uniqueId"
|
|
data-slide="prev" role="button">
|
|
<span class="fa fa-chevron-circle-left fa-2x"/>
|
|
<span class="visually-hidden">Previous</span>
|
|
</a>
|
|
<t t-if="not objects">
|
|
<h3 class="text-center mb32">Follow Us On Instagram</h3>
|
|
</t>
|
|
<div class="carousel-inner">
|
|
<t t-foreach="objects" t-as="latest_products">
|
|
<div t-attf-class="carousel-item #{'' if latest_products_index else 'active'}">
|
|
<div>
|
|
<t t-call="all_in_one_website_kit.s_carousel_inner_items"/>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
<a class="carousel-control-next" href="#uniqueId"
|
|
data-slide="next" role="button" aria-label="Next" title="Next">
|
|
<span class="fa fa-chevron-circle-right fa-2x"/>
|
|
<span class="visually-hidden">Next</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
<!-- Carousel items template -->
|
|
<template id="s_carousel_template_items">
|
|
<div class="container s_carousel_template">
|
|
<div class="products_carousel_slider oe_website_events">
|
|
<input type="hidden" name="products_count" t-if="objects"
|
|
t-att-value="len(objects)"/>
|
|
<div t-att-id="uniqueId" class="carousel slide d-flex"
|
|
data-ride="carousel">
|
|
<a class="o_courses_carousel_control carousel-control-prev position-relative"
|
|
t-att-href="#uniqueId" data-slide="prev" role="button"
|
|
aria-label="Previous" title="Previous">
|
|
<i class="fa fa-2x fa-chevron-left text-black-50"/>
|
|
<span class="sr-only">Previous</span>
|
|
</a>
|
|
<div class="carousel-inner">
|
|
<t t-foreach="objects" t-as="latest_products">
|
|
<div t-attf-class="carousel-item #{'' if latest_products_index else 'active'}">
|
|
<div>
|
|
<t t-call="all_in_one_website_kit.s_carousel_inner_items"/>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
<a class="o_courses_carousel_control carousel-control-next position-relative"
|
|
t-att-href="#uniqueId" data-slide="next" role="button" aria-label="Next" title="Next">
|
|
<i class="fa fa-2x fa-chevron-right text-black-50"/>
|
|
<span class="sr-only">Next</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</odoo>
|
|
|