var/cache/dev/twig/42/42ca341009797be4bc037179283991cf4139e0aa5a7adc71888b82fddc3ff8c8.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* video-onpc/fiche.html.twig */
  14. class __TwigTemplate_16073a2c9b2390ec81fe840d6518d5f8c9ef9489093f41bf2a2ea66f280bd0a6 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'head' => [$this'block_head'],
  24.             'body' => [$this'block_body'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""video-onpc/fiche.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""video-onpc/fiche.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""video-onpc/fiche.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 2
  48.     public function block_head($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  55.         // line 3
  56.         echo "    <script type=\"application/ld+json\">
  57.         {
  58.             \"@context\": \"https://schema.org\",
  59.             \"@type\": \"VideoObject\",
  60.             \"name\": \"";
  61.         // line 7
  62.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'7$this->source); })()), "titre", [], "any"falsefalsefalse7), "html"nulltrue);
  63.         echo "\",
  64.             \"description\": \"";
  65.         // line 8
  66.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'8$this->source); })()), "texte", [], "any"falsefalsefalse8), "html"nulltrue);
  67.         echo "\",
  68.             \"thumbnailUrl\": [
  69.                 \"";
  70.         // line 10
  71.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'10$this->source); })()), "url", [], "any"falsefalsefalse10), "html"nulltrue);
  72.         echo "\"
  73.             ],
  74.             \"uploadDate\": \"";
  75.         // line 12
  76.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'12$this->source); })()), "dateMaj", [], "any"falsefalsefalse12), "html"nulltrue);
  77.         echo "\",
  78.             \"contentUrl\": \"";
  79.         // line 13
  80.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'13$this->source); })()), "url", [], "any"falsefalsefalse13), "html"nulltrue);
  81.         echo "\",
  82.             \"regionsAllowed\": \"FR\"
  83.         }
  84.     </script>
  85. ";
  86.         
  87.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  88.         
  89.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  90.     }
  91.     // line 19
  92.     public function block_body($context, array $blocks = [])
  93.     {
  94.         $macros $this->macros;
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  96.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  98.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  99.         // line 20
  100.         echo "<section class=\"container page-video single\">
  101.     <div id=\"breadcrumb\">
  102.         ";
  103.         // line 22
  104.         $this->loadTemplate("video-onpc/_includes/breadcrumb.html.twig""video-onpc/fiche.html.twig"22)->display(twig_array_merge($context, ["lieu" => null"video" => (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'22$this->source); })())]));
  105.         // line 23
  106.         echo "    </div>
  107.     <div class=\"title\">
  108.         <h1>";
  109.         // line 26
  110.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'26$this->source); })()), "titre", [], "any"falsefalsefalse26), "html"nulltrue);
  111.         echo "</h1>
  112.     </div>
  113.     <section>
  114.         <article>
  115.             <div class=\"illustration text-center\">
  116.                 <div class=\"vimeo-wrapper\" data-vimeo-id=\"";
  117.         // line 32
  118.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'32$this->source); })()), "idVimeo", [], "any"falsefalsefalse32), "html"nulltrue);
  119.         echo "\">
  120.                     <div class=\"vimeo-cover\">
  121.                         <img src=\"";
  122.         // line 34
  123.         echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'34$this->source); })()), "photoFile"), "webtv_fiche"), "html"nulltrue);
  124.         echo "\" alt=\"";
  125.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'34$this->source); })()), "titre", [], "any"falsefalsefalse34), "html"nulltrue);
  126.         echo "\">
  127.                         <button class=\"vimeo-play\" aria-label=\"Play video\"></button>
  128.                     </div>
  129.                 </div>
  130.             </div>
  131.             <div class=\"content pb-4\">
  132.                   <div class=\"row\">
  133.                     <div class=\"col\">
  134.                         <p class=\"schedule\">
  135.                             <small>Le ";
  136.         // line 45
  137.         echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'45$this->source); })()), "createdAt", [], "any"falsefalsefalse45), "medium""d MMMM Y"), "html"nulltrue);
  138.         echo "</small>
  139.                         </p>
  140.                         <p>";
  141.         // line 47
  142.         echo twig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'47$this->source); })()), "description", [], "any"falsefalsefalse47);
  143.         echo "</p>
  144.                     </div>
  145.                     ";
  146.         // line 49
  147.         if ((twig_get_attribute($this->env$this->source, ($context["video"] ?? null), "annonceurs", [], "any"truetruefalse49) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'49$this->source); })()), "annonceurs", [], "any"falsefalsefalse49)))) {
  148.             // line 50
  149.             echo "                    <div class=\"col-md-3 mt-2\">
  150.                             <div class=\"container\">
  151.                                 <div class=\"row justify-content-md-center\">
  152.                                     ";
  153.             // line 53
  154.             $context['_parent'] = $context;
  155.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'53$this->source); })()), "annonceurs", [], "any"falsefalsefalse53));
  156.             foreach ($context['_seq'] as $context["_key"] => $context["etablissement"]) {
  157.                 // line 54
  158.                 echo "                                        ";
  159.                 $context["urlFiche"] = twig_get_attribute($this->env$this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder"$context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.'54$this->source); })()), "buildFiche", [=> $context["etablissement"]], "method"falsefalsefalse54);
  160.                 // line 55
  161.                 echo "                                        ";
  162.                 $context["imgAlt"] = twig_trim_filter(twig_join_filter([=> twig_get_attribute($this->env$this->source,                 // line 56
  163. $context["etablissement"], "denomination", [], "any"falsefalsefalse56), => twig_get_attribute($this->env$this->source,                 // line 57
  164. $context["etablissement"], "codePostal", [], "any"falsefalsefalse57), => ((twig_get_attribute($this->env$this->source,                 // line 58
  165. $context["etablissement"], "ville", [], "any"falsefalsefalse58)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["etablissement"], "ville", [], "any"falsefalsefalse58), "libelle", [], "any"falsefalsefalse58)) : (""))], " - "), " -");
  166.                 // line 60
  167.                 echo "                                    <div class=\"col-md-auto mb-2\">
  168.                                         <div class=\"text-center\">
  169.                                             <img src=\"";
  170.                 // line 62
  171.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env$this->source$context["etablissement"], "logo", [], "any"falsefalsefalse62), "logoFile"), "etab_hp_logo"), "html"nulltrue);
  172.                 echo "\"
  173.                                                 class=\"img-fluid mb-2\"
  174.                                                 alt=\"";
  175.                 // line 64
  176.                 echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt"$context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.'64$this->source); })()), "html"nulltrue);
  177.                 echo "\">
  178.                                             <p class=\"mb-0 fw-semibold\"><a href=\"";
  179.                 // line 65
  180.                 echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche"$context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.'65$this->source); })()), "html"nulltrue);
  181.                 echo "\">";
  182.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["etablissement"], "denomination", [], "any"falsefalsefalse65), "html"nulltrue);
  183.                 echo "</a></p>
  184.                                         </div>
  185.                                     </div>
  186.                                     ";
  187.             }
  188.             $_parent $context['_parent'];
  189.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['etablissement'], $context['_parent'], $context['loop']);
  190.             $context array_intersect_key($context$_parent) + $_parent;
  191.             // line 69
  192.             echo "                                </div>
  193.                             </div>
  194.                     </div>
  195.                     ";
  196.         }
  197.         // line 73
  198.         echo "                </div>
  199.             </div>
  200.         </article>
  201.     </section>
  202.     <p class=\"mb-4 pb-4\">&nbsp;</p>
  203.     <p class=\"mb-4 pb-4\">&nbsp;</p>
  204. </section>
  205. ";
  206.         
  207.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  208.         
  209.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  210.     }
  211.     // line 84
  212.     public function block_javascripts($context, array $blocks = [])
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  219.         // line 85
  220.         echo "    ";
  221.         $this->displayParentBlock("javascripts"$context$blocks);
  222.         echo "
  223.     <script>
  224.         document.querySelectorAll('.vimeo-wrapper').forEach(wrapper => {
  225.             wrapper.addEventListener('click', () => {
  226.                 const videoId = wrapper.dataset.vimeoId;
  227.                 const iframe = document.createElement('iframe');
  228.                 iframe.src =
  229.                     `https://player.vimeo.com/video/\${videoId}?autoplay=1&muted=0&title=0&byline=0&portrait=0`;
  230.                 iframe.allow = 'autoplay; fullscreen; picture-in-picture';
  231.                 iframe.allowFullscreen = true;
  232.                 wrapper.innerHTML = '';
  233.                 wrapper.appendChild(iframe);
  234.             }, { once: true });
  235.         });
  236.     </script>
  237. ";
  238.         
  239.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  240.         
  241.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  242.     }
  243.     public function getTemplateName()
  244.     {
  245.         return "video-onpc/fiche.html.twig";
  246.     }
  247.     public function isTraitable()
  248.     {
  249.         return false;
  250.     }
  251.     public function getDebugInfo()
  252.     {
  253.         return array (  249 => 85,  239 => 84,  221 => 73,  215 => 69,  203 => 65,  199 => 64,  194 => 62,  190 => 60,  188 => 58,  187 => 57,  186 => 56,  184 => 55,  181 => 54,  177 => 53,  172 => 50,  170 => 49,  165 => 47,  160 => 45,  144 => 34,  139 => 32,  130 => 26,  125 => 23,  123 => 22,  119 => 20,  109 => 19,  94 => 13,  90 => 12,  85 => 10,  80 => 8,  76 => 7,  70 => 3,  60 => 2,  37 => 1,);
  254.     }
  255.     public function getSourceContext()
  256.     {
  257.         return new Source("{% extends 'base.html.twig' %}
  258. {% block head %}
  259.     <script type=\"application/ld+json\">
  260.         {
  261.             \"@context\": \"https://schema.org\",
  262.             \"@type\": \"VideoObject\",
  263.             \"name\": \"{{ video.titre }}\",
  264.             \"description\": \"{{ video.texte }}\",
  265.             \"thumbnailUrl\": [
  266.                 \"{{ video.url }}\"
  267.             ],
  268.             \"uploadDate\": \"{{ video.dateMaj }}\",
  269.             \"contentUrl\": \"{{ video.url }}\",
  270.             \"regionsAllowed\": \"FR\"
  271.         }
  272.     </script>
  273. {% endblock %}
  274. {% block body %}
  275. <section class=\"container page-video single\">
  276.     <div id=\"breadcrumb\">
  277.         {% include 'video-onpc/_includes/breadcrumb.html.twig' with { lieu: null, video: video } %}
  278.     </div>
  279.     <div class=\"title\">
  280.         <h1>{{ video.titre }}</h1>
  281.     </div>
  282.     <section>
  283.         <article>
  284.             <div class=\"illustration text-center\">
  285.                 <div class=\"vimeo-wrapper\" data-vimeo-id=\"{{ video.idVimeo }}\">
  286.                     <div class=\"vimeo-cover\">
  287.                         <img src=\"{{ vich_uploader_asset(video,'photoFile') | imagine_filter('webtv_fiche')}}\" alt=\"{{video.titre}}\">
  288.                         <button class=\"vimeo-play\" aria-label=\"Play video\"></button>
  289.                     </div>
  290.                 </div>
  291.             </div>
  292.             <div class=\"content pb-4\">
  293.                   <div class=\"row\">
  294.                     <div class=\"col\">
  295.                         <p class=\"schedule\">
  296.                             <small>Le {{ video.createdAt | format_date(pattern='d MMMM Y') }}</small>
  297.                         </p>
  298.                         <p>{{ video.description | raw }}</p>
  299.                     </div>
  300.                     {% if video.annonceurs is defined and video.annonceurs is not empty %}
  301.                     <div class=\"col-md-3 mt-2\">
  302.                             <div class=\"container\">
  303.                                 <div class=\"row justify-content-md-center\">
  304.                                     {% for etablissement in video.annonceurs %}
  305.                                         {% set urlFiche = pathBuilder.buildFiche(etablissement) %}
  306.                                         {% set imgAlt = [
  307.                                                 etablissement.denomination,
  308.                                                 etablissement.codePostal,
  309.                                                 (etablissement.ville ? etablissement.ville.libelle : ''),
  310.                                             ]|join(' - ')|trim(' -') %}
  311.                                     <div class=\"col-md-auto mb-2\">
  312.                                         <div class=\"text-center\">
  313.                                             <img src=\"{{ vich_uploader_asset(etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}\"
  314.                                                 class=\"img-fluid mb-2\"
  315.                                                 alt=\"{{ imgAlt }}\">
  316.                                             <p class=\"mb-0 fw-semibold\"><a href=\"{{ urlFiche }}\">{{ etablissement.denomination }}</a></p>
  317.                                         </div>
  318.                                     </div>
  319.                                     {% endfor %}
  320.                                 </div>
  321.                             </div>
  322.                     </div>
  323.                     {% endif %}
  324.                 </div>
  325.             </div>
  326.         </article>
  327.     </section>
  328.     <p class=\"mb-4 pb-4\">&nbsp;</p>
  329.     <p class=\"mb-4 pb-4\">&nbsp;</p>
  330. </section>
  331. {% endblock %}
  332. {# Pour Vimeo #}
  333. {% block javascripts %}
  334.     {{ parent() }}
  335.     <script>
  336.         document.querySelectorAll('.vimeo-wrapper').forEach(wrapper => {
  337.             wrapper.addEventListener('click', () => {
  338.                 const videoId = wrapper.dataset.vimeoId;
  339.                 const iframe = document.createElement('iframe');
  340.                 iframe.src =
  341.                     `https://player.vimeo.com/video/\${videoId}?autoplay=1&muted=0&title=0&byline=0&portrait=0`;
  342.                 iframe.allow = 'autoplay; fullscreen; picture-in-picture';
  343.                 iframe.allowFullscreen = true;
  344.                 wrapper.innerHTML = '';
  345.                 wrapper.appendChild(iframe);
  346.             }, { once: true });
  347.         });
  348.     </script>
  349. {% endblock %}""video-onpc/fiche.html.twig""/app/templates/video-onpc/fiche.html.twig");
  350.     }
  351. }