var/cache/dev/twig/6d/6ddd5256dfe63c752a79a49f63553b97.php line 39

  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. /* Default/video.html.twig */
  14. class __TwigTemplate_8af78be1d0b9f59e034c63ad3b385a2c extends 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.             'banner' => [$this'block_banner'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 12
  30.         return "Default/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/video.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/video.html.twig"));
  39.         // line 1
  40.         $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"falsefalsefalse1);
  41.         // line 2
  42.         $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"falsefalsefalse2);
  43.         // line 3
  44.         $context["menu"] = "articles";
  45.         // line 4
  46.         $context["subtitle"] = "Publications";
  47.         // line 5
  48.         if (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"falsefalsefalse5)) {
  49.             // line 6
  50.             $context["thumbnail"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "thumbnail", [], "any"falsefalsefalse6);
  51.             // line 7
  52.             $context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse7), "file", [], "any"falsefalsefalse7));
  53.         } elseif (twig_get_attribute($this->env$this->source,         // line 8
  54. (isset($context["video"]) || array_key_exists("video"$context) ? $context["video"] : (function () { throw new RuntimeError('Variable "video" does not exist.'8$this->source); })()), "youtube", [], "any"falsefalsefalse8)) {
  55.             // line 9
  56.             $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"falsefalsefalse9));
  57.             // line 10
  58.             $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"falsefalsefalse10), "h");
  59.         }
  60.         // line 12
  61.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/video.html.twig"12);
  62.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.     }
  68.     // line 14
  69.     public function block_banner($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  76.         // line 15
  77.         echo "<div id='banner' class='htop-in bg-success relative gpadding ";
  78.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()(""), "html"nulltrue);
  79.         echo " ";
  80.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()(""), "html"nulltrue);
  81.         echo "'>
  82.     <div class='relative flex col w100 ";
  83.         // line 16
  84.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("top-40-in"), "html"nulltrue);
  85.         echo " ";
  86.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("vt-20-in"), "html"nulltrue);
  87.         echo "'>
  88.         <div class='white ";
  89.         // line 17
  90.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("gpadding top-40-in"), "html"nulltrue);
  91.         echo " ";
  92.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()(""), "html"nulltrue);
  93.         echo "'>
  94.             <h1 class='text-center'>";
  95.         // line 18
  96.         echo 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"nulltrue);
  97.         echo "</h1>
  98.             <div class=\"flex row center\">
  99.                 <i class=\"border-left border-white border-1x border-solid ";
  100.         // line 20
  101.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("vt-25-in"), "html"nulltrue);
  102.         echo " ";
  103.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("vt-10-in"), "html"nulltrue);
  104.         echo "\"></i>
  105.             </div>
  106.         </div>
  107.     </div>
  108. </div>
  109. ";
  110.         
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112.         
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  114.     }
  115.     // line 27
  116.     public function block_content($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  123.         // line 28
  124.         echo "<div class='gpadding ";
  125.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("vt-40-in"), "html"nulltrue);
  126.         echo " ";
  127.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("vt-20-in"), "html"nulltrue);
  128.         echo " '>
  129.     <div class='";
  130.         // line 29
  131.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("gpadding flex col space"), "html"nulltrue);
  132.         echo " ";
  133.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()(""), "html"nulltrue);
  134.         echo "'>
  135. \t\t<div class='w100'>
  136. \t\t\t<div id='article' class='w100 radius-10 ";
  137.         // line 31
  138.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()(""), "html"nulltrue);
  139.         echo " ";
  140.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()(""), "html"nulltrue);
  141.         echo "'>
  142. \t\t\t\t";
  143.         // line 32
  144.         if (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"falsefalsefalse32)) {
  145.             // line 33
  146.             echo "\t\t\t\t<p class='h4 black semibold ";
  147.             echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("adapt bottom-40"), "html"nulltrue);
  148.             echo " ";
  149.             echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("bottom-20"), "html"nulltrue);
  150.             echo "'>";
  151.             echo twig_nl2br(twig_escape_filter($this->envtwig_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"falsefalsefalse33), "html"nulltrue));
  152.             echo "</p>
  153. \t\t\t\t";
  154.         }
  155.         // line 35
  156.         echo "
  157. \t\t\t\t";
  158.         // line 36
  159.         if (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"falsefalsefalse36)) {
  160.             // line 37
  161.             echo "\t\t\t\t<div class='w100'>
  162. \t\t\t\t\t<iframe class='w100 youtube-frame msquare shadow-alt bg-gray' src='";
  163.             // line 38
  164.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse38), ["youtu.be/" => "youtube.com/watch?v="]), ["watch?v=" => "embed/"]), "html"nulltrue);
  165.             echo "' frameborder='0' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>
  166. \t\t\t\t</div>
  167. \t\t\t\t";
  168.         }
  169.         // line 41
  170.         echo "
  171. \t\t\t\t";
  172.         // line 42
  173.         if (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"falsefalsefalse42)) {
  174.             // line 43
  175.             echo "\t\t\t\t<div class='w100'>
  176. \t\t\t\t\t<video class='w100 shadow-alt bg-gray ";
  177.             // line 44
  178.             echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("radius-20"), "html"nulltrue);
  179.             echo " ";
  180.             echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("radius-10"), "html"nulltrue);
  181.             echo "' controls='' autoplay='' src='";
  182.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("file-read", ["id" => twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse44), "id", [], "any"falsefalsefalse44)]), "html"nulltrue);
  183.             echo "' preload='auto'></video>
  184. \t\t\t\t</div>
  185. \t\t\t\t";
  186.         }
  187.         // line 47
  188.         echo "\t\t\t</div>
  189. \t\t</div>
  190. \t</div>
  191. </div>
  192. ";
  193.         
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  195.         
  196.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197.     }
  198.     public function getTemplateName()
  199.     {
  200.         return "Default/video.html.twig";
  201.     }
  202.     public function isTraitable()
  203.     {
  204.         return false;
  205.     }
  206.     public function getDebugInfo()
  207.     {
  208.         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,);
  209.     }
  210.     public function getSourceContext()
  211.     {
  212.         return new Source("{% set title = video.title %}
  213. {% set desc = video.description %}
  214. {% set menu = 'articles' %}
  215. {% set subtitle = 'Publications' %}
  216. {% if video.banner %}
  217. {% set thumbnail = video.banner.thumbnail %}
  218. {% set banner = asset(video.banner.file) %}
  219. {% elseif video.youtube %}
  220. {% set thumbnail = video.youtube|youtubeThumbnail %}
  221. {% set banner = video.youtube|youtubeThumbnail('h') %}
  222. {% endif %}
  223. {% extends 'Default/base.html.twig' %}
  224. {% block banner %}
  225. <div id='banner' class='htop-in bg-success relative gpadding {{desktop(\"\")}} {{mobile(\"\")}}'>
  226.     <div class='relative flex col w100 {{desktop(\"top-40-in\")}} {{mobile(\"vt-20-in\")}}'>
  227.         <div class='white {{desktop(\"gpadding top-40-in\")}} {{mobile(\"\")}}'>
  228.             <h1 class='text-center'>{{title}}</h1>
  229.             <div class=\"flex row center\">
  230.                 <i class=\"border-left border-white border-1x border-solid {{desktop(\"vt-25-in\")}} {{mobile(\"vt-10-in\")}}\"></i>
  231.             </div>
  232.         </div>
  233.     </div>
  234. </div>
  235. {% endblock banner %}
  236. {% block content %}
  237. <div class='gpadding {{desktop(\"vt-40-in\")}} {{mobile(\"vt-20-in\")}} '>
  238.     <div class='{{desktop(\"gpadding flex col space\")}} {{mobile(\"\")}}'>
  239. \t\t<div class='w100'>
  240. \t\t\t<div id='article' class='w100 radius-10 {{desktop(\"\")}} {{mobile(\"\")}}'>
  241. \t\t\t\t{% if video.description %}
  242. \t\t\t\t<p class='h4 black semibold {{desktop(\"adapt bottom-40\")}} {{mobile(\"bottom-20\")}}'>{{video.description|nl2br}}</p>
  243. \t\t\t\t{% endif %}
  244. \t\t\t\t{% if video.youtube %}
  245. \t\t\t\t<div class='w100'>
  246. \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>
  247. \t\t\t\t</div>
  248. \t\t\t\t{% endif %}
  249. \t\t\t\t{% if video.file %}
  250. \t\t\t\t<div class='w100'>
  251. \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>
  252. \t\t\t\t</div>
  253. \t\t\t\t{% endif %}
  254. \t\t\t</div>
  255. \t\t</div>
  256. \t</div>
  257. </div>
  258. {% endblock %}
  259. ""Default/video.html.twig""/home/olasoftnka/asin/templates/Default/video.html.twig");
  260.     }
  261. }