calendrier.html.twig 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends 'partials/base.html.twig' %}
  2. {% set blog_image = page.media.images[page.header.hero_image] ?: page.media.images|first %}
  3. {% set collection = page.collection() %}
  4. {% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
  5. {% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
  6. {% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
  7. {% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
  8. {% block body %}
  9. <section class="header-wrapper">
  10. <div class="title">
  11. {{page.title}}
  12. </div>
  13. <div class="cat">
  14. {% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
  15. </div>
  16. </section>
  17. <section class="body-wrapper" class="section blog-listing">
  18. {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
  19. {% include 'partials/breadcrumbs.html.twig' %}
  20. {% endif %}
  21. {% embed 'partials/layout.html.twig' with {blog: page} %}
  22. {% block item %}
  23. {% for child in collection %}
  24. {% if child.header.date_end|date("d/m/y") >= "now"|date("d/m/y") %}
  25. {% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
  26. {% endif %}
  27. {% endfor %}
  28. {% endblock %}
  29. {% endembed %}
  30. </section>
  31. {% endblock %}