var/cache/review/twig/b4/b4bd5df42790bd1b5fbc42b23951eb02.php line 39

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. /* grid.html.twig */
  14. class __TwigTemplate_24e57749615269433b42da481bfb1f1b 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->blocks = [
  23.             'grid' => [$this'block_grid'],
  24.             'mainContainer' => [$this'block_mainContainer'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  36.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""grid.html.twig"));
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""grid.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""grid.html.twig"));
  41.         // line 3
  42.         $context["currentCity"] = twig_get_attribute($this->env$this->sourcetwig_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.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "attributes", [], "any"falsefalsefalse3), "get", ["city"$this->extensions['App\Twig\DefaultCityExtension']->defaultCity()], "method"falsefalsefalse3);
  43.         // line 1
  44.         $this->parent $this->loadTemplate("layout.html.twig""grid.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 5
  54.     public function block_grid($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  58.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""grid"));
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""grid"));
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""grid"));
  63.         // line 6
  64.         echo "\t";
  65.         $context["genders"] = [];
  66.         // line 7
  67.         echo "\t";
  68.         $context["genders"] = twig_array_merge((isset($context["genders"]) || array_key_exists("genders"$context) ? $context["genders"] : (function () { throw new RuntimeError('Variable "genders" does not exist.'7$this->source); })()), [$this->extensions['App\Twig\PersonParametersExtension']->genderFemale()]);
  69.         // line 8
  70.         echo "\t";
  71.         if (twig_in_filter("profile_list.list_by_gender"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.'8$this->source); })()), "request", [], "any"falsefalsefalse8), "get", ["_route"], "method"falsefalsefalse8))) {
  72.             // line 9
  73.             echo "\t\t";
  74.             if (($this->extensions['App\Twig\PersonParametersExtension']->genderValueByUri(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.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "get", ["gender"], "method"falsefalsefalse9)) == $this->extensions['App\Twig\PersonParametersExtension']->genderMale())) {
  75.                 // line 10
  76.                 echo "\t\t\t";
  77.                 $context["genders"] = twig_array_merge((isset($context["genders"]) || array_key_exists("genders"$context) ? $context["genders"] : (function () { throw new RuntimeError('Variable "genders" does not exist.'10$this->source); })()), [$this->extensions['App\Twig\PersonParametersExtension']->genderMale()]);
  78.                 // line 11
  79.                 echo "\t\t";
  80.             } elseif (($this->extensions['App\Twig\PersonParametersExtension']->genderValueByUri(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), "get", ["gender"], "method"falsefalsefalse11)) == $this->extensions['App\Twig\PersonParametersExtension']->genderTrans())) {
  81.                 // line 12
  82.                 echo "\t\t\t";
  83.                 $context["genders"] = twig_array_merge((isset($context["genders"]) || array_key_exists("genders"$context) ? $context["genders"] : (function () { throw new RuntimeError('Variable "genders" does not exist.'12$this->source); })()), [$this->extensions['App\Twig\PersonParametersExtension']->genderTrans()]);
  84.                 // line 13
  85.                 echo "\t\t";
  86.             }
  87.             // line 14
  88.             echo "\t";
  89.         }
  90.         // line 15
  91.         echo "
  92. \t<div class=\"container\">
  93. \t\t<main class=\"page-list\">
  94. \t\t\t";
  95.         // line 18
  96.         $this->displayBlock('mainContainer'$context$blocks);
  97.         // line 19
  98.         echo "\t\t</main>
  99. \t</div>
  100. ";
  101.         
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  103.         
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105.         
  106.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  107.     }
  108.     // line 18
  109.     public function block_mainContainer($context, array $blocks = [])
  110.     {
  111.         $macros $this->macros;
  112.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  113.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  118.         
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  120.         
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  122.         
  123.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  124.     }
  125.     /**
  126.      * @codeCoverageIgnore
  127.      */
  128.     public function getTemplateName()
  129.     {
  130.         return "grid.html.twig";
  131.     }
  132.     /**
  133.      * @codeCoverageIgnore
  134.      */
  135.     public function isTraitable()
  136.     {
  137.         return false;
  138.     }
  139.     /**
  140.      * @codeCoverageIgnore
  141.      */
  142.     public function getDebugInfo()
  143.     {
  144.         return array (  130 => 18,  115 => 19,  113 => 18,  108 => 15,  105 => 14,  102 => 13,  99 => 12,  96 => 11,  93 => 10,  90 => 9,  87 => 8,  84 => 7,  81 => 6,  68 => 5,  54 => 1,  52 => 3,  36 => 1,);
  145.     }
  146.     public function getSourceContext()
  147.     {
  148.         return new Source("{% extends 'layout.html.twig' %}
  149. {% set currentCity = app.request.attributes.get('city', default_city()) %}
  150. {% block grid %}
  151. \t{% set genders = [] %}
  152. \t{% set genders = genders|merge([gender_female()]) %}
  153. \t{% if 'profile_list.list_by_gender' in app.request.get('_route') %}
  154. \t\t{% if app.request.get('gender')|gender_value_by_uri == gender_male() %}
  155. \t\t\t{% set genders = genders|merge([gender_male()]) %}
  156. \t\t{% elseif app.request.get('gender')|gender_value_by_uri == gender_trans() %}
  157. \t\t\t{% set genders = genders|merge([gender_trans()]) %}
  158. \t\t{% endif %}
  159. \t{% endif %}
  160. \t<div class=\"container\">
  161. \t\t<main class=\"page-list\">
  162. \t\t\t{% block mainContainer %}{% endblock %}
  163. \t\t</main>
  164. \t</div>
  165. {% endblock %}
  166. ""grid.html.twig""/app/templates/grid.html.twig");
  167.     }
  168. }