Guest User

Untitled

a guest
Apr 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  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. {% if title %}
  19. <div id="{{ clean_string(title) }}">
  20. <h3>{{ title }}</h3>
  21. {% endif %}
  22. {% for row in rows %}
  23. {% set row_classes = [
  24. default_row_class ? 'views-row',
  25. ] %}
  26. <div{{ row.attributes.addClass(row_classes) }}>
  27. {{ row.content }}
  28. </div>
  29. {% endfor %}
  30. {% if title %}
  31. </div>
  32. {% endif %}
Add Comment
Please, Sign In to add comment