<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* @PumukitWebTV/Index/template.html.twig */
class __TwigTemplate_04a9859635f609050ee416fa1a3ff91c extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@PumukitWebTV/Layout/template.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "@PumukitWebTV/Index/template.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PumukitWebTV/Index/template.html.twig"));
$this->parent = $this->load("@PumukitWebTV/Layout/template.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["pumukit_info"] ?? null), "title", [], "any", true, true, false, 3)) ? (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", false, false, false, 3), "PuMuKIT")) : ("PuMuKIT")), "html", null, true);
yield " - ";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Home", [], "messages");
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
yield "
";
// line 7
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Pumukit\\WebTVBundle\\Controller\\ModulesController::highlightAction"));
yield "
";
// line 9
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Pumukit\\WebTVBundle\\Controller\\ModulesController::mostViewedAction"));
yield "
";
// line 11
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Pumukit\\WebTVBundle\\Controller\\ModulesController::recentlyaddedAllAction"));
yield "
<div class=\"col-xs-12 text-right show_more_link\">
<a href=\"";
// line 14
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pumukit_webtv_medialibrary_index");
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Full Catalogue"), "html", null, true);
yield "\">
";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Show more"), "html", null, true);
yield "...
</a>
</div>
";
// line 19
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)) {
// line 20
yield " ";
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Pumukit\\WebTVBundle\\Controller\\ModulesController::statsAction"));
yield "
";
}
// line 22
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@PumukitWebTV/Index/template.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends '@PumukitWebTV/Layout/template.html.twig' %}
{% block title %}{{ pumukit_info.title|default('PuMuKIT') }} - {% trans %}Home{% endtrans %}{% endblock %}
{% block body %}
{{ render(controller('Pumukit\\\\WebTVBundle\\\\Controller\\\\ModulesController::highlightAction')) }}
{{ render(controller('Pumukit\\\\WebTVBundle\\\\Controller\\\\ModulesController::mostViewedAction')) }}
{{ render(controller('Pumukit\\\\WebTVBundle\\\\Controller\\\\ModulesController::recentlyaddedAllAction')) }}
<div class=\"col-xs-12 text-right show_more_link\">
<a href=\"{{ path('pumukit_webtv_medialibrary_index') }}\" title=\"{{ \"Full Catalogue\"|trans }}\">
{{ \"Show more\"|trans }}...
</a>
</div>
{% if menu_stats|default(false) %}
{{ render(controller('Pumukit\\\\WebTVBundle\\\\Controller\\\\ModulesController::statsAction')) }}
{% endif %}
{% endblock %}
", "@PumukitWebTV/Index/template.html.twig", "/srv/pumukit/src/Pumukit/WebTVBundle/Resources/views/Index/template.html.twig");
}
}