<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* CoreBundle:FieldCollections:VideoContainer.html.twig */
class __TwigTemplate_2183a8b29d9124aecc180b420dbe86c444b6f2338600830c441f043c7e417b94 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CoreBundle:FieldCollections:VideoContainer.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CoreBundle:FieldCollections:VideoContainer.html.twig"));
// line 1
$context["UID"] = uniqid();
// line 2
echo " ";
$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", false, false, false, 2);
// line 3
echo "<div class=\"section video-wrapper\" id=\"content-section\">
<div id=\"";
// line 4
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", null, true);
echo "\" class=\"video-container with-overlay\">
<div class=\"overlay-close icon close\">
</div>
<div class=\"video-wrapper\">
<div class=\"iframe-container ";
// line 9
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", null, true);
echo "\">
<div id=\"";
// line 10
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", null, true);
echo "\" class=\"mute-yt-player-container\" data-video-id-result=\"";
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", null, true);
echo "\"></div>
</div>
</div>
<div class=\"image video-overlay\">
<div class=\"play-button-container\">
<h2>";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Play Video"), "html", null, true);
echo "</h2>
<span class=\"icon play-button\"></span>
</div>
";
// line 18
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 18, $this->source); })()), "getOverlayImage", [], "method", false, false, false, 18), "getThumbnail", [0 => ("iframeOverlay" . (isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 18, $this->source); })()))], "method", false, false, false, 18), "getHtml", [], "method", false, false, false, 18);
echo "
";
// line 20
echo " <style>
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
";
// line 22
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", null, true);
echo " .image.video-overlay {
width: 100%;
height: 500px;
background: url( ";
// line 25
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context, "image", "iframeOverlay"), "getSrc", [], "method", false, false, false, 25), "html", null, true);
echo ") center right 100%/cover no-repeat;
}
";
// line 29
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", null, true);
echo " .image.video-overlay img {
display: none;
}
}
</style>
";
// line 35
echo " </div>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "CoreBundle:FieldCollections:VideoContainer.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set UID = uniqid() %}
{% set videoIDResult = item.getYoutubeId() %}
<div class=\"section video-wrapper\" id=\"content-section\">
<div id=\"{{ 'uid' ~ UID |raw }}\" class=\"video-container with-overlay\">
<div class=\"overlay-close icon close\">
</div>
<div class=\"video-wrapper\">
<div class=\"iframe-container {{ videoIDResult }}\">
<div id=\"{{ videoIDResult }}\" class=\"mute-yt-player-container\" data-video-id-result=\"{{ videoIDResult }}\"></div>
</div>
</div>
<div class=\"image video-overlay\">
<div class=\"play-button-container\">
<h2>{{ 'Play Video' |trans }}</h2>
<span class=\"icon play-button\"></span>
</div>
{{ item.getOverlayImage().getThumbnail(\"iframeOverlay\" ~ bundleName).getHtml() |raw }}
{#IE Fix for thumbnails rendering start#}
<style>
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
{{ 'div#uid' ~ UID |raw }} .image.video-overlay {
width: 100%;
height: 500px;
background: url( {{ pimcore_image(\"iframeOverlay\").getSrc() }}) center right 100%/cover no-repeat;
}
{{ 'div#uid' ~ UID |raw }} .image.video-overlay img {
display: none;
}
}
</style>
{#IE Fix for thumbnails rendering end#}
</div>
</div>
</div>
", "CoreBundle:FieldCollections:VideoContainer.html.twig", "/var/www/share/test.develey/src/CoreBundle/Resources/views/FieldCollections/VideoContainer.html.twig");
}
}