<?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;
/* ProfileList/grid.html.twig */
class __TwigTemplate_3cb234d58b8121beb1ae8540f5f977f3 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'grid' => [$this, 'block_grid'],
'mainContainer' => [$this, 'block_mainContainer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfileList/grid.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfileList/grid.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProfileList/grid.html.twig"));
// line 3
$context["currentCity"] = twig_get_attribute($this->env, $this->source, 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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "attributes", [], "any", false, false, false, 3), "get", ["city", $this->extensions['App\Twig\DefaultCityExtension']->defaultCity()], "method", false, false, false, 3);
// line 1
$this->parent = $this->loadTemplate("layout.html.twig", "ProfileList/grid.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_grid($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "grid"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "grid"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "grid"));
// line 6
echo "\t";
$context["genders"] = [];
// line 7
echo "\t";
$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()]);
// line 8
echo "
\t";
// line 9
if (twig_in_filter("profile_list.list_by_gender", 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), "get", ["_route"], "method", false, false, false, 9))) {
// line 10
echo "\t\t";
if (($this->extensions['App\Twig\PersonParametersExtension']->genderValueByUri(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.', 10, $this->source); })()), "request", [], "any", false, false, false, 10), "get", ["gender"], "method", false, false, false, 10)) == $this->extensions['App\Twig\PersonParametersExtension']->genderMale())) {
// line 11
echo "\t\t\t";
$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()]);
// line 12
echo "\t\t";
} elseif (($this->extensions['App\Twig\PersonParametersExtension']->genderValueByUri(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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "get", ["gender"], "method", false, false, false, 12)) == $this->extensions['App\Twig\PersonParametersExtension']->genderTrans())) {
// line 13
echo "\t\t\t";
$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()]);
// line 14
echo "\t\t";
}
// line 15
echo "\t";
}
// line 16
echo "
\t<div class=\"container\">
\t\t";
// line 25
echo "\t\t<main class=\"page-list\">
\t\t\t";
// line 26
$this->displayBlock('mainContainer', $context, $blocks);
// line 27
echo "\t\t</main>
\t\t";
// line 54
echo "\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
// line 26
public function block_mainContainer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainContainer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "ProfileList/grid.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% set currentCity = app.request.attributes.get('city', default_city()) %}
{% block grid %}
\t{% set genders = [] %}
\t{% set genders = genders|merge([gender_female()]) %}
\t{% if 'profile_list.list_by_gender' in app.request.get('_route') %}
\t\t{% if app.request.get('gender')|gender_value_by_uri == gender_male() %}
\t\t\t{% set genders = genders|merge([gender_male()]) %}
\t\t{% elseif app.request.get('gender')|gender_value_by_uri == gender_trans() %}
\t\t\t{% set genders = genders|merge([gender_trans()]) %}
\t\t{% endif %}
\t{% endif %}
\t<div class=\"container\">
\t\t{# <div class=\"column is-narrow left-menu-block\">
\t\t\t<aside class=\"box public-menu\" style=\"width: 250px;\" role=\"navigation\" id=\"left_column_metric\">
\t\t\t\t{% block leftSidebar %}
\t\t\t\t\t{{ render_esi(controller('App\\\\Controller\\\\HttpCacheController::leftAsideFullView', {'city': currentCity.uriIdentity})) }}
\t\t\t\t{% endblock %}
\t\t\t</aside>
\t\t</div> #}
\t\t<main class=\"page-list\">
\t\t\t{% block mainContainer %}{% endblock %}
\t\t</main>
\t\t{# <div class=\"column is-narrow right-filter-block\" style=\"display: none\">
\t\t\t<div class=\"filters\">
\t\t\t\t{% set isArchivePage = 'profile_list.list_archived' in app.request.attributes.get('_route') %}
\t\t\t\t{% set isFormExist = false %}{# profile_filter_form is defined and not isArchivePage #!}
\t\t\t\t{% if isFormExist %}
\t\t\t\t\t<noindex>
\t\t\t\t\t\t{# Форма полей фильтрации #!}
\t\t\t\t\t\t{{ form_start(profile_filter_form, {
\t\t\t\t\t\t\t'attr': {
\t\t\t\t\t\t\t\t'id': 'filter-form-2',
\t\t\t\t\t\t\t\t'class': 'filter_form',
\t\t\t\t\t\t\t\t'data-process-url': path('profile_ctr.increase_shows'),
\t\t\t\t\t\t\t\t'data-main-class': 'profile_filter'
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}) }}
\t\t\t\t\t\t\t{# {{ include('ProfileList/filter/form.partial.twig', {filterData: profile_filter_form.vars.value, filterListId: 'filter-list-2'}) }} #!}
\t\t\t\t\t\t\t<div class=\"profile_filter\" id=\"filter-list-2\"></div>
\t\t\t\t\t\t{{ form_end(profile_filter_form) }}
\t\t\t\t\t\t<div class=\"profile_filter__tags__container profile_filter__tags__container--desktop\">
\t\t\t\t\t\t\t<div class=\"profile_filter__tags profile_filter__tags--wrap\" data-filter-tags></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</noindex>
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t</div> #}
\t</div>
{% endblock %}
", "ProfileList/grid.html.twig", "/app/templates/ProfileList/grid.html.twig");
}
}