var/cache/dev/twig/c0/c071b8edf46d7ed786c22a43cacf2883.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig */
  14. class __TwigTemplate_937e521e59f0631646fce990664ca0d9 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__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"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__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"));
  33.         // line 1
  34.         if (((array_key_exists("year"$context) || array_key_exists("age"$context)) || array_key_exists("date"$context))) {
  35.             // line 2
  36.             echo "    ";
  37.             ((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"nulltrue))) : (print ("")));
  38.             echo "
  39.     ";
  40.             // line 3
  41.             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); })()))) {
  42.                 // line 4
  43.                 echo "        ";
  44.                 $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); })()));
  45.                 // line 5
  46.                 echo "        ";
  47.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse5), "html"nulltrue);
  48.                 echo " ";
  49.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse5), "html"nulltrue);
  50.                 echo 
  51.         <a href=\"";
  52.                 // line 7
  53.                 echo twig_escape_filter($this->envtwig_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->sourcetwig_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"falsefalsefalse7), "locale", [], "any"falsefalsefalse7)], "method"falsefalsefalse7), "html"nulltrue);
  54.                 echo "?year=";
  55.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse7), "html"nulltrue);
  56.                 echo "\">
  57.             ";
  58.                 // line 8
  59.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse8), "html"nulltrue);
  60.                 echo "
  61.         </a> r.
  62.     ";
  63.             } elseif ((            // line 10
  64. 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); })()))) {
  65.                 // line 11
  66.                 echo "        <a href=\"";
  67.                 echo twig_escape_filter($this->envtwig_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->sourcetwig_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"falsefalsefalse11), "locale", [], "any"falsefalsefalse11)], "method"falsefalsefalse11), "html"nulltrue);
  68.                 echo "?year=";
  69.                 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"nulltrue);
  70.                 echo "\">
  71.             ";
  72.                 // line 12
  73.                 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"nulltrue);
  74.                 echo " r.
  75.         </a>
  76.     ";
  77.             }
  78.             // line 15
  79.             echo "
  80.     ";
  81.             // line 16
  82.             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); })()))) {
  83.                 // line 17
  84.                 echo "        <a href=\"";
  85.                 echo twig_escape_filter($this->envtwig_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->sourcetwig_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"falsefalsefalse17), "locale", [], "any"falsefalsefalse17)], "method"falsefalsefalse17), "html"nulltrue);
  86.                 echo "?age=";
  87.                 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"nulltrue);
  88.                 echo "\">
  89.             ";
  90.                 // line 18
  91.                 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"nulltrue);
  92.                 echo "
  93.         </a> w.
  94.     ";
  95.             }
  96.         }
  97.         
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  99.         
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  101.     }
  102.     public function getTemplateName()
  103.     {
  104.         return "@openform_front_templates/AntiqueSuit/_templates/_fields/_date_and_age_search.html.twig";
  105.     }
  106.     public function isTraitable()
  107.     {
  108.         return false;
  109.     }
  110.     public function getDebugInfo()
  111.     {
  112.         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,);
  113.     }
  114.     public function getSourceContext()
  115.     {
  116.         return new Source("{% if year is defined or age is defined or date is defined %}
  117.     {{ label is defined ? label }}
  118.     {% if date is defined and date %}
  119.         {% set date = date|explodedDate %}
  120.         {{ date['d'] }} {{ date['month'] }} 
  121.         <a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ date['y'] }}\">
  122.             {{ date['y'] }}
  123.         </a> r.
  124.     {% elseif year is defined and year %}
  125.         <a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?year={{ year }}\">
  126.             {{ year }} r.
  127.         </a>
  128.     {% endif %}
  129.     {% if age is defined and age %}
  130.         <a href=\"{{ toolkit_route_localizer.generate('search', {}, app.request.locale) }}?age={{ age }}\">
  131.             {{age}}
  132.         </a> w.
  133.     {% endif %}
  134. {% 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");
  135.     }
  136. }