<?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/_dates_and_ages.html.twig */
class __TwigTemplate_10bfce42ffcbcb843b2d020bfa0ee4e6 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/_dates_and_ages.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/_dates_and_ages.html.twig"));
// line 1
if (((((((isset($context["yearFrom"]) || array_key_exists("yearFrom", $context) ? $context["yearFrom"] : (function () { throw new RuntimeError('Variable "yearFrom" does not exist.', 1, $this->source); })()) || (isset($context["yearTo"]) || array_key_exists("yearTo", $context) ? $context["yearTo"] : (function () { throw new RuntimeError('Variable "yearTo" does not exist.', 1, $this->source); })())) || (isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 1, $this->source); })())) || (isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 1, $this->source); })())) || (isset($context["dateFrom"]) || array_key_exists("dateFrom", $context) ? $context["dateFrom"] : (function () { throw new RuntimeError('Variable "dateFrom" does not exist.', 1, $this->source); })())) || (isset($context["dateTo"]) || array_key_exists("dateTo", $context) ? $context["dateTo"] : (function () { throw new RuntimeError('Variable "dateTo" does not exist.', 1, $this->source); })()))) {
// line 2
echo "
";
// line 3
if ((isset($context["dateFrom"]) || array_key_exists("dateFrom", $context) ? $context["dateFrom"] : (function () { throw new RuntimeError('Variable "dateFrom" does not exist.', 3, $this->source); })())) {
// line 4
echo " ";
$context["date"] = $this->extensions['App\Package\Openform\Twig\CustomExtensions']->explodedDateFilter((isset($context["dateFrom"]) || array_key_exists("dateFrom", $context) ? $context["dateFrom"] : (function () { throw new RuntimeError('Variable "dateFrom" 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=\"";
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.', 5, $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.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "locale", [], "any", false, false, false, 5)], "method", false, false, false, 5), "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.', 5, $this->source); })()), "y", [], "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); })()), "y", [], "array", false, false, false, 5), "html", null, true);
echo "</a> r.";
echo (((( !(isset($context["dateTo"]) || array_key_exists("dateTo", $context) ? $context["dateTo"] : (function () { throw new RuntimeError('Variable "dateTo" does not exist.', 5, $this->source); })()) && !(isset($context["yearTo"]) || array_key_exists("yearTo", $context) ? $context["yearTo"] : (function () { throw new RuntimeError('Variable "yearTo" does not exist.', 5, $this->source); })())) && ((isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 5, $this->source); })()) || (isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 5, $this->source); })())))) ? (", ") : (""));
echo "
";
// line 6
$context["showMinus"] = true;
// line 7
echo " ";
} elseif ((isset($context["yearFrom"]) || array_key_exists("yearFrom", $context) ? $context["yearFrom"] : (function () { throw new RuntimeError('Variable "yearFrom" does not exist.', 7, $this->source); })())) {
// line 8
echo " ";
$context["showMinus"] = true;
// line 9
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.', 9, $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.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "locale", [], "any", false, false, false, 9)], "method", false, false, false, 9), "html", null, true);
echo "?year=";
echo twig_escape_filter($this->env, (isset($context["yearFrom"]) || array_key_exists("yearFrom", $context) ? $context["yearFrom"] : (function () { throw new RuntimeError('Variable "yearFrom" does not exist.', 9, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["yearFrom"]) || array_key_exists("yearFrom", $context) ? $context["yearFrom"] : (function () { throw new RuntimeError('Variable "yearFrom" does not exist.', 9, $this->source); })()), "html", null, true);
echo "</a> r.";
echo (((( !(isset($context["dateTo"]) || array_key_exists("dateTo", $context) ? $context["dateTo"] : (function () { throw new RuntimeError('Variable "dateTo" does not exist.', 9, $this->source); })()) && !(isset($context["yearTo"]) || array_key_exists("yearTo", $context) ? $context["yearTo"] : (function () { throw new RuntimeError('Variable "yearTo" does not exist.', 9, $this->source); })())) && ((isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 9, $this->source); })()) || (isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 9, $this->source); })())))) ? (", ") : (""));
echo "
";
}
// line 11
echo "
";
// line 12
if ((isset($context["dateTo"]) || array_key_exists("dateTo", $context) ? $context["dateTo"] : (function () { throw new RuntimeError('Variable "dateTo" does not exist.', 12, $this->source); })())) {
// line 13
echo " ";
if (array_key_exists("showMinus", $context)) {
echo "- ";
}
// line 14
echo " ";
$context["dateTo"] = $this->extensions['App\Package\Openform\Twig\CustomExtensions']->explodedDateFilter((isset($context["dateTo"]) || array_key_exists("dateTo", $context) ? $context["dateTo"] : (function () { throw new RuntimeError('Variable "dateTo" does not exist.', 14, $this->source); })()));
// line 15
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["dateTo"]) || array_key_exists("dateTo", $context) ? $context["dateTo"] : (function () { throw new RuntimeError('Variable "dateTo" does not exist.', 15, $this->source); })()), "d", [], "array", false, false, false, 15), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["dateTo"]) || array_key_exists("dateTo", $context) ? $context["dateTo"] : (function () { throw new RuntimeError('Variable "dateTo" does not exist.', 15, $this->source); })()), "month", [], "array", false, false, false, 15), "html", null, true);
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.', 15, $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.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "locale", [], "any", false, false, false, 15)], "method", false, false, false, 15), "html", null, true);
echo "?year=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["dateTo"]) || array_key_exists("dateTo", $context) ? $context["dateTo"] : (function () { throw new RuntimeError('Variable "dateTo" does not exist.', 15, $this->source); })()), "y", [], "array", false, false, false, 15), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["dateTo"]) || array_key_exists("dateTo", $context) ? $context["dateTo"] : (function () { throw new RuntimeError('Variable "dateTo" does not exist.', 15, $this->source); })()), "y", [], "array", false, false, false, 15), "html", null, true);
echo "</a> r.";
echo ((((isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 15, $this->source); })()) || (isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 15, $this->source); })()))) ? (", ") : (""));
echo "
";
} elseif ( // line 16
(isset($context["yearTo"]) || array_key_exists("yearTo", $context) ? $context["yearTo"] : (function () { throw new RuntimeError('Variable "yearTo" does not exist.', 16, $this->source); })())) {
// line 17
echo " ";
if (array_key_exists("showMinus", $context)) {
echo "- ";
}
// line 18
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.', 18, $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.', 18, $this->source); })()), "request", [], "any", false, false, false, 18), "locale", [], "any", false, false, false, 18)], "method", false, false, false, 18), "html", null, true);
echo "?year=";
echo twig_escape_filter($this->env, (isset($context["yearTo"]) || array_key_exists("yearTo", $context) ? $context["yearTo"] : (function () { throw new RuntimeError('Variable "yearTo" does not exist.', 18, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["yearTo"]) || array_key_exists("yearTo", $context) ? $context["yearTo"] : (function () { throw new RuntimeError('Variable "yearTo" does not exist.', 18, $this->source); })()), "html", null, true);
echo "</a> r.";
echo ((((isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 18, $this->source); })()) || (isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 18, $this->source); })()))) ? (", ") : (""));
echo "
";
}
// line 20
echo "
";
// line 21
if (((isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 21, $this->source); })()) || (isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 21, $this->source); })()))) {
// line 22
echo " ";
if ((isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 22, $this->source); })())) {
// line 23
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.', 23, $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.', 23, $this->source); })()), "request", [], "any", false, false, false, 23), "locale", [], "any", false, false, false, 23)], "method", false, false, false, 23), "html", null, true);
echo "?age=";
echo twig_escape_filter($this->env, (isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 23, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 23, $this->source); })()), "html", null, true);
echo "</a> ";
if ( !(isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 23, $this->source); })())) {
echo "w.";
}
// line 24
echo " ";
}
// line 25
echo " ";
if (((isset($context["ageFrom"]) || array_key_exists("ageFrom", $context) ? $context["ageFrom"] : (function () { throw new RuntimeError('Variable "ageFrom" does not exist.', 25, $this->source); })()) && (isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 25, $this->source); })()))) {
echo " - ";
}
// line 26
echo " ";
if ((isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 26, $this->source); })())) {
// line 27
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.', 27, $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.', 27, $this->source); })()), "request", [], "any", false, false, false, 27), "locale", [], "any", false, false, false, 27)], "method", false, false, false, 27), "html", null, true);
echo "?age=";
echo twig_escape_filter($this->env, (isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 27, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["ageTo"]) || array_key_exists("ageTo", $context) ? $context["ageTo"] : (function () { throw new RuntimeError('Variable "ageTo" does not exist.', 27, $this->source); })()), "html", null, true);
echo "</a> w.
";
}
// line 29
echo " ";
}
}
// line 30
echo " ";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@openform_front_templates/AntiqueSuit/_templates/_fields/_dates_and_ages.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 179 => 30, 175 => 29, 165 => 27, 162 => 26, 157 => 25, 154 => 24, 143 => 23, 140 => 22, 138 => 21, 135 => 20, 123 => 18, 118 => 17, 116 => 16, 101 => 15, 98 => 14, 93 => 13, 91 => 12, 88 => 11, 76 => 9, 73 => 8, 70 => 7, 68 => 6, 53 => 5, 50 => 4, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if yearFrom or yearTo or ageFrom or ageTo or dateFrom or dateTo %}
{% if dateFrom %}
{% set date = dateFrom|explodedDate %}
{{ date['d'] }} {{ date['month'] }} <a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ date['y'] }}\">{{ date['y'] }}</a> r.{{ (not dateTo and not yearTo) and (ageFrom or ageTo) ? ', ' }}
{% set showMinus = true %}
{% elseif yearFrom %}
{% set showMinus = true %}
<a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ yearFrom }}\">{{ yearFrom }}</a> r.{{ (not dateTo and not yearTo) and (ageFrom or ageTo) ? ', ' }}
{% endif %}
{% if dateTo %}
{% if showMinus is defined %}- {% endif %}
{% set dateTo = dateTo|explodedDate %}
{{ dateTo['d'] }} {{ dateTo['month'] }} <a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ dateTo['y'] }}\">{{ dateTo['y'] }}</a> r.{{ ageFrom or ageTo ? ', ' }}
{% elseif yearTo %}
{% if showMinus is defined %}- {% endif %}
<a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ yearTo }}\">{{ yearTo }}</a> r.{{ ageFrom or ageTo ? ', ' }}
{% endif %}
{% if ageFrom or ageTo %}
{% if ageFrom %}
<a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?age={{ ageFrom }}\">{{ageFrom}}</a> {% if not ageTo %}w.{% endif %}
{% endif %}
{% if ageFrom and ageTo %} - {% endif %}
{% if ageTo %}
<a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?age={{ ageTo }}\">{{ageTo}}</a> w.
{% endif %}
{% endif %}
{% endif %} ", "@openform_front_templates/AntiqueSuit/_templates/_fields/_dates_and_ages.html.twig", "/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_fields/_dates_and_ages.html.twig");
}
}