templates/videos/playlist.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Playlist:   {% endblock %}
  3. {% block body %}
  4.     {% block block_navstart %} {% include "_partials/_nav.html.twig" %} {% endblock %}
  5.     <!-- detail-immobilier -->
  6.     <section class="playlist-video">
  7.         <div class="container">
  8.             <div class="row"> 
  9.             {% for viPlayL in videoPlaylists %}
  10.                 <div class="col-lg-7 col-md-12 col-sm-12" style="">
  11.                 {% if viPlayL.id == idV and viPlayL.namePlaylist != null and viPlayL.playlist == 1  %}
  12.                     <h6>
  13.                         <img src="{{ asset('uploads/images/' ~ viPlayL.users.imageUser) }}" 
  14.                             alt="Photo" class="img-fluid" style="width: 20px; height: 20px; border-radius: 50%;" />
  15.                         <strong>{{ viPlayL.users.firstname | slice (0, 14) }} {{ viPlayL.users.lastname | slice (0, 14) }}</strong>
  16.                     </h6>
  17.                     <div class="" style="margin: 0;">
  18.                         <video class="" src="{{ asset('uploads/videos/' ~ viPlayL.videoFileName) }}" loop controls style="width: 100%; margin-bottom: 7px;"></video>
  19.                     </div>
  20.                     <p><strong>{{ viPlayL.name }}</strong><span style="color:#A9A9A9;"><strong> : {{ viPlayL.createdAt | date('d-m-Y') }}</strong></span></p>
  21.                     <p>Catégorie : <strong>{{ viPlayL.categoriesvideos.name }}</strong></p>
  22.                     <p>
  23.                         {% if viPlayL.playlist == 1 %}
  24.                             <span>Playlist: <a href="{{ path('app_videos_playlist', {playLi: viPlayL.namePlaylist, idU: viPlayL.users.id, idV: viPlayL.id}) }}" class="link link-primary btn-sm">{{ viPlayL.namePlaylist  }}</a></span>
  25.                         {% endif %}
  26.                         {#---------#}
  27.                         <a href="{{ path('app_profile_home', {id: viPlayL.users.id}) }}" class="btn btn-primary btn-sm">Profile Auteur</a>
  28.                         <a href="{{ path('app_videos_similars', {catego: viPlayL.categoriesvideos.id}) }}" class="btn btn-secondary btn-sm">videos similaires</a>
  29.                         
  30.                         {% set i = 0 %} {###}
  31.                         {% for statElem in allStatistiques %}
  32.                             {% if viPlayL.id == statElem.idElement and statElem.page == 'DETAIL_VIDEO' %}
  33.                                 {% set i = i + 1 %}
  34.                             {% endif %}
  35.                         {% endfor %}    {###}
  36.                         {% include '_partials/_compteur_vues.html.twig' %}      {## COMPTEUR_VUES ##}
  37.                     </p>
  38.                     <p class="" style="overflow: wrap; width: 100%;">{{ viPlayL.description }}</p>
  39.                 {% endif %}
  40.                 </div>
  41.             {% endfor %}
  42.                 {#------Liste videos playlist ------#}
  43.                 <div class="col-lg-5 col-md-12 col-sm-12" style="">
  44.                     <h3><strong>Serie playlist</strong></h3>
  45.                     <div>
  46.                         {% for viSerie in videoPlaylists %}
  47.                             {% if viSerie.users.id == idU and viSerie.playlist == 1  %}
  48.                                 {% if viSerie.id == idV %}
  49.                                     {#------------#}
  50.                                     <div class="container bg-light d-flex" style="border: 1px solid #00F; padding: 1px; border-radius: 1%;">
  51.                                         <video class="" src="{{ asset('uploads/videos/' ~ viSerie.videoFileName) }}" style="width: 50%; margin-bottom: 4px; margin-right: 2px;"></video>
  52.                                         <div>
  53.                                             <h6><strong>{{ viSerie.name | slice (0, 100) }}</strong></h6>
  54.                                             <h6>
  55.                                                 <div class="">
  56.                                                     <img src="{{ asset('uploads/images/' ~ viSerie.users.imageUser) }}" alt="Photo" class="img-fluid" style="width: 20px; height: 20px; border-radius: 50%;" />
  57.                                                     {{ viSerie.users.firstname | slice (0, 14) }} {{ viSerie.users.lastname | slice (0, 14) }}
  58.                                                 </div>
  59.                                                 <div class="">
  60.                                                     {% set i = 0 %}
  61.                                                     {% for statElem in allStatistiques %}
  62.                                                         {% if viSerie.id == statElem.idElement and statElem.page == 'DETAIL_VIDEO' %}
  63.                                                             {% set i = i + 1 %}
  64.                                                         {% endif %}
  65.                                                     {% endfor %}  
  66.                                                     {% include '_partials/_compteur_vues.html.twig' %}      {## COMPTEUR_VUES ##}
  67.                                                     {#---#}
  68.                                                     <a href="{{ path('app_videos_playlist', {idU: viSerie.users.id, playLi: viSerie.namePlaylist, idV: viSerie.id}) }}" class="btn btn-primary btn-sm" style="width: 30px; height: 20px; padding: 0;">Lire</a>
  69.                                                 </div>
  70.                                             </h6>
  71.                                         </div>
  72.                                     </div>
  73.                                     {#------------#}
  74.                                     {% else %}
  75.                                     <div class="container bg-light d-flex" style="padding: 1px; border-radius: 1%;">
  76.                                         <video class="" src="{{ asset('uploads/videos/' ~ viSerie.videoFileName) }}" style="width: 50%; margin-bottom: 4px; margin-right: 2px;"></video>
  77.                                         <div>
  78.                                             <h6><strong>{{ viSerie.name | slice (0, 100) }}</strong></h6>
  79.                                             <h6>
  80.                                                 <div class="">
  81.                                                     <img src="{{ asset('uploads/images/' ~ viSerie.users.imageUser) }}" alt="Photo" class="img-fluid" style="width: 20px; height: 20px; border-radius: 50%;" />
  82.                                                     {{ viSerie.users.firstname | slice (0, 14) }} {{ viSerie.users.lastname | slice (0, 14) }}
  83.                                                 </div>
  84.                                                 <div class="">
  85.                                                     {% set i = 0 %}
  86.                                                     {% for statElem in allStatistiques %}
  87.                                                         {% if viSerie.id == statElem.idElement and statElem.page == 'DETAIL_VIDEO' %}
  88.                                                             {% set i = i + 1 %}
  89.                                                         {% endif %}
  90.                                                     {% endfor %}  
  91.                                                     {% include '_partials/_compteur_vues.html.twig' %}      {## COMPTEUR_VUES ##}
  92.                                                     {#---#}
  93.                                                     <a href="{{ path('app_videos_playlist', {idU: viSerie.users.id, playLi: viSerie.namePlaylist, idV: viSerie.id}) }}" class="btn btn-primary btn-sm" style="width: 30px; height: 20px; padding: 0;">Lire</a>
  94.                                                 </div>
  95.                                             </h6>
  96.                                         </div>
  97.                                     </div>
  98.                                 {% endif %}
  99.                             {% endif %}
  100.                         {% endfor %}
  101.                     </div>
  102.                 </div>
  103.             </div>
  104.         </div>
  105.     </section>
  106. {% endblock %}