var/cache/dev/twig/97/97fe9801e1638c182e853e65a6fadd868749c2b4b0d8560ef7a24c8cbcf18c57.php line 33

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. /* PageParts/VideosGalleryPagePart/view.html.twig */
  14. class __TwigTemplate_8198002de5a76dbf62104798c38bc74c56dd25d9213b7efd06c8de6b4b4afa1f 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""PageParts/VideosGalleryPagePart/view.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""PageParts/VideosGalleryPagePart/view.html.twig"));
  33.         // line 1
  34.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'1$this->source); })()), "videos", [], "any"falsefalsefalse1)) > 1)) {
  35.             // line 2
  36.             echo "
  37.     ";
  38.             // line 3
  39.             if ((twig_get_attribute($this->env$this->source, ($context["resource"] ?? null), "videos", [], "any"truetruefalse3) && twig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'3$this->source); })()), "videos", [], "any"falsefalsefalse3))) {
  40.                 // line 4
  41.                 echo "
  42.             ";
  43.                 // line 5
  44.                 $context["videoImage"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/img/general/video-pp--default.svg");
  45.                 // line 6
  46.                 echo "            ";
  47.                 $context["imageType"] = "jpg";
  48.                 // line 7
  49.                 echo "
  50.     ";
  51.             }
  52.             // line 9
  53.             echo "
  54.     <div class=\"gallery video-gallery video-pp\" id=\"video-gallery-";
  55.             // line 10
  56.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'10$this->source); })()), "id", [], "any"falsefalsefalse10), "html"nulltrue);
  57.             echo "\">
  58.         <div class=\"gallery-boxes\">
  59.             ";
  60.             // line 14
  61.             $context['_parent'] = $context;
  62.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'14$this->source); })()), "videos", [], "any"falsefalsefalse14));
  63.             foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  64.                 // line 15
  65.                 echo "
  66.                 ";
  67.                 // line 16
  68.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse16), "contentType", [], "any"falsefalsefalse16) != "video/mp4")) {
  69.                     // line 17
  70.                     echo "
  71.                     ";
  72.                     // line 18
  73.                     $context["handler"] = twig_get_attribute($this->env$this->source, (isset($context["mediamanager"]) || array_key_exists("mediamanager"$context) ? $context["mediamanager"] : (function () { throw new RuntimeError('Variable "mediamanager" does not exist.'18$this->source); })()), "getHandler", [=> twig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse18)], "method"falsefalsefalse18);
  74.                     // line 19
  75.                     echo "                    ";
  76.                     $context["helper"] = twig_get_attribute($this->env$this->source, (isset($context["handler"]) || array_key_exists("handler"$context) ? $context["handler"] : (function () { throw new RuntimeError('Variable "handler" does not exist.'19$this->source); })()), "getFormHelper", [=> twig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse19)], "method"falsefalsefalse19);
  77.                     // line 20
  78.                     echo "
  79.                     ";
  80.                     // line 21
  81.                     if ((twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'21$this->source); })()), "type", [], "any"falsefalsefalse21) == "youtube")) {
  82.                         // line 22
  83.                         echo "                        ";
  84.                         $context["videoEmbedUrl"] = ("//www.youtube.com/embed/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'22$this->source); })()), "code", [], "any"falsefalsefalse22));
  85.                         // line 23
  86.                         echo "                    ";
  87.                     } elseif ((twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'23$this->source); })()), "type", [], "any"falsefalsefalse23) == "vimeo")) {
  88.                         // line 24
  89.                         echo "                        ";
  90.                         $context["videoEmbedUrl"] = ("//player.vimeo.com/video/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'24$this->source); })()), "code", [], "any"falsefalsefalse24));
  91.                         // line 25
  92.                         echo "                    ";
  93.                     } elseif ((twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'25$this->source); })()), "type", [], "any"falsefalsefalse25) == "dailymotion")) {
  94.                         // line 26
  95.                         echo "                        ";
  96.                         $context["videoEmbedUrl"] = ("//www.dailymotion.com/embed/video/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'26$this->source); })()), "code", [], "any"falsefalsefalse26));
  97.                         // line 27
  98.                         echo "                    ";
  99.                     }
  100.                     // line 28
  101.                     echo "
  102.                 ";
  103.                 }
  104.                 // line 30
  105.                 echo "
  106.                 <div class=\"gallery-box\">
  107.                     <div class=\"videolink\">
  108.                         ";
  109.                 // line 34
  110.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse34), "contentType", [], "any"falsefalsefalse34) != "video/mp4")) {
  111.                     // line 35
  112.                     echo "
  113.                             <a href=\"";
  114.                     // line 36
  115.                     echo twig_escape_filter($this->env, (isset($context["videoEmbedUrl"]) || array_key_exists("videoEmbedUrl"$context) ? $context["videoEmbedUrl"] : (function () { throw new RuntimeError('Variable "videoEmbedUrl" does not exist.'36$this->source); })()), "html"nulltrue);
  116.                     echo "\" target=\"_blank\" rel=\"noopener\" class=\"js-videolink-play-link videolink__video-link\" data-video-provider=\"";
  117.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'36$this->source); })()), "type", [], "any"falsefalsefalse36), "html"nulltrue);
  118.                     echo "\" data-video-id=\"";
  119.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'36$this->source); })()), "code", [], "any"falsefalsefalse36), "html"nulltrue);
  120.                     echo "\" data-make-fluid=\"true\">
  121.                                 <i class=\"videolink__video-link__icon fas fa-play\"></i>
  122.                                 ";
  123.                     // line 39
  124.                     $context["img"] = ((twig_get_attribute($this->env$this->source$context["video"], "preview", [], "any"falsefalsefalse39)) ? (twig_get_attribute($this->env$this->source$context["video"], "preview", [], "any"falsefalsefalse39)) : (null));
  125.                     // line 40
  126.                     echo "
  127.                                 ";
  128.                     // line 41
  129.                     if (( !(null === (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'41$this->source); })())) &&  !twig_test_empty((isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'41$this->source); })())))) {
  130.                         // line 42
  131.                         echo "
  132.                                     ";
  133.                         // line 43
  134.                         $context["fullSrc"] = call_user_func_array($this->env->getFunction('croppedImgSrc')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'43$this->source); })()), "url", [], "any"falsefalsefalse43), twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'43$this->source); })()), "cropping", [], "any"falsefalsefalse43), ["w" => 1400"q" => 80]]);
  135.                         // line 44
  136.                         echo "                                    ";
  137.                         $context["previewSrc"] = call_user_func_array($this->env->getFunction('croppedImgSrc')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'44$this->source); })()), "url", [], "any"falsefalsefalse44), twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'44$this->source); })()), "cropping", [], "any"falsefalsefalse44), twig_get_attribute($this->env$this->source, (isset($context["jml_img_large"]) || array_key_exists("jml_img_large"$context) ? $context["jml_img_large"] : (function () { throw new RuntimeError('Variable "jml_img_large" does not exist.'44$this->source); })()), "preview", [], "any"falsefalsefalse44)]);
  138.                         // line 45
  139.                         echo "
  140.                                     <img class=\"video-pp__link__img lazy\"
  141.                                          src=\"";
  142.                         // line 47
  143.                         echo twig_escape_filter($this->env, (isset($context["previewSrc"]) || array_key_exists("previewSrc"$context) ? $context["previewSrc"] : (function () { throw new RuntimeError('Variable "previewSrc" does not exist.'47$this->source); })()), "html"nulltrue);
  144.                         echo "\" data-src=\"";
  145.                         echo twig_escape_filter($this->env, (isset($context["fullSrc"]) || array_key_exists("fullSrc"$context) ? $context["fullSrc"] : (function () { throw new RuntimeError('Variable "fullSrc" does not exist.'47$this->source); })()), "html"nulltrue);
  146.                         echo "\"
  147.                                          ";
  148.                         // line 48
  149.                         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse48), "name", [], "any"falsefalsefalse48)) {
  150.                             echo "alt=\"";
  151.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse48), "name", [], "any"falsefalsefalse48), "html"nulltrue);
  152.                             echo "\"";
  153.                         }
  154.                         echo " />
  155.                                 ";
  156.                     } else {
  157.                         // line 51
  158.                         echo "
  159.                                     <img class=\"video-pp__link__img\" src=\"";
  160.                         // line 52
  161.                         echo twig_escape_filter($this->env, (("https://i.ytimg.com/vi/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'52$this->source); })()), "code", [], "any"falsefalsefalse52)) . "/maxresdefault.jpg"), "html"nulltrue);
  162.                         echo "\" alt=\"";
  163.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse52), "name", [], "any"falsefalsefalse52), "html"nulltrue);
  164.                         echo "\">
  165.                                 ";
  166.                     }
  167.                     // line 55
  168.                     echo "
  169.                             </a>
  170.                             <div class=\"js-videolink-container videolink__video-container\"></div>
  171.                         ";
  172.                 } else {
  173.                     // line 60
  174.                     echo "
  175.                             <video controls>
  176.                                 <source src=\"";
  177.                     // line 62
  178.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse62), "url", [], "any"falsefalsefalse62)), "html"nulltrue);
  179.                     echo "\" type=\"video/mp4\">
  180.                             </video>
  181.                         ";
  182.                 }
  183.                 // line 66
  184.                 echo "
  185.                     </div>
  186.                 </div>
  187.             ";
  188.             }
  189.             $_parent $context['_parent'];
  190.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  191.             $context array_intersect_key($context$_parent) + $_parent;
  192.             // line 71
  193.             echo "
  194.         </div>
  195.         <div class=\"gallery-nav\">
  196.             ";
  197.             // line 76
  198.             $context['_parent'] = $context;
  199.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'76$this->source); })()), "videos", [], "any"falsefalsefalse76));
  200.             foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  201.                 // line 77
  202.                 echo "
  203.                 ";
  204.                 // line 78
  205.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse78), "contentType", [], "any"falsefalsefalse78) != "video/mp4")) {
  206.                     // line 79
  207.                     echo "
  208.                     ";
  209.                     // line 80
  210.                     $context["handler"] = twig_get_attribute($this->env$this->source, (isset($context["mediamanager"]) || array_key_exists("mediamanager"$context) ? $context["mediamanager"] : (function () { throw new RuntimeError('Variable "mediamanager" does not exist.'80$this->source); })()), "getHandler", [=> twig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse80)], "method"falsefalsefalse80);
  211.                     // line 81
  212.                     echo "                    ";
  213.                     $context["helper"] = twig_get_attribute($this->env$this->source, (isset($context["handler"]) || array_key_exists("handler"$context) ? $context["handler"] : (function () { throw new RuntimeError('Variable "handler" does not exist.'81$this->source); })()), "getFormHelper", [=> twig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse81)], "method"falsefalsefalse81);
  214.                     // line 82
  215.                     echo "
  216.                     ";
  217.                     // line 83
  218.                     if ((twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'83$this->source); })()), "type", [], "any"falsefalsefalse83) == "youtube")) {
  219.                         // line 84
  220.                         echo "                        ";
  221.                         $context["videoEmbedUrl"] = ("//www.youtube.com/embed/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'84$this->source); })()), "code", [], "any"falsefalsefalse84));
  222.                         // line 85
  223.                         echo "                    ";
  224.                     } elseif ((twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'85$this->source); })()), "type", [], "any"falsefalsefalse85) == "vimeo")) {
  225.                         // line 86
  226.                         echo "                        ";
  227.                         $context["videoEmbedUrl"] = ("//player.vimeo.com/video/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'86$this->source); })()), "code", [], "any"falsefalsefalse86));
  228.                         // line 87
  229.                         echo "                    ";
  230.                     } elseif ((twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'87$this->source); })()), "type", [], "any"falsefalsefalse87) == "dailymotion")) {
  231.                         // line 88
  232.                         echo "                        ";
  233.                         $context["videoEmbedUrl"] = ("//www.dailymotion.com/embed/video/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'88$this->source); })()), "code", [], "any"falsefalsefalse88));
  234.                         // line 89
  235.                         echo "                    ";
  236.                     }
  237.                     // line 90
  238.                     echo "
  239.                 ";
  240.                 }
  241.                 // line 92
  242.                 echo "
  243.                 <div class=\"gallery-thumb\">
  244.                     <div class=\"videolink\">
  245.                         ";
  246.                 // line 96
  247.                 $context["img"] = ((twig_get_attribute($this->env$this->source$context["video"], "preview", [], "any"falsefalsefalse96)) ? (twig_get_attribute($this->env$this->source$context["video"], "preview", [], "any"falsefalsefalse96)) : (null));
  248.                 // line 97
  249.                 echo "
  250.                         ";
  251.                 // line 98
  252.                 if (( !(null === (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'98$this->source); })())) &&  !twig_test_empty((isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'98$this->source); })())))) {
  253.                     // line 99
  254.                     echo "                            ";
  255.                     $context["fullSrc"] = call_user_func_array($this->env->getFunction('croppedImgSrc')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'99$this->source); })()), "url", [], "any"falsefalsefalse99), twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'99$this->source); })()), "cropping", [], "any"falsefalsefalse99), ["w" => 180"q" => 80"fit" => "crop"]]);
  256.                     // line 100
  257.                     echo "                            ";
  258.                     $context["previewSrc"] = call_user_func_array($this->env->getFunction('croppedImgSrc')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'100$this->source); })()), "url", [], "any"falsefalsefalse100), twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'100$this->source); })()), "cropping", [], "any"falsefalsefalse100), twig_get_attribute($this->env$this->source, (isset($context["jml_img_large"]) || array_key_exists("jml_img_large"$context) ? $context["jml_img_large"] : (function () { throw new RuntimeError('Variable "jml_img_large" does not exist.'100$this->source); })()), "preview", [], "any"falsefalsefalse100)]);
  259.                     // line 101
  260.                     echo "
  261.                             <img class=\"video-pp__link__img lazy\"
  262.                                  src=\"";
  263.                     // line 103
  264.                     echo twig_escape_filter($this->env, (isset($context["previewSrc"]) || array_key_exists("previewSrc"$context) ? $context["previewSrc"] : (function () { throw new RuntimeError('Variable "previewSrc" does not exist.'103$this->source); })()), "html"nulltrue);
  265.                     echo "\" data-src=\"";
  266.                     echo twig_escape_filter($this->env, (isset($context["fullSrc"]) || array_key_exists("fullSrc"$context) ? $context["fullSrc"] : (function () { throw new RuntimeError('Variable "fullSrc" does not exist.'103$this->source); })()), "html"nulltrue);
  267.                     echo "\"
  268.                                  ";
  269.                     // line 104
  270.                     if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse104), "name", [], "any"falsefalsefalse104)) {
  271.                         echo "alt=\"";
  272.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse104), "name", [], "any"falsefalsefalse104), "html"nulltrue);
  273.                         echo "\"";
  274.                     }
  275.                     echo " />
  276.                         ";
  277.                 }
  278.                 // line 107
  279.                 echo "
  280.                     </div>
  281.                 </div>
  282.             ";
  283.             }
  284.             $_parent $context['_parent'];
  285.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  286.             $context array_intersect_key($context$_parent) + $_parent;
  287.             // line 112
  288.             echo "
  289.         </div>
  290.         <div class=\"gallery-clearfix\"></div>
  291.     </div>
  292. ";
  293.         } else {
  294.             // line 119
  295.             echo "
  296.     <div class=\"gallery\" id=\"video-gallery-";
  297.             // line 120
  298.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'120$this->source); })()), "id", [], "any"falsefalsefalse120), "html"nulltrue);
  299.             echo "\">
  300.         <div class=\"gallery-boxes\">
  301.             ";
  302.             // line 122
  303.             $context['_parent'] = $context;
  304.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'122$this->source); })()), "videos", [], "any"falsefalsefalse122));
  305.             foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  306.                 // line 123
  307.                 echo "
  308.                 ";
  309.                 // line 124
  310.                 $context["handler"] = twig_get_attribute($this->env$this->source, (isset($context["mediamanager"]) || array_key_exists("mediamanager"$context) ? $context["mediamanager"] : (function () { throw new RuntimeError('Variable "mediamanager" does not exist.'124$this->source); })()), "getHandler", [=> twig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse124)], "method"falsefalsefalse124);
  311.                 // line 125
  312.                 echo "                ";
  313.                 $context["helper"] = twig_get_attribute($this->env$this->source, (isset($context["handler"]) || array_key_exists("handler"$context) ? $context["handler"] : (function () { throw new RuntimeError('Variable "handler" does not exist.'125$this->source); })()), "getFormHelper", [=> twig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse125)], "method"falsefalsefalse125);
  314.                 // line 126
  315.                 echo "
  316.                 ";
  317.                 // line 127
  318.                 if ((twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'127$this->source); })()), "type", [], "any"falsefalsefalse127) == "youtube")) {
  319.                     // line 128
  320.                     echo "                    ";
  321.                     $context["videoEmbedUrl"] = ("//www.youtube.com/embed/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'128$this->source); })()), "code", [], "any"falsefalsefalse128));
  322.                     // line 129
  323.                     echo "                ";
  324.                 } elseif ((twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'129$this->source); })()), "type", [], "any"falsefalsefalse129) == "vimeo")) {
  325.                     // line 130
  326.                     echo "                    ";
  327.                     $context["videoEmbedUrl"] = ("//player.vimeo.com/video/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'130$this->source); })()), "code", [], "any"falsefalsefalse130));
  328.                     // line 131
  329.                     echo "                ";
  330.                 } elseif ((twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'131$this->source); })()), "type", [], "any"falsefalsefalse131) == "dailymotion")) {
  331.                     // line 132
  332.                     echo "                    ";
  333.                     $context["videoEmbedUrl"] = ("//www.dailymotion.com/embed/video/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'132$this->source); })()), "code", [], "any"falsefalsefalse132));
  334.                     // line 133
  335.                     echo "                ";
  336.                 }
  337.                 // line 134
  338.                 echo "
  339.                 <div class=\"gallery-box\">
  340.                     <div class=\"videolink\">
  341.                         <a href=\"";
  342.                 // line 137
  343.                 echo twig_escape_filter($this->env, (isset($context["videoEmbedUrl"]) || array_key_exists("videoEmbedUrl"$context) ? $context["videoEmbedUrl"] : (function () { throw new RuntimeError('Variable "videoEmbedUrl" does not exist.'137$this->source); })()), "html"nulltrue);
  344.                 echo "\" target=\"_blank\" rel=\"noopener\" class=\"js-videolink-play-link videolink__video-link\" data-video-provider=\"";
  345.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'137$this->source); })()), "type", [], "any"falsefalsefalse137), "html"nulltrue);
  346.                 echo "\" data-video-id=\"";
  347.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'137$this->source); })()), "code", [], "any"falsefalsefalse137), "html"nulltrue);
  348.                 echo "\" data-make-fluid=\"true\">
  349.                             <i class=\"videolink__video-link__icon fas fa-play\"></i>
  350.                             ";
  351.                 // line 140
  352.                 $context["img"] = ((twig_get_attribute($this->env$this->source$context["video"], "preview", [], "any"falsefalsefalse140)) ? (twig_get_attribute($this->env$this->source$context["video"], "preview", [], "any"falsefalsefalse140)) : (null));
  353.                 // line 141
  354.                 echo "
  355.                             ";
  356.                 // line 142
  357.                 if (( !(null === (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'142$this->source); })())) &&  !twig_test_empty((isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'142$this->source); })())))) {
  358.                     // line 143
  359.                     echo "
  360.                                 ";
  361.                     // line 144
  362.                     $context["fullSrc"] = call_user_func_array($this->env->getFunction('croppedImgSrc')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'144$this->source); })()), "url", [], "any"falsefalsefalse144), twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'144$this->source); })()), "cropping", [], "any"falsefalsefalse144), ["w" => 1400"q" => 80]]);
  363.                     // line 145
  364.                     echo "                                ";
  365.                     $context["previewSrc"] = call_user_func_array($this->env->getFunction('croppedImgSrc')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'145$this->source); })()), "url", [], "any"falsefalsefalse145), twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'145$this->source); })()), "cropping", [], "any"falsefalsefalse145), twig_get_attribute($this->env$this->source, (isset($context["jml_img_large"]) || array_key_exists("jml_img_large"$context) ? $context["jml_img_large"] : (function () { throw new RuntimeError('Variable "jml_img_large" does not exist.'145$this->source); })()), "preview", [], "any"falsefalsefalse145)]);
  366.                     // line 146
  367.                     echo "
  368.                                 <img class=\"video-pp__link__img lazy\"
  369.                                      src=\"";
  370.                     // line 148
  371.                     echo twig_escape_filter($this->env, (isset($context["previewSrc"]) || array_key_exists("previewSrc"$context) ? $context["previewSrc"] : (function () { throw new RuntimeError('Variable "previewSrc" does not exist.'148$this->source); })()), "html"nulltrue);
  372.                     echo "\" data-src=\"";
  373.                     echo twig_escape_filter($this->env, (isset($context["fullSrc"]) || array_key_exists("fullSrc"$context) ? $context["fullSrc"] : (function () { throw new RuntimeError('Variable "fullSrc" does not exist.'148$this->source); })()), "html"nulltrue);
  374.                     echo "\"
  375.                                      ";
  376.                     // line 149
  377.                     if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse149), "name", [], "any"falsefalsefalse149)) {
  378.                         echo "alt=\"";
  379.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse149), "name", [], "any"falsefalsefalse149), "html"nulltrue);
  380.                         echo "\"";
  381.                     }
  382.                     echo " />
  383.                             ";
  384.                 } else {
  385.                     // line 152
  386.                     echo "
  387.                                 <img class=\"video-pp__link__img\" src=\"";
  388.                     // line 153
  389.                     echo twig_escape_filter($this->env, (("https://i.ytimg.com/vi/" twig_get_attribute($this->env$this->source, (isset($context["helper"]) || array_key_exists("helper"$context) ? $context["helper"] : (function () { throw new RuntimeError('Variable "helper" does not exist.'153$this->source); })()), "code", [], "any"falsefalsefalse153)) . "/maxresdefault.jpg"), "html"nulltrue);
  390.                     echo "\" alt=\"";
  391.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "media", [], "any"falsefalsefalse153), "name", [], "any"falsefalsefalse153), "html"nulltrue);
  392.                     echo "\">
  393.                             ";
  394.                 }
  395.                 // line 156
  396.                 echo "
  397.                         </a>
  398.                         <div class=\"js-videolink-container videolink__video-container\"></div>
  399.                     </div>
  400.                 </div>
  401.             ";
  402.             }
  403.             $_parent $context['_parent'];
  404.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  405.             $context array_intersect_key($context$_parent) + $_parent;
  406.             // line 163
  407.             echo "        </div>
  408.     </div>
  409. ";
  410.         }
  411.         
  412.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  413.         
  414.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  415.     }
  416.     public function getTemplateName()
  417.     {
  418.         return "PageParts/VideosGalleryPagePart/view.html.twig";
  419.     }
  420.     public function isTraitable()
  421.     {
  422.         return false;
  423.     }
  424.     public function getDebugInfo()
  425.     {
  426.         return array (  436 => 163,  424 => 156,  416 => 153,  413 => 152,  403 => 149,  397 => 148,  393 => 146,  390 => 145,  388 => 144,  385 => 143,  383 => 142,  380 => 141,  378 => 140,  368 => 137,  363 => 134,  360 => 133,  357 => 132,  354 => 131,  351 => 130,  348 => 129,  345 => 128,  343 => 127,  340 => 126,  337 => 125,  335 => 124,  332 => 123,  328 => 122,  323 => 120,  320 => 119,  311 => 112,  301 => 107,  291 => 104,  285 => 103,  281 => 101,  278 => 100,  275 => 99,  273 => 98,  270 => 97,  268 => 96,  262 => 92,  258 => 90,  255 => 89,  252 => 88,  249 => 87,  246 => 86,  243 => 85,  240 => 84,  238 => 83,  235 => 82,  232 => 81,  230 => 80,  227 => 79,  225 => 78,  222 => 77,  218 => 76,  211 => 71,  201 => 66,  194 => 62,  190 => 60,  183 => 55,  175 => 52,  172 => 51,  162 => 48,  156 => 47,  152 => 45,  149 => 44,  147 => 43,  144 => 42,  142 => 41,  139 => 40,  137 => 39,  127 => 36,  124 => 35,  122 => 34,  116 => 30,  112 => 28,  109 => 27,  106 => 26,  103 => 25,  100 => 24,  97 => 23,  94 => 22,  92 => 21,  89 => 20,  86 => 19,  84 => 18,  81 => 17,  79 => 16,  76 => 15,  72 => 14,  65 => 10,  62 => 9,  58 => 7,  55 => 6,  53 => 5,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  427.     }
  428.     public function getSourceContext()
  429.     {
  430.         return new Source("{% if (resource.videos | length > 1) %}
  431.     {% if resource.videos is defined and resource.videos %}
  432.             {% set videoImage = asset('frontend/img/general/video-pp--default.svg') %}
  433.             {% set imageType = 'jpg' %}
  434.     {% endif %}
  435.     <div class=\"gallery video-gallery video-pp\" id=\"video-gallery-{{ resource.id }}\">
  436.         <div class=\"gallery-boxes\">
  437.             {% for video in resource.videos %}
  438.                 {% if video.media.contentType != 'video/mp4' %}
  439.                     {% set handler = mediamanager.getHandler(video.media) %}
  440.                     {% set helper = handler.getFormHelper(video.media) %}
  441.                     {% if helper.type == 'youtube' %}
  442.                         {% set videoEmbedUrl = \"//www.youtube.com/embed/\" ~ helper.code %}
  443.                     {% elseif helper.type == 'vimeo' %}
  444.                         {% set videoEmbedUrl = \"//player.vimeo.com/video/\" ~ helper.code %}
  445.                     {% elseif helper.type == 'dailymotion' %}
  446.                         {% set videoEmbedUrl = \"//www.dailymotion.com/embed/video/\" ~ helper.code %}
  447.                     {% endif %}
  448.                 {% endif %}
  449.                 <div class=\"gallery-box\">
  450.                     <div class=\"videolink\">
  451.                         {% if video.media.contentType != 'video/mp4' %}
  452.                             <a href=\"{{ videoEmbedUrl }}\" target=\"_blank\" rel=\"noopener\" class=\"js-videolink-play-link videolink__video-link\" data-video-provider=\"{{ helper.type }}\" data-video-id=\"{{ helper.code }}\" data-make-fluid=\"true\">
  453.                                 <i class=\"videolink__video-link__icon fas fa-play\"></i>
  454.                                 {% set img = video.preview ? video.preview : null %}
  455.                                 {% if img is not null and img is not empty %}
  456.                                     {% set fullSrc = croppedImgSrc(img.url, img.cropping, { w: 1400, q: 80 }) %}
  457.                                     {% set previewSrc = croppedImgSrc(img.url, img.cropping, jml_img_large.preview) %}
  458.                                     <img class=\"video-pp__link__img lazy\"
  459.                                          src=\"{{ previewSrc }}\" data-src=\"{{ fullSrc }}\"
  460.                                          {% if video.media.name %}alt=\"{{ video.media.name }}\"{% endif %} />
  461.                                 {% else %}
  462.                                     <img class=\"video-pp__link__img\" src=\"{{ 'https://i.ytimg.com/vi/' ~ helper.code ~ '/maxresdefault.jpg' }}\" alt=\"{{ video.media.name }}\">
  463.                                 {% endif %}
  464.                             </a>
  465.                             <div class=\"js-videolink-container videolink__video-container\"></div>
  466.                         {% else %}
  467.                             <video controls>
  468.                                 <source src=\"{{ asset(video.media.url) }}\" type=\"video/mp4\">
  469.                             </video>
  470.                         {% endif %}
  471.                     </div>
  472.                 </div>
  473.             {% endfor %}
  474.         </div>
  475.         <div class=\"gallery-nav\">
  476.             {% for video in resource.videos %}
  477.                 {% if video.media.contentType != 'video/mp4' %}
  478.                     {% set handler = mediamanager.getHandler(video.media) %}
  479.                     {% set helper = handler.getFormHelper(video.media) %}
  480.                     {% if helper.type == 'youtube' %}
  481.                         {% set videoEmbedUrl = \"//www.youtube.com/embed/\" ~ helper.code %}
  482.                     {% elseif helper.type == 'vimeo' %}
  483.                         {% set videoEmbedUrl = \"//player.vimeo.com/video/\" ~ helper.code %}
  484.                     {% elseif helper.type == 'dailymotion' %}
  485.                         {% set videoEmbedUrl = \"//www.dailymotion.com/embed/video/\" ~ helper.code %}
  486.                     {% endif %}
  487.                 {% endif %}
  488.                 <div class=\"gallery-thumb\">
  489.                     <div class=\"videolink\">
  490.                         {% set img = video.preview ? video.preview : null %}
  491.                         {% if img is not null and img is not empty %}
  492.                             {% set fullSrc = croppedImgSrc(img.url, img.cropping, { w: 180, q: 80, fit: 'crop' }) %}
  493.                             {% set previewSrc = croppedImgSrc(img.url, img.cropping, jml_img_large.preview) %}
  494.                             <img class=\"video-pp__link__img lazy\"
  495.                                  src=\"{{ previewSrc }}\" data-src=\"{{ fullSrc }}\"
  496.                                  {% if video.media.name %}alt=\"{{ video.media.name }}\"{% endif %} />
  497.                         {% endif %}
  498.                     </div>
  499.                 </div>
  500.             {% endfor %}
  501.         </div>
  502.         <div class=\"gallery-clearfix\"></div>
  503.     </div>
  504. {% else %}
  505.     <div class=\"gallery\" id=\"video-gallery-{{ resource.id }}\">
  506.         <div class=\"gallery-boxes\">
  507.             {% for video in resource.videos %}
  508.                 {% set handler = mediamanager.getHandler(video.media) %}
  509.                 {% set helper = handler.getFormHelper(video.media) %}
  510.                 {% if helper.type == 'youtube' %}
  511.                     {% set videoEmbedUrl = \"//www.youtube.com/embed/\" ~ helper.code %}
  512.                 {% elseif helper.type == 'vimeo' %}
  513.                     {% set videoEmbedUrl = \"//player.vimeo.com/video/\" ~ helper.code %}
  514.                 {% elseif helper.type == 'dailymotion' %}
  515.                     {% set videoEmbedUrl = \"//www.dailymotion.com/embed/video/\" ~ helper.code %}
  516.                 {% endif %}
  517.                 <div class=\"gallery-box\">
  518.                     <div class=\"videolink\">
  519.                         <a href=\"{{ videoEmbedUrl }}\" target=\"_blank\" rel=\"noopener\" class=\"js-videolink-play-link videolink__video-link\" data-video-provider=\"{{ helper.type }}\" data-video-id=\"{{ helper.code }}\" data-make-fluid=\"true\">
  520.                             <i class=\"videolink__video-link__icon fas fa-play\"></i>
  521.                             {% set img = video.preview ? video.preview : null %}
  522.                             {% if img is not null and img is not empty %}
  523.                                 {% set fullSrc = croppedImgSrc(img.url, img.cropping, { w: 1400, q: 80 }) %}
  524.                                 {% set previewSrc = croppedImgSrc(img.url, img.cropping, jml_img_large.preview) %}
  525.                                 <img class=\"video-pp__link__img lazy\"
  526.                                      src=\"{{ previewSrc }}\" data-src=\"{{ fullSrc }}\"
  527.                                      {% if video.media.name %}alt=\"{{ video.media.name }}\"{% endif %} />
  528.                             {% else %}
  529.                                 <img class=\"video-pp__link__img\" src=\"{{ 'https://i.ytimg.com/vi/' ~ helper.code ~ '/maxresdefault.jpg' }}\" alt=\"{{ video.media.name }}\">
  530.                             {% endif %}
  531.                         </a>
  532.                         <div class=\"js-videolink-container videolink__video-container\"></div>
  533.                     </div>
  534.                 </div>
  535.             {% endfor %}
  536.         </div>
  537.     </div>
  538. {% endif %}
  539. ""PageParts/VideosGalleryPagePart/view.html.twig""/var/www/gcs/html/dev/templates/PageParts/VideosGalleryPagePart/view.html.twig");
  540.     }
  541. }