templates/spectacles/spectacle_titre.inc.html.twig line 1

Open in your IDE?
  1. {% set url_clean_more = '' %}
  2. {% if spectacle.url_clean_more is defined %}
  3.     {% set url_clean_more = spectacle.url_clean_more %}
  4. {% endif %}
  5. <div class="tc-block-header">
  6.     {% if spectacle.role_header is defined and spectacle.role_header %}
  7.             {% if spectacle.roles is defined and spectacle.roles %}
  8.             <p class="tc-text-label-inline">
  9.                 {% for role in spectacle.roles %}
  10.                     {{ role.role }}
  11.                     {% if role.nopunct is not defined or (role.nopunct is defined and not role.nopunct) %}, {% endif %}
  12.                 {% endfor %}
  13.             </p>
  14.         {% endif %}
  15.     {% endif %}
  16.     <span class="tc-textwrap-titre">
  17.     {% if spectacle.url_custom is defined and spectacle.url_custom %}
  18.             <a href="{{ spectacle.url_custom }}" class="tc-titre tc-text-overflow">{{ spectacle.title|raw }}</a>
  19.     {% else %}
  20.             <a href="{{ thnet }}/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}" class="tc-titre tc-text-overflow">{{ spectacle.title|raw }}</a>
  21.     {% endif %}
  22.     </span>
  23. </div>
  24. <div class="tc-block-body">
  25.     <figure class="tc-media-thumbnail">
  26.         <a href="{{ thnet }}/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}" title="Voir la fiche de ce spectacle">
  27.             {% if iframe_page is defined and iframe_page %}
  28.                 <img class="tc-border-neutral" src="{{ spectacle.vignette_affiche }}" alt="Image de spectacle {{ spectacle.title }}" />
  29.             {% else %}
  30.                 {% if spectacle.vignette_affiche_flou is defined and spectacle.vignette_affiche_flou %}
  31.                     <img class="lazyload tc-border-neutral" src="{{ spectacle.vignette_affiche_flou }}" data-src="{{ spectacle.vignette_affiche }}" alt="Image de spectacle {{ spectacle.title }}" />
  32.                 {% else %}
  33.                 <img class="tc-border-neutral" src="{{ spectacle.vignette_affiche }}"  alt="Image de spectacle {{ spectacle.title }}" />
  34.                 {% endif %}
  35.             {% endif %}
  36.         </a>
  37.         <figcaption class="show-for-sr">
  38.             Image de {{ spectacle.title }}
  39.         </figcaption>
  40.     </figure>
  41.     <div class="tc-block-body-text">
  42.         <p class="tc-textwrap-auteur tc-textwrap-margin">
  43.             {% if spectacle.allpersons is defined and spectacle.allpersons %}
  44.                 {% for idpersons,persons in spectacle.allpersons %}
  45.                 <a href="{{ thnet }}/biographies/{{ persons.url_clean }}/">
  46.                     {{ persons.firstname }} {{ persons.lastname }}</a>{% if persons.nopunct is not defined or (persons.nopunct is defined and not persons.nopunct) %}, {% endif %}
  47.                 {% endfor %}
  48.             {% endif %}
  49.             {% 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) %}
  50.                 {% for idauthors,authors in spectacle.allauthors %}
  51.                     <span>
  52.                         <a href="{{ thnet }}/biographies/{{ authors.url_clean }}/">
  53.                             {{ authors.firstname }} {{ authors.lastname }}</a>
  54.                             {% if authors.nopunct is not defined or (authors.nopunct is defined and not authors.nopunct) %}, {% endif %}
  55.                     </span>
  56.                 {% endfor %}
  57.             {% endif %}
  58.         </p>
  59.         {% if spectacle.type_lectures is defined and spectacle.type_lectures %}
  60.             {% if spectacle.typespectacle is defined and spectacle.typespectacle %}
  61.                 <p class="tc-text-label">{{ spectacle.typespectacle }}</p>
  62.             {% endif %}
  63.         {% else %}
  64.             {% if spectacle.typespectacle is defined and spectacle.typespectacle and spectacle_label_mise_en_scene is defined and spectacle_label_mise_en_scene %}
  65.             <p class="tc-text-label">
  66.                 {{ spectacle.typespectacle }}
  67.             </p>
  68.             {% endif %}
  69.         {% endif %}
  70.         <span class="tc-textwrap-auteur">
  71.             {% if spectacle.alldirectors is defined and spectacle.alldirectors %}
  72.                 {% for iddirector,director in spectacle.alldirectors %}
  73.                     <a href="{{ thnet }}/biographies/{{ director.url_clean }}/">
  74.                     {{ director.firstname }} {{ director.lastname }}</a>
  75.                     {% if director.nopunct is not defined or (director.nopunct is defined and not director.nopunct) %}, {% endif %}
  76.                 {% endfor %}
  77.             {% endif %}
  78.         </span>
  79.     {% if noshow is not defined or noshow == false %}
  80.         {% if spectacle.display.affiche_date_creation is defined and spectacle.display.affiche_date_creation %}
  81.             {% if spectacle.creation_date is defined and spectacle.creation_date %}
  82.             <p class="tc-textwrap-date">
  83.                 Créé en {{ spectacle.annee_creation }}
  84.                 {% if spectacle.contact_creation is defined and pectacle.contact_creation %}
  85.                 <a href="{{ thnet }}/contacts/{{ spectacle.contact_creation.url_clean }}">{{ spectacle.contact_creation.organisation }}</a>
  86.                 {% endif %}
  87.                 {% if spectacle.contact_creation.country is defined and spectacle.contact_creation.country %}
  88.                     {% if spectacle.contact_creation.city is defined and spectacle.contact_creation.city %}
  89.                         {{ spectacle.contact_creation.city }}
  90.                     {% endif %}
  91.                     {{ spectacle.contact_creation.country }}
  92.                 {% endif %}
  93.             </p>
  94.             {% endif %}
  95.         {% else %}
  96.             {% if spectacle.no_date is not defined or spectacle.no_date == false %}
  97.                 {% if spectacle.prochdate is defined and spectacle.prochdate is not empty %}
  98.                     <p class="tc-textwrap-date">
  99.                         {{ spectacle.prochdate }}
  100.                     </p>
  101.                     {% if spectacle.city is defined and spectacle.city%}
  102.                         {% if spectacle.city_top is not defined or spectacle.city_top == false %}
  103.                             <p class="tc-textwrap-lieuville"><span class=tc-text-label-inline> {% trans %}lagarce_scene_a{% endtrans %} </span>{{ spectacle.city }}</p>
  104.                         {% endif %}
  105.                     {% endif %}
  106.                     {% if spectacle.affcontact is defined and spectacle.affcontact %}
  107.                         {% if spectacle.contact is defined and spectacle.contact %}
  108.                            - <a href="{{ thnet }}/contacts/{{ spectacle.contact.url_clean }}/">{{ spectacle.contact.organisation }}</a>
  109.                         {% endif %}
  110.                     {% endif %}
  111.                 {% else%}
  112.                     {% if spectacle.periode is defined and spectacle.periode %}
  113.                         {% if spectacle.footer_date is not defined %}
  114.                         <p class="tc-textwrap-date">
  115.                             <span class="tc-text-label-inline">du</span>
  116.                                 {{ spectacle.periode.datestart }}
  117.                             <span class="tc-text-label-inline">au</span>
  118.                                 {{ spectacle.periode.dateend }}
  119.                         </p>
  120.                             {% if spectacle.city is defined and spectacle.city %}
  121.                                 {% if spectacle.city_top is not defined or spectacle.city_top == false %}
  122.                                 <p class="tc-textwrap-lieuville">
  123.                                     <span class="tc-text-label-inline">{% trans %}lagarce_scene_a{% endtrans %} </span>{{ spectacle.city }}
  124.                                 </p>
  125.                                 {% endif %}
  126.                             {% endif %}
  127.                         {% endif %}
  128.                         {% if spectacle.affcontact is defined and spectacle.affcontact %}
  129.                             {% if spectacle.contact is defined and spectacle.contact %}
  130.                             <p class="tc-textwrap-lieuville">
  131.                                 <a href="{{ thnet }}/contacts/{{ spectacle.contact.url_clean }}/">{{ spectacle.contact.organisation }}</a>
  132.                            </p>
  133.                             {% endif %}
  134.                         {% endif %}
  135.                     {% endif %}
  136.                 {% endif %}
  137.             {% endif %}
  138.             {% if spectacle.editeur_top is defined %}
  139.             <p class="tc-text-label">
  140.                 <span>&Eacute;dité par</span>
  141.                 <a href="{{ thnet }}/editions/{{ spectacle.text.publisher.url_clean }}/">{{ spectacle.text.publisher.organisation }}</a>
  142.             </p>
  143.             {% endif %}
  144.             {% if spectacle.city_top is defined and spectacle.city_top %}
  145.             <p class="tc-textwrap-lieuville"><span class="tc-text-label-inline">{% trans %}lagarce_scene_a{% endtrans %} </span>{{ spectacle.city_top }}</p>
  146.             {% endif %}
  147.         {% endif %}
  148.     {% endif %}
  149.     </div>
  150. </div>
  151. <div class="tc-block-footer">
  152.     {% if spectacle.carrer is defined and spectacle.carrer %}
  153.     <div style="text-align: left">
  154.         {% for idcarrer,carrer in spectacle.carrer %}
  155.             {% if carrer %}
  156.             <span class="tc-bgcolor-{{ idcarrer }} tc-carrer-informations"></span>
  157.             {% else %}
  158.             <span class="" style="width: 10px; height: 10px; display: inline-block; margin-left: 0.2rem; background: rgba(0,0,0,0.1);"></span>
  159.             {% endif %}
  160.         {% endfor %}
  161.     </div>
  162.     {% endif %}
  163.     {% if spectacle.nbRecommandations is defined and spectacle.nbRecommandations %}
  164.         {% set divWidth = 13 * spectacle.nbRecommandations %}
  165.         <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%);">
  166.         </div>
  167.     {% endif %}
  168.     {% if spectacle.footer_critique is defined and spectacle.footer_critique %}
  169.         {% if spectacle.nombre_critique is defined and spectacle.nombre_critique %}
  170.             <p class="tc-textwrap-lieuville">
  171.                 <a href="/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}">{{ spectacle.nombre_critique }} critiques</a>
  172.             </p>
  173.         {% endif %}
  174.     {% endif %}
  175.     {% if spectacle.footer_date is defined and spectacle.footer_date %}
  176.         {% if spectacle.prochdate is defined and spectacle.prochdate %}
  177.             <p class="tc-textwrap-lieuville">{{ spectacle.prochdate }}</p>
  178.         {% elseif spectacle.periode is defined and spectacle.periode %}
  179.             <p class="tc-textwrap-lieuville">
  180.                 <span class="tc-text-label-inline">du</span>
  181.                 {{ spectacle.periode.datestart }}
  182.                 <span class="tc-text-label-inline">au</span>
  183.                 {{ spectacle.periode.dateend }}
  184.             </p>
  185.         {% endif %}
  186.     {% endif %}
  187.     {% if no_lieu is not defined or (no_lieu is defined and not no_lieu) %}
  188.         {% if spectacle.footer_contact is defined and spectacle.footer_contact %}
  189.             {% if spectacle.contact is defined and spectacle.contact %}
  190.             <p class="tc-textwrap-lieuville">
  191.                 <a href="{{ thnet }}/contacts/{{ spectacle.contact.url_clean }}/">{{ spectacle.contact.organisation }}</a>
  192.             </p>
  193.             {% endif %}
  194.             {% if spectacle.coprod is defined and spectacle.coprod %}
  195.             <p class="tc-textwrap-lieuville">
  196.                 <span class="tc-text-label-inline">Coproduction</span>
  197.                 {% for contact in spectacle.coprod %}
  198.                     <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 %}
  199.                 {% endfor %}
  200.             </p>
  201.             {% endif %}
  202.         {% endif %}
  203.     {% endif %}
  204.     {% if aide.description.aide is defined and aide.description.aide %}
  205.         <p class="tc-textwrap-lieuville">{{ aide.description.aide }}</p>
  206.     {% endif %}
  207.     {% if spectacle.eleves is defined and spectacle.eleves %}
  208.     <p class="tc-textwrap-lieuville">
  209.         <span class="tc-text-label-inline">Anciens étudiants :</span>
  210.         {% for idperson,eleve in spectacle.eleves %}
  211.         <a href="{{ thnet }}/biographies/{{ eleve.url_clean }}/">{{ eleve.firstname}} {{ eleve.lastname }}</a>
  212.         {% if eleve.nopunct is not defined or (eleve.nopunct is defined and not eleve.nopunct) %}, {% endif %}
  213.         {% endfor %}
  214.     </p>
  215.     {% endif %}
  216. </div>