var/cache/dev/twig/6d/6ddd5256dfe63c752a79a49f63553b97.php line 39
<?phpuse 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;/* Default/video.html.twig */class __TwigTemplate_8af78be1d0b9f59e034c63ad3b385a2c extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['banner' => [$this, 'block_banner'],'content' => [$this, 'block_content'],];}protected function doGetParent(array $context){// line 12return "Default/base.html.twig";}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/video.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/video.html.twig"));// line 1$context["title"] = 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.', 1, $this->source); })()), "title", [], "any", false, false, false, 1);// line 2$context["desc"] = 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.', 2, $this->source); })()), "description", [], "any", false, false, false, 2);// line 3$context["menu"] = "articles";// line 4$context["subtitle"] = "Publications";// line 5if (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.', 5, $this->source); })()), "banner", [], "any", false, false, false, 5)) {// line 6$context["thumbnail"] = 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.', 6, $this->source); })()), "banner", [], "any", false, false, false, 6), "thumbnail", [], "any", false, false, false, 6);// line 7$context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(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.', 7, $this->source); })()), "banner", [], "any", false, false, false, 7), "file", [], "any", false, false, false, 7));} elseif (twig_get_attribute($this->env, $this->source, // line 8(isset($context["video"]) || array_key_exists("video", $context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.', 8, $this->source); })()), "youtube", [], "any", false, false, false, 8)) {// line 9$context["thumbnail"] = $this->env->getFilter('youtubeThumbnail')->getCallable()(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.', 9, $this->source); })()), "youtube", [], "any", false, false, false, 9));// line 10$context["banner"] = $this->env->getFilter('youtubeThumbnail')->getCallable()(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.', 10, $this->source); })()), "youtube", [], "any", false, false, false, 10), "h");}// line 12$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/video.html.twig", 12);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 14public function block_banner($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));// line 15echo "<div id='banner' class='htop-in bg-success relative gpadding ";echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()(""), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()(""), "html", null, true);echo "'><div class='relative flex col w100 ";// line 16echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("top-40-in"), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("vt-20-in"), "html", null, true);echo "'><div class='white ";// line 17echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("gpadding top-40-in"), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()(""), "html", null, true);echo "'><h1 class='text-center'>";// line 18echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 18, $this->source); })()), "html", null, true);echo "</h1><div class=\"flex row center\"><i class=\"border-left border-white border-1x border-solid ";// line 20echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("vt-25-in"), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("vt-10-in"), "html", null, true);echo "\"></i></div></div></div></div>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 27public function block_content($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));// line 28echo "<div class='gpadding ";echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("vt-40-in"), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("vt-20-in"), "html", null, true);echo " '><div class='";// line 29echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("gpadding flex col space"), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()(""), "html", null, true);echo "'>\t\t<div class='w100'>\t\t\t<div id='article' class='w100 radius-10 ";// line 31echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()(""), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()(""), "html", null, true);echo "'>\t\t\t\t";// line 32if (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.', 32, $this->source); })()), "description", [], "any", false, false, false, 32)) {// line 33echo "\t\t\t\t<p class='h4 black semibold ";echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("adapt bottom-40"), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("bottom-20"), "html", null, true);echo "'>";echo twig_nl2br(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.', 33, $this->source); })()), "description", [], "any", false, false, false, 33), "html", null, true));echo "</p>\t\t\t\t";}// line 35echo "\t\t\t\t";// line 36if (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.', 36, $this->source); })()), "youtube", [], "any", false, false, false, 36)) {// line 37echo "\t\t\t\t<div class='w100'>\t\t\t\t\t<iframe class='w100 youtube-frame msquare shadow-alt bg-gray' src='";// line 38echo twig_escape_filter($this->env, twig_replace_filter(twig_replace_filter(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.', 38, $this->source); })()), "youtube", [], "any", false, false, false, 38), ["youtu.be/" => "youtube.com/watch?v="]), ["watch?v=" => "embed/"]), "html", null, true);echo "' frameborder='0' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>\t\t\t\t</div>\t\t\t\t";}// line 41echo "\t\t\t\t";// line 42if (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.', 42, $this->source); })()), "file", [], "any", false, false, false, 42)) {// line 43echo "\t\t\t\t<div class='w100'>\t\t\t\t\t<video class='w100 shadow-alt bg-gray ";// line 44echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("radius-20"), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("radius-10"), "html", null, true);echo "' controls='' autoplay='' src='";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("file-read", ["id" => 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.', 44, $this->source); })()), "file", [], "any", false, false, false, 44), "id", [], "any", false, false, false, 44)]), "html", null, true);echo "' preload='auto'></video>\t\t\t\t</div>\t\t\t\t";}// line 47echo "\t\t\t</div>\t\t</div>\t</div></div>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "Default/video.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 207 => 47, 197 => 44, 194 => 43, 192 => 42, 189 => 41, 183 => 38, 180 => 37, 178 => 36, 175 => 35, 165 => 33, 163 => 32, 157 => 31, 150 => 29, 143 => 28, 133 => 27, 115 => 20, 110 => 18, 104 => 17, 98 => 16, 91 => 15, 81 => 14, 70 => 12, 67 => 10, 65 => 9, 63 => 8, 61 => 7, 59 => 6, 57 => 5, 55 => 4, 53 => 3, 51 => 2, 49 => 1, 36 => 12,);}public function getSourceContext(){return new Source("{% set title = video.title %}{% set desc = video.description %}{% set menu = 'articles' %}{% set subtitle = 'Publications' %}{% if video.banner %}{% set thumbnail = video.banner.thumbnail %}{% set banner = asset(video.banner.file) %}{% elseif video.youtube %}{% set thumbnail = video.youtube|youtubeThumbnail %}{% set banner = video.youtube|youtubeThumbnail('h') %}{% endif %}{% extends 'Default/base.html.twig' %}{% block banner %}<div id='banner' class='htop-in bg-success relative gpadding {{desktop(\"\")}} {{mobile(\"\")}}'><div class='relative flex col w100 {{desktop(\"top-40-in\")}} {{mobile(\"vt-20-in\")}}'><div class='white {{desktop(\"gpadding top-40-in\")}} {{mobile(\"\")}}'><h1 class='text-center'>{{title}}</h1><div class=\"flex row center\"><i class=\"border-left border-white border-1x border-solid {{desktop(\"vt-25-in\")}} {{mobile(\"vt-10-in\")}}\"></i></div></div></div></div>{% endblock banner %}{% block content %}<div class='gpadding {{desktop(\"vt-40-in\")}} {{mobile(\"vt-20-in\")}} '><div class='{{desktop(\"gpadding flex col space\")}} {{mobile(\"\")}}'>\t\t<div class='w100'>\t\t\t<div id='article' class='w100 radius-10 {{desktop(\"\")}} {{mobile(\"\")}}'>\t\t\t\t{% if video.description %}\t\t\t\t<p class='h4 black semibold {{desktop(\"adapt bottom-40\")}} {{mobile(\"bottom-20\")}}'>{{video.description|nl2br}}</p>\t\t\t\t{% endif %}\t\t\t\t{% if video.youtube %}\t\t\t\t<div class='w100'>\t\t\t\t\t<iframe class='w100 youtube-frame msquare shadow-alt bg-gray' src='{{video.youtube|replace({\"youtu.be/\":\"youtube.com/watch?v=\"})|replace({\"watch?v=\":\"embed/\"})}}' frameborder='0' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>\t\t\t\t</div>\t\t\t\t{% endif %}\t\t\t\t{% if video.file %}\t\t\t\t<div class='w100'>\t\t\t\t\t<video class='w100 shadow-alt bg-gray {{desktop(\"radius-20\")}} {{mobile(\"radius-10\")}}' controls='' autoplay='' src='{{path(\"file-read\",{id:video.file.id})}}' preload='auto'></video>\t\t\t\t</div>\t\t\t\t{% endif %}\t\t\t</div>\t\t</div>\t</div></div>{% endblock %}", "Default/video.html.twig", "/home/olasoftnka/asin/templates/Default/video.html.twig");}}