Added owl-carousel plugin support

This commit is contained in:
pmoreno 2023-04-17 20:34:59 +02:00
parent 3c49ff2772
commit 6e144dabe7

View file

@ -0,0 +1,23 @@
{% block stylesheets %}
<style>
.wrapper-carousel-{{ owl_id }} {
display: flex;
width: 100%;
}
.carousel-{{ owl_id }} {
width: 0;
margin-bottom: 2rem;
flex-basis: 100%;
}
</style>
{% endblock %}
<div class="wrapper-carousel-{{ owl_id }}">
<div class="carousel-{{ owl_id }}">
<div class="owl-carousel owl-theme" id="{{ owl_id }}">
{{ owl_items|regex_replace('(^\n?<p>|<\/p>$)','')|raw }}
</div>
</div>
</div>