extratonal.org/templates/blocks/gallery.html

18 lines
702 B
HTML
Raw Normal View History

2023-11-26 23:34:10 +01:00
{% set hash = this.title|length %}
<div id="gallery{{hash}}" class="gallery">
<h2 class="title">{{ this.title }}</h2>
<div class="carousel cara" data-ride="carousel" data-interval="3000">
<div class="carousel-inner">
{% for item in this.gallery.blocks %}
{{ item }}
{% endfor %}
</div>
</div>
{% if this.gallery.blocks|length > 1 %}
<div class="text-center">
<a class="carousel-control left" data-slide="prev" onclick="$('#gallery{{hash}}').carousel('prev')"></a>
<a class="carousel-control right" data-slide="next" onclick="$('#gallery{{hash}}').carousel('next')"></a>
</div>
{% endif %}
</div>