templates/elements/video-item.html.twig line 1

  1. <!-- INICIO VIDEO -->
  2. {% set videoHref = (app.user) ? 'https://player.vimeo.com/video/' ~ video.vimeoCode ~ '?autoplay=1&loop=1&autoplay=0' : path('app_login') %}
  3. <div class="news_wrap hover-overlay">
  4.     <div class="cookie-publicity-disabled" data-type="video" data-external-url="https://player.vimeo.com/video/{{ video.vimeoCode }}">
  5.         <a class="image split-blog-scale"{% if app.user %} data-fancybox{% endif %} href="{{ videoHref }}">
  6.             <img src="{% include 'elements/src-video-image.html.twig' %}" alt="{{ video.title|raw }}. {{ video.description|raw }}">
  7.             <div class="overlay"><i class="fa fa-circle-play" aria-hidden="true" style="font-size: 80px;"></i></div>
  8.         </a>
  9.     </div>
  10.     <div class="news-box">
  11.         <h4 class="mb-1">
  12.             <a data-fancybox href="{{ videoHref }}" class="color-black line-height-heading">
  13.                 <div class="video-title mb-1">{{ video.title|raw }}</div>
  14.                 <div class="video-description">{{ video.description|raw }}</div>
  15.             </a>
  16.         </h4>
  17.         {% for ao in video.videoAuthorOrganizations %}
  18.             {% if ao.author %}
  19.                 <div class="video-author-name">{{ ao.author.title }} {{ ao.author.name }} {{ ao.author.lastname }}</div>
  20.             {% endif %}
  21.             {% if ao.department %}
  22.                 <div class="video-department">{{ ao.department }}</div>
  23.             {% endif %}
  24.             {% if ao.organization %}
  25.                 <div class="video-organization-title">{{ ao.organization.title }}. {{ ao.organization.province.name }}</div>
  26.             {% endif %}
  27.         {% endfor %}
  28.         {% if video.document %}
  29.             <div class="video-doc">
  30.                 <a href="{{ asset('/uploads/docs/videos/' ~ video.document) }}"><i class="fa fa-download" aria-hidden="true"></i> Descargar presentación</a>
  31.             </div>
  32.         {% endif %}
  33.         {% if app.request.pathinfo in [path('app_home'), path('app_videos')] %}
  34.             <div class="video-edition">
  35.                 <a href="{{ path('app_edition', {name: video.videoGroup.pageSection.edition.project.name, year: video.videoGroup.pageSection.edition.year.name}) }}">{{ video.videoGroup.pageSection.edition.title|raw }}. {{ video.videoGroup.pageSection.edition.year.name }}</a>
  36.             </div>
  37.         {% endif %}
  38.     </div>
  39. </div>
  40. <!-- FIN VIDEO -->