18 lines
702 B
HTML
18 lines
702 B
HTML
|
{% 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>
|