<?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/Search/template.html.twig */
class __TwigTemplate_7ca075a7561ca8ddb46e51bcdc19578f 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'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@PumukitWebTV/layout.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/Search/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/Search/template.html.twig"));
$this->parent = $this->load("@PumukitWebTV/layout.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"));
// line 4
yield " ";
yield from $this->yieldParentBlock("title", $context, $blocks);
yield " -
";
// line 5
if ((array_key_exists("blocked_tag", $context) && !(null === (isset($context["blocked_tag"]) || array_key_exists("blocked_tag", $context) ? $context["blocked_tag"] : (function () { throw new RuntimeError('Variable "blocked_tag" does not exist.', 5, $this->source); })())))) {
// line 6
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["blocked_tag"]) || array_key_exists("blocked_tag", $context) ? $context["blocked_tag"] : (function () { throw new RuntimeError('Variable "blocked_tag" does not exist.', 6, $this->source); })()), "title", [], "any", false, false, false, 6), "html", null, true);
yield "
";
} else {
// line 8
yield " ";
if (array_key_exists("template_title", $context)) {
// line 9
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["template_title"]) || array_key_exists("template_title", $context) ? $context["template_title"] : (function () { throw new RuntimeError('Variable "template_title" does not exist.', 9, $this->source); })()), "html", null, true);
yield "
";
} else {
// line 11
yield " ";
if (((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 11, $this->source); })()) == "series")) {
// line 12
yield " ";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Series search", [], "messages");
// line 13
yield " ";
} else {
// line 14
yield " ";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Multimedia objects search", [], "messages");
// line 15
yield " ";
}
// line 16
yield " ";
}
// line 17
yield " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 20
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 21
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
<link href=\"";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/pumukitwebtv/css/bootstrap-datetimepicker.min.css"), "html", null, true);
yield "\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 25
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 26
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script src=\"";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/pumukitwebtv/js/moment-with-locales.min.js"), "html", null, true);
yield "\" type=\"text/javascript\"></script>
<script src=\"";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/pumukitwebtv/js/bootstrap-datetimepicker.min.js"), "html", null, true);
yield "\" type=\"text/javascript\"></script>
<script src=\"";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/pumukitwebtv/js/modernizr-custom.js"), "html", null, true);
yield "\" type=\"text/javascript\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 32
/**
* @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 33
yield " ";
yield from $this->load("@PumukitWebTV/Search/template_title.html.twig", 33)->unwrap()->yield($context);
// line 34
yield " ";
yield from $this->load("@PumukitWebTV/Search/template_list.html.twig", 34)->unwrap()->yield($context);
// line 35
yield " ";
yield from $this->load("@PumukitWebTV/Misc/pager.html.twig", 35)->unwrap()->yield($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@PumukitWebTV/Search/template.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 220 => 35, 217 => 34, 214 => 33, 201 => 32, 188 => 29, 184 => 28, 180 => 27, 175 => 26, 162 => 25, 149 => 22, 144 => 21, 131 => 20, 119 => 17, 116 => 16, 113 => 15, 110 => 14, 107 => 13, 104 => 12, 101 => 11, 95 => 9, 92 => 8, 86 => 6, 84 => 5, 79 => 4, 66 => 3, 43 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends '@PumukitWebTV/layout.html.twig' %}
{% block title %}
{{ parent() }} -
{% if blocked_tag is defined and blocked_tag is not null %}
{{ blocked_tag.title }}
{% else %}
{% if template_title is defined %}
{{ template_title }}
{% else %}
{% if type == \"series\" %}
{% trans %}Series search{% endtrans %}
{% else %}
{% trans %}Multimedia objects search{% endtrans %}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link href=\"{{ asset('bundles/pumukitwebtv/css/bootstrap-datetimepicker.min.css') }}\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\"/>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"{{ asset('bundles/pumukitwebtv/js/moment-with-locales.min.js') }}\" type=\"text/javascript\"></script>
<script src=\"{{ asset('bundles/pumukitwebtv/js/bootstrap-datetimepicker.min.js') }}\" type=\"text/javascript\"></script>
<script src=\"{{ asset('bundles/pumukitwebtv/js/modernizr-custom.js') }}\" type=\"text/javascript\"></script>
{% endblock %}
{% block body %}
{% include '@PumukitWebTV/Search/template_title.html.twig' %}
{% include '@PumukitWebTV/Search/template_list.html.twig' %}
{% include '@PumukitWebTV/Misc/pager.html.twig' %}
{% endblock %}
", "@PumukitWebTV/Search/template.html.twig", "/srv/pumukit/src/Pumukit/WebTVBundle/Resources/views/Search/template.html.twig");
}
}