12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- {% extends 'partials/base.html.twig' %}
- {% set collection = page.collection() %}
- {% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
- {% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
- {% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
- {% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
- {% block stylesheets %}
- {{ parent() }}
- {% endblock %}
- {% block javascripts %}
- {{ parent() }}
- {% endblock %}
- {% block body %}
- <section id="body-wrapper" class="section">
- {% embed 'partials/layout.html.twig' with {blog: page} %}
- {% block item %}
- {% set first_event = { items: {'@page.children':'/whats-on/exhibitions/current-upcoming'} } %}
- {% set Efirst = page.collection(first_event) %}
- {% set options = { items: {'@root.descendants':''}} %}
- {% set options2 = { items: {'@page.modular':'/news/news/'}} %}
- {% set options3 = { items: {'@page.children':'/residence/current-upcoming'}} %}
- {% set collection1 = page.collection(options) %}
- {% set collection2 = page.collection(options2) %}
- {% set collection3 = page.collection(options3) %}
- {% set mergeCollect12 = collection1.merge(collection2) %}
- {% set mergeCollectTT = mergeCollect12.merge(collection3).order('date', 'desc') %}
- {% for siblings in Efirst %}
- {% if siblings.header.topH == true %}
- {% include 'partials/blog-list-item.html.twig' with {blog: page, page: siblings} %}
- {% endif %}
- {% endfor %}
- {% set count = 0 %}
- {% for siblings in mergeCollectTT %}
- {% if siblings.template == 'events' and siblings.header.topH != true or siblings.template == 'artistes' or siblings.template == 'modular/news' %}
- {% if siblings.header.date|date('Ymd') >= "now"|date('Ymd') or siblings.header.date_end == true and siblings.header.date_end|date('Ymd') >= "now"|date("Ymd") %}
- {% set count = count + 1 %}
- {% endif %}
- {% if count <= 5 %}
- {% if siblings.header.date|date('Ymd') >= "now"|date('Ymd') or siblings.header.date_end == true and siblings.header.date_end|date('Ymd') >= "now"|date("Ymd") %}
- {% include 'partials/blog-list-item.html.twig' with {blog: page, page: siblings} %}
- {% endif %}
- {% endif %}
- {% endif %}
- {% endfor %}
- {% endblock %}
- {% block sidebar %}
- {% if header.show_sidebar == true %}
- {% include 'partials/sidebar.html.twig' %}
- {% endif %}
- {% endblock %}
- {% endembed %}
- </section>
- {% endblock %}
|