var/cache/dev/twig/a0/a0a3c5b40ef72df99f71f4a49da525f4f4cfbaa9cc12152677af3c70bf9e40d8.php line 431

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. /* header.html.twig */
  14. class __TwigTemplate_da8c951c0b0debd7000b8779a2432698bccf4ba234955a37d2ca0fd6cc377fda 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.             'headerClass' => [$this'block_headerClass'],
  25.             'afterLogo' => [$this'block_afterLogo'],
  26.             'headerSearch' => [$this'block_headerSearch'],
  27.             'headerCitySelector' => [$this'block_headerCitySelector'],
  28.             'headerTopMenu' => [$this'block_headerTopMenu'],
  29.             'headerBottom' => [$this'block_headerBottom'],
  30.         ];
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""header.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""header.html.twig"));
  39.         // line 1
  40.         $context["siteSettings"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getSiteSettings();
  41.         // line 2
  42.         echo "<!--[ignore]-->
  43. <div class=\"header ";
  44.         // line 3
  45.         $this->displayBlock('headerClass'$context$blocks);
  46.         echo "\">
  47.     <div id=\"scrolltop\">
  48.         <div class=\"scrolltop\" style=\"display: none;\">
  49.             <span class=\"link pseudo-link\">В начало</span>
  50.         </div>
  51.     </div>
  52.     ";
  53.         // line 9
  54.         if ( !(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); })()), "user", [], "any"falsefalsefalse9) && 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); })()), "user", [], "any"falsefalsefalse9), "hasRole", [=> twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method"falsefalsefalse9))) {
  55.             // line 10
  56.             echo "        <div id=\"head-banner\">
  57.             <div class=\"head-banner-section\">
  58.                 <div class=\"head-banner-section-center\">
  59.                     <div class=\"head-banner-container\">
  60.                         ";
  61.             // line 14
  62.             echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getTopSiteBanner(((array_key_exists("brandingBannerCategoryIDs"$context)) ? ((isset($context["brandingBannerCategoryIDs"]) || array_key_exists("brandingBannerCategoryIDs"$context) ? $context["brandingBannerCategoryIDs"] : (function () { throw new RuntimeError('Variable "brandingBannerCategoryIDs" does not exist.'14$this->source); })())) : ([])), false);
  63.             echo "
  64.                     </div>
  65.                 </div>
  66.             </div>
  67.         </div>
  68.     ";
  69.         }
  70.         // line 20
  71.         echo "    <div class=\"header--top-wrapp\" style=\"min-height: 80px;\">
  72.         <div class=\"header--top\" data-spy=\"affix\" data-offset-top=\"90\">
  73.             <div class=\"header--top--head\">
  74.                 <div class=\"container\">
  75.                     ";
  76.         // line 24
  77.         if (array_key_exists("currentCategoryMonthlyVisits"$context)) {
  78.             // line 25
  79.             echo "                        <div style=\"position: absolute; top: 84px; right: 120px;\" data-toggle=\"tooltip\"
  80.                              data-placement=\"bottom\" title=\"Просмотров за месяц\">
  81.                             <i class=\"slivki-icon-eye\"></i>";
  82.             // line 27
  83.             echo twig_escape_filter($this->env, (isset($context["currentCategoryMonthlyVisits"]) || array_key_exists("currentCategoryMonthlyVisits"$context) ? $context["currentCategoryMonthlyVisits"] : (function () { throw new RuntimeError('Variable "currentCategoryMonthlyVisits" does not exist.'27$this->source); })()), "html"nulltrue);
  84.             echo "
  85.                         </div>
  86.                     ";
  87.         }
  88.         // line 30
  89.         echo "                    ";
  90.         $context["currentCity"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity();
  91.         // line 31
  92.         echo "                    <input id=\"cityName\" type=\"hidden\" value=\"";
  93.         ((twig_in_filter(twig_get_attribute($this->env$this->source, (isset($context["currentCity"]) || array_key_exists("currentCity"$context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.'31$this->source); })()), "getID", [], "method"falsefalsefalse31), [=> twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID"), => twig_constant("Slivki\\Entity\\City::TASHKENT_CITY_ID")])) ? (print ("/")) : (print (twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL(twig_constant("Slivki\\Repository\\SeoRepository::RESOURCE_URL_CITY"), twig_get_attribute($this->env$this->source, (isset($context["currentCity"]) || array_key_exists("currentCity"$context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.'31$this->source); })()), "getID", [], "method"falsefalsefalse31)), "html"nulltrue))));
  94.         echo "\"/>
  95.                     <a href=\"";
  96.         // line 32
  97.         ((twig_in_filter(twig_get_attribute($this->env$this->source, (isset($context["currentCity"]) || array_key_exists("currentCity"$context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.'32$this->source); })()), "getID", [], "method"falsefalsefalse32), [=> twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID"), => twig_constant("Slivki\\Entity\\City::TASHKENT_CITY_ID")])) ? (print ("/")) : (print (twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL(twig_constant("Slivki\\Repository\\SeoRepository::RESOURCE_URL_CITY"), twig_get_attribute($this->env$this->source, (isset($context["currentCity"]) || array_key_exists("currentCity"$context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.'32$this->source); })()), "getID", [], "method"falsefalsefalse32)), "html"nulltrue))));
  98.         echo "\"
  99.                        class=\"logo\"></a>
  100.                     ";
  101.         // line 34
  102.         $this->displayBlock('afterLogo'$context$blocks);
  103.         // line 35
  104.         echo "                    ";
  105.         $this->displayBlock('headerSearch'$context$blocks);
  106.         // line 38
  107.         echo "
  108.                     ";
  109.         // line 39
  110.         $this->displayBlock('headerCitySelector'$context$blocks);
  111.         // line 42
  112.         echo "                    ";
  113.         if (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.'42$this->source); })()), "user", [], "any"falsefalsefalse42)) {
  114.             // line 43
  115.             echo "                        ";
  116.             // line 44
  117.             echo "                        <div class=\"header_top_navigation_container d-flex align-items-center\">
  118.                             <div class=\"header--top-navigation\">
  119.                                 <ul>
  120.                                     <li class=\"profile-data\">
  121.                                         <a href=\"";
  122.             // line 48
  123.             echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'48$this->source); })()), "html"nulltrue);
  124.             echo "/profile\">";
  125.             echo twig_escape_filter($this->env, ((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.'48$this->source); })()), "user", [], "any"falsefalsefalse48), "getPhone", [], "method"falsefalsefalse48)) ? (("***" twig_slice($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->phoneFilter(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.'48$this->source); })()), "user", [], "any"falsefalsefalse48), "getPhone", [], "method"falsefalsefalse48)), 3null))) : (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.'48$this->source); })()), "user", [], "any"falsefalsefalse48), "getFirstName", [], "method"falsefalsefalse48))), "html"nulltrue);
  126.             echo "</a>
  127.                                         <input type=\"hidden\" id=\"userEmail\" value=\"";
  128.             // line 49
  129.             echo twig_escape_filter($this->envtwig_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.'49$this->source); })()), "user", [], "any"falsefalsefalse49), "getEmail", [], "method"falsefalsefalse49), "html"nulltrue);
  130.             echo "\"/>
  131.                                         <a href=\"javascript:void(0)\" data-toggle=\"modal\" data-target=\"#modal_billing\">
  132.                                             ";
  133.             // line 51
  134.             $context["userBalanceCodesCount"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getUserBalanceCodesCount(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.'51$this->source); })()), "user", [], "any"falsefalsefalse51), twig_get_attribute($this->env$this->source, (isset($context["currentCity"]) || array_key_exists("currentCity"$context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.'51$this->source); })()), "getID", [], "method"falsefalsefalse51));
  135.             // line 52
  136.             echo "                                            <span class=\"d-flex\">
  137.                                             <div class=\"d-none\">
  138.                                                 (<span id=\"balance\">";
  139.             // line 54
  140.             echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_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.'54$this->source); })()), "user", [], "any"falsefalsefalse54), "getFullBalance", [], "method"falsefalsefalse54), 2","""), "html"nulltrue);
  141.             echo "</span> руб)
  142.                                             </div>
  143.                                         </span>
  144.                                         </a>
  145.                                     </li>
  146.                                     <li class=\"header-profile-menu\">
  147.                                         <a id=\"header-profile-menu-opener\" href=\"javascript:void(0)\">
  148.                                             ";
  149.             // line 67
  150.             echo "                                        </a>
  151.                                         <ul>
  152.                                             ";
  153.             // line 69
  154.             if ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->showMyPromocodesMenuItem(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.'69$this->source); })()), "user", [], "any"falsefalsefalse69))) {
  155.                 // line 70
  156.                 echo "                                                <li class=\"item-discount\">
  157.                                                     <a href=\"";
  158.                 // line 71
  159.                 echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'71$this->source); })()), "html"nulltrue);
  160.                 echo "/profile\"><img class=\"side-bar-menu-icons\"
  161.                                                                                           src=\"/images/promo-code.svg\"
  162.                                                                                           alt=\"Промокод\">Мои промокоды
  163.                                                         ";
  164.                 // line 79
  165.                 echo "                                                    </a>
  166.                                                 </li>
  167.                                             ";
  168.             }
  169.             // line 82
  170.             echo "
  171.                                             <li class=\"item-profile\">
  172.                                                 <a href=\"";
  173.             // line 84
  174.             echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'84$this->source); })()), "html"nulltrue);
  175.             echo "/profile\"><img class=\"side-bar-menu-icons\"
  176.                                                                                       src=\"/images/profile-user.svg\"
  177.                                                                                       alt=\"Профиль\">Личный кабинет</a>
  178.                                             </li>
  179.                                             <li>
  180.                                                 <a href=\"";
  181.             // line 89
  182.             echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'89$this->source); })()), "html"nulltrue);
  183.             echo "/WatchList\"><img class=\"side-bar-menu-icons\"
  184.                                                                                         src=\"/images/eye-new.svg\"
  185.                                                                                         alt=\"Просмотренные\">Просмотренные
  186.                                                     акции</a>
  187.                                             </li>
  188.                                             ";
  189.             // line 94
  190.             if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::REPLENISHMENT_BALANCE"))) {
  191.                 // line 95
  192.                 echo "                                                <li class=\"balance-replenishment\">
  193.                                                     <a href=\"";
  194.                 // line 96
  195.                 echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'96$this->source); })()), "html"nulltrue);
  196.                 echo "/oplata\"><img class=\"side-bar-menu-icons\"
  197.                                                                                          src=\"/images/credit-card.svg\"
  198.                                                                                          alt=\"Пополнить\">Пополнить
  199.                                                         счет+бонус</a>
  200.                                                 </li>
  201.                                             ";
  202.             }
  203.             // line 102
  204.             echo "                                            <li>
  205.                                                 <a href=\"";
  206.             // line 103
  207.             echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'103$this->source); })()), "html"nulltrue);
  208.             echo "/profile#profile_favorites\"><img
  209.                                                             class=\"side-bar-menu-icons\"
  210.                                                             src=\"/images/heart-new-profile.svg\" alt=\"Избранное\">Избранное</a>
  211.                                             </li>
  212.                                             <li class=\"item-own-offer\">
  213.                                                 <a href=\"";
  214.             // line 108
  215.             echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'108$this->source); })()), "html"nulltrue);
  216.             echo "/moya_akciya\"
  217.                                                    onclick=\"ga('send', 'event', 'create-own-offer-button--top-menu', 'Click', '1');\"><img
  218.                                                             class=\"side-bar-menu-icons\" src=\"/images/add-offer-new.svg\"
  219.                                                             alt=\"Добавить\">Разместить акцию</a>
  220.                                             </li>
  221.                                             ";
  222.             // line 113
  223.             if ((((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER_STATISTIC")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_OPERATOR")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PUBLICIST"))) {
  224.                 // line 114
  225.                 echo "                                                <li>
  226.                                                     <a href=\"";
  227.                 // line 115
  228.                 echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'115$this->source); })()), "html"nulltrue);
  229.                 echo "/admin\"><img class=\"side-bar-menu-icons\"
  230.                                                                                         alt=\"Администрирование\"
  231.                                                                                         src=\"/images/admin-desk.svg\">Администрирование</a>
  232.                                                 </li>
  233.                                                 <li>
  234.                                                     <a href=\"";
  235.                 // line 120
  236.                 echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'120$this->source); })()), "html"nulltrue);
  237.                 echo "/admin/past_offers\"><img
  238.                                                                 class=\"side-bar-menu-icons\" alt=\"Прошедшее\"
  239.                                                                 src=\"/images/past-desk.svg\">Прошедшие акции</a>
  240.                                                 </li>
  241.                                                 <li>
  242.                                                     <a href=\"";
  243.                 // line 125
  244.                 echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'125$this->source); })()), "html"nulltrue);
  245.                 echo "/admin/past_sales\"><img
  246.                                                                 class=\"side-bar-menu-icons\" alt=\"Прошедшее\"
  247.                                                                 src=\"/images/past-desk.svg\">Прошедшие НС</a>
  248.                                                 </li>
  249.                                             ";
  250.             }
  251.             // line 130
  252.             echo "                                            ";
  253.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPPLIER")) {
  254.                 // line 131
  255.                 echo "                                                <li>
  256.                                                     <a href=\"";
  257.                 // line 132
  258.                 echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'132$this->source); })()), "html"nulltrue);
  259.                 echo "/partner\"><img class=\"side-bar-menu-icons\"
  260.                                                                                           src=\"/images/partner-new.svg\"
  261.                                                                                           alt=\"Кабинет партнера\">Кабинет
  262.                                                         партнера</a>
  263.                                                 </li>
  264.                                             ";
  265.             }
  266.             // line 138
  267.             echo "                                            ";
  268.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_IMPERSONATOR")) {
  269.                 // line 139
  270.                 echo "                                                <li class=\"item-logout\">
  271.                                                     <a style=\"color: red;\"
  272.                                                        href=\"";
  273.                 // line 141
  274.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->getImpersonateExitPath($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage")), "html"nulltrue);
  275.                 echo "\"><img
  276.                                                                 class=\"side-bar-menu-icons\" src=\"/images/back-arrow.svg\"
  277.                                                                 alt=\"Вернуться\">Вернутся в свой акк</a>
  278.                                                 </li>
  279.                                             ";
  280.             }
  281.             // line 146
  282.             echo "                                            ";
  283.             if ( !$this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME"))) {
  284.                 // line 147
  285.                 echo "                                                <li class=\"item-profile\">
  286.                                                     <a href=\"";
  287.                 // line 148
  288.                 echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'148$this->source); })()), "html"nulltrue);
  289.                 echo "/profile/subscription/manage?utm_source=main_menu\"><span style=\"font-size: 26px\">⚡</span>️Подписка</a>
  290.                                                 </li>
  291.                                             ";
  292.             }
  293.             // line 151
  294.             echo "                                            <li class=\"item-logout\">
  295.                                                 <a href=\"javascript:void(0)\" data-toggle=\"modal\"
  296.                                                    data-target=\"#logoutConfirmPopup\"><img class=\"side-bar-menu-icons\"
  297.                                                                                           src=\"/images/log-out.svg\"
  298.                                                                                           alt=\"Выйти\">Выйти</a>
  299.                                             </li>
  300.                                         </ul>
  301.                                     </li>
  302.                                 </ul>
  303.                             </div>
  304.                             ";
  305.             // line 161
  306.             $this->loadTemplate((("Slivki/" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path"$context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.'161$this->source); })())) . "/translate_block.html.twig"), "header.html.twig"161)->display($context);
  307.             // line 162
  308.             echo "                        </div>
  309.                     ";
  310.         } else {
  311.             // line 164
  312.             echo "                        ";
  313.             // line 165
  314.             echo "                        <div class=\"header--top-navigation\">
  315.                             <ul>
  316.                                 <li class=\"phones mr-2\">
  317.                                     <a href=\"#\">&nbsp;</a>
  318.                                     ";
  319.             // line 169
  320.             $this->loadTemplate((("Slivki/" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path"$context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.'169$this->source); })())) . "/phones_header_dropdown.html.twig"), "header.html.twig"169)->display($context);
  321.             // line 170
  322.             echo "                                </li>
  323.                                 <li class=\"mr-3\">
  324.                                     ";
  325.             // line 172
  326.             $this->loadTemplate((("Slivki/" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path"$context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.'172$this->source); })())) . "/translate_block.html.twig"), "header.html.twig"172)->display($context);
  327.             // line 173
  328.             echo "                                </li>
  329.                                 <li class=\"enter focus-tel login-button\" data-toggle=\"tooltip\"
  330.                                     data-placement=\"bottom\" title=\"Вход или регистрация\">
  331.                                     <a href=\"#\" data-toggle=\"modal\" data-target=\".modal-auth\">Войти</a>
  332.                                 </li>
  333.                             </ul>
  334.                             <div class=\"profile-email\"></div>
  335.                         </div>
  336.                     ";
  337.         }
  338.         // line 182
  339.         echo "                </div>
  340.             </div>
  341.             ";
  342.         // line 184
  343.         $this->displayBlock('headerTopMenu'$context$blocks);
  344.         // line 189
  345.         echo "        </div>
  346.     </div>
  347. </div>
  348. ";
  349.         // line 193
  350.         $this->displayBlock('headerBottom'$context$blocks);
  351.         // line 194
  352.         echo "<!--[/ignore]-->";
  353.         
  354.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  355.         
  356.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  357.     }
  358.     // line 3
  359.     public function block_headerClass($context, array $blocks = [])
  360.     {
  361.         $macros $this->macros;
  362.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  363.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerClass"));
  364.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  365.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerClass"));
  366.         
  367.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  368.         
  369.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  370.     }
  371.     // line 34
  372.     public function block_afterLogo($context, array $blocks = [])
  373.     {
  374.         $macros $this->macros;
  375.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  376.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""afterLogo"));
  377.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  378.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""afterLogo"));
  379.         
  380.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  381.         
  382.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  383.     }
  384.     // line 35
  385.     public function block_headerSearch($context, array $blocks = [])
  386.     {
  387.         $macros $this->macros;
  388.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  389.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerSearch"));
  390.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  391.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerSearch"));
  392.         // line 36
  393.         echo "                        ";
  394.         $this->loadTemplate("header_search_block.html.twig""header.html.twig"36)->display(twig_array_merge($context, ["searchIn" => twig_constant("Slivki\\Controller\\SearchController::SEARCH_OFFERS"), "placeholder" => "Я ищу..."]));
  395.         // line 37
  396.         echo "                    ";
  397.         
  398.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  399.         
  400.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  401.     }
  402.     // line 39
  403.     public function block_headerCitySelector($context, array $blocks = [])
  404.     {
  405.         $macros $this->macros;
  406.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  407.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerCitySelector"));
  408.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  409.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerCitySelector"));
  410.         // line 40
  411.         echo "                        ";
  412.         $this->loadTemplate((("Slivki" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path"$context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.'40$this->source); })())) . "/city_selector.html.twig"), "header.html.twig"40)->display($context);
  413.         // line 41
  414.         echo "                    ";
  415.         
  416.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  417.         
  418.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  419.     }
  420.     // line 184
  421.     public function block_headerTopMenu($context, array $blocks = [])
  422.     {
  423.         $macros $this->macros;
  424.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  425.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerTopMenu"));
  426.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  427.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerTopMenu"));
  428.         // line 185
  429.         echo "                <div ";
  430.         echo (( !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.'185$this->source); })()), "user", [], "any"falsefalsefalse185)) ? ("class=not-logged-in") : (""));
  431.         echo ">
  432.                     ";
  433.         // line 186
  434.         $this->loadTemplate((("Slivki/" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path"$context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.'186$this->source); })())) . "/header_menu.html.twig"), "header.html.twig"186)->display(twig_array_merge($context, ["menuSelected" => twig_constant("Slivki\\Entity\\MainMenu::MENU_ID_MAIN")]));
  435.         // line 187
  436.         echo "                </div>
  437.             ";
  438.         
  439.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  440.         
  441.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  442.     }
  443.     // line 193
  444.     public function block_headerBottom($context, array $blocks = [])
  445.     {
  446.         $macros $this->macros;
  447.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  448.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerBottom"));
  449.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  450.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headerBottom"));
  451.         
  452.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  453.         
  454.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  455.     }
  456.     public function getTemplateName()
  457.     {
  458.         return "header.html.twig";
  459.     }
  460.     public function isTraitable()
  461.     {
  462.         return false;
  463.     }
  464.     public function getDebugInfo()
  465.     {
  466.         return array (  482 => 193,  471 => 187,  469 => 186,  464 => 185,  454 => 184,  444 => 41,  441 => 40,  431 => 39,  421 => 37,  418 => 36,  408 => 35,  390 => 34,  372 => 3,  362 => 194,  360 => 193,  354 => 189,  352 => 184,  348 => 182,  337 => 173,  335 => 172,  331 => 170,  329 => 169,  323 => 165,  321 => 164,  317 => 162,  315 => 161,  303 => 151,  297 => 148,  294 => 147,  291 => 146,  283 => 141,  279 => 139,  276 => 138,  267 => 132,  264 => 131,  261 => 130,  253 => 125,  245 => 120,  237 => 115,  234 => 114,  232 => 113,  224 => 108,  216 => 103,  213 => 102,  204 => 96,  201 => 95,  199 => 94,  191 => 89,  183 => 84,  179 => 82,  174 => 79,  168 => 71,  165 => 70,  163 => 69,  159 => 67,  149 => 54,  145 => 52,  143 => 51,  138 => 49,  132 => 48,  126 => 44,  124 => 43,  121 => 42,  119 => 39,  116 => 38,  113 => 35,  111 => 34,  106 => 32,  101 => 31,  98 => 30,  92 => 27,  88 => 25,  86 => 24,  80 => 20,  71 => 14,  65 => 10,  63 => 9,  54 => 3,  51 => 2,  49 => 1,);
  467.     }
  468.     public function getSourceContext()
  469.     {
  470.         return new Source("{% set siteSettings = getSiteSettings() %}
  471. <!--[ignore]-->
  472. <div class=\"header {% block headerClass %}{% endblock %}\">
  473.     <div id=\"scrolltop\">
  474.         <div class=\"scrolltop\" style=\"display: none;\">
  475.             <span class=\"link pseudo-link\">В начало</span>
  476.         </div>
  477.     </div>
  478.     {% if not (app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE'))) %}
  479.         <div id=\"head-banner\">
  480.             <div class=\"head-banner-section\">
  481.                 <div class=\"head-banner-section-center\">
  482.                     <div class=\"head-banner-container\">
  483.                         {{ getTopSiteBanner(brandingBannerCategoryIDs is defined ? brandingBannerCategoryIDs : [], false) }}
  484.                     </div>
  485.                 </div>
  486.             </div>
  487.         </div>
  488.     {% endif %}
  489.     <div class=\"header--top-wrapp\" style=\"min-height: 80px;\">
  490.         <div class=\"header--top\" data-spy=\"affix\" data-offset-top=\"90\">
  491.             <div class=\"header--top--head\">
  492.                 <div class=\"container\">
  493.                     {% if currentCategoryMonthlyVisits is defined %}
  494.                         <div style=\"position: absolute; top: 84px; right: 120px;\" data-toggle=\"tooltip\"
  495.                              data-placement=\"bottom\" title=\"Просмотров за месяц\">
  496.                             <i class=\"slivki-icon-eye\"></i>{{ currentCategoryMonthlyVisits }}
  497.                         </div>
  498.                     {% endif %}
  499.                     {% set currentCity = getCurrentCity() %}
  500.                     <input id=\"cityName\" type=\"hidden\" value=\"{{ currentCity.getID() in [constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID'), constant('Slivki\\\\Entity\\\\City::TASHKENT_CITY_ID')] ? '/' : getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_CITY'), currentCity.getID()) }}\"/>
  501.                     <a href=\"{{ currentCity.getID() in [constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID'), constant('Slivki\\\\Entity\\\\City::TASHKENT_CITY_ID')] ? '/' : getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_CITY'), currentCity.getID()) }}\"
  502.                        class=\"logo\"></a>
  503.                     {% block afterLogo %}{% endblock %}
  504.                     {% block headerSearch %}
  505.                         {% include 'header_search_block.html.twig' with {'searchIn': constant('Slivki\\\\Controller\\\\SearchController::SEARCH_OFFERS'), 'placeholder': 'Я ищу...'} %}
  506.                     {% endblock %}
  507.                     {% block headerCitySelector %}
  508.                         {% include \"Slivki#{regional_template_path}/city_selector.html.twig\" %}
  509.                     {% endblock %}
  510.                     {% if app.user %}
  511.                         {# user is logged in #}
  512.                         <div class=\"header_top_navigation_container d-flex align-items-center\">
  513.                             <div class=\"header--top-navigation\">
  514.                                 <ul>
  515.                                     <li class=\"profile-data\">
  516.                                         <a href=\"{{ base_url }}/profile\">{{ app.user.getPhone() ? '***' ~ app.user.getPhone()|phone[3:] : app.user.getFirstName() }}</a>
  517.                                         <input type=\"hidden\" id=\"userEmail\" value=\"{{ app.user.getEmail() }}\"/>
  518.                                         <a href=\"javascript:void(0)\" data-toggle=\"modal\" data-target=\"#modal_billing\">
  519.                                             {% set userBalanceCodesCount = getUserBalanceCodesCount(app.user, currentCity.getID()) %}
  520.                                             <span class=\"d-flex\">
  521.                                             <div class=\"d-none\">
  522.                                                 (<span id=\"balance\">{{ app.user.getFullBalance()|number_format(2, ',', '') }}</span> руб)
  523.                                             </div>
  524.                                         </span>
  525.                                         </a>
  526.                                     </li>
  527.                                     <li class=\"header-profile-menu\">
  528.                                         <a id=\"header-profile-menu-opener\" href=\"javascript:void(0)\">
  529.                                             {#
  530.                                             {% set profileNotification = app.user.getNotSeenOfferOrders()|length %}
  531.                                             {% if profileNotification > 0 %}
  532.                                                 <div class=\"profile-notification\">{{ profileNotification }}</div>
  533.                                             {% endif %}
  534.                                             #}
  535.                                         </a>
  536.                                         <ul>
  537.                                             {% if showMyPromocodesMenuItem(app.user) %}
  538.                                                 <li class=\"item-discount\">
  539.                                                     <a href=\"{{ base_url }}/profile\"><img class=\"side-bar-menu-icons\"
  540.                                                                                           src=\"/images/promo-code.svg\"
  541.                                                                                           alt=\"Промокод\">Мои промокоды
  542.                                                         {#
  543.                                                         {% if profileNotification > 0 %}
  544.                                                             <div class=\"profile-notification \">{{ profileNotification }}</div>
  545.                                                         {% endif %}
  546.                                                         #}
  547.                                                     </a>
  548.                                                 </li>
  549.                                             {% endif %}
  550.                                             <li class=\"item-profile\">
  551.                                                 <a href=\"{{ base_url }}/profile\"><img class=\"side-bar-menu-icons\"
  552.                                                                                       src=\"/images/profile-user.svg\"
  553.                                                                                       alt=\"Профиль\">Личный кабинет</a>
  554.                                             </li>
  555.                                             <li>
  556.                                                 <a href=\"{{ base_url }}/WatchList\"><img class=\"side-bar-menu-icons\"
  557.                                                                                         src=\"/images/eye-new.svg\"
  558.                                                                                         alt=\"Просмотренные\">Просмотренные
  559.                                                     акции</a>
  560.                                             </li>
  561.                                             {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::REPLENISHMENT_BALANCE')) %}
  562.                                                 <li class=\"balance-replenishment\">
  563.                                                     <a href=\"{{ base_url }}/oplata\"><img class=\"side-bar-menu-icons\"
  564.                                                                                          src=\"/images/credit-card.svg\"
  565.                                                                                          alt=\"Пополнить\">Пополнить
  566.                                                         счет+бонус</a>
  567.                                                 </li>
  568.                                             {% endif %}
  569.                                             <li>
  570.                                                 <a href=\"{{ base_url }}/profile#profile_favorites\"><img
  571.                                                             class=\"side-bar-menu-icons\"
  572.                                                             src=\"/images/heart-new-profile.svg\" alt=\"Избранное\">Избранное</a>
  573.                                             </li>
  574.                                             <li class=\"item-own-offer\">
  575.                                                 <a href=\"{{ base_url }}/moya_akciya\"
  576.                                                    onclick=\"ga('send', 'event', 'create-own-offer-button--top-menu', 'Click', '1');\"><img
  577.                                                             class=\"side-bar-menu-icons\" src=\"/images/add-offer-new.svg\"
  578.                                                             alt=\"Добавить\">Разместить акцию</a>
  579.                                             </li>
  580.                                             {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MANAGER_STATISTIC') or is_granted('ROLE_MANAGER') or is_granted('ROLE_OPERATOR') or is_granted('ROLE_PUBLICIST') %}
  581.                                                 <li>
  582.                                                     <a href=\"{{ base_url }}/admin\"><img class=\"side-bar-menu-icons\"
  583.                                                                                         alt=\"Администрирование\"
  584.                                                                                         src=\"/images/admin-desk.svg\">Администрирование</a>
  585.                                                 </li>
  586.                                                 <li>
  587.                                                     <a href=\"{{ base_url }}/admin/past_offers\"><img
  588.                                                                 class=\"side-bar-menu-icons\" alt=\"Прошедшее\"
  589.                                                                 src=\"/images/past-desk.svg\">Прошедшие акции</a>
  590.                                                 </li>
  591.                                                 <li>
  592.                                                     <a href=\"{{ base_url }}/admin/past_sales\"><img
  593.                                                                 class=\"side-bar-menu-icons\" alt=\"Прошедшее\"
  594.                                                                 src=\"/images/past-desk.svg\">Прошедшие НС</a>
  595.                                                 </li>
  596.                                             {% endif %}
  597.                                             {% if is_granted('ROLE_SUPPLIER') %}
  598.                                                 <li>
  599.                                                     <a href=\"{{ base_url }}/partner\"><img class=\"side-bar-menu-icons\"
  600.                                                                                           src=\"/images/partner-new.svg\"
  601.                                                                                           alt=\"Кабинет партнера\">Кабинет
  602.                                                         партнера</a>
  603.                                                 </li>
  604.                                             {% endif %}
  605.                                             {% if is_granted('IS_IMPERSONATOR') %}
  606.                                                 <li class=\"item-logout\">
  607.                                                     <a style=\"color: red;\"
  608.                                                        href=\"{{ impersonation_exit_path(path('homepage')) }}\"><img
  609.                                                                 class=\"side-bar-menu-icons\" src=\"/images/back-arrow.svg\"
  610.                                                                 alt=\"Вернуться\">Вернутся в свой акк</a>
  611.                                                 </li>
  612.                                             {% endif %}
  613.                                             {% if not isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_PAYME')) %}
  614.                                                 <li class=\"item-profile\">
  615.                                                     <a href=\"{{ base_url }}/profile/subscription/manage?utm_source=main_menu\"><span style=\"font-size: 26px\">⚡</span>️Подписка</a>
  616.                                                 </li>
  617.                                             {% endif %}
  618.                                             <li class=\"item-logout\">
  619.                                                 <a href=\"javascript:void(0)\" data-toggle=\"modal\"
  620.                                                    data-target=\"#logoutConfirmPopup\"><img class=\"side-bar-menu-icons\"
  621.                                                                                           src=\"/images/log-out.svg\"
  622.                                                                                           alt=\"Выйти\">Выйти</a>
  623.                                             </li>
  624.                                         </ul>
  625.                                     </li>
  626.                                 </ul>
  627.                             </div>
  628.                             {% include \"Slivki/#{regional_template_path}/translate_block.html.twig\" %}
  629.                         </div>
  630.                     {% else %}
  631.                         {# user is not logged in #}
  632.                         <div class=\"header--top-navigation\">
  633.                             <ul>
  634.                                 <li class=\"phones mr-2\">
  635.                                     <a href=\"#\">&nbsp;</a>
  636.                                     {% include \"Slivki/#{regional_template_path}/phones_header_dropdown.html.twig\" %}
  637.                                 </li>
  638.                                 <li class=\"mr-3\">
  639.                                     {% include \"Slivki/#{regional_template_path}/translate_block.html.twig\" %}
  640.                                 </li>
  641.                                 <li class=\"enter focus-tel login-button\" data-toggle=\"tooltip\"
  642.                                     data-placement=\"bottom\" title=\"Вход или регистрация\">
  643.                                     <a href=\"#\" data-toggle=\"modal\" data-target=\".modal-auth\">Войти</a>
  644.                                 </li>
  645.                             </ul>
  646.                             <div class=\"profile-email\"></div>
  647.                         </div>
  648.                     {% endif %}
  649.                 </div>
  650.             </div>
  651.             {% block headerTopMenu %}
  652.                 <div {{ not app.user ? 'class=not-logged-in' }}>
  653.                     {% include \"Slivki/#{regional_template_path}/header_menu.html.twig\" with {'menuSelected': constant('Slivki\\\\Entity\\\\MainMenu::MENU_ID_MAIN')} %}
  654.                 </div>
  655.             {% endblock %}
  656.         </div>
  657.     </div>
  658. </div>
  659. {% block headerBottom %}{% endblock %}
  660. <!--[/ignore]-->""header.html.twig""/mnt/data/virtwww/vlad-slivki/templates/header.html.twig");
  661.     }
  662. }