<?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.html.twig */
class __TwigTemplate_705816e211b6642e760a6900707d3d52 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.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.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 "
";
// line 10
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.', 10, $this->source); })()), "y", [], "array", false, false, false, 10), "html", null, true);
echo " r.
";
} elseif (( // line 11
array_key_exists("year", $context) && (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 11, $this->source); })()))) {
// line 12
echo " ";
// line 15
echo " ";
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.', 15, $this->source); })()), "html", null, true);
echo " r.
";
}
// line 17
echo "
";
// line 18
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.', 18, $this->source); })()))) {
// line 19
echo " ";
// line 22
echo " ";
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.', 22, $this->source); })()), "html", null, true);
echo " 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.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 85 => 22, 83 => 19, 81 => 18, 78 => 17, 72 => 15, 70 => 12, 68 => 11, 63 => 10, 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. #}
{{ date['y'] }} r.
{% elseif year is defined and year %}
{# <a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ year }}\">
{{ year }} r.
</a> #}
{{ year }} r.
{% endif %}
{% if age is defined and age %}
{# <a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?age={{ age }}\">
{{age}}
</a> w. #}
{{age}} w.
{% endif %}
{% endif %}", "@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age.html.twig", "/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/AntiqueSuit/_templates/_fields/_date_and_age.html.twig");
}
}