views-view-unformatted.html.twig 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a view of unformatted rows.
  5. *
  6. * Available variables:
  7. * - title: The title of this group of rows. May be empty.
  8. * - rows: A list of the view's row items.
  9. * - attributes: The row's HTML attributes.
  10. * - content: The row's content.
  11. * - view: The view object.
  12. * - default_row_class: A flag indicating whether default classes should be
  13. * used on rows.
  14. *
  15. * @see template_preprocess_views_view_unformatted()
  16. */
  17. #}
  18. {%
  19. set view_wrapper_class = [
  20. default_row_class ? 'views-row-wrapper',
  21. ]
  22. %}
  23. <div class="view-type-slide">
  24. {% if title %}
  25. <h3>{{ title }}</h3>
  26. {% endif %}
  27. <div {{ attributes.addClass(view_wrapper_class) }}>
  28. {% for row in rows %}
  29. {%
  30. set row_classes = [
  31. default_row_class ? 'views-row',
  32. ]
  33. %}
  34. {# {%
  35. set collection = '#collection-id--' ~ a.content
  36. %} #}
  37. <div{{ row.attributes.addClass(row_classes) }}>
  38. {{- row.content -}}
  39. </div>
  40. {# <button class="slick-next slick-arrow" aria-label="Next" type="button" style="">Next</button> #}
  41. {% endfor %}
  42. </div>
  43. </div>