var/cache/dev/twig/a8/a88821a582a623ccd7884aa5bc2f0390.php line 74

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. /* @NotarisFrontend/tv/video.html.twig */
  14. class __TwigTemplate_be74ca48eb4276de5329f0891c2ff686 extends \Twig\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.             'title' => [$this, 'block_title'],
  24.             'extralinks' => [$this, 'block_extralinks'],
  25.             'extrameta' => [$this, 'block_extrameta'],
  26.             'body' => [$this, 'block_body'],
  27.             'extrajs' => [$this, 'block_extrajs'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@NotarisFrontend/layout2017.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros = $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NotarisFrontend/tv/video.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NotarisFrontend/tv/video.html.twig"));
  42.         // line 3
  43.         if (array_key_exists("notaryId", $context)) {
  44.             // line 4
  45.             $context["headTitle"] = ((twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 4, $this->source); })()), "header1", [], "any", false, false, false, 4), ["<BR />" => " "]) . " - ") . twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 4, $this->source); })()), "pageTitle", [], "any", false, false, false, 4));
  46.         } else {
  47.             // line 6
  48.             $context["headTitle"] = twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 6, $this->source); })()), "pageTitle", [], "any", false, false, false, 6);
  49.             // line 7
  50.             if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["section"]) || array_key_exists("section", $context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.', 7, $this->source); })()), "meta", [], "any", false, false, false, 7), "ogTitle", [], "any", false, false, false, 7) && twig_get_attribute($this->env, $this->source, (isset($context["section"]) || array_key_exists("section", $context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.', 7, $this->source); })()), "parent", [], "any", false, false, false, 7)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["section"]) || array_key_exists("section", $context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.', 7, $this->source); })()), "parent", [], "any", false, false, false, 7), "meta", [], "any", false, false, false, 7), "ogTitle", [], "any", false, false, false, 7))) {
  51.                 // line 8
  52.                 $context["headTitle"] = (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["section"]) || array_key_exists("section", $context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.', 8, $this->source); })()), "meta", [], "any", false, false, false, 8), "ogTitle", [], "any", false, false, false, 8)) . " | ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["section"]) || array_key_exists("section", $context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.', 8, $this->source); })()), "parent", [], "any", false, false, false, 8), "meta", [], "any", false, false, false, 8), "ogTitle", [], "any", false, false, false, 8)));
  53.             }
  54.             // line 10
  55.             $context["headTitle"] = (((isset($context["headTitle"]) || array_key_exists("headTitle", $context) ? $context["headTitle"] : (function () { throw new RuntimeError('Variable "headTitle" does not exist.', 10, $this->source); })()) . " ") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("alg_basetitle"));
  56.         }
  57.         // line 13
  58.         $context["linked_url_nl"] = ((isset($context["url_nl"]) || array_key_exists("url_nl", $context) ? $context["url_nl"] : (function () { throw new RuntimeError('Variable "url_nl" does not exist.', 13, $this->source); })()) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tv"));
  59.         // line 14
  60.         $context["linked_url_fr"] = ((isset($context["url_fr"]) || array_key_exists("url_fr", $context) ? $context["url_fr"] : (function () { throw new RuntimeError('Variable "url_fr" does not exist.', 14, $this->source); })()) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tv"));
  61.         // line 20
  62.         $context["canonicalLink"] = ((((isset($context["url_scheme"]) || array_key_exists("url_scheme", $context) ? $context["url_scheme"] : (function () { throw new RuntimeError('Variable "url_scheme" does not exist.', 20, $this->source); })()) . "://www.") . twig_get_attribute($this->env, $this->source, $context, ("url_" . (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 20, $this->source); })())), [], "array", false, false, false, 20)) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tv_detail_video", ["slug" => (isset($context["pageslug"]) || array_key_exists("pageslug", $context) ? $context["pageslug"] : (function () { throw new RuntimeError('Variable "pageslug" does not exist.', 20, $this->source); })()), "slugvideo" => 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.', 20, $this->source); })()), "slug", [], "any", false, false, false, 20)]));
  63.         // line 1
  64.         $this->parent = $this->loadTemplate("@NotarisFrontend/layout2017.html.twig", "@NotarisFrontend/tv/video.html.twig", 1);
  65.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.         
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70.     }
  71.     // line 16
  72.     public function block_title($context, array $blocks = [])
  73.     {
  74.         $macros = $this->macros;
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  79.         // line 17
  80.         echo "    <title>";
  81.         echo twig_escape_filter($this->env, (isset($context["headTitle"]) || array_key_exists("headTitle", $context) ? $context["headTitle"] : (function () { throw new RuntimeError('Variable "headTitle" does not exist.', 17, $this->source); })()), "html", null, true);
  82.         echo "</title>
  83. ";
  84.         
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  86.         
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88.     }
  89.     // line 21
  90.     public function block_extralinks($context, array $blocks = [])
  91.     {
  92.         $macros = $this->macros;
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extralinks"));
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extralinks"));
  97.         // line 22
  98.         echo "    <link rel=\"canonical\" href=\"";
  99.         echo twig_escape_filter($this->env, (isset($context["canonicalLink"]) || array_key_exists("canonicalLink", $context) ? $context["canonicalLink"] : (function () { throw new RuntimeError('Variable "canonicalLink" does not exist.', 22, $this->source); })()), "html", null, true);
  100.         echo "\"  />
  101. ";
  102.         
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  104.         
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  106.     }
  107.     // line 25
  108.     public function block_extrameta($context, array $blocks = [])
  109.     {
  110.         $macros = $this->macros;
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrameta"));
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrameta"));
  115.         // line 26
  116.         echo "    <meta name=\"keywords\" content=\"";
  117.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["section"]) || array_key_exists("section", $context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.', 26, $this->source); })()), "meta", [], "any", false, false, false, 26), "metaKeywords", [], "any", false, false, false, 26), "html", null, true);
  118.         echo "\"/>
  119.     <meta name=\"description\" lang=\"";
  120.         // line 27
  121.         echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 27, $this->source); })()), "html", null, true);
  122.         echo "\" content=\"";
  123.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["section"]) || array_key_exists("section", $context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.', 27, $this->source); })()), "meta", [], "any", false, false, false, 27), "metaDescription", [], "any", false, false, false, 27), "html", null, true);
  124.         echo "\"/>
  125.     <meta property=\"og:title\" content=\"";
  126.         // line 29
  127.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tv_notaris");
  128.         echo " - ";
  129.         echo twig_escape_filter($this->env, 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.', 29, $this->source); })()), "title", [], "any", false, false, false, 29), "html", null, true);
  130.         echo "\" />
  131.     <meta property=\"og:type\" content=\"video.movie\" />
  132.     <meta property=\"og:url\" content=\"";
  133.         // line 31
  134.         echo twig_escape_filter($this->env, (isset($context["canonicalLink"]) || array_key_exists("canonicalLink", $context) ? $context["canonicalLink"] : (function () { throw new RuntimeError('Variable "canonicalLink" does not exist.', 31, $this->source); })()), "html", null, true);
  135.         echo "\" />
  136.     ";
  137.         // line 33
  138.         if (twig_get_attribute($this->env, $this->source, 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.', 33, $this->source); })()), "meta", [], "any", false, false, false, 33), "ogDescription", [], "any", false, false, false, 33)) {
  139.             // line 34
  140.             echo "    <meta property=\"og:description\" content=\"";
  141.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 34, $this->source); })()), "meta", [], "any", false, false, false, 34), "ogDescription", [], "any", false, false, false, 34), "html", null, true);
  142.             echo "\" />
  143.     ";
  144.         }
  145.         // line 36
  146.         echo "
  147.     ";
  148.         // line 37
  149.         if ((isset($context["shareImageVideo"]) || array_key_exists("shareImageVideo", $context) ? $context["shareImageVideo"] : (function () { throw new RuntimeError('Variable "shareImageVideo" does not exist.', 37, $this->source); })())) {
  150.             // line 38
  151.             echo "        <meta property=\"og:image\" content=\"";
  152.             echo twig_escape_filter($this->env, (isset($context["shareImageVideo"]) || array_key_exists("shareImageVideo", $context) ? $context["shareImageVideo"] : (function () { throw new RuntimeError('Variable "shareImageVideo" does not exist.', 38, $this->source); })()), "html", null, true);
  153.             echo "\" />
  154.         <meta property=\"og:image:width\" content=\"1200\" />
  155.         <meta property=\"og:image:height\" content=\"630\" />
  156.     ";
  157.         } else {
  158.             // line 42
  159.             echo "        ";
  160.             $this->displayParentBlock("extrameta", $context, $blocks);
  161.             echo "
  162.     ";
  163.         }
  164.         
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  166.         
  167.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  168.     }
  169.     // line 46
  170.     public function block_body($context, array $blocks = [])
  171.     {
  172.         $macros = $this->macros;
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  177.         // line 47
  178.         echo "
  179.     <section class=\"content u-padding-top-large\">
  180.         ";
  181.         // line 49
  182.         echo twig_include($this->env, $context, "@NotarisFrontend/module/sidenav.html.twig", ["subsite" => (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 49, $this->source); })())]);
  183.         echo "
  184.         <div id=\"content-center\" class=\"content-center-large standard\">
  185.             <div id=\"content-center-header\">
  186.                 <article class=\"niveau3\">
  187.                     <div class=\"article-content\">
  188.                         <h2 class=\"u-text-lineheight-semilarge u-h2@desktop\">";
  189.         // line 55
  190.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tv_notaris");
  191.         echo " - ";
  192.         echo twig_escape_filter($this->env, 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.', 55, $this->source); })()), "title", [], "any", false, false, false, 55), "html", null, true);
  193.         echo "</h2>
  194.                     </div>
  195.                 </article>
  196.             </div>
  197.             <section id=\"info\" class=\"no-margin\">
  198.                 <div id=\"info-content\" class=\"niveau1 info-news-content\">
  199.                     <article>
  200.                         ";
  201.         // line 76
  202.         echo "                        ";
  203.         if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 76, $this->source); })()), "asset", [], "any", false, false, false, 76), "assetVideopaths", [], "any", false, false, false, 76), 0, [], "array", false, false, false, 76), "videopath", [], "any", false, false, false, 76), "youtube", [], "any", false, false, false, 76) != "")) {
  204.             // line 77
  205.             echo "                            <iframe class=\"o-tabpannel__content__youtube js-tabpannel-youtube u-margin-bottom-small\" frameborder=\"0\" allowfullscreen=\"1\" title=\"YouTube video player\" width=\"490\" height=\"280\" src=\"//www.youtube-nocookie.com/embed/";
  206.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 77, $this->source); })()), "asset", [], "any", false, false, false, 77), "assetVideopaths", [], "any", false, false, false, 77), 0, [], "array", false, false, false, 77), "videopath", [], "any", false, false, false, 77), "youtube", [], "any", false, false, false, 77), "html", null, true);
  207.             echo "?enablejsapi=1&widgetid=1&rel=0\" kwframeid=\"2\"></iframe>
  208.                         ";
  209.         } else {
  210.             // line 79
  211.             echo "                            ";
  212.             $context["poster"] = "";
  213.             // line 80
  214.             echo "                            ";
  215.             if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 80, $this->source); })()), "asset", [], "any", false, false, false, 80), "assetImages", [], "any", false, false, false, 80)) > 0)) {
  216.                 // line 81
  217.                 echo "                                ";
  218.                 $context["poster"] = (("/uploads/" . (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 81, $this->source); })())) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 81, $this->source); })()), "asset", [], "any", false, false, false, 81), "assetImages", [], "any", false, false, false, 81), 0, [], "array", false, false, false, 81), "image", [], "any", false, false, false, 81), "filename", [], "any", false, false, false, 81));
  219.                 // line 82
  220.                 echo "                            ";
  221.             }
  222.             // line 83
  223.             echo "                            <video class=\"o-tabpannel__content__video js-tabpannel-video u-margin-bottom-small\" controls preload=\"auto\" poster=\"";
  224.             echo twig_escape_filter($this->env, (isset($context["poster"]) || array_key_exists("poster", $context) ? $context["poster"] : (function () { throw new RuntimeError('Variable "poster" does not exist.', 83, $this->source); })()), "html", null, true);
  225.             echo "\" width=\"100%\" height=\"300\">
  226.                                 <source src=\"/video/";
  227.             // line 84
  228.             echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 84, $this->source); })()), "html", null, true);
  229.             echo "/";
  230.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 84, $this->source); })()), "asset", [], "any", false, false, false, 84), "assetVideopaths", [], "any", false, false, false, 84), 0, [], "array", false, false, false, 84), "videopath", [], "any", false, false, false, 84), "path", [], "any", false, false, false, 84), "html", null, true);
  231.             echo "\">
  232.                             </video>
  233.                         ";
  234.         }
  235.         // line 87
  236.         echo "                        <h2>";
  237.         echo twig_escape_filter($this->env, $this->extensions['Notaris\FrontendBundle\Twig\DateExtension']->localdateFilter(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.', 87, $this->source); })()), "publicationDate", [], "any", false, false, false, 87)), "html", null, true);
  238.         echo "</h2>
  239.                     </article>
  240.                     ";
  241.         // line 89
  242.         if ((twig_length_filter($this->env, 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.', 89, $this->source); })()), "tags", [], "any", false, false, false, 89)) > 0)) {
  243.             // line 90
  244.             echo "                        ";
  245.             // line 98
  246.             echo "                        <div class=\"c-tags u-margin-top-small u-padding-left-small u-padding-right-small js-tags\">
  247.                             ";
  248.             // line 99
  249.             $context['_parent'] = $context;
  250.             $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.', 99, $this->source); })()), "tags", [], "any", false, false, false, 99));
  251.             foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  252.                 // line 100
  253.                 echo "                                <a href=\"";
  254.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag", ["tagSlug" => twig_get_attribute($this->env, $this->source, $context["tag"], "slug", [], "any", false, false, false, 100)]), "html", null, true);
  255.                 echo "\" data-slug=\"";
  256.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "slug", [], "any", false, false, false, 100), "html", null, true);
  257.                 echo "\" data-tag-clicked=\"";
  258.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag_clicked");
  259.                 echo "\" title=\"";
  260.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, false, 100), "html", null, true);
  261.                 echo "\" class=\"c-tags__item\"><small>";
  262.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, false, 100), "html", null, true);
  263.                 echo "</small></a>
  264.                             ";
  265.             }
  266.             $_parent = $context['_parent'];
  267.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  268.             $context = array_intersect_key($context, $_parent) + $_parent;
  269.             // line 102
  270.             echo "                        </div>
  271.                         <div class=\"c-divider c-divider--light\">&nbsp;</div>
  272.                     ";
  273.         }
  274.         // line 105
  275.         echo "
  276.                     <div class=\"c-movies\">
  277.                         <article class=\"u-no-border\">
  278.                             <h1>";
  279.         // line 109
  280.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tv_gerelateerd");
  281.         echo "</h1>
  282.                         </article>
  283.                         ";
  284.         // line 111
  285.         $context['_parent'] = $context;
  286.         $context['_seq'] = twig_ensure_traversable((isset($context["randomvideos"]) || array_key_exists("randomvideos", $context) ? $context["randomvideos"] : (function () { throw new RuntimeError('Variable "randomvideos" does not exist.', 111, $this->source); })()));
  287.         foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  288.             // line 112
  289.             echo "
  290.                         <div class=\"c-movies__item\">
  291.                             <a href=\"";
  292.             // line 114
  293.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tv_detail_video", ["slug" => (isset($context["pageslug"]) || array_key_exists("pageslug", $context) ? $context["pageslug"] : (function () { throw new RuntimeError('Variable "pageslug" does not exist.', 114, $this->source); })()), "slugvideo" => twig_get_attribute($this->env, $this->source, $context["video"], "slug", [], "any", false, false, false, 114)]), "html", null, true);
  294.             echo "\" title=\"";
  295.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["video"], "title", [], "any", false, false, false, 114), "html", null, true);
  296.             echo "\" class=\"o-grid__item o-object-fit c-movies__link ";
  297.             if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["video"], "asset", [], "any", false, false, false, 114), "assetImages", [], "any", false, false, false, 114)) == 0)) {
  298.                 echo "o-grid__item--overlay";
  299.             }
  300.             echo "\" data-slug=\"";
  301.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["video"], "slug", [], "any", false, false, false, 114), "html", null, true);
  302.             echo "\">
  303.                                 ";
  304.             // line 115
  305.             if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["video"], "asset", [], "any", false, false, false, 115), "assetImages", [], "any", false, false, false, 115)) > 0)) {
  306.                 // line 116
  307.                 echo "                                    ";
  308.                 $context["image_path"] = ((("uploads/" . (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 116, $this->source); })())) . "/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["video"], "asset", [], "any", false, false, false, 116), "assetImages", [], "any", false, false, false, 116), 0, [], "array", false, false, false, 116), "image", [], "any", false, false, false, 116), "filename", [], "any", false, false, false, 116));
  309.                 // line 117
  310.                 echo "                                    ";
  311.                 echo $this->extensions['Notaris\FrontendBundle\Twig\ResponsiveImageExtension']->responsiveImageSourceFilter((isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 117, $this->source); })()), [0 => 448, 1 => 353, 2 => 436], ["filterset" => "responsive_article_image", "sizes" => "(min-width: 960px) 448px, (min-width: 768px and max-width: 960px) 353px, (min-width: 480px and max-width: 768px) 436px, (max-width: 480px) 100vw", "alt" => twig_get_attribute($this->env, $this->source, $context["video"], "title", [], "any", false, false, false, 117), "title" => twig_get_attribute($this->env, $this->source, $context["video"], "title", [], "any", false, false, false, 117)]);
  312.                 echo "
  313.                                 ";
  314.             }
  315.             // line 119
  316.             echo "                                <div class=\"c-movies__overlay\">
  317.                                     <div class=\"o-grid__item__overlay__title c-movies__info\">
  318.                                         <h3 class=\"u-h4\">";
  319.             // line 121
  320.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["video"], "title", [], "any", false, false, false, 121), "html", null, true);
  321.             echo "</h3>
  322.                                     </div>
  323.                                     <button class=\"c-btn c-btn--icon c-btn--icon--large c-btn__play\">
  324.                                         <svg width=\"1792\" height=\"1792\" viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\"><style>.z{fill:#FFF;}</style><path class=\"z\" d=\"M1576 927L248 1665q-23 13-39.5 3t-16.5-36V160q0-26 16.5-36t39.5 3l1328 738q23 13 23 31t-23 31z\" fill=\"true\"/></svg>
  325.                                     </button>
  326.                                 </div>
  327.                                 <div class=\"c-movies__info-back\">
  328.                                     <span class=\"c-movies__meta\">";
  329.             // line 130
  330.             echo twig_escape_filter($this->env, $this->extensions['Notaris\FrontendBundle\Twig\DateExtension']->localdateFilter(twig_get_attribute($this->env, $this->source, $context["video"], "publicationDate", [], "any", false, false, false, 130)), "html", null, true);
  331.             echo "</span><br>
  332.                                     <span class=\"c-movies__meta c-movies__meta--theme\">";
  333.             // line 131
  334.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tv_rubriek"), "html", null, true);
  335.             echo ":</span>
  336.                                     <span class=\"c-movies__meta\">";
  337.             // line 132
  338.             $context['_parent'] = $context;
  339.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["video"], "subsites", [], "any", false, false, false, 132));
  340.             $context['loop'] = [
  341.               'parent' => $context['_parent'],
  342.               'index0' => 0,
  343.               'index'  => 1,
  344.               'first'  => true,
  345.             ];
  346.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  347.                 $length = count($context['_seq']);
  348.                 $context['loop']['revindex0'] = $length - 1;
  349.                 $context['loop']['revindex'] = $length;
  350.                 $context['loop']['length'] = $length;
  351.                 $context['loop']['last'] = 1 === $length;
  352.             }
  353.             foreach ($context['_seq'] as $context["_key"] => $context["subsite"]) {
  354.                 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["subsite"], "subsite", [], "any", false, false, false, 132), "name", [], "any", false, false, false, 132), "html", null, true);
  355.                 if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 132) &&  !twig_get_attribute($this->env, $this->source, $context["video"], "isVaria", [], "any", false, false, false, 132))) {
  356.                 } else {
  357.                     echo ", ";
  358.                 }
  359.                 ++$context['loop']['index0'];
  360.                 ++$context['loop']['index'];
  361.                 $context['loop']['first'] = false;
  362.                 if (isset($context['loop']['length'])) {
  363.                     --$context['loop']['revindex0'];
  364.                     --$context['loop']['revindex'];
  365.                     $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  366.                 }
  367.             }
  368.             $_parent = $context['_parent'];
  369.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subsite'], $context['_parent'], $context['loop']);
  370.             $context = array_intersect_key($context, $_parent) + $_parent;
  371.             if (twig_get_attribute($this->env, $this->source, $context["video"], "isVaria", [], "any", false, false, false, 132)) {
  372.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tv_varia_tekst"), "html", null, true);
  373.             }
  374.             echo "</span>
  375.                                 </div>
  376.                             </a>
  377.                         </div>
  378.                         ";
  379.         }
  380.         $_parent = $context['_parent'];
  381.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  382.         $context = array_intersect_key($context, $_parent) + $_parent;
  383.         // line 139
  384.         echo "                    </div>
  385.                 </div>
  386.             </section>
  387.             ";
  388.         // line 145
  389.         echo "            ";
  390.         echo twig_include($this->env, $context, "@NotarisFrontend/module/mod_cms.html.twig", ["rightmodules" => (isset($context["rightmodules"]) || array_key_exists("rightmodules", $context) ? $context["rightmodules"] : (function () { throw new RuntimeError('Variable "rightmodules" does not exist.', 145, $this->source); })())]);
  391.         echo "
  392.         </div>
  393.         <!-- #### CONTENT #### -->
  394.         <!-- modules -->
  395.         ";
  396.         // line 166
  397.         echo "
  398.         ";
  399.         // line 167
  400.         $this->loadTemplate("@NotarisFrontend/navigation/mobilesubnav.html.twig", "@NotarisFrontend/tv/video.html.twig", 167)->display(twig_array_merge($context, ["websiteSlug" => twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 167, $this->source); })()), "slug", [], "any", false, false, false, 167), "isSven" => false, "isHome" => false, "subsite" => (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 167, $this->source); })())]));
  401.         // line 168
  402.         echo "
  403.     </section>
  404. ";
  405.         
  406.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  407.         
  408.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  409.     }
  410.     // line 176
  411.     public function block_extrajs($context, array $blocks = [])
  412.     {
  413.         $macros = $this->macros;
  414.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  415.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrajs"));
  416.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  417.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrajs"));
  418.         // line 177
  419.         echo "    <script>
  420.         //adresbook();
  421.         \$(document).ready(function(){
  422.             \$('.info-news-content a.relvid').click(function(e){
  423.                 e.preventDefault();
  424.                 var href = \$(this).attr('href');
  425.                 var slug = \$(this).attr('data-slug');
  426.                 \$.getJSON('";
  427.         // line 186
  428.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tv_clicked");
  429.         echo "/' + slug, function(result){
  430.                     window.location.href = href;
  431.                 });
  432.             });
  433.         });
  434.         /*function onYouTubeIframeAPIReady() {
  435.             ";
  436.         // line 197
  437.         if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 197, $this->source); })()), "asset", [], "any", false, false, false, 197), "assetVideopaths", [], "any", false, false, false, 197), 0, [], "array", false, false, false, 197), "videopath", [], "any", false, false, false, 197), "youtube", [], "any", false, false, false, 197) != "")) {
  438.             // line 198
  439.             echo "
  440.                 var path = '";
  441.             // line 199
  442.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 199, $this->source); })()), "asset", [], "any", false, false, false, 199), "assetVideopaths", [], "any", false, false, false, 199), 0, [], "array", false, false, false, 199), "videopath", [], "any", false, false, false, 199), "youtube", [], "any", false, false, false, 199), "html", null, true);
  443.             echo "';
  444.                 var player = new YT.Player('youtube_' + path, {
  445.                     height: '250',
  446.                     width: '490',
  447.                     videoId: path,
  448.                 });
  449.             ";
  450.         }
  451.         // line 207
  452.         echo "
  453.         }
  454.         var tag = document.createElement('script');
  455.         tag.src = \"https://www.youtube.com/iframe_api\";
  456.         var firstScriptTag = document.getElementsByTagName('script')[0];
  457.         firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);*/
  458.     </script>
  459.     <script src=\"/js/video.js\"></script>
  460.     <script>
  461.         videojs.options.flash.swf = \"/js/video-js.swf\";
  462.     </script>
  463. ";
  464.         
  465.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  466.         
  467.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  468.     }
  469.     public function getTemplateName()
  470.     {
  471.         return "@NotarisFrontend/tv/video.html.twig";
  472.     }
  473.     public function isTraitable()
  474.     {
  475.         return false;
  476.     }
  477.     public function getDebugInfo()
  478.     {
  479.         return array (  511 => 207,  500 => 199,  497 => 198,  495 => 197,  481 => 186,  470 => 177,  460 => 176,  444 => 168,  442 => 167,  439 => 166,  429 => 145,  422 => 139,  374 => 132,  370 => 131,  366 => 130,  354 => 121,  350 => 119,  344 => 117,  341 => 116,  339 => 115,  327 => 114,  323 => 112,  319 => 111,  314 => 109,  308 => 105,  303 => 102,  286 => 100,  282 => 99,  279 => 98,  277 => 90,  275 => 89,  269 => 87,  261 => 84,  256 => 83,  253 => 82,  250 => 81,  247 => 80,  244 => 79,  238 => 77,  235 => 76,  222 => 55,  213 => 49,  209 => 47,  199 => 46,  185 => 42,  177 => 38,  175 => 37,  172 => 36,  166 => 34,  164 => 33,  159 => 31,  152 => 29,  145 => 27,  140 => 26,  130 => 25,  117 => 22,  107 => 21,  94 => 17,  84 => 16,  73 => 1,  71 => 20,  69 => 14,  67 => 13,  64 => 10,  61 => 8,  59 => 7,  57 => 6,  54 => 4,  52 => 3,  39 => 1,);
  480.     }
  481.     public function getSourceContext()
  482.     {
  483.         return new Source("{% extends '@NotarisFrontend/layout2017.html.twig' %}
  484. {% if notaryId is defined %}
  485.     {% set headTitle = info.header1  | replace({\"<BR />\":\" \"}) ~ ' - ' ~  subsite.pageTitle %}
  486. {% else %}
  487.     {% set headTitle = subsite.pageTitle %}
  488.     {% if section.meta.ogTitle and section.parent and section.parent.meta.ogTitle %}
  489.         {% set headTitle = section.meta.ogTitle | trans ~ \" | \" ~ section.parent.meta.ogTitle | trans %}
  490.     {% endif %}
  491.     {% set headTitle = headTitle ~ ' ' ~ 'alg_basetitle' | trans %}
  492. {% endif %}
  493. {% set linked_url_nl = url_nl ~ path('notaris_frontend_tv') %}
  494. {% set linked_url_fr = url_fr ~ path('notaris_frontend_tv') %}
  495. {% block title %}
  496.     <title>{{ headTitle }}</title>
  497. {% endblock %}
  498. {% set canonicalLink = url_scheme ~ '://www.' ~ _context['url_' ~ locale] ~ path('notaris_frontend_tv_detail_video', {slug: pageslug, slugvideo: video.slug}) %}
  499. {% block extralinks %}
  500.     <link rel=\"canonical\" href=\"{{ canonicalLink }}\"  />
  501. {% endblock %}
  502. {% block extrameta %}
  503.     <meta name=\"keywords\" content=\"{{ section.meta.metaKeywords }}\"/>
  504.     <meta name=\"description\" lang=\"{{ locale }}\" content=\"{{ section.meta.metaDescription }}\"/>
  505.     <meta property=\"og:title\" content=\"{{ 'tv_notaris' | trans | raw }} - {{ video.title }}\" />
  506.     <meta property=\"og:type\" content=\"video.movie\" />
  507.     <meta property=\"og:url\" content=\"{{ canonicalLink }}\" />
  508.     {% if video.meta.ogDescription %}
  509.     <meta property=\"og:description\" content=\"{{ video.meta.ogDescription }}\" />
  510.     {% endif %}
  511.     {% if shareImageVideo %}
  512.         <meta property=\"og:image\" content=\"{{ shareImageVideo }}\" />
  513.         <meta property=\"og:image:width\" content=\"1200\" />
  514.         <meta property=\"og:image:height\" content=\"630\" />
  515.     {% else %}
  516.         {{ parent() }}
  517.     {% endif %}
  518. {% endblock %}
  519. {% block body %}
  520.     <section class=\"content u-padding-top-large\">
  521.         {{ include('@NotarisFrontend/module/sidenav.html.twig', {'subsite': subsite }) }}
  522.         <div id=\"content-center\" class=\"content-center-large standard\">
  523.             <div id=\"content-center-header\">
  524.                 <article class=\"niveau3\">
  525.                     <div class=\"article-content\">
  526.                         <h2 class=\"u-text-lineheight-semilarge u-h2@desktop\">{{ 'tv_notaris' | trans | raw }} - {{ video.title }}</h2>
  527.                     </div>
  528.                 </article>
  529.             </div>
  530.             <section id=\"info\" class=\"no-margin\">
  531.                 <div id=\"info-content\" class=\"niveau1 info-news-content\">
  532.                     <article>
  533.                         {#{% if video.asset.assetVideopaths[0].videopath.youtube != '' %}
  534.                             <div id=\"youtube_{{ video.asset.assetVideopaths[0].videopath.youtube }}\"></div>
  535.                         {% else %}
  536.                             {% set poster = \"\" %}
  537.                             {% if video.asset.assetImages | length > 0 %}
  538.                                 {% set poster = '/uploads/' ~ locale ~ video.asset.assetImages[0].image.filename %}
  539.                             {% endif %}
  540.                             <video id=\"my_video_1\" class=\"video-js vjs-default-skin vjs-big-play-centered\" controls preload=\"auto\" poster=\"{{ poster }}\" width=\"100%\" height=\"300\" data-setup=\"{}\">
  541.                                 <source src=\"/video/{{ locale }}/{{ video.asset.assetVideopaths[0].videopath.path }}\" type=\"video/mp4\" >
  542.                             </video>
  543.                         {% endif %}#}
  544.                         {% if video.asset.assetVideopaths[0].videopath.youtube != '' %}
  545.                             <iframe class=\"o-tabpannel__content__youtube js-tabpannel-youtube u-margin-bottom-small\" frameborder=\"0\" allowfullscreen=\"1\" title=\"YouTube video player\" width=\"490\" height=\"280\" src=\"//www.youtube-nocookie.com/embed/{{ video.asset.assetVideopaths[0].videopath.youtube }}?enablejsapi=1&widgetid=1&rel=0\" kwframeid=\"2\"></iframe>
  546.                         {% else %}
  547.                             {% set poster = \"\" %}
  548.                             {% if video.asset.assetImages | length > 0 %}
  549.                                 {% set poster = '/uploads/' ~ locale ~ video.asset.assetImages[0].image.filename %}
  550.                             {% endif %}
  551.                             <video class=\"o-tabpannel__content__video js-tabpannel-video u-margin-bottom-small\" controls preload=\"auto\" poster=\"{{ poster }}\" width=\"100%\" height=\"300\">
  552.                                 <source src=\"/video/{{ locale }}/{{ video.asset.assetVideopaths[0].videopath.path }}\">
  553.                             </video>
  554.                         {% endif %}
  555.                         <h2>{{ video.publicationDate | localdate }}</h2>
  556.                     </article>
  557.                     {% if video.tags | length > 0 %}
  558.                         {#<article class=\"tags\">
  559.                             <p>
  560.                                 {% for tag in video.tags %}
  561.                                     <a data-slug=\"{{ tag.slug }}\" href=\"{{ path('notaris_frontend_tag', {'tagSlug': tag.slug}) }}\" title=\"{{ tag.name }}\">{{ tag.name }}</a>
  562.                                 {% endfor %}
  563.                             </p>
  564.                             <div class=\"cleaner\">&nbsp;</div>
  565.                         </article>#}
  566.                         <div class=\"c-tags u-margin-top-small u-padding-left-small u-padding-right-small js-tags\">
  567.                             {% for tag in video.tags %}
  568.                                 <a href=\"{{ path('notaris_frontend_tag', {'tagSlug': tag.slug}) }}\" data-slug=\"{{ tag.slug }}\" data-tag-clicked=\"{{ path('notaris_frontend_tag_clicked') }}\" title=\"{{ tag.name }}\" class=\"c-tags__item\"><small>{{ tag.name }}</small></a>
  569.                             {% endfor %}
  570.                         </div>
  571.                         <div class=\"c-divider c-divider--light\">&nbsp;</div>
  572.                     {% endif %}
  573.                     <div class=\"c-movies\">
  574.                         <article class=\"u-no-border\">
  575.                             <h1>{{ 'tv_gerelateerd' | trans | raw }}</h1>
  576.                         </article>
  577.                         {% for video in randomvideos %}
  578.                         <div class=\"c-movies__item\">
  579.                             <a href=\"{{ path('notaris_frontend_tv_detail_video', {'slug': pageslug, 'slugvideo': video.slug}) }}\" title=\"{{ video.title }}\" class=\"o-grid__item o-object-fit c-movies__link {% if video.asset.assetImages | length == 0 %}o-grid__item--overlay{% endif %}\" data-slug=\"{{ video.slug }}\">
  580.                                 {% if video.asset.assetImages | length > 0 %}
  581.                                     {% set image_path = 'uploads/'~ locale ~ '/' ~ video.asset.assetImages[0].image.filename %}
  582.                                     {{image_path | responsive_image_source([448, 353, 436], {'filterset': 'responsive_article_image', 'sizes': '(min-width: 960px) 448px, (min-width: 768px and max-width: 960px) 353px, (min-width: 480px and max-width: 768px) 436px, (max-width: 480px) 100vw', 'alt': video.title, 'title': video.title}) }}
  583.                                 {% endif %}
  584.                                 <div class=\"c-movies__overlay\">
  585.                                     <div class=\"o-grid__item__overlay__title c-movies__info\">
  586.                                         <h3 class=\"u-h4\">{{ video.title }}</h3>
  587.                                     </div>
  588.                                     <button class=\"c-btn c-btn--icon c-btn--icon--large c-btn__play\">
  589.                                         <svg width=\"1792\" height=\"1792\" viewBox=\"0 0 1792 1792\" xmlns=\"http://www.w3.org/2000/svg\"><style>.z{fill:#FFF;}</style><path class=\"z\" d=\"M1576 927L248 1665q-23 13-39.5 3t-16.5-36V160q0-26 16.5-36t39.5 3l1328 738q23 13 23 31t-23 31z\" fill=\"true\"/></svg>
  590.                                     </button>
  591.                                 </div>
  592.                                 <div class=\"c-movies__info-back\">
  593.                                     <span class=\"c-movies__meta\">{{ video.publicationDate | localdate }}</span><br>
  594.                                     <span class=\"c-movies__meta c-movies__meta--theme\">{{ 'tv_rubriek'|trans }}:</span>
  595.                                     <span class=\"c-movies__meta\">{% for subsite in video.subsites %}{{ subsite.subsite.name }}{% if loop.last and not video.isVaria %}{% else %}, {% endif %}{% endfor %}{% if video.isVaria %}{{ 'tv_varia_tekst' | trans }}{% endif %}</span>
  596.                                 </div>
  597.                             </a>
  598.                         </div>
  599.                         {% endfor %}
  600.                     </div>
  601.                 </div>
  602.             </section>
  603.             {# dynamische cms modules #}
  604.             {{ include('@NotarisFrontend/module/mod_cms.html.twig', {'rightmodules': rightmodules }) }}
  605.         </div>
  606.         <!-- #### CONTENT #### -->
  607.         <!-- modules -->
  608.         {#
  609.            <aside id=\"content-right\">
  610.                {% if notaryId is defined %}
  611.                    {{ include('@NotarisFrontend/Sven/_sven_address.html.twig') }}
  612.                {% else %}
  613.                    {{ include('@NotarisFrontend/Module/notsearch_module.html.twig') }}
  614.                {% endif %}
  615.                <div class=\"cleaner\">&nbsp;</div>
  616.            </aside>
  617.         #}
  618.         {% include '@NotarisFrontend/navigation/mobilesubnav.html.twig' with {'websiteSlug': subsite.slug, 'isSven':false, 'isHome':false, 'subsite': subsite} %}
  619.     </section>
  620. {% endblock %}
  621. {% block extrajs %}
  622.     <script>
  623.         //adresbook();
  624.         \$(document).ready(function(){
  625.             \$('.info-news-content a.relvid').click(function(e){
  626.                 e.preventDefault();
  627.                 var href = \$(this).attr('href');
  628.                 var slug = \$(this).attr('data-slug');
  629.                 \$.getJSON('{{ path('notaris_frontend_tv_clicked') }}/' + slug, function(result){
  630.                     window.location.href = href;
  631.                 });
  632.             });
  633.         });
  634.         /*function onYouTubeIframeAPIReady() {
  635.             {% if video.asset.assetVideopaths[0].videopath.youtube != '' %}
  636.                 var path = '{{ video.asset.assetVideopaths[0].videopath.youtube }}';
  637.                 var player = new YT.Player('youtube_' + path, {
  638.                     height: '250',
  639.                     width: '490',
  640.                     videoId: path,
  641.                 });
  642.             {% endif %}
  643.         }
  644.         var tag = document.createElement('script');
  645.         tag.src = \"https://www.youtube.com/iframe_api\";
  646.         var firstScriptTag = document.getElementsByTagName('script')[0];
  647.         firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);*/
  648.     </script>
  649.     <script src=\"/js/video.js\"></script>
  650.     <script>
  651.         videojs.options.flash.swf = \"/js/video-js.swf\";
  652.     </script>
  653. {% endblock %}
  654. ", "@NotarisFrontend/tv/video.html.twig", "/data/sites/web/notarisdc-projectsbe/subsites/apps/default/releases/7/src/Notaris/FrontendBundle/Resources/views/tv/video.html.twig");
  655.     }
  656. }