lightgallery.html.twig in Lightgallery 8
<div class="lightgallery-wrapper">
<ul class="lightgallery" id="lightgallery-{{ id }}">
{% for item in items %}
<li data-src="{{ item.slide }}" style="{{ item.row_style }}" data-sub-html="{{ item.title }}">
{% if item.field_label is not empty %}
<div class="field-label">
<label>{{ item.field_label }}</label>
</div>
{% endif %}
<div class="field-content">
<a href="">
<img class="img-responsive" src="{{ item.thumb }}" />
</a>
</div>
</li>
{% endfor %}
</ul>
</div>
File
templates/lightgallery.html.twig
View source
- <div class="lightgallery-wrapper">
- <ul class="lightgallery" id="lightgallery-{{ id }}">
- {% for item in items %}
- <li data-src="{{ item.slide }}" style="{{ item.row_style }}" data-sub-html="{{ item.title }}">
- {% if item.field_label is not empty %}
- <div class="field-label">
- <label>{{ item.field_label }}</label>
- </div>
- {% endif %}
- <div class="field-content">
- <a href="">
- <img class="img-responsive" src="{{ item.thumb }}" />
- </a>
- </div>
- </li>
- {% endfor %}
- </ul>
- </div>