{% extends 'templates.html.twig' %}
{% block headcontent %}
{% include "textes/texte_entete.inc.html.twig" %}
{% endblock %}
{% block content %}
<main class="tc-desktop-2_3 tc-phone-1_1">
{% if download_by_mail_request.onGoing is not defined or (download_by_mail_request.onGoing is defined and not download_by_mail_request.onGoing) %}
<div class="tc-block">
<div class="tc-block-body">
{% if date is defined and date %}
<p class="tc-textwrap-lieuville">Écrit en {{ date }} - {{ language|trans }}</p>
{% endif %}
</div>
</div>
{% if abstract is defined and abstract %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>Présentation</h2>
</div>
<div class="tc-panel-body">
<div class="tc-block tc-block-article">
<div class="tc-block-body tc-block-body ">
<div class="tc-block-content-custom">
{{ abstract|raw }}
</div>
</div>
</div>
</div>
</section>
{% endif %}
{% endif %}
{% if video is defined and video %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>Le texte par l'auteur</h2>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
<div class="tc-video-16_9">
<iframe width="{{ video.div_width }}" height="{{ video.div_height }}" webkitallowfullscreen mozallowfullscreen allow="fullscreen" src="/embed/{{ video.code }}?no_title"></iframe>
</div>
<div class="tc-block-body-text">
{% for item in video.texts %}
<a href="/textes/{{ item.url_clean }}/{{ video.url_clean_more }}">{{ video.sujet_titre }}</a>
{% endfor %}
</div>
</div>
</div>
</div>
<div class="tc-panel-footer">
<a href="/textes/{{ url_clean }}/{{ video.url_clean_more }}" class="tc-more-link">Toutes les vidéos</a>
</div>
</section>
{% endif %}
{% if last_podcast is defined and last_podcast %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>écouter</h2>
</div>
<div class="tc-panel-body">
<div class="tc-block">
{% for idpodcast,podcast in last_podcast %}
<div class="tc-block-body">
{{ podcast.player|raw }}
</div>
{% endfor %}
</div>
</div>
<div class="tc-panel-footer">
<a href="/textes/{{ url_clean }}/podcasts" class="tc-more-link">Toutes les émissions</a>
</div>
</section>
{% endif %}
<div class="tc-masonry-container">
<!-- PERSONNAGES -->
{% if personnages is defined and personnages %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context" >
<div class="tc-panel-header">
<h3 class="tc-title-medium">{% trans %}text_info_npeople{% endtrans %}</h3>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body-text tc-clean-list">
{% if nmale is defined and nmale %}<li>{{ nmale }} {% trans %}text_info_nmale{% endtrans %}</li>{% endif %}
{% if nfemale is defined and nfemale %}<li>{{ nfemale }} {% trans %}text_info_nfemale{% endtrans %}</li>{% endif %}
{% if npeople is defined and npeople %}<li>{{ npeople }} </li>{% endif %}
</div>
</div>
</div>
</div>
</section>
{% endif %}
<!-- INFOS DIVERSES -->
{% if help_other is defined and help_other %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context" >
<div class="tc-panel-header">
<h3 class="tc-title-medium">{% trans %}text_title_helpother{% endtrans %}</h3>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body-text">
{{ help_other|raw }}
</div>
</div>
</div>
</div>
</section>
{% endif %}
<!-- Prix -->
{% if laureats_nominations is defined and laureats_nominations %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context">
<div class="tc-panel-header tc-bg-extralight-gray">
<h3>Prix et distinctions</h3>
</div>
{% for prix in laureats_nominations %}
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
{% if prix.aide.contact.profile_picture is defined and prix.aide.contact.profile_picture %}
<figure class="tc-media-thumbnail">
<img src="{{ prix.aide.contact.profile_picture }}" alt="" width="100px">
</figure>
{% endif %}
<div class="tc-block-body-text">
<p>{{ prix.year_start }}</p>
<p>
<a href="/contacts/{{ prix.aide.contact.urlClean }}/{{ prix.aide.type_aide_infos.contact_link }}">{{ prix.aide.aidecontact.title }}</a>
</p>
<span class="prix_type">{{ prix.aide.type_aide_label }}</span>
<span class="prix_detail">{{ prix.aide.aide }}</span>
{% if aide.url is defined and aide.url %}
<div class="prix_aide_contact" style="padding-top:3px;"><a href="{{ aide.url }}" class="popup"><small>+ d'infos</small></a></div>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
{% endif %}
<!-- aides et soutiens -->
{% if type_aides is defined and type_aides %}
{% for k_type_aide,type_aide in type_aides %}
<section class="tc-panel tc-tablet-1_2">
<div class=" tc-border-context ">
<div class="tc-panel-header tc-bg-extralight-gray">
<h3>{{ type_aide.label }}</h3>
</div>
{% if type_aide.aides is defined and type_aide.aides %}
{% for aide in type_aide.aides %}
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
{% if aide.aide.contact.profile_picture is defined and aide.aide.contact.profile_picture %}
<figure class="tc-media-thumbnail">
<img class=" tc-border-neutral" src="{{ aide.aide.contact.profile_picture }}" width="100px" />
</figure>
{% endif %}
<div class="tc-block-body-text">
<p>{{ aide.year_start }}</p>
<p>{{ aide.aide.aidecontact.title }}</p>
<p>{{ aide.aide.aide }}</p>
<p><a href="/contacts/{{ aide.aide.contact.urlClean }}/{{ k_type_aide }}/">{{ aide.aide.contact.organisation }}</a></p>
{% if aide.url is defined and aide.url %}
<p class="prix_aide_contact"><a href="{{ aide.url }}">+ d'infos</a></p>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>
</section>
{% endfor %}
{% endif %}
<!-- proposition de demande de téléchargement du texte par email -->
{% if download_text_by_mail_proposal is defined and download_text_by_mail_proposal %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context">
<div class="tc-panel-header tc-bg-extralight-gray">
<h3>Recevoir le texte par mail</h3>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
<div class="tc-nlock-body-text">
<p>Nous vous proposons de vous mettre en relation avec l'auteur, un comité de lecture ou une association qui pourra vous adresser le manuscrit par mail.</p>
<a href="?demande-texte-par-email"
style="
display: block;
-webkit-appearance: none;
width: 70%;
margin: 20px auto 0;
border: 1px solid transparent;
transition: background-color .25s ease-out;
font-size: 1.2rem;
text-align: center;
cursor: pointer;
background-color: #499e9b;
color: #fff;
padding: .5em;
"
onmouseover="this.style.backgroundColor='#2c5f5d';"
onmouseout="this.style.backgroundColor='#499e9b';"
>
Lire le texte
</a>
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}
<!-- Proposition de téléchargement du texte par url -->
{% if download_text_by_url_proposal is defined and download_text_by_url_proposal %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context">
<div class="tc-panel-header tc-bg-extralight-gray">
<h3>Télécharger le texte</h3>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
<div class="tc-block-body-text">
<p>Nous vous proposons de vous mettre en relation avec une association qui vous propose un lien de téléchargement du manuscrit.</p>
<a href="{{ download_text_by_url_proposal.url }}"
id="download-text-by-url-btn"
target="_blank"
style="
display: block;
-webkit-appearance: none;
width: 70%;
margin: 20px auto 0;
border: 1px solid transparent;
transition: background-color .25s ease-out;
font-size: 1.2rem;
text-align: center;
cursor: pointer;
background-color: #499e9b;
color: #fff;
padding: .5em;
"
onmouseover="this.style.backgroundColor='#2c5f5d';"
onmouseout="this.style.backgroundColor='#499e9b';"
>
Lire le texte
</a>
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}
<!-- Demande de téléchargement du texte par email -->
{% if download_by_mail_request.onGoing is defined and download_by_mail_request.onGoing %}
<section class="tc-panel">
<div class="tc-panel-header">
<h2>Demande de manuscrit</h2>
</div>
<div class="tc-block-body">
<div class="tc-block">
<div class="tc-block-body">
{% if userIsConnected is defined and userIsConnected %}
{% if download_by_mail_request.mail_sent_message.success is not defined %}
{% if download_by_mail_request.mail_sent_message.failure is defined %}
<p style="color: red;">{download_by_mail_request[mail_sent_message][failure]}</p>
{% endif %}
<p>Merci de nous décrire les raisons de votre commande pour que nous puissions en informer le(s) auteur(s) et/ou traducteur(s). Champ obligatoire.</p>
{{ form_start(form) }}
{{ form_row(form.mail_message) }}
<p>Votre adresse de correspondance : <a href="#">{{ download_by_mail_request.userEmail}}</a></p>
<p>Cette adresse est associée à votre compte « Mon théatre ». Si vous souhaitez recevoir le manuscrit à une autre adresse, merci de <a href="/montheatre/regions">modifier votre compte</a>.</p>
{{ form_row(form.validation) }}
{{ form_end(form) }}
{% else %}
<p style="color: #499e9b;">{{ download_by_mail_request.mail_sent_message.success }}</p>
{% endif %}
{% else %}
{% if url_clean is defined and url_clean %}
<p>Veuillez vous <a href="http://theatre.localhost/montheatre/connexion/?urifrom=/textes/{{ url_clean }}?demande-texte-par-email&entete_connexion=">connecter</a> ou <a href="https://www.theatre-contemporain.net/montheatre/inscription?urifrom=/textes/{{ url_clean }}?demande-texte-par-email">créer un compte</a></p>
{% else %}
<p>Veuillez vous <a href="https://www.theatre-contemporain.net/montheatre/connexion/?urifrom=/&entete_connexion=">connecter</a> ou <a href="https://www.theatre-contemporain.net/montheatre/inscription">créer un compte</a></p>
{% endif %}
{% endif %}
</div>
</div>
</div>
</section>
{% endif %}
<!-- Aide à la création -->
{% if text_aide_creation is defined and text_aide_creation %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context">
<div class="tc-panel-header">
<h3 class="tc-title-medium">Aide à la création d'Artcena</h3>
</div>
{% for prix in text_aide_creation is defined %}
<div class="tc-panel-body">
<div class="tc-block-body">
<div class="tc-block-body-text">
<p>{{ prix.aide.mention_texts }}</p>
<p>{{ prix.year_start }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
{% endif %}
<!-- Aide à la traduction -->
{% if text_aide_traduction is defined and text_aide_traduction %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context">
<div class="tc-panel-header">
<h3 class="tc-title-medium">Aide à la traduction</h3>
</div>
<div class="tc-panel-body tc-masonry-container">
{% for aide in text_aide_traduction %}
<div class="tc-block">
<div class="tc-block-body">
<div class="tc-block-body-text">
<p>{{ aide.aide.mention_texts }} - <a href="/contacts/{{ aide.aide.contact.url_clean }}/">{{ aide.aide.contact.organisation }}</a></p>
<p>{{ aide.year_start }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
{% endif %}
<!-- AUTORISATION DE REPRESENTATION -->
<!-- si perfoming_contact == publisher -->
{% if request_performing is defined and request_performing %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context" >
<div class="tc-panel-header">
<h3 class="tc-title-medium" >{% trans %}text_title_authperforming{% endtrans %}</h3>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
<div class="tc-block-body-text">
<p class="infolegale">{% trans %}text_title_authperforming_mention{% endtrans %}</p>
{% if request_performing_text is defined and request_performing_text %}
<p>{{ request_performing_text|raw }}</p>
{% endif %}
{% if performing_is_publisher is defined and performing_is_publisher %}
<p>{% trans %}text_title_authperforming_mentionb{% endtrans %}</p>
{% else %}
<p{% include 'textes/performing_contact.inc.html.twig' %}
{% endif %}
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}
<!-- AUTORISATION DE TRADUCTION -->
{% if request_translation is defined and request_translation %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context" >
<div class="tc-panel-header">
<h3 class="tc-title-medium" >{% trans %}text_title_authtranslation{% endtrans %}</h3>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
<p class="infolegale">{% trans %}text_title_authtranslation_mention{% endtrans %}</p>
{% if request_translation_text is defined and request_translation_text %}
<p>{{ request_translation_text|raw }}</p>
{% endif %}
{% if translation_is_publisher is defined and translation_is_publisher%}
<p>{% trans %}text_title_authtranslation_mentionb{% endtrans %}</p>
{% else %}
<p{% include 'textes/translation_contact.inc.html.twig' %}
{% endif %}
</div>
</div>
</div>
</div>
</section>
{% endif %}
<!-- COMPLEMENT INFORMATION -->
{% if moreinfo is defined and moreinfo %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context" >
<div class="tc-panel-header">
<h3 class="tc-title-medium">{% trans %}text_title_informations{% endtrans %}</h3>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
<div class="tc-block-body-text">
<p>{{ moreinfo|raw }}</p>
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}
<!-- AIDE TRADUCTION -->
{% if help_translation is defined and help_translation %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context" >
<div class="tc-panel-header">
<h3 class="tc-title-medium">{% trans %}text_title_helptranslation{% endtrans %}</h3>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
<div class="tc-block-body-text">
<p>{{ help_translation|raw }}</p>
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}
<!-- AIDE PUBLICATION -->
{% if help_publishing is defined and help_publishing %}
<section class="tc-panel tc-tablet-1_2">
<div class="tc-border-context" >
<div class="tc-panel-header">
<h3 class="tc-title-medium">{% trans %}text_title_helppublishing{% endtrans %}}</h3>
</div>
<div class="tc-panel-body">
<div class="tc-block">
<div class="tc-block-body">
<div class="tc-block-body-text">
<p>{{ help_publishing|raw }}</p>
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}
{% if spectacles.current is defined and spectacles.current %}
<section class="tc-panel tc-tablet-1_2 tc-spectacles-tpl-b">
<div class="tc-border-context">
<div class="tc-panel-header tc-bg-extralight-gray">
<h3>À l'affiche</h3>
</div>
<div class="tc-panel-body">
{% if spectacles.current.spectacles is defined and spectacles.current.spectacles %}
{% for idspectacle,spectacle in spectacles.current.spectacles %}
<div class="tc-block">
{% include 'spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
{% endif %}
{% if spectacles.current.lectures is defined and spectacles.current.lectures %}
{% for idspectacle,spectacle in spectacles.current.lectures %}
<div class="tc-block">
{% include 'spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
{% endif %}
</div>
</div>
</section>
{% endif %}
{% if spectacles_traductions.current is defined and spectacles_traductions.current %}
<section class="tc-panel tc-tablet-1_2 tc-spectacles-tpl-b">
<div class="tc-border-context">
<div class="tc-panel-header tc-bg-extralight-gray">
<h3>À l'affiche en traduction</h3>
</div>
<div class="tc-panel-body">
{% if spectacles_traductions.current.spectacles is defined and spectacles_traductions.current.spectacles %}
{% for idspectacle,spectacle in spectacles_traductions.current.spectacles %}
<div class="tc-block">
{% include 'spectacles/spectacle_titre.inc.html.twig' %}
</div>
{% endfor %}
{% endif %}
</div>
</div>
</section>
{% endif %}
{% if derniers_culturebox is defined and derniers_culturebox is not empty %}
<section class="tc-panel tc-desktop-1_1">
<div class="tc-panel-header tc-neutral-color tc-panel-header-bg-color">
<img src="{{ racine_site }}/images/icones/logo-culture-box.png" alt="Culturebox"/>
<h2>Culturebox</h2>
<p class="tc-subtitle">(Re)voir les captations intégrales </p>
</div>
{% for idpodcast,podcast in derniers_culturebox %}
<div class="tc-panel-body" style="padding-top: 0; margin-top:0;">
<div class="tc-block">
{% include '/podcasts/culturebox_titre.inc.html.twig' %}
</div>
</div>
{% endfor %}
<div class="tc-panel-footer">
{# TODO Cette route n'existe pas !!! #}
<a href="/culturebox/view/filtre/all" class="tc-more-link">Toutes les captations</a>
</div>
</section>
{% endif %}
</div>
</main>
{% endblock %}
{% block javascripts %}
<script src="{{ racine_site }}/navigation/js/france-culture/iframe-size.js"></script>
<script src="{{ racine_site }}/navigation/js/france-inter/iframe-size.js"></script>
{% endblock %}