templates/playlists/playlist_titre.inc.html.twig line 1

Open in your IDE?
  1. {% set list_other_url_clean = '' %}
  2. {% if list.other_url_clean is defined %}
  3.     {% set list_other_url_clean = list.other_url_clean %}
  4. {% endif %}
  5. {% set playlist_other_url_clean = '' %}
  6. {% if playlist.other_url_clean is defined %}
  7.     {% set playlist_other_url_clean = playlist.other_url_clean %}
  8. {% endif %}
  9.     <div class="tc-block-header">
  10.         <span class="tc-textwrap-auteur">
  11.         {% if playlist.nameview is defined and playlist.nameview %}
  12.             {% if list_other_url_clean is defined and list_other_url_clean is not empty %}
  13.                 <a class="tc-text-overflow tc-titre" href="{{ list_other_url_clean }}/video/{{ playlist.url_clean }}">{{ playlist.nameview }}</a>
  14.             {% else %}
  15.                 <a class="tc-text-overflow tc-titre" href="{{ playlist_other_url_clean }}/video/{{ playlist.urlClean }}">{{ playlist.nameview }}</a>
  16.             {% endif %}
  17.         {% else %}
  18.             {% for idtext,text in playlist.idtext %}
  19.                 {% if playlist_other_url_clean is defined and playlist_other_url_clean %}
  20.                     <a class="tc-titre tc-text-overflow" href="{{ list_other_url_clean }}/video/{{ playlist_other_url_clean }}">{{ playlist.title }}</a>
  21.                 {% else %}
  22.                     <a class="tc-titre tc-text-overflow" href="playlist/{{ playlist.urlClean }}">{{ playlist.title }}</a>
  23.                 {% endif %}
  24.                 {% if text.nopunct is not defined or (text.nopunct is defined and not text.nopunct) %}, {% endif %}
  25.             {% endfor %}
  26.         {% endif %}
  27.         </span>
  28.         {% if playlist.authors is defined and playlist.authors %}
  29.         <span class="tc-text-label">
  30.             présenté par
  31.             {% for k,v in playlist.authors %}
  32.                 <span class="tc-textwrap-auteur"><a href="/biographies/{{ v.url_clean }}">{{ v.firstname }} {{ v.lastname }}</a></span>
  33.             {% endfor %}
  34.         </span>
  35.         {% endif %}
  36.     </div>
  37. <div class="tc-block-body">
  38.     {% if list_other_url_clean is defined and list_other_url_clean %}
  39.     <figure class="tc-video-16_9 tc-img-affiche-video">
  40.         <a href="{{ list_other_url_clean }}/video/{{ playlist.url_clean }}">
  41.             <img style="width:100%" src="{{ playlist.image_media }}" alt="Image de la vidéo pour '{{ list.nameview }}'" />
  42.         </a>
  43.     </figure>
  44.     {% else %}
  45.         {% if playlist.multimedias is defined and playlist.multimedias %}
  46.         <figure class="tc-video-16_9 tc-img-affiche-video">
  47.             {% for idimages,images in playlist.multimedias %}
  48.             <a href="{{ playlist_other_url_clean }}/video/{{ playlist.urlClean }}">
  49.                 <img style="width:100%" src="{{ images.image_media }}" alt="Image de la vidéo pour '{{ playlist.nameview }}'" />
  50.             </a>
  51.             {% endfor %}
  52.         </figure>
  53.         {% endif %}
  54.     {% endif %}
  55.     {% if playlist.nb_aides is defined and playlist.nb_aides %}
  56.         {% if playlist.nb_aides_px is defined and playlist.nb_aides_px %}
  57.         <div class="tc-point-stats" style="width: {{ playlist.nb_aides_px }}px"></div>
  58.         {% else %}
  59.         <p class="tc-textwrap-lieuville">
  60.             {{ playlist.nb_aides }} aides
  61.         </p>
  62.         {% endif %}
  63.     {% endif %}
  64. </div>