templates/textes/texte-par-auteur.inc.html.twig line 1

Open in your IDE?
  1. <div class="tc-block-header tc-editions-tpl-">
  2.     <span class="tc-textwrap-titre">
  3.         <a href="/textes/{{ text.url_clean }}/{{ text.url_clean_more }}" class="tc-text-overflow tc-titre">
  4.         {% for item in text.spectacle %}
  5.             {{ item.title }}
  6.         {% endfor %}
  7.         </a>
  8.     </span>
  9.     <span class="tc-text-label">
  10.         présenté par
  11.         {% if text.playlist.idperson is defined and text.playlist.idperson %}
  12.             {% for item in text.playlist.idperson %}
  13.                 <span class="tc-textwrap-auteur"><a href="/biographies/{{ item.url_clean }}">{{ item.firstname }} {{ item.lastname }}</a></span>
  14.             {% endfor %}
  15.             {% else %}
  16.             {% for item in text.allauthors %}
  17.                 <span class="tc-textwrap-auteur"><a href="/biographies/{{ item.url_clean }}">{{ item.firstname }} {{ item.lastname }}</a></span>
  18.             {% endfor %}
  19.         {% endif %}
  20.     </span>
  21. </div>
  22. <div class="tc-block-bod tc-no-padding-mobiley">
  23.     <div class="tc-video-16_9">
  24.         <figure class="tc-img-affiche-video tc-media-thumbnail">
  25.             <a href="/textes/{{ text.url_clean }}/{{ text.url_clean_more }}">
  26.                 {% if text.playlist.vignette_flou is defined and text.playlist.vignette_flou %}
  27.                     <img class="lazyload" src="{{ text.playlist.vignette_flou }}" data-src="{{ text.playlist.vignette }}" alt="Miniature de la vidéo : {{ text.title }}" />
  28.                 {% else %}
  29.                     <img class="lazyload" src="{{ text.playlist.vignette }}" alt="Miniature de la vidéo : {{ text.title }}" />
  30.                 {% endif %}
  31.             </a>
  32.             <figcaption class="show-for-sr">
  33.                 Vidéo de {{ text.title }}
  34.             </figcaption>
  35.         </figure>
  36.     </div>
  37.     <div class="tc-block-body-text">
  38.         {% for idtext,text in text.spectacle %}
  39.             {% if text.periode.datestart is defined and text.periode.datestart %}
  40.             <p class="tc-textwrap-date">
  41.                 <span class="tc-text-label-inline">du</span> {{ text.periode.datestart }} <span class="tc-text-label-inline">au</span> {{ text.periode.dateend }}
  42.             </p>
  43.             <span class="tc-textwrap-lieuville">
  44.                 <span class="tc-text-label-inline">à </span>
  45.                 {{ text.city }}
  46.                 <a href="/contacts/{{ text.contact.url_clean }}/">
  47.                     <span class="tc-text-label-inline">- </span>
  48.                     {{ text.contact.organisation }}
  49.                 </a>
  50.             </span>
  51.             {% else %}
  52.             <p class="tc-textwrap-date">
  53.                 {{ text.prochdate }}
  54.             </p>
  55.             <p class="tc-textwrap-lieuville">
  56.                 <span class="tc-text-label-inline">à </span>{{ text.city }}
  57.                 <a href="/contacts/{{ text.contact.url_clean }}/">
  58.                     <span class="tc-text-label-inline">- </span>
  59.                     {{ text.contact.organisation }}
  60.                 </a>
  61.             </p>
  62.             {% endif %}
  63.         {% endfor %}
  64.     </div>
  65. </div>