var/cache/dev/twig/8e/8e5c3f089e1407ee72df77dbaea99918.php line 105

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/Index/template.html.twig */
  16. class __TwigTemplate_04a9859635f609050ee416fa1a3ff91c 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.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "@PumukitWebTV/Layout/template.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PumukitWebTV/Index/template.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PumukitWebTV/Index/template.html.twig"));
  44.         $this->parent $this->load("@PumukitWebTV/Layout/template.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["pumukit_info"] ?? null), "title", [], "any"truetruefalse3)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, (isset($context["pumukit_info"]) || array_key_exists("pumukit_info"$context) ? $context["pumukit_info"] : (function () { throw new RuntimeError('Variable "pumukit_info" does not exist.'3$this->source); })()), "title", [], "any"falsefalsefalse3), "PuMuKIT")) : ("PuMuKIT")), "html"nulltrue);
  63.         yield " - ";
  64.         yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Home", [], "messages");
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.         yield from [];
  70.     }
  71.     // line 5
  72.     /**
  73.      * @return iterable<null|scalar|\Stringable>
  74.      */
  75.     public function block_body(array $context, array $blocks = []): iterable
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  82.         // line 6
  83.         yield "
  84.     ";
  85.         // line 7
  86.         yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Pumukit\\WebTVBundle\\Controller\\ModulesController::highlightAction"));
  87.         yield "
  88.     ";
  89.         // line 9
  90.         yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Pumukit\\WebTVBundle\\Controller\\ModulesController::mostViewedAction"));
  91.         yield "
  92.     ";
  93.         // line 11
  94.         yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Pumukit\\WebTVBundle\\Controller\\ModulesController::recentlyaddedAllAction"));
  95.         yield "
  96.     <div class=\"col-xs-12 text-right show_more_link\">
  97.         <a href=\"";
  98.         // line 14
  99.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pumukit_webtv_medialibrary_index");
  100.         yield "\" title=\"";
  101.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Full Catalogue"), "html"nulltrue);
  102.         yield "\">
  103.             ";
  104.         // line 15
  105.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Show more"), "html"nulltrue);
  106.         yield "...
  107.         </a>
  108.     </div>
  109.     ";
  110.         // line 19
  111.         if ((($tmp = ((array_key_exists("menu_stats"$context)) ? (Twig\Extension\CoreExtension::default((isset($context["menu_stats"]) || array_key_exists("menu_stats"$context) ? $context["menu_stats"] : (function () { throw new RuntimeError('Variable "menu_stats" does not exist.'19$this->source); })()), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  112.             // line 20
  113.             yield "        ";
  114.             yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Pumukit\\WebTVBundle\\Controller\\ModulesController::statsAction"));
  115.             yield "
  116.     ";
  117.         }
  118.         // line 22
  119.         yield "
  120. ";
  121.         
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  123.         
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  125.         yield from [];
  126.     }
  127.     /**
  128.      * @codeCoverageIgnore
  129.      */
  130.     public function getTemplateName(): string
  131.     {
  132.         return "@PumukitWebTV/Index/template.html.twig";
  133.     }
  134.     /**
  135.      * @codeCoverageIgnore
  136.      */
  137.     public function isTraitable(): bool
  138.     {
  139.         return false;
  140.     }
  141.     /**
  142.      * @codeCoverageIgnore
  143.      */
  144.     public function getDebugInfo(): array
  145.     {
  146.         return array (  142 => 22,  136 => 20,  134 => 19,  127 => 15,  121 => 14,  115 => 11,  110 => 9,  105 => 7,  102 => 6,  89 => 5,  64 => 3,  41 => 1,);
  147.     }
  148.     public function getSourceContext(): Source
  149.     {
  150.         return new Source("{% extends '@PumukitWebTV/Layout/template.html.twig' %}
  151. {% block title %}{{ pumukit_info.title|default('PuMuKIT') }} - {% trans %}Home{% endtrans %}{% endblock %}
  152. {% block body %}
  153.     {{ render(controller('Pumukit\\\\WebTVBundle\\\\Controller\\\\ModulesController::highlightAction')) }}
  154.     {{ render(controller('Pumukit\\\\WebTVBundle\\\\Controller\\\\ModulesController::mostViewedAction')) }}
  155.     {{ render(controller('Pumukit\\\\WebTVBundle\\\\Controller\\\\ModulesController::recentlyaddedAllAction')) }}
  156.     <div class=\"col-xs-12 text-right show_more_link\">
  157.         <a href=\"{{ path('pumukit_webtv_medialibrary_index') }}\" title=\"{{ \"Full Catalogue\"|trans }}\">
  158.             {{ \"Show more\"|trans }}...
  159.         </a>
  160.     </div>
  161.     {% if menu_stats|default(false) %}
  162.         {{ render(controller('Pumukit\\\\WebTVBundle\\\\Controller\\\\ModulesController::statsAction')) }}
  163.     {% endif %}
  164. {% endblock %}
  165. ""@PumukitWebTV/Index/template.html.twig""/srv/pumukit/src/Pumukit/WebTVBundle/Resources/views/Index/template.html.twig");
  166.     }
  167. }