var/cache/dev/twig/0d/0da59919736aa10c447a4600660b186f98a8773f01e682ad6c7d724a19532b42.php line 79

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. /* CoreBundle:FieldCollections:VideoContainer.html.twig */
  14. class __TwigTemplate_2183a8b29d9124aecc180b420dbe86c444b6f2338600830c441f043c7e417b94 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""CoreBundle:FieldCollections:VideoContainer.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""CoreBundle:FieldCollections:VideoContainer.html.twig"));
  33.         // line 1
  34.         $context["UID"] = uniqid();
  35.         // line 2
  36.         echo " ";
  37.         $context["videoIDResult"] = twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'2$this->source); })()), "getYoutubeId", [], "method"falsefalsefalse2);
  38.         // line 3
  39.         echo "<div class=\"section video-wrapper\" id=\"content-section\">
  40.     <div id=\"";
  41.         // line 4
  42.         echo twig_escape_filter($this->env, ("uid" . (isset($context["UID"]) || array_key_exists("UID"$context) ? $context["UID"] : (function () { throw new RuntimeError('Variable "UID" does not exist.'4$this->source); })())), "html"nulltrue);
  43.         echo "\" class=\"video-container with-overlay\">
  44.         <div class=\"overlay-close icon close\">
  45.         </div>
  46.         <div class=\"video-wrapper\">
  47.             <div class=\"iframe-container ";
  48.         // line 9
  49.         echo twig_escape_filter($this->env, (isset($context["videoIDResult"]) || array_key_exists("videoIDResult"$context) ? $context["videoIDResult"] : (function () { throw new RuntimeError('Variable "videoIDResult" does not exist.'9$this->source); })()), "html"nulltrue);
  50.         echo "\">
  51.                 <div id=\"";
  52.         // line 10
  53.         echo twig_escape_filter($this->env, (isset($context["videoIDResult"]) || array_key_exists("videoIDResult"$context) ? $context["videoIDResult"] : (function () { throw new RuntimeError('Variable "videoIDResult" does not exist.'10$this->source); })()), "html"nulltrue);
  54.         echo "\" class=\"mute-yt-player-container\" data-video-id-result=\"";
  55.         echo twig_escape_filter($this->env, (isset($context["videoIDResult"]) || array_key_exists("videoIDResult"$context) ? $context["videoIDResult"] : (function () { throw new RuntimeError('Variable "videoIDResult" does not exist.'10$this->source); })()), "html"nulltrue);
  56.         echo "\"></div>
  57.             </div>
  58.         </div>
  59.         <div class=\"image video-overlay\">
  60.             <div class=\"play-button-container\">
  61.                 <h2>";
  62.         // line 15
  63.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Play Video"), "html"nulltrue);
  64.         echo "</h2>
  65.                 <span class=\"icon play-button\"></span>
  66.             </div>
  67.             ";
  68.         // line 18
  69.         echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'18$this->source); })()), "getOverlayImage", [], "method"falsefalsefalse18), "getThumbnail", [=> ("iframeOverlay" . (isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'18$this->source); })()))], "method"falsefalsefalse18), "getHtml", [], "method"falsefalsefalse18);
  70.         echo "
  71.             ";
  72.         // line 20
  73.         echo "            <style>
  74.                 @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  75.                 ";
  76.         // line 22
  77.         echo twig_escape_filter($this->env, ("div#uid" . (isset($context["UID"]) || array_key_exists("UID"$context) ? $context["UID"] : (function () { throw new RuntimeError('Variable "UID" does not exist.'22$this->source); })())), "html"nulltrue);
  78.         echo " .image.video-overlay {
  79.                     width: 100%;
  80.                     height: 500px;
  81.                     background: url( ";
  82.         // line 25
  83.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context"image""iframeOverlay"), "getSrc", [], "method"falsefalsefalse25), "html"nulltrue);
  84.         echo ") center right 100%/cover no-repeat;
  85.                 }
  86.                 ";
  87.         // line 29
  88.         echo twig_escape_filter($this->env, ("div#uid" . (isset($context["UID"]) || array_key_exists("UID"$context) ? $context["UID"] : (function () { throw new RuntimeError('Variable "UID" does not exist.'29$this->source); })())), "html"nulltrue);
  89.         echo " .image.video-overlay img {
  90.                                                display: none;
  91.                                            }
  92.                 }
  93.             </style>
  94.             ";
  95.         // line 35
  96.         echo "        </div>
  97.     </div>
  98. </div>
  99. ";
  100.         
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  102.         
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  104.     }
  105.     public function getTemplateName()
  106.     {
  107.         return "CoreBundle:FieldCollections:VideoContainer.html.twig";
  108.     }
  109.     public function isTraitable()
  110.     {
  111.         return false;
  112.     }
  113.     public function getDebugInfo()
  114.     {
  115.         return array (  108 => 35,  100 => 29,  93 => 25,  87 => 22,  83 => 20,  79 => 18,  73 => 15,  63 => 10,  59 => 9,  51 => 4,  48 => 3,  45 => 2,  43 => 1,);
  116.     }
  117.     public function getSourceContext()
  118.     {
  119.         return new Source("{% set UID = uniqid() %}
  120.  {% set videoIDResult = item.getYoutubeId() %}
  121. <div class=\"section video-wrapper\" id=\"content-section\">
  122.     <div id=\"{{ 'uid' ~ UID |raw }}\" class=\"video-container with-overlay\">
  123.         <div class=\"overlay-close icon close\">
  124.         </div>
  125.         <div class=\"video-wrapper\">
  126.             <div class=\"iframe-container {{ videoIDResult }}\">
  127.                 <div id=\"{{ videoIDResult }}\" class=\"mute-yt-player-container\" data-video-id-result=\"{{ videoIDResult }}\"></div>
  128.             </div>
  129.         </div>
  130.         <div class=\"image video-overlay\">
  131.             <div class=\"play-button-container\">
  132.                 <h2>{{ 'Play Video' |trans }}</h2>
  133.                 <span class=\"icon play-button\"></span>
  134.             </div>
  135.             {{ item.getOverlayImage().getThumbnail(\"iframeOverlay\" ~ bundleName).getHtml() |raw }}
  136.             {#IE Fix for thumbnails rendering start#}
  137.             <style>
  138.                 @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  139.                 {{ 'div#uid' ~ UID |raw }} .image.video-overlay {
  140.                     width: 100%;
  141.                     height: 500px;
  142.                     background: url( {{ pimcore_image(\"iframeOverlay\").getSrc() }}) center right 100%/cover no-repeat;
  143.                 }
  144.                 {{ 'div#uid' ~ UID |raw }} .image.video-overlay img {
  145.                                                display: none;
  146.                                            }
  147.                 }
  148.             </style>
  149.             {#IE Fix for thumbnails rendering end#}
  150.         </div>
  151.     </div>
  152. </div>
  153. ""CoreBundle:FieldCollections:VideoContainer.html.twig""/var/www/share/test.develey/src/CoreBundle/Resources/views/FieldCollections/VideoContainer.html.twig");
  154.     }
  155. }