You are here

field-slideshow-pager.html.twig in Field Slideshow 8

Same filename and directory in other branches
  1. 8.2 templates/field-slideshow-pager.html.twig

Template file for field_slideshow_pager

File

templates/field-slideshow-pager.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template file for field_slideshow_pager
  5. *
  6. *
  7. */#}
  8. {% if pager == 'number' %}
  9. {%
  10. set classes = [
  11. 'field-slideshow-pager',
  12. 'slides-' ~ items_count,
  13. ]
  14. %}
  15. <div id="field-slideshow-{{ slideshow_id }}-pager"{{attributes.addClass(classes)}}></div>
  16. {% elseif pager == 'image' or pager == 'carousel' %}
  17. {% if pager == 'carousel' %}
  18. {%
  19. set slideclasses = [
  20. 'field-slideshow-carousel-wrapper',
  21. pager == 'carousel' and carousel_skin ? 'jcarousel-skin-' ~ carousel_skin
  22. ]
  23. %}
  24. <div id="field-slideshow-{{ slideshow_id }}-carousel-wrapper" {{attributes.addClass(slideclasses)}}>
  25. {% if not carousel_skin %}<a href="#" class="carousel-prev">«</a>{% endif %}
  26. <div id="field-slideshow-{{ slideshow_id }}-carousel" class="field-slideshow-carousel">
  27. {% endif %}
  28. {{ thumbnails }}
  29. {% if pager == 'carousel' %}
  30. </div>
  31. {% if not carousel_skin %}<a href="#" class="carousel-next">»</a>{% endif %}
  32. </div>
  33. {% endif %}
  34. {% endif %}