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

Open in your IDE?
  1.     <div class="tc-block tc-tablet-1_2">
  2.         <div class="tc-block-header">
  3.             <h2 class="tc-title-medium">Détail de la vidéo</h2>
  4.         </div>
  5.         <div class="tc-block-body">
  6.             <ul class="tc-clean-list">
  7.                 {% if video.langue is defined and video.langue %}
  8.                     <li><span class="tc-text-label-inline">Langue : </span> {{ video.langue }}</li>
  9.                 {% endif %}
  10.                 {% if video.duree_site_sec is defined and video.duree_site_sec and video.duree_site_sec_human is defined and video.duree_site_sec_human %}
  11.                     <li><span class="tc-text-label-inline">Durée : </span> {{ video.duree_site_sec_human }}</li>
  12.                 {% endif %}
  13.                 {% if video.lieu is defined and video.lieu %}
  14.                     <li><span class="tc-text-label-inline">Lieu : </span> {{ video.lieu }}</li>
  15.                 {% endif %}
  16.                 {% if video.particip_comed is defined and video.particip_comed %}
  17.                     <li><span class="tc-text-label-inline">Participants/comédiens : </span> {{ video.particip_comed }}</li>
  18.                 {% endif %}
  19.                 {% if video.copyright is defined and video.copyright %}
  20.                     <li><span class="tc-text-label-inline">Copyright : </span> {{ video.copyright }}</li>
  21.                 {% endif %}
  22.                 {% if video.dateinsert is defined and video.dateinsert %}
  23.                     <li><span class="tc-text-label-inline">Ajoutée le</span> {{ video.dateinsert|date('d/m/Y') }}</li>
  24.                 {% endif %}
  25.                 {% if video.typemultimedia is defined and video.typemultimedia %}
  26.                     <li>
  27.                         <span class="tc-text-label-inline">Type : </span>{{ video.typemultimedia }}
  28.                         <span class="tc-text-label-inline">
  29.                             <small>
  30.                                 {% if video.onlySound is defined and video.onlySound %}
  31.                                     (document sonore)
  32.                                 {% else %}
  33.                                      (document vidéo)
  34.                                 {% endif %}
  35.                             </small>
  36.                         </span>
  37.                     </li>
  38.                 {% endif %}
  39.                 {% if is_contact_user is defined and is_contact_user %}
  40.                     <li><span class="tc-text-label-inline">Nombre de vue(s) : </span> {{ video.count_view }} vue(s)</li>
  41.                     <li><span class="tc-text-label-inline">ID vidéo : </span> {{ video.idmultimedia }}</li>
  42.                 {% endif %}
  43.             </ul>
  44.         </div>
  45.     </div>
  46.     {% if no_apropos is not defined or (no_apropos is defined and not no_apropos) %}
  47.     <div class="tc-block tc-tablet-1_2">
  48.         <div class="tc-block-header">
  49.             <h2 class="tc-title-medium" >&Agrave; propos de...</h2>
  50.         </div>
  51.         <div class="tc-block-body">
  52.             <ul class="tc-clean-list">
  53.                 {% if video.spectacles is defined and video.spectacles %}
  54.                 <li class="tc-textwrap-titre tc-spectacles-tpl-a">
  55.                     <span class="tc-text-label-inline">Spectacle(s) : </span>
  56.                     {% for idspectacle,spectacle in video.spectacles %}
  57.                         <span>
  58.                             <a class="tc-titre" href="/spectacles/{{ spectacle.url_clean }}">{{ spectacle.title }}</a>{% if spectacle.nopunct is not defined or (spectacle.nopunct is defined and not spectacle.nopunct) %}, {% endif %}
  59.                         </span>
  60.                     {% endfor %}
  61.                 </li>
  62.                 {% endif %}
  63.                 {% if video.authors is defined and video.authors %}
  64.                 <li class="tc-textwrap-auteur">
  65.                     <span class="tc-text-label-inline">Auteur(s) : </span>
  66.                     {% for idperson,author in video.authors %}
  67.                         <span>
  68.                             <a href="/biographies/{{ author.url_clean }}">{{ author.firstname }} {{ author.lastname }}</a>{% if author.nopunct is not defined or (author.nopunct is defined and not author.nopunct) %}, {% endif %}
  69.                         </span>
  70.                     {% endfor %}
  71.                 </li>
  72.                 {% endif %}
  73.                 {% if video.directors is defined and video.directors %}
  74.                 <li class="tc-textwrap-auteur">
  75.                     <span class="tc-text-label-inline">Metteur(s) en scène : </span>
  76.                     {% for idperson,director in video.directors %}
  77.                         <span>
  78.                             <a href="/biographies/{{ director.url_clean }}">{{ director.firstname }} {{ director.lastname }}</a>{% if director.nopunct is not defined or (director.nopunct is defined and not director.nopunct) %}, {% endif %}
  79.                         </span>
  80.                     {% endfor %}
  81.                 </li>
  82.                 {% endif %}
  83.                 {% if video.actors is defined and video.actors %}
  84.                 <li class="tc-textwrap-auteur">
  85.                     <span class="tc-text-label-inline">Acteur(s) : </span>
  86.                     {% for idperson,actor in video.actors %}
  87.                         <span>
  88.                             <a href="/biographies/{{ actor.url_clean }}">{{ actor.firstname }} {{ actor.lastname }}</a>{% if actor.nopunct is not defined or (actor.nopunct is defined and not actor.nopunct) %}, {% endif %}
  89.                         </span>
  90.                     {% endfor %}
  91.                 </li>
  92.                 {% endif %}
  93.                 {% if video.intervenants is defined and video.intervenants %}
  94.                 <li class="tc-textwrap-auteur">
  95.                     <span class="tc-text-label-inline">Intervenant(s) : </span>
  96.                     {% for idperson,person in video.intervenants %}
  97.                         <span>
  98.                             <a href="/biographies/{{ person.url_clean }}">{{ person.firstname }} {{ person.lastname }}</a>{% if person.nopunct is not defined or (person.nopunct is defined and not person.nopunct) %}, {% endif %}
  99.                         </span>
  100.                     {% endfor %}
  101.                 </li>
  102.                 {% endif %}
  103.                 {% if video.texts is defined and video.texts %}
  104.                 <li class="tc-textwrap-titre tc-editions-tpl-a">
  105.                     <span class="tc-text-label-inline">Texte(s) : </span>
  106.                     {% for idtext,text in video.texts %}
  107.                     <span>
  108.                         {% if text.textfictif is defined and text.textfictif %}
  109.                             <a class="tc-titre" href="/textes/{{ text.url_clean }}/">{{ text.title }}</a>{% if text.nopunct is not defined or (text.nopunct is defined and not text.nopunct) %}, {% endif %}
  110.                         {% endif %}
  111.                     </span>
  112.                     {% endfor %}
  113.                 </li>
  114.                 {% endif %}
  115.             </ul>
  116.         </div>
  117.     </div>
  118.     {% endif %}
  119. <div class="tc-tablet-1_1">
  120.     {% if no_partage_link is not defined or (no_partage_link is defined and not no_partage_link) %}
  121.         <div class="tc-center">
  122.             {% if video.share is defined and video.share %}
  123.                 {% if video.embed is defined and video.embed %}
  124.                     <a style="margin:1em" class="tc-button tc-bgcolor-context tc-icon-code" data-name="code" rel="integrer_link">Intégrer</a>
  125.                 {% endif %}
  126.                 <a style="margin:1em" class="tc-button tc-bgcolor-context tc-icon-permalink" data-name="perma" rel="permanent_link">Permalien</a>
  127.             {% endif %}
  128.             {% if video.etalab is defined and video.etalab %}
  129.                 <a style="margin:1em" class="tc-button tc-bgcolor-context tc-icon-download" data-name="qr">Téléchargement</a>
  130.             {% endif %}
  131.             {% if video.my_video is defined and video.my_video %}
  132.                 <a style="margin:1em" class="tc-button-theatre tc-border-index tc-icon-edit " href="/ajoutvideo/propose-video-etape3/id/{{ video.idmultimedia }}/edit/true">Modifier</a>
  133.             {% endif %}
  134.         </div>
  135.         {% if video.embed is defined and video.embed %}
  136.         <div class="tc-block tc-tablet-1_1 tc-hidden-content tc-code hidden-content">
  137.             <div class="tc-block-header">
  138.                 <h3>Copiez/collez ce code</h3>
  139.             </div>
  140.             <div class="tc-block-body">
  141.                 <textarea name="integrer_field" id="integrer_field" cols="6" rows="3" readonly>{{ video.embed }}</textarea>
  142.             </div>
  143.             <div class="tc-block-header">
  144.                 <h3>Copiez/collez ce code (responsive)</h3>
  145.             </div>
  146.             <div class="tc-block-body">
  147.                 <textarea name="integrer_field" id="integrer_field" cols="6" rows="3" readonly>{{ video.embeddiv }}</textarea>
  148.             </div>
  149.             <div class="tc-block-header">
  150.                 <h3>Lien direct vers le media</h3>
  151.             </div>
  152.             <div class="tc-block-body">
  153.                 <input type="text" name="direct_media" id="direct_media" size="45" value="{{ thnet }}/embed/{{ video.code }}" readonly="readonly" />
  154.             </div>
  155.         </div>
  156.         <div class="tc-block tc-tablet-1_1 tc-hidden-content hidden-content tc-perma">
  157.             <div class="tc-block-header">
  158.                 <h3>Lien permanent vers cette page/vidéo</h3>
  159.             </div>
  160.             <div class="tc-block-body">
  161.                 <input type="text" name="permanent_field" id="permanent_field" readonly="readonly" value="{{ thnet }}/video/{{ video.url_clean }}" />
  162.             </div>
  163.         </div>
  164.         {% endif %}
  165.         {% if video.etalab is defined and video.etalab %}
  166.         <div class="tc-block tc-tablet-1_1 tc-hidden-content hidden-content tc-qr tc-block-article">
  167.             <div class="tc-block-body tc-block-content-custom">
  168.                 {% if abonnement is defined and abonnement %}
  169.                     Ce fichier est disponible sous licence <a href="https://www.etalab.gouv.fr/wp-content/uploads/2017/04/ETALAB-Licence-Ouverte-v2.0.pdf" target="__blank">Etalab</a>.
  170.                     <div>
  171.                     <h3>Résumé des droits accordé </h3>
  172.                         {% include 'video/etalablicence.inc.html.twig' %}
  173.                     <h3>
  174.                         Téléchargement:
  175.                     </h3>
  176.                         <table class="tc-center">
  177.                             {% for key_video,data_video in video.formats_download %}
  178.                                 {% if data_video.download is defined and data_video.download %}
  179.                                 <tr>
  180.                                     <td>
  181.                                         {{ data_video.labelname }}
  182.                                     </td>
  183.                                     <td>
  184.                                         {% if data_video.mediawidth is defined and data_video.mediawidth %}
  185.                                             {{ data_video.mediawidth }} x {{ data_video.mediaheight }}
  186.                                         {% else %}
  187.                                             résolution indisponible
  188.                                         {% endif %}
  189.                                         /
  190.                                         {% if data_video.sizefile is defined %}
  191.                                             {{ data_video.sizefile }}
  192.                                         {% else %}
  193.                                             poids indisponible
  194.                                         {% endif %}
  195.                                     </td>
  196.                                     <td>
  197.                                         <a href="/video/{{ video.url_clean }}/download/format/{{ data_video.labelname }}">
  198.                                             Télécharger
  199.                                         </a>
  200.                                     </td>
  201.                                 </tr>
  202.                                 {% endif %}
  203.                             {% endfor %}
  204.                         </table>
  205.                     </div>
  206.                 <h3>
  207.                     Informations à indiquer pour toutes utilisations :
  208.                 </h3>
  209.                 <p>
  210.                     Origine : theatre-contemporain.net
  211.                     {% for idcontact,contact in video.partenaires %}
  212.                         - {{ contact.organisation }}
  213.                         {% if contact.nopunct is not defined or (contact.nopunct is defined and not contact.nopunct) %}, {% endif %}
  214.                     {% endfor %}<br/>
  215.                     {% if video.dateupdate is defined and video.dateupdate %}
  216.                         Dernière mise à jour : {{ video.dateupdate }}<br/>
  217.                     {% endif %}
  218.                     Lien : <br/>
  219.                     <input type="text" value="{{ thnet }}/video/{{ video.url_clean }}">
  220.                 </p>
  221.                 <p>
  222.                     <span class="tc-bold">Par exemple :</span><br/>
  223.                     Données originales téléchargées sur <a href="{{ thnet }}/video/{{ video.url_clean }}">theatre-contemporain.net</a> en partenariat avec
  224.                     {% for idcontact,contact in video.partenaires %}
  225.                         {{ contact.organisation }}
  226.                         {% if contact.nopunct is not defined or (contact.nopunct is defined and not contact.nopunct) %}, {% endif %}
  227.                     {% endfor %},
  228.                     {% if video.dateupdate is defined and video.dateupdate %}
  229.                         mises à jour le {{ video.dateupdate }}<br/>
  230.                     {% endif %}
  231.                     <span class="tc-text-label-inline">Le lien sur theatre-contemporain doit être l'adresse complète du fichier précisée ci-dessus.</span>
  232.                 </p>
  233.                 <p>
  234.                     <span class="tc-bold">Autre exemple :</span><br/>
  235.                     Origine : theatre-contemporain.net en partenariat avec
  236.                     {% for idcontact,contact in video.partenaires %}
  237.                         {{ contact.organisation }}
  238.                         {% if contact.nopunct is not defined or (contact.nopunct is defined and not contact.nopunct) %}, {% endif %}
  239.                     {% endfor %},
  240.                     (<a href="({{ thnet }}/video/{{ video.url_clean }})">{{ thnet }}/video/{{ video.url_clean }}</a>)
  241.                     {% if video.dateupdate is defined and video.dateupdate %}
  242.                         , {{ video.dateupdate }}
  243.                     {% endif %}
  244.                     <br/>
  245.                 </p>
  246.                 {% else %}
  247.                 <p>
  248.                     Le téléchargement est une fonctionnalité réservée aux abonnés –
  249.                     <a href="/montheatre/connexion?urifrom=/video/{{ video.url_clean }}">
  250.                         Je me connecte
  251.                     </a>
  252.                     –
  253.                     <a href="/abonnements">
  254.                         Je m'abonne
  255.                     </a>
  256.                 </p>
  257.                 {% endif %}
  258.             </div>
  259.         </div>
  260.         {% endif %}
  261.     {% endif %}
  262. </div>
  263. <script type="text/javascript">
  264.     $('.tc-icon-code, .tc-icon-permalink, .tc-icon-download').click(function(e){
  265.         $('.tc-hidden-content:not(.tc-'+$(this).data('name')+')').css('display', 'none');
  266.         $('.tc-'+$(this).data('name')).slideToggle();
  267.     });
  268. </script>