<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig */
class __TwigTemplate_937e521e59f0631646fce990664ca0d9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig"));
// line 1
if (((array_key_exists("year", $context) || array_key_exists("age", $context)) || array_key_exists("date", $context))) {
// line 2
echo " ";
((array_key_exists("label", $context)) ? (print (twig_escape_filter($this->env, (isset($context["label"]) || array_key_exists("label", $context) ? $context["label"] : (function () { throw new RuntimeError('Variable "label" does not exist.', 2, $this->source); })()), "html", null, true))) : (print ("")));
echo "
";
// line 3
if ((array_key_exists("date", $context) && (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 3, $this->source); })()))) {
// line 4
echo " ";
$context["date"] = $this->extensions['App\Package\Openform\Twig\CustomExtensions']->explodedDateFilter((isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 4, $this->source); })()));
// line 5
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 5, $this->source); })()), "d", [], "array", false, false, false, 5), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 5, $this->source); })()), "month", [], "array", false, false, false, 5), "html", null, true);
echo "
<a href=\"";
// line 7
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["toolkit_route_localizer"]) || array_key_exists("toolkit_route_localizer", $context) ? $context["toolkit_route_localizer"] : (function () { throw new RuntimeError('Variable "toolkit_route_localizer" does not exist.', 7, $this->source); })()), "generate", ["search", [], twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "locale", [], "any", false, false, false, 7)], "method", false, false, false, 7), "html", null, true);
echo "?year=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 7, $this->source); })()), "y", [], "array", false, false, false, 7), "html", null, true);
echo "\">
";
// line 8
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 8, $this->source); })()), "y", [], "array", false, false, false, 8), "html", null, true);
echo "
</a> r.
";
} elseif (( // line 10
array_key_exists("year", $context) && (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 10, $this->source); })()))) {
// line 11
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["toolkit_route_localizer"]) || array_key_exists("toolkit_route_localizer", $context) ? $context["toolkit_route_localizer"] : (function () { throw new RuntimeError('Variable "toolkit_route_localizer" does not exist.', 11, $this->source); })()), "generate", ["search", [], twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "locale", [], "any", false, false, false, 11)], "method", false, false, false, 11), "html", null, true);
echo "?year=";
echo twig_escape_filter($this->env, (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 11, $this->source); })()), "html", null, true);
echo "\">
";
// line 12
echo twig_escape_filter($this->env, (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 12, $this->source); })()), "html", null, true);
echo " r.
</a>
";
}
// line 15
echo "
";
// line 16
if ((array_key_exists("age", $context) && (isset($context["age"]) || array_key_exists("age", $context) ? $context["age"] : (function () { throw new RuntimeError('Variable "age" does not exist.', 16, $this->source); })()))) {
// line 17
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["toolkit_route_localizer"]) || array_key_exists("toolkit_route_localizer", $context) ? $context["toolkit_route_localizer"] : (function () { throw new RuntimeError('Variable "toolkit_route_localizer" does not exist.', 17, $this->source); })()), "generate", ["search", [], twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "request", [], "any", false, false, false, 17), "locale", [], "any", false, false, false, 17)], "method", false, false, false, 17), "html", null, true);
echo "?age=";
echo twig_escape_filter($this->env, (isset($context["age"]) || array_key_exists("age", $context) ? $context["age"] : (function () { throw new RuntimeError('Variable "age" does not exist.', 17, $this->source); })()), "html", null, true);
echo "\">
";
// line 18
echo twig_escape_filter($this->env, (isset($context["age"]) || array_key_exists("age", $context) ? $context["age"] : (function () { throw new RuntimeError('Variable "age" does not exist.', 18, $this->source); })()), "html", null, true);
echo "
</a> w.
";
}
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 101 => 18, 94 => 17, 92 => 16, 89 => 15, 83 => 12, 76 => 11, 74 => 10, 69 => 8, 63 => 7, 55 => 5, 52 => 4, 50 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if year is defined or age is defined or date is defined %}
{{ label is defined ? label }}
{% if date is defined and date %}
{% set date = date|explodedDate %}
{{ date['d'] }} {{ date['month'] }}
<a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ date['y'] }}\">
{{ date['y'] }}
</a> r.
{% elseif year is defined and year %}
<a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ year }}\">
{{ year }} r.
</a>
{% endif %}
{% if age is defined and age %}
<a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?age={{ age }}\">
{{age}}
</a> w.
{% endif %}
{% endif %}", "@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig", "/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig");
}
}