{% extends 'templates.html.twig' %}
{% block headcontent %}
<div class="tc-contacts">
<section class="tc-header row">
<header class="tc-panel">
<h1 class="tc-titre tc-panel-header">Les {{ typestructure.typestructure_pluriel }}</h1>
</header>
{% if aside_top is defined and aside_top %}
{% for idaside,aside_content in aside_top %}
{% include aside_content.html~".twig" %}
{% endfor %}
{% endif %}
</section>
</div>
{% endblock %}
{% block content %}
<main class="tc-desktop-2_3 tc-phone-1_1">
<section class="tc-panel">
{% if spectacles_videos is defined and spectacles_videos == true%}
<div class="tc-panel-header tc-videos-tpl-">
{% else %}
<div class="tc-panel-header tc-spectacles-tpl-a">
{% endif %}
<h2 class="tc-titre">
Les {{ type_title.name_view }}
</h2>
<h3 class="tc-titre"> à l'affiche
{% if region_name is defined and region_name %}en région {{ region_name }}{% endif %}
{% if country_name is defined and country_name %}en {{ country_name }}{% endif %}
{% if saison is defined and saison %}
sur la saison {{ saison }}
{% endif %}
{% if year is defined and year %}
en {{ year }}
{% endif %}
{# {% if typestructure %}
dans les {{ typestructure.typestructure_pluriel }}
{% endif %} #}
{% if days is defined and days %}
dans les {{ days_name }}
{% endif %}
{% if datestart is defined and datestart %}
du {{ datestart_string }} au {{ dateend_string }}
{% endif %}
</h3>
</div>
{% if spectacles is defined and spectacles %}
<div class="tc-panel-body">
{% if spectacles_videos is defined and spectacles_videos %}
<div class="tc-masonry-container">
{% for idmultimedia,video in spectacles %}
<div class="tc-block tc-tablet-1_2 tc-spectacles-tpl-b">
{% include "videos/video_titre_v2.inc.html.twig" %}
</div>
{% endfor %}
</div>
{% else %}
<ul class="tc-spectacles-tpl-b tc-clean-list tc-masonry-container">
{% for idspectacle,spectacle in spectacles %}
<li class="tc-tablet-1_2 tc-block">
{% include "spectacles/spectacle_titre.inc.html.twig" %}
</li>
{% endfor %}
</ul>
{% endif %}
</div>
<div class="tc-panel-footer">
{% include 'includes/pagination.inc.html.twig' %}
</div>
{% else %}
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
Il n'y a pas de résultat correspondant à cette recherche
</div>
</div>
</div>
{% endif %}
</section>
</main>
{% endblock %}