var/cache/review/twig/b8/b88de2c94b9ec0906feceff1e6aa9410.php line 55

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. /* ProfileList/grid.html.twig */
  14. class __TwigTemplate_3cb234d58b8121beb1ae8540f5f977f3 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""ProfileList/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""ProfileList/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""ProfileList/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""ProfileList/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 "
  71. \t";
  72.         // line 9
  73.         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.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "get", ["_route"], "method"falsefalsefalse9))) {
  74.             // line 10
  75.             echo "\t\t";
  76.             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.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "get", ["gender"], "method"falsefalsefalse10)) == $this->extensions['App\Twig\PersonParametersExtension']->genderMale())) {
  77.                 // line 11
  78.                 echo "\t\t\t";
  79.                 $context["genders"] = twig_array_merge((isset($context["genders"]) || array_key_exists("genders"$context) ? $context["genders"] : (function () { throw new RuntimeError('Variable "genders" does not exist.'11$this->source); })()), [$this->extensions['App\Twig\PersonParametersExtension']->genderMale()]);
  80.                 // line 12
  81.                 echo "\t\t";
  82.             } 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.'12$this->source); })()), "request", [], "any"falsefalsefalse12), "get", ["gender"], "method"falsefalsefalse12)) == $this->extensions['App\Twig\PersonParametersExtension']->genderTrans())) {
  83.                 // line 13
  84.                 echo "\t\t\t";
  85.                 $context["genders"] = twig_array_merge((isset($context["genders"]) || array_key_exists("genders"$context) ? $context["genders"] : (function () { throw new RuntimeError('Variable "genders" does not exist.'13$this->source); })()), [$this->extensions['App\Twig\PersonParametersExtension']->genderTrans()]);
  86.                 // line 14
  87.                 echo "\t\t";
  88.             }
  89.             // line 15
  90.             echo "\t";
  91.         }
  92.         // line 16
  93.         echo "
  94. \t<div class=\"container\">
  95. \t\t";
  96.         // line 25
  97.         echo "\t\t<main class=\"page-list\">
  98. \t\t\t";
  99.         // line 26
  100.         $this->displayBlock('mainContainer'$context$blocks);
  101.         // line 27
  102.         echo "\t\t</main>
  103. \t\t";
  104.         // line 54
  105.         echo "\t</div>
  106. ";
  107.         
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  109.         
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111.         
  112.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  113.     }
  114.     // line 26
  115.     public function block_mainContainer($context, array $blocks = [])
  116.     {
  117.         $macros $this->macros;
  118.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  119.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainContainer"));
  124.         
  125.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  126.         
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  128.         
  129.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  130.     }
  131.     /**
  132.      * @codeCoverageIgnore
  133.      */
  134.     public function getTemplateName()
  135.     {
  136.         return "ProfileList/grid.html.twig";
  137.     }
  138.     /**
  139.      * @codeCoverageIgnore
  140.      */
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     /**
  146.      * @codeCoverageIgnore
  147.      */
  148.     public function getDebugInfo()
  149.     {
  150.         return array (  136 => 26,  122 => 54,  119 => 27,  117 => 26,  114 => 25,  110 => 16,  107 => 15,  104 => 14,  101 => 13,  98 => 12,  95 => 11,  92 => 10,  90 => 9,  87 => 8,  84 => 7,  81 => 6,  68 => 5,  54 => 1,  52 => 3,  36 => 1,);
  151.     }
  152.     public function getSourceContext()
  153.     {
  154.         return new Source("{% extends 'layout.html.twig' %}
  155. {% set currentCity = app.request.attributes.get('city', default_city()) %}
  156. {% block grid %}
  157. \t{% set genders = [] %}
  158. \t{% set genders = genders|merge([gender_female()]) %}
  159. \t{% if 'profile_list.list_by_gender' in app.request.get('_route') %}
  160. \t\t{% if app.request.get('gender')|gender_value_by_uri == gender_male() %}
  161. \t\t\t{% set genders = genders|merge([gender_male()]) %}
  162. \t\t{% elseif app.request.get('gender')|gender_value_by_uri == gender_trans() %}
  163. \t\t\t{% set genders = genders|merge([gender_trans()]) %}
  164. \t\t{% endif %}
  165. \t{% endif %}
  166. \t<div class=\"container\">
  167. \t\t{# <div class=\"column is-narrow left-menu-block\">
  168. \t\t\t<aside class=\"box public-menu\" style=\"width: 250px;\" role=\"navigation\" id=\"left_column_metric\">
  169. \t\t\t\t{% block leftSidebar %}
  170. \t\t\t\t\t{{ render_esi(controller('App\\\\Controller\\\\HttpCacheController::leftAsideFullView', {'city': currentCity.uriIdentity})) }}
  171. \t\t\t\t{% endblock %}
  172. \t\t\t</aside>
  173. \t\t</div> #}
  174. \t\t<main class=\"page-list\">
  175. \t\t\t{% block mainContainer %}{% endblock %}
  176. \t\t</main>
  177. \t\t{# <div class=\"column is-narrow right-filter-block\" style=\"display: none\">
  178. \t\t\t<div class=\"filters\">
  179. \t\t\t\t{% set isArchivePage =  'profile_list.list_archived' in app.request.attributes.get('_route') %}
  180. \t\t\t\t{% set isFormExist = false %}{# profile_filter_form is defined and not isArchivePage #!}
  181. \t\t\t\t{% if isFormExist %}
  182. \t\t\t\t\t<noindex>
  183. \t\t\t\t\t\t{# Форма полей фильтрации #!}
  184. \t\t\t\t\t\t{{ form_start(profile_filter_form, {
  185. \t\t\t\t\t\t\t'attr': {
  186. \t\t\t\t\t\t\t\t'id': 'filter-form-2',
  187. \t\t\t\t\t\t\t\t'class': 'filter_form',
  188. \t\t\t\t\t\t\t\t'data-process-url': path('profile_ctr.increase_shows'),
  189. \t\t\t\t\t\t\t\t'data-main-class': 'profile_filter'
  190. \t\t\t\t\t\t\t}
  191. \t\t\t\t\t\t}) }}
  192. \t\t\t\t\t\t\t{# {{ include('ProfileList/filter/form.partial.twig', {filterData: profile_filter_form.vars.value, filterListId: 'filter-list-2'}) }} #!}
  193. \t\t\t\t\t\t\t<div class=\"profile_filter\" id=\"filter-list-2\"></div>
  194. \t\t\t\t\t\t{{ form_end(profile_filter_form) }}
  195. \t\t\t\t\t\t<div class=\"profile_filter__tags__container profile_filter__tags__container--desktop\">
  196. \t\t\t\t\t\t\t<div class=\"profile_filter__tags profile_filter__tags--wrap\" data-filter-tags></div>
  197. \t\t\t\t\t\t</div>
  198. \t\t\t\t\t</noindex>
  199. \t\t\t\t{% endif %}
  200. \t\t\t</div>
  201. \t\t</div> #}
  202. \t</div>
  203. {% endblock %}
  204. ""ProfileList/grid.html.twig""/app/templates/ProfileList/grid.html.twig");
  205.     }
  206. }