templates/video/video.inc.html.twig line 1

Open in your IDE?
  1. {% if partenaires_top is defined and partenaires_top and video.partenaires is defined and video.partenaires %}
  2. <section class="tc-header row">
  3.     <header class="tc-panel">
  4.         <div class="tc-desktop-1_1 tc-phone-1_1">
  5.             {% if profilepicture is defined and profilepicture %}
  6.             <figure class="tc-phone-1_1 tc-tablet-1_7">
  7.                 <a href="/contacts/{{ contact.url_clean }}/videos">
  8.                     <img class="tc-border-neutral" src="{{ profilepicture }}" alt="Logo du partenaire" />
  9.                 </a>
  10.             </figure>
  11.             {% endif %}
  12.             <div class="tc-header row tc-phone-1_1 tc-tablet-6_7">
  13.                 <p class="tc-subtitle">
  14.                     En partenariat avec<br/>
  15.                     {% for idcontact,contact in video.partenaires %}
  16.                     <a href="/contacts/{{ contact.url_clean }}/videos/type/partenariat/">
  17.                         {{ contact.organisation }}
  18.                     </a>
  19.                         {% if contact.nb_multimedias is defined and contact.nb_multimedias %}({{ contact.nb_multimedias }} vidéos associées){% endif %}
  20.                         {% if contact.nopunct is not defined or (contact.nopunct is defined and not contact.nopunct) %}, {% endif %}
  21.                     {% endfor %}
  22.                 </p>
  23.             </div>
  24.         </div>
  25.     </header>
  26. </section>
  27. {% endif %}
  28. <section class="tc-header row">
  29.     <header class="tc-panel">
  30.         <div class="tc-panel-header">
  31.             <h1>{{ video.sujet_titre }}</h1>
  32.         </div>
  33.     </header>
  34. </section>
  35. {% include 'includes/navigation.inc.html.twig' %}
  36.     <main class="tc-desktop-2_3 tc-phone-1_1">
  37.         <section class="tc-panel">
  38.             <div class="tc-panel-body">
  39.                 {% if download_ok is defined and download_ok %}
  40.                 <div class="tc-block tc-ajout-callout">
  41.                     <div class="tc-block-body">
  42.                         Le téléchargement de votre vidéo a démarré
  43.                     </div>
  44.                 </div>
  45.                 {% endif %}
  46.                 {% if erreur is defined and erreur %}
  47.                 <div class="tc-block tc-alert-callout">
  48.                     <div class="tc-block-body">
  49.                         <div class="erreur_msg">
  50.                             {% if erreur.etalab is defined and erreur.etalab %}
  51.                                 La vidéo n'est pas disponible en téléchargement car sans licence etalab
  52.                             {% endif %}
  53.                             {% if erreur.format is defined and erreur.format %}
  54.                                 La format n'est pas disponible en téléchargement
  55.                             {% endif %}
  56.                             {% if erreur.abonnement is defined and erreur.abonnement %}
  57.                                 Pour pouvoir télécharger la vidéo, il vous faut un compte abonné
  58.                             {% endif %}
  59.                         </div>
  60.                     </div>
  61.                 </div>
  62.                 {% endif %}
  63.                 <div class="tc-block">
  64.                     <div class="tc-block-body tc-no-padding-mobile">
  65.                         <div class="tc-video-16_9">
  66.                             <iframe id="iframe_thtv" width="100%" height="415" src="/embed/{{ video.code }}?no_title&autostart&nopublish" allow="fullscreen"></iframe>
  67.                         </div>
  68.                     </div>
  69.                 </div>
  70.                 <div class="clearfix">
  71.                     <div class="tc-block tc-tablet-1_2">
  72.                         {% if video.etalab is defined and video.etalab %}
  73.                         <a href="https://www.etalab.gouv.fr/wp-content/uploads/2017/04/ETALAB-Licence-Ouverte-v2.0.pdf" target="__blank">
  74.                             <img src="{{ thnet }}/images/partenaires/etalab.png"  width="100px" />
  75.                         </a>
  76.                         {% endif %}
  77.                     </div>
  78.                     <div class="tc-block tc-tablet-1_2">
  79.                         <div class="tc-block-body tc-social">
  80.                             Partager cette vidéo :
  81.                             <ul>
  82.                                 <li><a target="_blank" title="Cliquez pour partager sur Facebook" href="http://www.facebook.com/sharer/sharer.php?u={{ video.permalink }}" class="tc-ext-link"><span class="tc-icon-facebook"></span>Facebook</a></li>
  83.                                 <li><a target="_blank" title="Cliquez pour partager sur Twitter" href="http://twitter.com/home?status='{{ video.sujet_titre }}' sur {{ video.permalink }} @thnet" via="thnet" rel="nofollow" class="tc-ext-link"><span class="tc-icon-twitter"></span>Twitter</a></li>
  84.                                 <li><a target="_blank" title="Cliquez pour partager par Email" href="mailto:?subject=Vidéo {{ video.sujet_titre }} &amp;body=Bonjour %0D%0A%0D%0AEn lien une vidéo vue sur theatre-contemporain %0D%0A{{ video.permalink }}" class="tc-ext-link"><span class="tc-icon-mail"></span>Mail</a></li>
  85.                             </ul>
  86.                         </div>
  87.                     </div>
  88.                 </div>
  89.                 <div class="tc-block tc-block-article">
  90.                     <div class="tc-block-body tc-block-content-custom">
  91.                         <p>{{ video.description_html|raw }}</p>
  92.                     </div>
  93.                 </div>
  94.                 {% if video.spectacles is defined and video.spectacles and data_spectacles is defined and data_spectacles %}
  95.                 <div class="tc-block tc-tablet-1_1">
  96.                     <div class="tc-block-header">
  97.                         <h3 class="tc-color-spectacles tc-format-uppercase">Plus d'information sur : "{{ data_spectacles.title }}"</h3>
  98.                     </div>
  99.                     <div class="tc-block-body">
  100.                         <nav class="tc-subnav">
  101.                             <ul>
  102.                                 {% if menu_spectacle is defined and menu_spectacle %}
  103.                                     {% for k,v in menu_spectacle %}
  104.                                         {% if v.submenu is defined and v.submenu %}
  105.                                             <li>
  106.                                                 {% if v.name %}<a href="">{{ v.name|raw }}</a>
  107.                                                     <ul>
  108.                                                         {% for ksub,vsub in v.submenu %}
  109.                                                             <li><a href="/spectacles/{{ data_spectacles.urlClean }}/{{ vsub.url }}/" >{{ vsub.name }}</a></li>
  110.                                                         {% endfor %}
  111.                                                     </ul>
  112.                                                 {% endif %}
  113.                                             </li>
  114.                                         {% else %}
  115.                                             {% if v.name is defined and v.name %}
  116.                                                 {% if v.active is not defined or (v.active is defined and not v.active) %}
  117.                                                     <li>
  118.                                                         {% if v.url is defined and v.url %}
  119.                                                             <a href="/spectacles/{{ data_spectacles.urlClean }}/{{ v.url }}/">{{ v.name|raw }}</a>
  120.                                                         {% else %}
  121.                                                             <a href="/spectacles/{{ data_spectacles.urlClean }}/">{{ v.name|raw }}</a>
  122.                                                         {% endif %}
  123.                                                     </li>
  124.                                                 {% else %}
  125.                                                     <li class="tc-item-on">
  126.                                                         <a href="/spectacles/{{ data_spectacles.urlClean }}/{{ v.url }}">{{ v.name|raw }}</a>
  127.                                                     </li>
  128.                                                 {% endif %}
  129.                                             {% endif %}
  130.                                         {% endif %}
  131.                                     {% endfor %}
  132.                                 {% endif %}
  133.                             </ul>
  134.                         </nav>
  135.                     </div>
  136.                 </div>
  137.                 {% endif %}
  138.                 <div class="tc-tablet-1_1">
  139.                     {% include 'video/video-details.inc.html.twig' %}
  140.                 </div>
  141.             </div>
  142.         </section>
  143.     </main>
  144.     {% if show_aside_etape_fin is defined and show_aside_etape_fin %}
  145.     <aside class="tc-desktop-1_3 tc-phone-1_1" id="tc-aside">
  146.         <section class="tc-panel tc-bgcolor-context tc-desktop-1_1 tc-phone-1_1">
  147.             <div class="tc-panel-header">
  148.                 <h2>Mes contributions</h2>
  149.             </div>
  150.             <div class="tc-panel-body">
  151.                 <div class="tc-block">
  152.                     <div class="tc-block-body">
  153.                         <ul>
  154.                             <li><a href="/montheatre/messpectacles">Mes spectacles</a></li>
  155.                             <li><a href="/montheatre/mesvideos">Mes vidéos</a></li>
  156.                         </ul>
  157.                     </div>
  158.                 </div>
  159.             </div>
  160.         </section>
  161.     </aside>
  162.     {% endif %}