You are here

field-slideshow.html.twig in Field Slideshow 8.3

Template file for field_slideshow

File

templates/field-slideshow.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template file for field_slideshow
  5. */#}
  6. {% set classes = [
  7. 'field-slideshow',
  8. 'field-slideshow-' ~ id,
  9. ] %}
  10. <div{{ attributes.addClass(classes) }}>
  11. <div class="field-slideshow-wrapper">
  12. {% if pager.pager.before %}
  13. <div class="cycle-pager-before cycle-pager-{{ id }}">{{ pager.pager_type }}</div>
  14. {% endif %}
  15. <div id="{{ id }}" class="field-slideshow-items">
  16. {% for item in items %}
  17. <div class="field-slideshow-item">
  18. {{ item }}
  19. </div>
  20. {% endfor %}
  21. </div>
  22. {% if pager.pager.after %}
  23. <div class="cycle-pager-after cycle-pager-{{ id }}">{{ pager.pager_type }}</div>
  24. {% endif %}
  25. {% if pager.controls %}
  26. <a class="cycle-controls cycle-controls-prev cycle-controls-prev-{{ id }}" href="#">{% trans %}Prev{% endtrans %}</a>
  27. <a class="cycle-controls cycle-controls-next cycle-controls-next-{{ id }}" href="#">{% trans %}Next{% endtrans %}</a>
  28. {% endif %}
  29. </div>
  30. </div>