{% extends 'templates.html.twig' %}
{% block headcontent %}
{% include "textes/texte_entete.inc.html.twig" %}
{% endblock %}
{% block content %}
<main class="tc-desktop-2_3 tc-phone-1_1 tc-videos">
{% include 'video/embed-video.inc.html.twig' %}
{% if videos_playlist is defined and videos_playlist %}
<section class="tc-panel">
<div class="tc-panel-body tc-masonry-container">
{% for idmultimedia,video_playlist in videos_playlist %}
{% if video_playlist.current is not defined or (video_playlist.current is defined and not video_playlist.current) %}
<div class="tc-block tc-tablet-1_2" >
<div class="tc-block-header">
<span class="tc-textwrap-auteur">
<a class="tc-titre tc-text-overflow" href="{{ url_folder }}/playlist/id/{{ playlist.urlClean }}/video/{{ video_playlist.url_clean }}?autostart">{{ video_playlist.sujet_titre }}</a>
</span>
</div>
<div class="tc-block-body">
<figure class="tc-video-16_9 tc-img-affiche-video">
<a href="{{ url_folder }}/playlist/id/{{ playlist.urlClean }}/video/{{ video_playlist.url_clean }}?autostart#top_page_titre">
<img style="width:100%" src="{{ video_playlist.image_media }}" alt="Image de la vidéo {{ video_playlist.sujet_titre }}" />
</a>
</figure>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</section>
{% endif %}
</main>
{% endblock %}