templates/contacts/spectacle_critique_titre.inc.html.twig line 1

Open in your IDE?
  1. <div class="tc-block-inner">
  2.     <div class="tc-block-header">
  3.         {% if spectacle.role_header is defined and spectacle.role_header %}
  4.             {% if spectacle.roles is defined and spectacle.roles %}
  5.                 <p class="tc-text-label-inline">
  6.                     {% for role in spectacle.roles %}
  7.                         {{ role.role }}
  8.                         {% if role.nopunct is not defined or (role.nopunct is defined and not role.nopunct) %}, {% endif %}
  9.                     {% endfor %}
  10.                 </p>
  11.             {% endif %}
  12.         {% endif %}
  13.         <span class="tc-textwrap-titre">
  14.             {% set url_clean_more = '' %}
  15.             {% if spectacle.url_clean_more is defined %}
  16.                 {% set url_clean_more = spectacle.url_clean_more %}
  17.             {% endif %}
  18.             <a href="/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}" class="tc-titre tc-text-overflow">{{ spectacle.title|raw }}</a>
  19.         </span>
  20.     </div>
  21.     <div class="tc-block-body">
  22.         <figure class="tc-media-thumbnail">
  23.             <a href="/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}" title="Voir la fiche de ce spectacle">
  24.                 <img src="{{ spectacle.vignette_affiche }}" class="tc-border-neutral" alt="{{ spectacle.title }}" />
  25.             </a>
  26.             <figcaption class="show-for-sr">
  27.                 Image de {{ spectacle.title }}
  28.             </figcaption>
  29.         </figure>
  30.         <div class="tc-block-body-text">
  31.             {% if spectacle.allpersons is defined and spectacle.allpersons %}
  32.             <p class="tc-textwrap-auteur tc-textwrap-margin">
  33.                 {% for idpersons,persons in spectacle.allpersons %}
  34.                 <a href="/biographies/{{ persons.url_clean }}/">
  35.                     {{ persons.firstname }} {{ persons.lastname }}</a>{% if persons.nopunct is not defined or persons.nopunct == false %}, {% endif %}
  36.                 {% endfor %}
  37.             </p>
  38.             {% endif %}
  39.             {% if spectacle.allauthors is defined and spectacle.allauthors %}
  40.                 {% for idauthors,authors in spectacle.allauthors %}
  41.                     <p class="tc-textwrap-auteur tc-textwrap-margin">
  42.                         <a href="/biographies/{{authors.url_clean }}/">
  43.                             {{ authors.firstname }} {authors.lastname }}</a>{% if authors.nopunct is not defined or authors.nopunct == false %}, {% endif %}
  44.                     </p>
  45.                 {% endfor %}
  46.             {% endif %}
  47.             {% if spectacle.allauthors is defined and spectacle.allauthors %}
  48.                 {% for spectacle,alldirectors in spectacle.allauthors %}
  49.                     <p class="tc-textwrap-auteur tc-textwrap-margin">
  50.                         <a href="/biographies/{{ director.url_clean }}/">
  51.                             {{ director.firstname }} {director.lastname }}</a>{% if director.nopunct is not defined or director.nopunct == false %}, {% endif %}
  52.                     </p>
  53.                 {% endfor %}
  54.             {% endif %}
  55.             {% if spectacle.display.affiche_date_creation is defined and spectacle.display.affiche_date_creation %}
  56.                 {% if spectacle.creation_date is defined and spectacle.creation_date %}
  57.                 <p class="tc-textwrap-date">
  58.                     Créé en {{ spectacle.annee_creation }}
  59.                     {% if spectacle.contact_creation is defined and spectacle.contact_creation %}
  60.                         <a href="/contacts/{{ spectacle.contact_creation.url_clean }}">{{ spectacle.contact_creation.organisation }}</a>
  61.                         {% if spectacle.contact_creation.country is defined and spectacle.contact_creation.country %}
  62.                             {% if spectacle.contact_creation.city is defined and spectacle.contact_creation.city %}
  63.                                 {{ spectacle.contact_creation.city }}
  64.                             {% endif %}
  65.                             {{ spectacle.contact_creation.country }}
  66.                         {% endif %}
  67.                     {% endif %}
  68.                 </p>
  69.                 {% endif %}
  70.             {% else %}
  71.                 {% if no_date is not defined or no_date == false %}
  72.                     {% if spectacle.prochdate is defined and spectacle.prochdate %}
  73.                         <p class="tc-textwrap-date">
  74.                             {{ spectacle.prochdate }}
  75.                         </p>
  76.                         {% if spectacle.city is defined and spectacle.city %}
  77.                             {% if spectacle.city_top is not defined or spectacle.city_top == false %}
  78.                                 <p class="tc-textwrap-lieuville"><span class=tc-text-label-inline> à </span>{{ spectacle.city }}</p>
  79.                             {% endif %}
  80.                         {% endif %}
  81.                         {% if spectacle.affcontact is defined and spectacle.affcontact %}
  82.                             {% if spectacle.contact is defined and spectacle.contact %}
  83.                                - <a href="/contacts/{{ spectacle.contact.url_clean }}/">{{ spectacle.contact.organisation }}</a>
  84.                             {% endif %}
  85.                         {% endif %}
  86.                     {% else %}
  87.                         {% if spectacle.periode is defined and spectacle.periode %}
  88.                             {% if spectacle.footer_date is not defined or spectacle.footer_date == false %}
  89.                             <p class="tc-textwrap-date">
  90.                                 <span class="tc-text-label-inline">du</span>
  91.                                     {{ spectacle.periode.datestart }}
  92.                                 <span class="tc-text-label-inline">au</span>
  93.                                     {{ spectacle.periode.dateend }}
  94.                             </p>
  95.                                 {% if spectacle.city is defined and spectacle.city %}
  96.                                     {% if spectacle.city_top is not defined or spectacle.city_top == false %}
  97.                                     <p class="tc-textwrap-lieuville">
  98.                                         <span class="tc-text-label-inline">à </span>{{ spectacle.city }}
  99.                                     </p>
  100.                                     {% endif %}
  101.                                 {% endif %}
  102.                             {% endif %}
  103.                             {% if spectacle.affcontact is defined and spectacle.affcontact %}
  104.                                 {% if spectacle.contact is defined and spectacle.contact %}
  105.                                 <p class="tc-textwrap-lieuville">
  106.                                     <a href="/contacts/{{ spectacle.contact.url_clean }}/">{{ spectacle.contact.organisation }}</a>
  107.                                </p>
  108.                                 {% endif %}
  109.                             {% endif %}
  110.                         {% endif %}
  111.                     {% endif %}
  112.                 {% endif %}
  113.                 {% if spectacle.editeur_top is defined and spectacle.editeur_top %}
  114.                     <span>&Eacute;dité par</span>
  115.                     <p class="tc-text-label">
  116.                     <a href="/editions/{{ spectacle.publisher.url_cleantext }}/">{{ spectacle.publisher.organisation }}</a>
  117.                 </p>
  118.                 {% endif %}
  119.                 {% if spectacle.city_top is defined and spectacle.city_top %}
  120.                 <p class="tc-textwrap-lieuville"><span class="tc-text-label-inline">à </span>{{ spectacle.city_top }}</p>
  121.                 {% endif %}
  122.             {% endif %}
  123.         </div>
  124.     </div>
  125.     <div class="tc-block-footer">
  126.         <p class="tc-textwrap-lieuville">
  127.             <a href="/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}">{{ spectacle.critiques }} critiques</a>
  128.         </p>
  129.     </div>
  130. </div>