var/cache/review/twig/24/2415b546a0315cc10bf21b2017529a2e.php line 68

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. /* __design/v2023/components/header.html.twig */
  14. class __TwigTemplate_1879048e28041154935c5998a15a0891 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_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__design/v2023/components/header.html.twig"));
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__design/v2023/components/header.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""__design/v2023/components/header.html.twig"));
  35.         // line 1
  36.         echo "
  37. ";
  38.         // line 2
  39.         $context["metro"] = ((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.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "attributes", [], "any"falsefalsefalse2), "get", ["station"], "method"falsefalsefalse2)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_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.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "attributes", [], "any"falsefalsefalse2), "get", ["station"], "method"falsefalsefalse2), "name", [], "any"falsefalsefalse2))) : ("Метро"));
  40.         // line 4
  41.         echo "
  42. ";
  43.         // line 6
  44.         echo "<header class=\"header d-flex-c\" role=\"navigation\" aria-label=\"main navigation\">
  45. \t<div class=\"container d-flex-c\">
  46.         <div class=\"hamburger d-block\">
  47.             <button class=\"btn btn-reset hamburger-toggle d-block menu-toggle\" type=\"button\" aria-expanded=\"false\" id=\"hamburger-btn\">
  48.                 <span class=\"hamburger-icon d-block\"></span>
  49.                 <span class=\"hamburger-icon d-block\"></span>
  50.                 <span class=\"hamburger-icon d-block\"></span>
  51.             </button>
  52.             <ul class=\"hamburger-menu menu-list\">
  53.                 ";
  54.         // line 15
  55.         if (((isset($context["templateType"]) || array_key_exists("templateType"$context) ? $context["templateType"] : (function () { throw new RuntimeError('Variable "templateType" does not exist.'15$this->source); })()) == "public")) {
  56.             // line 16
  57.             echo "                    ";
  58.             echo twig_include($this->env$context"__design/v2023/components/header-menu/public.partial.twig");
  59.             echo "
  60.                 ";
  61.         } else {
  62.             // line 18
  63.             echo "                    ";
  64.             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"falsefalsefalse18)) == "1")) {
  65.                 // line 19
  66.                 echo "                        ";
  67.                 echo twig_include($this->env$context"__design/v2023/components/header-menu/account.partial.twig");
  68.                 echo "
  69.                     ";
  70.             } else {
  71.                 // line 21
  72.                 echo "                        ";
  73.                 echo twig_include($this->env$context"__design/v2023/components/header-menu/customer.partial.twig");
  74.                 echo "
  75.                     ";
  76.             }
  77.             // line 23
  78.             echo "                ";
  79.         }
  80.         // line 24
  81.         echo "            </ul>
  82.         </div>
  83.         <a class=\"header__logotype\" href=\"";
  84.         // line 26
  85.         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"nulltrue);
  86.         echo "\">
  87.             <img class=\"logotype-image\" width=\"200\" height=\"56\" src=\"";
  88.         // line 27
  89.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.svg"), "html"nulltrue);
  90.         echo "\" alt=\"Проститутки - ";
  91.         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"nulltrue);
  92.         echo "\">
  93.         </a>
  94.         ";
  95.         // line 30
  96.         if (((isset($context["templateType"]) || array_key_exists("templateType"$context) ? $context["templateType"] : (function () { throw new RuntimeError('Variable "templateType" does not exist.'30$this->source); })()) == "public")) {
  97.             // line 31
  98.             echo "            <div class=\"header__buttons header__buttons--desktop btn-list\">
  99.                 <button class=\"header__select-city btn btn-white\" type=\"button\" title=\"Выбрать город\" aria-label=\"Выбрать город\" data-a11y-dialog-show=\"city-dialog\">
  100.                     <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>
  101.                     <span class=\"btn-text\">";
  102.             // line 34
  103.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse34), "html"nulltrue);
  104.             echo "</span>
  105.                 </button>";
  106.             // line 36
  107.             if ((isset($context["isDefaultCity"]) || array_key_exists("isDefaultCity"$context) ? $context["isDefaultCity"] : (function () { throw new RuntimeError('Variable "isDefaultCity" does not exist.'36$this->source); })())) {
  108.                 // line 37
  109.                 echo "<button class=\"header__select-metro btn btn-white\" type=\"button\" title=\"Выбрать метро\" aria-label=\"Выбрать метро\" data-a11y-dialog-show=\"subway-dialog\">
  110.                         <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>
  111.                         <span class=\"btn-text\">";
  112.                 // line 39
  113.                 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"nulltrue);
  114.                 echo "</span>
  115.                     </button>";
  116.             }
  117.             // line 42
  118.             echo "</div>
  119.         ";
  120.         }
  121.         // line 44
  122.         echo "
  123.         <div class=\"header__buttons btn-list ml-auto\">
  124.             ";
  125.         // line 46
  126.         if (((isset($context["templateType"]) || array_key_exists("templateType"$context) ? $context["templateType"] : (function () { throw new RuntimeError('Variable "templateType" does not exist.'46$this->source); })()) == "public")) {
  127.             // line 47
  128.             echo "                <a class=\"header__login btn btn-white d-none\" href=\"";
  129.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  130.             echo "\" title=\"Войти в личный кабинет\" aria-label=\"Войти в личный кабинет\" data-login>Вход</a>
  131.                 <a class=\"header__registration btn btn-secondary d-none\" href=\"";
  132.             // line 48
  133.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_security_register");
  134.             echo "\" title=\"Зарегистрироваться\" aria-label=\"Зарегистрироваться\" data-registration>Регистрация</a>
  135.             ";
  136.         } else {
  137.             // line 50
  138.             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}'>
  139.                     <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>
  140.                     <span class=\"btn-text\">Личный кабинет</span>
  141.                     <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>
  142.                 </button>
  143.                 <ul class=\"hamburger-menu hamburger-menu-mini menu-list\" style=\"width: 145px;\">
  144.                     ";
  145.             // line 56
  146.             echo twig_include($this->env$context"__design/v2023/components/header-menu/account-mini.partial.twig");
  147.             echo "
  148.                 </ul>
  149.             ";
  150.         }
  151.         // line 59
  152.         echo "        </div>
  153. \t</div>
  154. </header>
  155. ";
  156.         
  157.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  158.         
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  160.         
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  162.     }
  163.     /**
  164.      * @codeCoverageIgnore
  165.      */
  166.     public function getTemplateName()
  167.     {
  168.         return "__design/v2023/components/header.html.twig";
  169.     }
  170.     /**
  171.      * @codeCoverageIgnore
  172.      */
  173.     public function isTraitable()
  174.     {
  175.         return false;
  176.     }
  177.     /**
  178.      * @codeCoverageIgnore
  179.      */
  180.     public function getDebugInfo()
  181.     {
  182.         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,);
  183.     }
  184.     public function getSourceContext()
  185.     {
  186.         return new Source("
  187. {% set metro = app.request.attributes.get('station') ? app.request.attributes.get('station').name|trans : 'Метро' %}
  188. {# {% set accountUrl = is_user_advertiser(app.user) ? path('account') : path('account.favourites.profiles') %} #}
  189. {# {% set isPublicPage = '/account/' != app.request.requestUri|slice(0,9) %} #}
  190. <header class=\"header d-flex-c\" role=\"navigation\" aria-label=\"main navigation\">
  191. \t<div class=\"container d-flex-c\">
  192.         <div class=\"hamburger d-block\">
  193.             <button class=\"btn btn-reset hamburger-toggle d-block menu-toggle\" type=\"button\" aria-expanded=\"false\" id=\"hamburger-btn\">
  194.                 <span class=\"hamburger-icon d-block\"></span>
  195.                 <span class=\"hamburger-icon d-block\"></span>
  196.                 <span class=\"hamburger-icon d-block\"></span>
  197.             </button>
  198.             <ul class=\"hamburger-menu menu-list\">
  199.                 {% if templateType == 'public' %}
  200.                     {{ include('__design/v2023/components/header-menu/public.partial.twig') }}
  201.                 {% else %}
  202.                     {% if is_user_advertiser(app.user) == '1' %}
  203.                         {{ include('__design/v2023/components/header-menu/account.partial.twig') }}
  204.                     {% else %}
  205.                         {{ include('__design/v2023/components/header-menu/customer.partial.twig') }}
  206.                     {% endif %}
  207.                 {% endif %}
  208.             </ul>
  209.         </div>
  210.         <a class=\"header__logotype\" href=\"{{ logoUrl }}\">
  211.             <img class=\"logotype-image\" width=\"200\" height=\"56\" src=\"{{ asset('assets/images/logo.svg') }}\" alt=\"Проститутки - {{ actual_main_domain }}\">
  212.         </a>
  213.         {% if templateType == 'public' %}
  214.             <div class=\"header__buttons header__buttons--desktop btn-list\">
  215.                 <button class=\"header__select-city btn btn-white\" type=\"button\" title=\"Выбрать город\" aria-label=\"Выбрать город\" data-a11y-dialog-show=\"city-dialog\">
  216.                     <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>
  217.                     <span class=\"btn-text\">{{ city.name }}</span>
  218.                 </button>
  219.                 {%- if isDefaultCity -%}
  220.                     <button class=\"header__select-metro btn btn-white\" type=\"button\" title=\"Выбрать метро\" aria-label=\"Выбрать метро\" data-a11y-dialog-show=\"subway-dialog\">
  221.                         <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>
  222.                         <span class=\"btn-text\">{{ metro }}</span>
  223.                     </button>
  224.                 {%- endif -%}
  225.             </div>
  226.         {% endif %}
  227.         <div class=\"header__buttons btn-list ml-auto\">
  228.             {% if templateType == 'public' %}
  229.                 <a class=\"header__login btn btn-white d-none\" href=\"{{ path('login') }}\" title=\"Войти в личный кабинет\" aria-label=\"Войти в личный кабинет\" data-login>Вход</a>
  230.                 <a class=\"header__registration btn btn-secondary d-none\" href=\"{{ path('app_security_register') }}\" title=\"Зарегистрироваться\" aria-label=\"Зарегистрироваться\" data-registration>Регистрация</a>
  231.             {% else %}
  232.                 <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}'>
  233.                     <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>
  234.                     <span class=\"btn-text\">Личный кабинет</span>
  235.                     <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>
  236.                 </button>
  237.                 <ul class=\"hamburger-menu hamburger-menu-mini menu-list\" style=\"width: 145px;\">
  238.                     {{ include('__design/v2023/components/header-menu/account-mini.partial.twig') }}
  239.                 </ul>
  240.             {% endif %}
  241.         </div>
  242. \t</div>
  243. </header>
  244. ""__design/v2023/components/header.html.twig""/app/templates/__design/v2023/components/header.html.twig");
  245.     }
  246. }