{% extends 'templates.html.twig' %}
{% block content %}
<section class="tc-header row">
<header class="tc-panel">
<div class="tc-panel-header">
<h1>
{% if country_name is defined and country_name %}
{{ country_name|raw }}
{% else %}
région {{ region_name|raw }}
{% endif %}
</h1>
</div>
</header>
{% for idaside,aside_content in aside_top %}
{% include aside_content.html~".twig" %}
{% endfor %}
</section>
{% include 'includes/navigation.inc.html.twig' %}
<main class="tc-desktop-2_3 tc-phone-1_1">
{% if video_tete is defined and video_tete %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>À la Une & en vidéo</h2>
</div>
{% for video in video_tete %}
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body tc-no-padding-mobile">
<div class="tc-video-16_9">
<iframe id="iframe_thtv" title="iframe pour le lecteur vidéo de théatre-contemporain : {{ video.sujet_titre }}" src="/embed/{{ video.code }}?no_title&autostart" allow="fullscreen"></iframe>
</div>
<div class="tc-block-body-text">
{% if video.spectacles is defined and video.spectacles %}
{% for k,v in video.spectacles %}
<a href="/spectacles/{{ v.url_clean }}/videos/{{ video.url_clean }}">{{ video.sujet_titre }}</a>
{% endfor %}
{% else %}
<a href="/video/{{ video.url_clean }}">{{ video.sujet_titre }}</a>
{% endif %}
</div>
</div>
</div>
</div>
<div class="tc-panel-footer">
{% for k,v in video.spectacles %}
<a href="/spectacles/{{ v.url_clean }}" class="tc-more-link">Plus d'infos</a>
{% endfor %}
</div>
{% endfor %}
<!--<div class="tc-panel-footer">-->
<!--{if:video_tete[spectacle]}-->
<!--<a href="/spectacles/{video_tete[spectacle][url_clean]}/videos" class="tc-more-link">Plus d'infos</a>-->
<!--{else:}-->
<!--{foreach:video_tete[media],video}-->
<!--<a href="/video/{video[url_clean]}" class="tc-more-link">Plus d'infos</a>-->
<!--{end:}-->
<!--{end:}-->
<!--</div>-->
</section>
{% endif %}
{% if spectacles_affiche is defined and spectacles_affiche %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>Prochainement à l'affiche</h2>
</div>
<div class="tc-panel-body tc-masonry-container tc-spectacles-tpl-b">
{% for idspectacle,spectacle in spectacles_affiche %}
<div class="tc-block tc-tablet-1_2 tc-spectacles-tpl-b">
{% include '/spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
</div>
<div class="tc-panel-footer">
<a href="/spectacles/theatre/region/area/{{ area }}" class="tc-more-link">Tous les spectacles</a>
</div>
</section>
{% endif %}
{% if videos_affiche is defined and videos_affiche is not empty %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>À l'affiche & en vidéo</h2>
</div>
<div class="tc-panel-body tc-masonry-container tc-spectacles-tpl-b">
{% for idmultimedia,video in videos_affiche %}
<div class="tc-block tc-tablet-1_2">
{% include '/videos/video_titre_v2.inc.html.twig' %}
</div>
{% endfor %}
</div>
<div class="tc-panel-footer">
<a href="/spectacles/theatre/region-videos/area/{{ area }}?d=365&idtypestructure=ALL" class="tc-more-link">Tous les spectacles</a>
</div>
</section>
{% endif %}
{% if persons is defined and persons is not empty %}
<section class="tc-panel tc-bg-extralight-gray">
<div class="tc-panel-header">
<h2>Auteurs contemporains à l'affiche</h2>
</div>
<div class="tc-panel-body">
{% for id,person in persons %}
<div class="tc-block tc-no-bg tc-phone-1_2 tc-tablet-1_4">
<div class="tc-block-body-expand">
<figure>
<a href="/biographies/{{ person.url_clean }}/">
{% if person.photo is defined and person.photo %}
<img class="tc-media-hcentered" src="{{ person.photo }}" alt="Photographie de {{ person.lastname }} {{ person.firstname }}"/>
{% else %}
<img class="tc-media-hcentered" src="/images/menu/interface/no_user_v5.png" alt="Pas de photographie"/>
{% endif %}
</a>
<figcaption>
<a class="tc-neutral-color" href="/biographies/{{ person.url_clean }}/">
{% if person.firstname is defined and person.firstname %}
{{ person.firstname }}
{% endif %}
<span class="tc-format-block-uppercase">{{ person.lastname }}</span></a>
</figcaption>
</figure>
</div>
</div>
{% endfor %}
</div>
<div class="tc-panel-footer">
<a href="/biographies/spectacles/affiche/filtre/photos/area/{{ area }}/periode/all?d=365" class="tc-more-link">Tous les auteurs à l'affiche</a>
</div>
</section>
{% endif %}
{% if textes_par_auteurs is defined and textes_par_auteurs is not empty %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>Les textes par leurs auteurs</h2>
</div>
<div class="tc-panel-body tc-masonry-container ">
{% for idtext,text in textes_par_auteurs %}
<div class="tc-block tc-tablet-1_2 tc-phone-1_1">
{% include '/textes/texte-par-auteur.inc.html.twig' %}
</div>
{% endfor %}
</div>
<div class="tc-panel-footer">
<a href="textes/editions/auteurs-spectacles/area/{{ area }}?d=365" class="tc-more-link">Tous les textes par leurs auteurs à l'affiche</a>
</div>
</section>
{% endif %}
{% if critiques_spectacles is defined and critiques_spectacles is not empty %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>À l'affiche avec critiques</h2>
</div>
<div class="tc-panel-body">
<div class="tc-masonry-container">
{% for idspectacle,spectacle in critiques_spectacles %}
<div class="tc-spectacles-tpl-a tc-tablet-1_2 tc-block">
{% include 'spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
</div>
</div>
<div class="tc-panel-footer">
<a href="/critiques/spectacles/area/{{ area }}?d=365" class="tc-more-link">Tous les spectacles avec critiques</a>
</div>
</section>
{% endif %}
{% if spectacles_educ is defined and spectacles_educ is not empty %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>Accompagnement pédagogique</h2>
</div>
<div class="tc-panel-body">
<div class="tc-masonry-container">
{% for idspectacle,spectacle in spectacles_educ %}
<div class="tc-spectacles-tpl-a tc-tablet-1_2 tc-block">
{% include 'spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
</div>
</div>
<div class="tc-panel-footer">
<a href="/educ/spectacles/type/prochains/area/{{ area }}" class="tc-more-link">Tous les accompagnements pédagogiques</a>
</div>
</section>
{% endif %}
{% if spectacles_affiche_dans is defined and spectacles_affiche_dans is not empty %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>À l'affiche dans les...</h2>
</div>
<div class="tc-panel-body">
{% if spectacles_affiche_by_contact is defined and spectacles_affiche_by_contact %}
{% for classification in spectacles_affiche_by_contact %}
<section class="tc-panel">
{% if classification.spectacles is defined and classification.spectacles %}
{% if classification.classification is defined and classification.classification %}
<div class="tc-panel-header tc-contacts-tpl-">
<h3 class="tc-titre">{{ classification.classification }}</h3>
</div>
{% endif %}
<div class="tc-panel-body">
<div class="tc-masonry-container">
{% for idspectacle,spectacle in classification.spectacles %}
<div class="tc-block tc-tablet-1_2 tc-spectacles-tpl-b">
{% include '/spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
<div class="tc-panel-footer">
{% if classification.no_link is defined and classification.no_link %}
{% else %}
<a class="tc-more-link" href="/spectacles/liste/structures?idtypestructure={{ classification.idtypestructure }}">Tous les spectacles dans les {% if classification.classification_nomaj is defined and classification.classification_nomaj %}{{ classification.classification_nomaj }}{% endif %}</a>
{% endif %}
</div>
</section>
{% endfor %}
{% endif %}
{% if spectacles_soutien is defined and spectacles_soutien %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>Fonds d'insertions professionnels</h2>
<h3>Spectacles soutenus par les écoles supérieures de théâtre</h3>
</div>
<div class="tc-panel-header tc-contacts-tpl-">
<h3 class="tc-titre"></h3>
</div>
<div class="tc-panel-body tc-masonry-container">
{% for idspectacle,spectacle in spectacles_soutien %}
<div class="tc-block tc-tablet-1_2 tc-spectacles-tpl-b">
{% include '/spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
</div>
<div class="tc-panel-footer">
<a class="tc-more-link" href="/contacts/Le-Jeune-Theatre-National/spectacles/">Tous les spectacles soutenus par le JTN</a>
</div>
</section>
{% endif %}
</div>
</section>
<section class="tc-panel tc-editions-tpl-a">
<div class="tc-panel-footer">
<a href="/ecoles/en-scene/type/soutiens/periode/prochains" class="tc-more-link">Tous les spectacles soutenus</a>
</div>
</section>
{% endif %}
</main>
{% endblock %}