{% set url_clean_more = '' %}
{% if spectacle.url_clean_more is defined %}
{% set url_clean_more = spectacle.url_clean_more %}
{% endif %}
<div class="tc-block-header">
{% if spectacle.role_header is defined and spectacle.role_header %}
{% if spectacle.roles is defined and spectacle.roles %}
<p class="tc-text-label-inline">
{% for role in spectacle.roles %}
{{ role.role }}
{% if role.nopunct is not defined or (role.nopunct is defined and not role.nopunct) %}, {% endif %}
{% endfor %}
</p>
{% endif %}
{% endif %}
<span class="tc-textwrap-titre">
{% if spectacle.url_custom is defined and spectacle.url_custom %}
<a href="{{ spectacle.url_custom }}" class="tc-titre tc-text-overflow">{{ spectacle.title|raw }}</a>
{% else %}
<a href="{{ thnet }}/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}" class="tc-titre tc-text-overflow">{{ spectacle.title|raw }}</a>
{% endif %}
</span>
</div>
<div class="tc-block-body">
<figure class="tc-media-thumbnail">
<a href="{{ thnet }}/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}" title="Voir la fiche de ce spectacle">
{% if iframe_page is defined and iframe_page %}
<img class="tc-border-neutral" src="{{ spectacle.vignette_affiche }}" alt="Image de spectacle {{ spectacle.title }}" />
{% else %}
{% if spectacle.vignette_affiche_flou is defined and spectacle.vignette_affiche_flou %}
<img class="lazyload tc-border-neutral" src="{{ spectacle.vignette_affiche_flou }}" data-src="{{ spectacle.vignette_affiche }}" alt="Image de spectacle {{ spectacle.title }}" />
{% else %}
<img class="tc-border-neutral" src="{{ spectacle.vignette_affiche }}" alt="Image de spectacle {{ spectacle.title }}" />
{% endif %}
{% endif %}
</a>
<figcaption class="show-for-sr">
Image de {{ spectacle.title }}
</figcaption>
</figure>
<div class="tc-block-body-text">
<p class="tc-textwrap-auteur tc-textwrap-margin">
{% if spectacle.allpersons is defined and spectacle.allpersons %}
{% for idpersons,persons in spectacle.allpersons %}
<a href="{{ thnet }}/biographies/{{ persons.url_clean }}/">
{{ persons.firstname }} {{ persons.lastname }}</a>{% if persons.nopunct is not defined or (persons.nopunct is defined and not persons.nopunct) %}, {% endif %}
{% endfor %}
{% endif %}
{% if (spectacle.noshow_allauthors is not defined or (spectacle.noshow_allauthors is defined and not spectacle.noshow_allauthors)) and (spectacle.allauthors is defined and spectacle.allauthors) %}
{% for idauthors,authors in spectacle.allauthors %}
<span>
<a href="{{ thnet }}/biographies/{{ authors.url_clean }}/">
{{ authors.firstname }} {{ authors.lastname }}</a>
{% if authors.nopunct is not defined or (authors.nopunct is defined and not authors.nopunct) %}, {% endif %}
</span>
{% endfor %}
{% endif %}
</p>
{% if spectacle.type_lectures is defined and spectacle.type_lectures %}
{% if spectacle.typespectacle is defined and spectacle.typespectacle %}
<p class="tc-text-label">{{ spectacle.typespectacle }}</p>
{% endif %}
{% else %}
{% if spectacle.typespectacle is defined and spectacle.typespectacle and spectacle_label_mise_en_scene is defined and spectacle_label_mise_en_scene %}
<p class="tc-text-label">
{{ spectacle.typespectacle }}
</p>
{% endif %}
{% endif %}
<span class="tc-textwrap-auteur">
{% if spectacle.alldirectors is defined and spectacle.alldirectors %}
{% for iddirector,director in spectacle.alldirectors %}
<a href="{{ thnet }}/biographies/{{ director.url_clean }}/">
{{ director.firstname }} {{ director.lastname }}</a>
{% if director.nopunct is not defined or (director.nopunct is defined and not director.nopunct) %}, {% endif %}
{% endfor %}
{% endif %}
</span>
{% if noshow is not defined or noshow == false %}
{% if spectacle.display.affiche_date_creation is defined and spectacle.display.affiche_date_creation %}
{% if spectacle.creation_date is defined and spectacle.creation_date %}
<p class="tc-textwrap-date">
Créé en {{ spectacle.annee_creation }}
{% if spectacle.contact_creation is defined and pectacle.contact_creation %}
<a href="{{ thnet }}/contacts/{{ spectacle.contact_creation.url_clean }}">{{ spectacle.contact_creation.organisation }}</a>
{% endif %}
{% if spectacle.contact_creation.country is defined and spectacle.contact_creation.country %}
{% if spectacle.contact_creation.city is defined and spectacle.contact_creation.city %}
{{ spectacle.contact_creation.city }}
{% endif %}
{{ spectacle.contact_creation.country }}
{% endif %}
</p>
{% endif %}
{% else %}
{% if spectacle.no_date is not defined or spectacle.no_date == false %}
{% if spectacle.prochdate is defined and spectacle.prochdate is not empty %}
<p class="tc-textwrap-date">
{{ spectacle.prochdate }}
</p>
{% if spectacle.city is defined and spectacle.city%}
{% if spectacle.city_top is not defined or spectacle.city_top == false %}
<p class="tc-textwrap-lieuville"><span class=tc-text-label-inline> {% trans %}lagarce_scene_a{% endtrans %} </span>{{ spectacle.city }}</p>
{% endif %}
{% endif %}
{% if spectacle.affcontact is defined and spectacle.affcontact %}
{% if spectacle.contact is defined and spectacle.contact %}
- <a href="{{ thnet }}/contacts/{{ spectacle.contact.url_clean }}/">{{ spectacle.contact.organisation }}</a>
{% endif %}
{% endif %}
{% else%}
{% if spectacle.periode is defined and spectacle.periode %}
{% if spectacle.footer_date is not defined %}
<p class="tc-textwrap-date">
<span class="tc-text-label-inline">du</span>
{{ spectacle.periode.datestart }}
<span class="tc-text-label-inline">au</span>
{{ spectacle.periode.dateend }}
</p>
{% if spectacle.city is defined and spectacle.city %}
{% if spectacle.city_top is not defined or spectacle.city_top == false %}
<p class="tc-textwrap-lieuville">
<span class="tc-text-label-inline">{% trans %}lagarce_scene_a{% endtrans %} </span>{{ spectacle.city }}
</p>
{% endif %}
{% endif %}
{% endif %}
{% if spectacle.affcontact is defined and spectacle.affcontact %}
{% if spectacle.contact is defined and spectacle.contact %}
<p class="tc-textwrap-lieuville">
<a href="{{ thnet }}/contacts/{{ spectacle.contact.url_clean }}/">{{ spectacle.contact.organisation }}</a>
</p>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if spectacle.editeur_top is defined %}
<p class="tc-text-label">
<span>Édité par</span>
<a href="{{ thnet }}/editions/{{ spectacle.text.publisher.url_clean }}/">{{ spectacle.text.publisher.organisation }}</a>
</p>
{% endif %}
{% if spectacle.city_top is defined and spectacle.city_top %}
<p class="tc-textwrap-lieuville"><span class="tc-text-label-inline">{% trans %}lagarce_scene_a{% endtrans %} </span>{{ spectacle.city_top }}</p>
{% endif %}
{% endif %}
{% endif %}
</div>
</div>
<div class="tc-block-footer">
{% if spectacle.carrer is defined and spectacle.carrer %}
<div style="text-align: left">
{% for idcarrer,carrer in spectacle.carrer %}
{% if carrer %}
<span class="tc-bgcolor-{{ idcarrer }} tc-carrer-informations"></span>
{% else %}
<span class="" style="width: 10px; height: 10px; display: inline-block; margin-left: 0.2rem; background: rgba(0,0,0,0.1);"></span>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if spectacle.nbRecommandations is defined and spectacle.nbRecommandations %}
{% set divWidth = 13 * spectacle.nbRecommandations %}
<div class="tc-point-stats" style="width: {{ divWidth }}px; filter: brightness(0) saturate(100%) invert(63%) sepia(25%) saturate(1630%) hue-rotate(57deg) brightness(91%) contrast(86%);">
</div>
{% endif %}
{% if spectacle.footer_critique is defined and spectacle.footer_critique %}
{% if spectacle.nombre_critique is defined and spectacle.nombre_critique %}
<p class="tc-textwrap-lieuville">
<a href="/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}">{{ spectacle.nombre_critique }} critiques</a>
</p>
{% endif %}
{% endif %}
{% if spectacle.footer_date is defined and spectacle.footer_date %}
{% if spectacle.prochdate is defined and spectacle.prochdate %}
<p class="tc-textwrap-lieuville">{{ spectacle.prochdate }}</p>
{% elseif spectacle.periode is defined and spectacle.periode %}
<p class="tc-textwrap-lieuville">
<span class="tc-text-label-inline">du</span>
{{ spectacle.periode.datestart }}
<span class="tc-text-label-inline">au</span>
{{ spectacle.periode.dateend }}
</p>
{% endif %}
{% endif %}
{% if no_lieu is not defined or (no_lieu is defined and not no_lieu) %}
{% if spectacle.footer_contact is defined and spectacle.footer_contact %}
{% if spectacle.contact is defined and spectacle.contact %}
<p class="tc-textwrap-lieuville">
<a href="{{ thnet }}/contacts/{{ spectacle.contact.url_clean }}/">{{ spectacle.contact.organisation }}</a>
</p>
{% endif %}
{% if spectacle.coprod is defined and spectacle.coprod %}
<p class="tc-textwrap-lieuville">
<span class="tc-text-label-inline">Coproduction</span>
{% for contact in spectacle.coprod %}
<a href="{{ thnet }}/contacts/{{ contact.url_clean }}/spectacles/type/prod">{{ contact.organisation }}</a>{% if contact.nopunct is not defined or (contact.nopunct is defined and not contact.nopunct) %}, {% endif %}
{% endfor %}
</p>
{% endif %}
{% endif %}
{% endif %}
{% if aide.description.aide is defined and aide.description.aide %}
<p class="tc-textwrap-lieuville">{{ aide.description.aide }}</p>
{% endif %}
{% if spectacle.eleves is defined and spectacle.eleves %}
<p class="tc-textwrap-lieuville">
<span class="tc-text-label-inline">Anciens étudiants :</span>
{% for idperson,eleve in spectacle.eleves %}
<a href="{{ thnet }}/biographies/{{ eleve.url_clean }}/">{{ eleve.firstname}} {{ eleve.lastname }}</a>
{% if eleve.nopunct is not defined or (eleve.nopunct is defined and not eleve.nopunct) %}, {% endif %}
{% endfor %}
</p>
{% endif %}
</div>