var/cache/dev/twig/b0/b06e08a4c3e112a5e5fdc1b38c95bbdf.php line 46

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @PumukitWebTV/Series/template.html.twig */
  16. class __TwigTemplate_dc5c55b88ccd240c0d1b17546be59acb extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'keywords' => [$this'block_keywords'],
  30.             'meta' => [$this'block_meta'],
  31.             'body' => [$this'block_body'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35.     {
  36.         // line 1
  37.         return "@PumukitWebTV/layout.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = []): iterable
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PumukitWebTV/Series/template.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PumukitWebTV/Series/template.html.twig"));
  46.         $this->parent $this->load("@PumukitWebTV/layout.html.twig"1);
  47.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 3
  54.     /**
  55.      * @return iterable<null|scalar|\Stringable>
  56.      */
  57.     public function block_title(array $context, array $blocks = []): iterable
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  64.         yield from $this->yieldParentBlock("title"$context$blocks);
  65.         yield " - ";
  66.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'3$this->source); })()), "title", [], "any"falsefalsefalse3), "html"nulltrue);
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.         yield from [];
  72.     }
  73.     // line 4
  74.     /**
  75.      * @return iterable<null|scalar|\Stringable>
  76.      */
  77.     public function block_keywords(array $context, array $blocks = []): iterable
  78.     {
  79.         $macros $this->macros;
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""keywords"));
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""keywords"));
  84.         yield from $this->yieldParentBlock("keywords"$context$blocks);
  85.         yield " - ";
  86.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::join(CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'4$this->source); })()), "getKeywords", [], "method"falsefalsefalse4), ","), "html"nulltrue);
  87.         
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89.         
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91.         yield from [];
  92.     }
  93.     // line 6
  94.     /**
  95.      * @return iterable<null|scalar|\Stringable>
  96.      */
  97.     public function block_meta(array $context, array $blocks = []): iterable
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  104.         // line 7
  105.         yield "    ";
  106.         yield from $this->yieldParentBlock("meta"$context$blocks);
  107.         yield "
  108.     <meta property=\"og:url\" content=\"";
  109.         // line 8
  110.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("pumukit_webtv_series_index", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'8$this->source); })()), "id", [], "any"falsefalsefalse8)]), "html"nulltrue);
  111.         yield "\" />
  112.     <meta property=\"og:type\" content=\"website\" />
  113.     <meta property=\"og:title\" content=\"";
  114.         // line 10
  115.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'10$this->source); })()), "title", [], "any"falsefalsefalse10), "html"nulltrue);
  116.         yield "\" />
  117.     <meta property=\"og:description\" content=\"";
  118.         // line 11
  119.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'11$this->source); })()), "description", [], "any"falsefalsefalse11), "html"nulltrue);
  120.         yield "\" />
  121.     <meta property=\"og:image\" content=\"";
  122.         // line 12
  123.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Pumukit\WebTVBundle\Twig\PumukitExtension']->getFirstUrlPicFilter((isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'12$this->source); })()), true), "html"nulltrue);
  124.         yield "\" />
  125. ";
  126.         
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  128.         
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  130.         yield from [];
  131.     }
  132.     // line 15
  133.     /**
  134.      * @return iterable<null|scalar|\Stringable>
  135.      */
  136.     public function block_body(array $context, array $blocks = []): iterable
  137.     {
  138.         $macros $this->macros;
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  143.         // line 16
  144.         yield "    ";
  145.         if (((CoreExtension::getAttribute($this->env$this->source, ($context["series"] ?? null), "getSeriesStyle", [], "any"truetruefalse16) &&  !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'16$this->source); })()), "getSeriesStyle", [], "any"falsefalsefalse16))) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'16$this->source); })()), "getSeriesStyle", [], "any"falsefalsefalse16)))) {
  146.             // line 17
  147.             yield "        <style>
  148.             ";
  149.             // line 18
  150.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'18$this->source); })()), "getSeriesStyle", [], "method"falsefalsefalse18), "getText", [], "method"falsefalsefalse18), "html"nulltrue);
  151.             yield "
  152.         </style>
  153.     ";
  154.         }
  155.         // line 21
  156.         yield "
  157.     ";
  158.         // line 22
  159.         $context["last_date"] = "";
  160.         // line 23
  161.         yield "    ";
  162.         $context["last_subseriestitle"] = "";
  163.         // line 24
  164.         yield "    ";
  165.         $context["template"] = ((CoreExtension::getAttribute($this->env$this->source, ($context["series"] ?? null), "getProperty", ["template"], "method"truetruefalse24)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'24$this->source); })()), "getProperty", ["template"], "method"falsefalsefalse24), "date")) : ("date"));
  166.         // line 25
  167.         yield "
  168.     ";
  169.         // line 26
  170.         yield from $this->load("@PumukitWebTV/Misc/magic_url_disclaimer.html.twig"26)->unwrap()->yield($context);
  171.         // line 27
  172.         yield "    ";
  173.         $context["precinct"] = $this->extensions['Pumukit\WebTVBundle\Twig\PumukitExtension']->getPrecinctOfSeries((isset($context["multimediaObjects"]) || array_key_exists("multimediaObjects"$context) ? $context["multimediaObjects"] : (function () { throw new RuntimeError('Variable "multimediaObjects" does not exist.'27$this->source); })()));
  174.         // line 28
  175.         yield "    <div class=\"row\">
  176.         <div class=\"col-xs-12\">
  177.             ";
  178.         // line 30
  179.         yield from $this->load("@PumukitWebTV/Series/template_header.html.twig"30)->unwrap()->yield(CoreExtension::merge($context, ["series_precinct" => (isset($context["precinct"]) || array_key_exists("precinct"$context) ? $context["precinct"] : (function () { throw new RuntimeError('Variable "precinct" does not exist.'30$this->source); })())]));
  180.         // line 31
  181.         yield "        </div>
  182.     </div>
  183.     ";
  184.         // line 34
  185.         if (((isset($context["template"]) || array_key_exists("template"$context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.'34$this->source); })()) != "place_subserial")) {
  186.             // line 35
  187.             yield "        <div class=\"row\">
  188.             <div class=\"col-xs-12\">
  189.                 <div id=\"serial_header\">
  190.                     ";
  191.             // line 38
  192.             yield CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'38$this->source); })()), "header", [], "any"falsefalsefalse38);
  193.             yield "
  194.                 </div>
  195.             </div>
  196.         </div>
  197.     ";
  198.         }
  199.         // line 43
  200.         yield "
  201.     <div class=\"row\">
  202.         <div class=\"col-xs-12\">
  203.             ";
  204.         // line 46
  205.         if (((isset($context["template"]) || array_key_exists("template"$context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.'46$this->source); })()) == "place_subserial")) {
  206.             // line 47
  207.             yield "                <div class=\"row\">
  208.                     <div class=\"col-xs-12\">
  209.                         <div id=\"serial_header\">
  210.                             ";
  211.             // line 50
  212.             yield CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'50$this->source); })()), "header", [], "any"falsefalsefalse50);
  213.             yield "
  214.                         </div>
  215.                     </div>
  216.                 </div>
  217.             ";
  218.         }
  219.         // line 55
  220.         yield "            ";
  221.         $context['_parent'] = $context;
  222.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["multimediaObjects"]) || array_key_exists("multimediaObjects"$context) ? $context["multimediaObjects"] : (function () { throw new RuntimeError('Variable "multimediaObjects" does not exist.'55$this->source); })()));
  223.         $context['loop'] = [
  224.           'parent' => $context['_parent'],
  225.           'index0' => 0,
  226.           'index'  => 1,
  227.           'first'  => true,
  228.         ];
  229.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  230.             $length count($context['_seq']);
  231.             $context['loop']['revindex0'] = $length 1;
  232.             $context['loop']['revindex'] = $length;
  233.             $context['loop']['length'] = $length;
  234.             $context['loop']['last'] = === $length;
  235.         }
  236.         foreach ($context['_seq'] as $context["_key"] => $context["mm"]) {
  237.             // line 56
  238.             yield "                ";
  239.             $context["current_date"] = $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envCoreExtension::getAttribute($this->env$this->source$context["mm"], "getRecordDate", [], "method"falsefalsefalse56), "medium""none"""null"gregorian"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'56$this->source); })()), "request", [], "any"falsefalsefalse56), "getLocale", [], "method"falsefalsefalse56));
  240.             // line 57
  241.             yield "                ";
  242.             $context["subserie_title"] = ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["mm"], "getProperty", ["subseriestitle"], "method"falsetruefalse57), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'57$this->source); })()), "request", [], "any"falsefalsefalse57), "getLocale", [], "method"falsefalsefalse57), [], "array"truetruefalse57)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["mm"], "getProperty", ["subseriestitle"], "method"falsefalsefalse57), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'57$this->source); })()), "request", [], "any"falsefalsefalse57), "getLocale", [], "method"falsefalsefalse57), [], "array"falsefalsefalse57), "")) : (""));
  243.             // line 58
  244.             yield "                ";
  245.             if ((((isset($context["template"]) || array_key_exists("template"$context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.'58$this->source); })()) == "place_subserial") &&  !(isset($context["precinct"]) || array_key_exists("precinct"$context) ? $context["precinct"] : (function () { throw new RuntimeError('Variable "precinct" does not exist.'58$this->source); })()))) {
  246.                 // line 59
  247.                 yield "                    ";
  248.                 $context["precinct"] = $this->extensions['Pumukit\WebTVBundle\Twig\PumukitExtension']->getPrecinctOfMultimediaObject($context["mm"]);
  249.                 // line 60
  250.                 yield "                    ";
  251.                 $context["typeofprecinct"] = "mm";
  252.                 // line 61
  253.                 yield "                ";
  254.             } else {
  255.                 // line 62
  256.                 yield "                    ";
  257.                 $context["typeofprecinct"] = "series";
  258.                 // line 63
  259.                 yield "                ";
  260.             }
  261.             // line 64
  262.             yield "                    ";
  263.             yield from $this->load("@PumukitWebTV/Series/template_group.html.twig"64)->unwrap()->yield(CoreExtension::merge($context, ["current_date" =>             // line 65
  264. (isset($context["current_date"]) || array_key_exists("current_date"$context) ? $context["current_date"] : (function () { throw new RuntimeError('Variable "current_date" does not exist.'65$this->source); })()), "last_date" =>             // line 66
  265. (isset($context["last_date"]) || array_key_exists("last_date"$context) ? $context["last_date"] : (function () { throw new RuntimeError('Variable "last_date" does not exist.'66$this->source); })()), "subserie_title" =>             // line 67
  266. (isset($context["subserie_title"]) || array_key_exists("subserie_title"$context) ? $context["subserie_title"] : (function () { throw new RuntimeError('Variable "subserie_title" does not exist.'67$this->source); })()), "last_subseriestitle" =>             // line 68
  267. (isset($context["last_subseriestitle"]) || array_key_exists("last_subseriestitle"$context) ? $context["last_subseriestitle"] : (function () { throw new RuntimeError('Variable "last_subseriestitle" does not exist.'68$this->source); })()), "template" =>             // line 69
  268. (isset($context["template"]) || array_key_exists("template"$context) ? $context["template"] : (function () { throw new RuntimeError('Variable "template" does not exist.'69$this->source); })()), "subseries" => false"series_precinct" =>             // line 71
  269. (isset($context["precinct"]) || array_key_exists("precinct"$context) ? $context["precinct"] : (function () { throw new RuntimeError('Variable "precinct" does not exist.'71$this->source); })()), "mm" =>             // line 72
  270. $context["mm"], "type_precinct" =>             // line 73
  271. (isset($context["typeofprecinct"]) || array_key_exists("typeofprecinct"$context) ? $context["typeofprecinct"] : (function () { throw new RuntimeError('Variable "typeofprecinct" does not exist.'73$this->source); })())]));
  272.             // line 75
  273.             yield "                    ";
  274.             yield from $this->load("@PumukitWebTV/Resources/template_series_video.html.twig"75)->unwrap()->yield(CoreExtension::merge($context, ["object" => $context["mm"]]));
  275.             // line 76
  276.             yield "                    ";
  277.             $context["last_date"] = (isset($context["current_date"]) || array_key_exists("current_date"$context) ? $context["current_date"] : (function () { throw new RuntimeError('Variable "current_date" does not exist.'76$this->source); })());
  278.             // line 77
  279.             yield "                    ";
  280.             $context["last_subseriestitle"] = (isset($context["subserie_title"]) || array_key_exists("subserie_title"$context) ? $context["subserie_title"] : (function () { throw new RuntimeError('Variable "subserie_title" does not exist.'77$this->source); })());
  281.             // line 78
  282.             yield "            ";
  283.             ++$context['loop']['index0'];
  284.             ++$context['loop']['index'];
  285.             $context['loop']['first'] = false;
  286.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  287.                 --$context['loop']['revindex0'];
  288.                 --$context['loop']['revindex'];
  289.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  290.             }
  291.         }
  292.         $_parent $context['_parent'];
  293.         unset($context['_seq'], $context['_key'], $context['mm'], $context['_parent'], $context['loop']);
  294.         $context array_intersect_key($context$_parent) + $_parent;
  295.         // line 79
  296.         yield "        </div>
  297.     </div>
  298.     ";
  299.         // line 82
  300.         if ((($tmp = ((CoreExtension::getAttribute($this->env$this->source, ($context["multimediaObjects"] ?? null), "getMaxPerPage", [], "method"truetruefalse82)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, (isset($context["multimediaObjects"]) || array_key_exists("multimediaObjects"$context) ? $context["multimediaObjects"] : (function () { throw new RuntimeError('Variable "multimediaObjects" does not exist.'82$this->source); })()), "getMaxPerPage", [], "method"falsefalsefalse82), 0)) : (0))) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  301.             // line 83
  302.             yield "        <div class=\"row\">
  303.             ";
  304.             // line 84
  305.             $context["objects"] = (isset($context["multimediaObjects"]) || array_key_exists("multimediaObjects"$context) ? $context["multimediaObjects"] : (function () { throw new RuntimeError('Variable "multimediaObjects" does not exist.'84$this->source); })());
  306.             // line 85
  307.             yield "            ";
  308.             yield from $this->load("@PumukitWebTV/Misc/pager.html.twig"85)->unwrap()->yield($context);
  309.             // line 86
  310.             yield "        </div>
  311.     ";
  312.         }
  313.         // line 88
  314.         yield "
  315.     <div class=\"row\">
  316.         <div class=\"col-xs-12\">
  317.             ";
  318.         // line 91
  319.         yield CoreExtension::getAttribute($this->env$this->source, (isset($context["series"]) || array_key_exists("series"$context) ? $context["series"] : (function () { throw new RuntimeError('Variable "series" does not exist.'91$this->source); })()), "footer", [], "any"falsefalsefalse91);
  320.         yield "
  321.         </div>
  322.     </div>
  323. ";
  324.         
  325.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  326.         
  327.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  328.         yield from [];
  329.     }
  330.     /**
  331.      * @codeCoverageIgnore
  332.      */
  333.     public function getTemplateName(): string
  334.     {
  335.         return "@PumukitWebTV/Series/template.html.twig";
  336.     }
  337.     /**
  338.      * @codeCoverageIgnore
  339.      */
  340.     public function isTraitable(): bool
  341.     {
  342.         return false;
  343.     }
  344.     /**
  345.      * @codeCoverageIgnore
  346.      */
  347.     public function getDebugInfo(): array
  348.     {
  349.         return array (  350 => 91,  345 => 88,  341 => 86,  338 => 85,  336 => 84,  333 => 83,  331 => 82,  326 => 79,  312 => 78,  309 => 77,  306 => 76,  303 => 75,  301 => 73,  300 => 72,  299 => 71,  298 => 69,  297 => 68,  296 => 67,  295 => 66,  294 => 65,  292 => 64,  289 => 63,  286 => 62,  283 => 61,  280 => 60,  277 => 59,  274 => 58,  271 => 57,  268 => 56,  250 => 55,  242 => 50,  237 => 47,  235 => 46,  230 => 43,  222 => 38,  217 => 35,  215 => 34,  210 => 31,  208 => 30,  204 => 28,  201 => 27,  199 => 26,  196 => 25,  193 => 24,  190 => 23,  188 => 22,  185 => 21,  179 => 18,  176 => 17,  173 => 16,  160 => 15,  147 => 12,  143 => 11,  139 => 10,  134 => 8,  129 => 7,  116 => 6,  91 => 4,  66 => 3,  43 => 1,);
  350.     }
  351.     public function getSourceContext(): Source
  352.     {
  353.         return new Source("{% extends '@PumukitWebTV/layout.html.twig' %}
  354. {% block title %}{{ parent() }} - {{ series.title }}{% endblock %}
  355. {% block keywords %}{{ parent() }} - {{ series.getKeywords()|join(',') }}{% endblock %}
  356. {% block meta %}
  357.     {{ parent() }}
  358.     <meta property=\"og:url\" content=\"{{ url('pumukit_webtv_series_index', {'id': series.id}) }}\" />
  359.     <meta property=\"og:type\" content=\"website\" />
  360.     <meta property=\"og:title\" content=\"{{ series.title }}\" />
  361.     <meta property=\"og:description\" content=\"{{ series.description }}\" />
  362.     <meta property=\"og:image\" content=\"{{ series|first_url_pic(true) }}\" />
  363. {% endblock %}
  364. {% block body %}
  365.     {% if series.getSeriesStyle is defined and series.getSeriesStyle is not null and series.getSeriesStyle is not empty %}
  366.         <style>
  367.             {{ series.getSeriesStyle().getText() }}
  368.         </style>
  369.     {% endif %}
  370.     {% set last_date = '' %}
  371.     {% set last_subseriestitle = '' %}
  372.     {% set template = series.getProperty('template')|default('date') %}
  373.     {% include '@PumukitWebTV/Misc/magic_url_disclaimer.html.twig' %}
  374.     {% set precinct = precinct_of_series(multimediaObjects) %}
  375.     <div class=\"row\">
  376.         <div class=\"col-xs-12\">
  377.             {% include '@PumukitWebTV/Series/template_header.html.twig' with { 'series_precinct' : precinct} %}
  378.         </div>
  379.     </div>
  380.     {% if template != 'place_subserial' %}
  381.         <div class=\"row\">
  382.             <div class=\"col-xs-12\">
  383.                 <div id=\"serial_header\">
  384.                     {{ series.header|raw }}
  385.                 </div>
  386.             </div>
  387.         </div>
  388.     {% endif %}
  389.     <div class=\"row\">
  390.         <div class=\"col-xs-12\">
  391.             {% if template == 'place_subserial' %}
  392.                 <div class=\"row\">
  393.                     <div class=\"col-xs-12\">
  394.                         <div id=\"serial_header\">
  395.                             {{ series.header|raw }}
  396.                         </div>
  397.                     </div>
  398.                 </div>
  399.             {% endif %}
  400.             {% for mm in multimediaObjects %}
  401.                 {% set current_date = mm.getRecordDate() |  format_datetime('medium', 'none',locale=app.request.getLocale()) %}
  402.                 {% set subserie_title = mm.getProperty('subseriestitle')[app.request.getLocale()]|default('') %}
  403.                 {% if template == \"place_subserial\" and not precinct %}
  404.                     {% set precinct = precinct_of_mmo(mm) %}
  405.                     {% set typeofprecinct = 'mm' %}
  406.                 {% else %}
  407.                     {% set typeofprecinct = 'series' %}
  408.                 {% endif %}
  409.                     {% include '@PumukitWebTV/Series/template_group.html.twig' with {
  410.                         'current_date': current_date,
  411.                         'last_date' : last_date,
  412.                         'subserie_title': subserie_title,
  413.                         'last_subseriestitle' : last_subseriestitle,
  414.                         'template': template ,
  415.                         'subseries': false,
  416.                         'series_precinct': precinct,
  417.                         'mm' : mm,
  418.                         'type_precinct' : typeofprecinct
  419.                     } %}
  420.                     {% include '@PumukitWebTV/Resources/template_series_video.html.twig' with {'object': mm } %}
  421.                     {% set last_date = current_date %}
  422.                     {% set last_subseriestitle =  subserie_title %}
  423.             {% endfor %}
  424.         </div>
  425.     </div>
  426.     {% if multimediaObjects.getMaxPerPage()|default(0) %}
  427.         <div class=\"row\">
  428.             {% set objects = multimediaObjects %}
  429.             {% include '@PumukitWebTV/Misc/pager.html.twig' %}
  430.         </div>
  431.     {% endif %}
  432.     <div class=\"row\">
  433.         <div class=\"col-xs-12\">
  434.             {{ series.footer|raw }}
  435.         </div>
  436.     </div>
  437. {% endblock %}
  438. ""@PumukitWebTV/Series/template.html.twig""/srv/pumukit/src/Pumukit/WebTVBundle/Resources/views/Series/template.html.twig");
  439.     }
  440. }