views-view-unformatted--programme.html.twig 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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. * @ingroup themeable
  18. */
  19. #}
  20. <section>
  21. {% if title %}
  22. <h3>{{ title }}</h3>
  23. {% endif %}
  24. <div class="row justify-content-end">
  25. {% if rows[0] %}
  26. <div class="__wrap_side col-sm-12 col-md-1">
  27. {% include 'themes/custom/popsu_colloque/template/components/share_rs.html.twig' %}
  28. <div class="dl_ressource">
  29. <a download class="blue" href="{{ file_url(site_settings.information_global.le_programme.uri) }}"><span>Télécharger le programme en pdf</span></a>
  30. </div>
  31. </div>
  32. {% endif %}
  33. <div class="col-sm-12 col-md-11 d-flex flex-wrap ">
  34. {% for row in rows %}
  35. {%
  36. set row_classes = [
  37. default_row_class ? 'thumbnails programme',
  38. ]
  39. %}
  40. <article{{ row.attributes.addClass(row_classes) }}>
  41. {{- row.content -}}
  42. </article>
  43. {% endfor %}
  44. </div>
  45. </section>