<?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;
/* __design/v2023/components/header.html.twig */
class __TwigTemplate_1879048e28041154935c5998a15a0891 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_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__design/v2023/components/header.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__design/v2023/components/header.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "__design/v2023/components/header.html.twig"));
// line 1
echo "
";
// line 2
$context["metro"] = ((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.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "attributes", [], "any", false, false, false, 2), "get", ["station"], "method", false, false, false, 2)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, 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.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "attributes", [], "any", false, false, false, 2), "get", ["station"], "method", false, false, false, 2), "name", [], "any", false, false, false, 2))) : ("Метро"));
// line 4
echo "
";
// line 6
echo "<header class=\"header d-flex-c\" role=\"navigation\" aria-label=\"main navigation\">
\t<div class=\"container d-flex-c\">
<div class=\"hamburger d-block\">
<button class=\"btn btn-reset hamburger-toggle d-block menu-toggle\" type=\"button\" aria-expanded=\"false\" id=\"hamburger-btn\">
<span class=\"hamburger-icon d-block\"></span>
<span class=\"hamburger-icon d-block\"></span>
<span class=\"hamburger-icon d-block\"></span>
</button>
<ul class=\"hamburger-menu menu-list\">
";
// line 15
if (((isset($context["templateType"]) || array_key_exists("templateType", $context) ? $context["templateType"] : (function () { throw new RuntimeError('Variable "templateType" does not exist.', 15, $this->source); })()) == "public")) {
// line 16
echo " ";
echo twig_include($this->env, $context, "__design/v2023/components/header-menu/public.partial.twig");
echo "
";
} else {
// line 18
echo " ";
if (($this->extensions['App\Twig\UserExtension']->isUserAdvertiser(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.', 18, $this->source); })()), "user", [], "any", false, false, false, 18)) == "1")) {
// line 19
echo " ";
echo twig_include($this->env, $context, "__design/v2023/components/header-menu/account.partial.twig");
echo "
";
} else {
// line 21
echo " ";
echo twig_include($this->env, $context, "__design/v2023/components/header-menu/customer.partial.twig");
echo "
";
}
// line 23
echo " ";
}
// line 24
echo " </ul>
</div>
<a class=\"header__logotype\" href=\"";
// line 26
echo twig_escape_filter($this->env, (isset($context["logoUrl"]) || array_key_exists("logoUrl", $context) ? $context["logoUrl"] : (function () { throw new RuntimeError('Variable "logoUrl" does not exist.', 26, $this->source); })()), "html", null, true);
echo "\">
<img class=\"logotype-image\" width=\"200\" height=\"56\" src=\"";
// line 27
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.svg"), "html", null, true);
echo "\" alt=\"Проститутки - ";
echo twig_escape_filter($this->env, (isset($context["actual_main_domain"]) || array_key_exists("actual_main_domain", $context) ? $context["actual_main_domain"] : (function () { throw new RuntimeError('Variable "actual_main_domain" does not exist.', 27, $this->source); })()), "html", null, true);
echo "\">
</a>
";
// line 30
if (((isset($context["templateType"]) || array_key_exists("templateType", $context) ? $context["templateType"] : (function () { throw new RuntimeError('Variable "templateType" does not exist.', 30, $this->source); })()) == "public")) {
// line 31
echo " <div class=\"header__buttons header__buttons--desktop btn-list\">
<button class=\"header__select-city btn btn-white\" type=\"button\" title=\"Выбрать город\" aria-label=\"Выбрать город\" data-a11y-dialog-show=\"city-dialog\">
<svg class=\"btn-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\"><path d=\"M4.637 12.392c.277.277.554.364 1.101.364l6 .032c.055 0 .103 0 .127.032.023.023.031.07.031.119l.024 6.007c.008.547.095.824.373 1.102.372.38.895.317 1.284-.064.206-.206.372-.547.523-.864l6.063-13.076c.317-.666.277-1.157-.047-1.482-.318-.317-.81-.357-1.475-.04L5.564 10.585c-.317.15-.658.317-.864.523-.38.388-.444.904-.063 1.284\"/></svg>
<span class=\"btn-text\">";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 34, $this->source); })()), "name", [], "any", false, false, false, 34), "html", null, true);
echo "</span>
</button>";
// line 36
if ((isset($context["isDefaultCity"]) || array_key_exists("isDefaultCity", $context) ? $context["isDefaultCity"] : (function () { throw new RuntimeError('Variable "isDefaultCity" does not exist.', 36, $this->source); })())) {
// line 37
echo "<button class=\"header__select-metro btn btn-white\" type=\"button\" title=\"Выбрать метро\" aria-label=\"Выбрать метро\" data-a11y-dialog-show=\"subway-dialog\">
<svg class=\"btn-icon\" width=\"24\" height=\"24\" fill=\"none\"><path d=\"M8.438 10.593h-.567v.751h2.92v-.751h-.855l.563-1.881L12 11.409l1.501-2.697.563 1.88h-.856v.752h2.921v-.751h-.578l-1.925-4.965L12 8.904l-1.637-3.276-1.926 4.965Z\"/><path fill=\"#fff\" d=\"M12 2C8.13 2 5 5.13 5 9c0 2.025 1.041 4.421 2.32 6.602 0 0 .622.834 1.384.393.763-.44.404-1.313.404-1.313C7.927 12.69 7 10.605 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-4.338 8.562-6.458 11.252L12 22s7-7.75 7-13c0-3.87-3.13-7-7-7Z\"/></svg>
<span class=\"btn-text\">";
// line 39
echo twig_escape_filter($this->env, (isset($context["metro"]) || array_key_exists("metro", $context) ? $context["metro"] : (function () { throw new RuntimeError('Variable "metro" does not exist.', 39, $this->source); })()), "html", null, true);
echo "</span>
</button>";
}
// line 42
echo "</div>
";
}
// line 44
echo "
<div class=\"header__buttons btn-list ml-auto\">
";
// line 46
if (((isset($context["templateType"]) || array_key_exists("templateType", $context) ? $context["templateType"] : (function () { throw new RuntimeError('Variable "templateType" does not exist.', 46, $this->source); })()) == "public")) {
// line 47
echo " <a class=\"header__login btn btn-white d-none\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
echo "\" title=\"Войти в личный кабинет\" aria-label=\"Войти в личный кабинет\" data-login>Вход</a>
<a class=\"header__registration btn btn-secondary d-none\" href=\"";
// line 48
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_security_register");
echo "\" title=\"Зарегистрироваться\" aria-label=\"Зарегистрироваться\" data-registration>Регистрация</a>
";
} else {
// line 50
echo " <button class=\"btn btn-white-black menu-toggle-mini menu-toggle btn-event\" type=\"button\" id=\"menu-button\" aria-expanded=\"false\" data-settings='{\"eqwidth\":true}'>
<svg class=\"btn-icon-mobile btn-icon\" width=\"40\" height=\"40\" fill=\"none\" viewBox=\"0 0 40 40\"><rect width=\"39\" height=\"39\" x=\".5\" y=\".5\" stroke=\"#fff\" rx=\"9.5\"/><path fill-rule=\"evenodd\" d=\"M23.456 19.613a5 5 0 1 0-6.912 0A10.017 10.017 0 0 0 10.2 27c-.131.646-.2 1.315-.2 2h20c0-.685-.069-1.354-.2-2a10.017 10.017 0 0 0-6.344-7.387ZM23 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm-3 5a8.003 8.003 0 0 0-7.748 6h15.496c-.888-3.45-4.02-6-7.748-6Z\" clip-rule=\"evenodd\"/></svg>
<span class=\"btn-text\">Личный кабинет</span>
<svg class=\"btn-arrow btn-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M16.59 8.295 12 12.875l-4.59-4.58L6 9.705l6 6 6-6-1.41-1.41Z\"/></svg>
</button>
<ul class=\"hamburger-menu hamburger-menu-mini menu-list\" style=\"width: 145px;\">
";
// line 56
echo twig_include($this->env, $context, "__design/v2023/components/header-menu/account-mini.partial.twig");
echo "
</ul>
";
}
// line 59
echo " </div>
\t</div>
</header>
";
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "__design/v2023/components/header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 163 => 59, 157 => 56, 149 => 50, 144 => 48, 139 => 47, 137 => 46, 133 => 44, 129 => 42, 124 => 39, 120 => 37, 118 => 36, 114 => 34, 109 => 31, 107 => 30, 99 => 27, 95 => 26, 91 => 24, 88 => 23, 82 => 21, 76 => 19, 73 => 18, 67 => 16, 65 => 15, 54 => 6, 51 => 4, 49 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("
{% set metro = app.request.attributes.get('station') ? app.request.attributes.get('station').name|trans : 'Метро' %}
{# {% set accountUrl = is_user_advertiser(app.user) ? path('account') : path('account.favourites.profiles') %} #}
{# {% set isPublicPage = '/account/' != app.request.requestUri|slice(0,9) %} #}
<header class=\"header d-flex-c\" role=\"navigation\" aria-label=\"main navigation\">
\t<div class=\"container d-flex-c\">
<div class=\"hamburger d-block\">
<button class=\"btn btn-reset hamburger-toggle d-block menu-toggle\" type=\"button\" aria-expanded=\"false\" id=\"hamburger-btn\">
<span class=\"hamburger-icon d-block\"></span>
<span class=\"hamburger-icon d-block\"></span>
<span class=\"hamburger-icon d-block\"></span>
</button>
<ul class=\"hamburger-menu menu-list\">
{% if templateType == 'public' %}
{{ include('__design/v2023/components/header-menu/public.partial.twig') }}
{% else %}
{% if is_user_advertiser(app.user) == '1' %}
{{ include('__design/v2023/components/header-menu/account.partial.twig') }}
{% else %}
{{ include('__design/v2023/components/header-menu/customer.partial.twig') }}
{% endif %}
{% endif %}
</ul>
</div>
<a class=\"header__logotype\" href=\"{{ logoUrl }}\">
<img class=\"logotype-image\" width=\"200\" height=\"56\" src=\"{{ asset('assets/images/logo.svg') }}\" alt=\"Проститутки - {{ actual_main_domain }}\">
</a>
{% if templateType == 'public' %}
<div class=\"header__buttons header__buttons--desktop btn-list\">
<button class=\"header__select-city btn btn-white\" type=\"button\" title=\"Выбрать город\" aria-label=\"Выбрать город\" data-a11y-dialog-show=\"city-dialog\">
<svg class=\"btn-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\"><path d=\"M4.637 12.392c.277.277.554.364 1.101.364l6 .032c.055 0 .103 0 .127.032.023.023.031.07.031.119l.024 6.007c.008.547.095.824.373 1.102.372.38.895.317 1.284-.064.206-.206.372-.547.523-.864l6.063-13.076c.317-.666.277-1.157-.047-1.482-.318-.317-.81-.357-1.475-.04L5.564 10.585c-.317.15-.658.317-.864.523-.38.388-.444.904-.063 1.284\"/></svg>
<span class=\"btn-text\">{{ city.name }}</span>
</button>
{%- if isDefaultCity -%}
<button class=\"header__select-metro btn btn-white\" type=\"button\" title=\"Выбрать метро\" aria-label=\"Выбрать метро\" data-a11y-dialog-show=\"subway-dialog\">
<svg class=\"btn-icon\" width=\"24\" height=\"24\" fill=\"none\"><path d=\"M8.438 10.593h-.567v.751h2.92v-.751h-.855l.563-1.881L12 11.409l1.501-2.697.563 1.88h-.856v.752h2.921v-.751h-.578l-1.925-4.965L12 8.904l-1.637-3.276-1.926 4.965Z\"/><path fill=\"#fff\" d=\"M12 2C8.13 2 5 5.13 5 9c0 2.025 1.041 4.421 2.32 6.602 0 0 .622.834 1.384.393.763-.44.404-1.313.404-1.313C7.927 12.69 7 10.605 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-4.338 8.562-6.458 11.252L12 22s7-7.75 7-13c0-3.87-3.13-7-7-7Z\"/></svg>
<span class=\"btn-text\">{{ metro }}</span>
</button>
{%- endif -%}
</div>
{% endif %}
<div class=\"header__buttons btn-list ml-auto\">
{% if templateType == 'public' %}
<a class=\"header__login btn btn-white d-none\" href=\"{{ path('login') }}\" title=\"Войти в личный кабинет\" aria-label=\"Войти в личный кабинет\" data-login>Вход</a>
<a class=\"header__registration btn btn-secondary d-none\" href=\"{{ path('app_security_register') }}\" title=\"Зарегистрироваться\" aria-label=\"Зарегистрироваться\" data-registration>Регистрация</a>
{% else %}
<button class=\"btn btn-white-black menu-toggle-mini menu-toggle btn-event\" type=\"button\" id=\"menu-button\" aria-expanded=\"false\" data-settings='{\"eqwidth\":true}'>
<svg class=\"btn-icon-mobile btn-icon\" width=\"40\" height=\"40\" fill=\"none\" viewBox=\"0 0 40 40\"><rect width=\"39\" height=\"39\" x=\".5\" y=\".5\" stroke=\"#fff\" rx=\"9.5\"/><path fill-rule=\"evenodd\" d=\"M23.456 19.613a5 5 0 1 0-6.912 0A10.017 10.017 0 0 0 10.2 27c-.131.646-.2 1.315-.2 2h20c0-.685-.069-1.354-.2-2a10.017 10.017 0 0 0-6.344-7.387ZM23 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm-3 5a8.003 8.003 0 0 0-7.748 6h15.496c-.888-3.45-4.02-6-7.748-6Z\" clip-rule=\"evenodd\"/></svg>
<span class=\"btn-text\">Личный кабинет</span>
<svg class=\"btn-arrow btn-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M16.59 8.295 12 12.875l-4.59-4.58L6 9.705l6 6 6-6-1.41-1.41Z\"/></svg>
</button>
<ul class=\"hamburger-menu hamburger-menu-mini menu-list\" style=\"width: 145px;\">
{{ include('__design/v2023/components/header-menu/account-mini.partial.twig') }}
</ul>
{% endif %}
</div>
\t</div>
</header>
", "__design/v2023/components/header.html.twig", "/app/templates/__design/v2023/components/header.html.twig");
}
}