var/cache/dev/twig/4f/4f9afb8488cad2b33f58f972b71bf64d2eec2f79a28762432e1a8916cfa79238.php line 276

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. /* Slivki//header_menu.html.twig */
  14. class __TwigTemplate_3f89369b7d683847b914239a0372414baaf8d43cac46dffc50803e0db5376c91 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.             'additionalMenuItems' => [$this'block_additionalMenuItems'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki//header_menu.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki//header_menu.html.twig"));
  34.         // line 1
  35.         echo "<noindex>
  36.     <div class=\"top-menu\">
  37.         <div class=\"container\">
  38.             ";
  39.         // line 4
  40.         ob_start();
  41.         // line 5
  42.         echo "            ";
  43.         $context["landingUrl"] = "/subscription-landing?utm_source=main_menu";
  44.         // line 6
  45.         echo "            ";
  46.         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.'6$this->source); })()), "user", [], "any"falsefalsefalse6)) {
  47.             // line 7
  48.             echo "                ";
  49.             $context["landingUrl"] = "/profile/subscription/manage?utm_source=main_menu";
  50.             // line 8
  51.             echo "            ";
  52.         }
  53.         // line 9
  54.         echo "            <ul class=\"top-menu-ul\">
  55.                 ";
  56.         // line 10
  57.         $context["yesterday"] = twig_date_format_filter($this->envtwig_date_modify_filter($this->env"now""-1 day"), "Y-m-d");
  58.         // line 11
  59.         echo "                ";
  60.         $context["statViewer"] = (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.'11$this->source); })()), "user", [], "any"falsefalsefalse11) && 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.'11$this->source); })()), "user", [], "any"falsefalsefalse11), "hasRole", [=> twig_constant("Slivki\\Entity\\UserGroup::STATISTICS_VIEWER")], "method"falsefalsefalse11));
  61.         // line 12
  62.         echo "                <li data-target=\"#promocodeMenuContent\">
  63.                     <div class=\"d-flex pr-3\">
  64.                         <img class=\"mr-1\" width=\"16\" src=\"/images/icon_category.svg\"/>
  65.                         <a href=\"";
  66.         // line 15
  67.         echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCityURL(), "html"nulltrue);
  68.         echo "?utm_source=main_menu\">Категории
  69.                             ";
  70.         // line 16
  71.         if ((isset($context["statViewer"]) || array_key_exists("statViewer"$context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.'16$this->source); })())) {
  72.             // line 17
  73.             echo "                                <div class=\"header-stat\">
  74.                                     <div>
  75.                                         Главная: ";
  76.             // line 19
  77.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0twig_constant("Slivki\\Entity\\Visit::TYPE_MAIN_PAGE"), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'19$this->source); })()), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'19$this->source); })())), "html"nulltrue);
  78.             echo "</div>
  79.                                     <div>
  80.                                         Рубрики: ";
  81.             // line 21
  82.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0twig_constant("Slivki\\Entity\\Visit::TYPE_OFFER_CATEGORIES_ALL"), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'21$this->source); })()), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'21$this->source); })())), "html"nulltrue);
  83.             echo "</div>
  84.                                     <div>
  85.                                         Акции: ";
  86.             // line 23
  87.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0twig_constant("Slivki\\Entity\\Visit::TYPE_OFFERS_ALL"), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'23$this->source); })()), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'23$this->source); })())), "html"nulltrue);
  88.             echo "</div>
  89.                                 </div>
  90.                             ";
  91.         }
  92.         // line 26
  93.         echo "                        </a>
  94.                     </div>
  95.                 </li>
  96.                 ";
  97.         // line 30
  98.         echo "                ";
  99.         // line 31
  100.         echo "                ";
  101.         // line 32
  102.         echo "                ";
  103.         // line 33
  104.         echo "                ";
  105.         // line 34
  106.         echo "
  107.                 ";
  108.         // line 35
  109.         if ((=== twig_compare(twig_get_attribute($this->env$this->source$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method"falsefalsefalse35), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID")))) {
  110.             // line 36
  111.             echo "                    <li class=\"d-flex\">
  112.                         <a href=\"";
  113.             // line 37
  114.             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.'37$this->source); })()), "html"nulltrue);
  115.             echo "/den-otca\">👨🏻‍🦰День отца </a>
  116.                     </li>
  117.                 ";
  118.         }
  119.         // line 40
  120.         echo "
  121.                 ";
  122.         // line 41
  123.         if ((=== twig_compare(twig_get_attribute($this->env$this->source$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method"falsefalsefalse41), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID")))) {
  124.             // line 42
  125.             echo "                    <li>
  126.                         <a href=\"";
  127.             // line 43
  128.             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.'43$this->source); })()), "html"nulltrue);
  129.             echo "/eda/dostavka-edy\">Доставка еды
  130.                             ";
  131.             // line 44
  132.             if ((isset($context["statViewer"]) || array_key_exists("statViewer"$context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.'44$this->source); })())) {
  133.                 // line 45
  134.                 echo "                                <div class=\"header-stat\">
  135.                                     <div>
  136.                                         Рубрика: ";
  137.                 // line 47
  138.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(473twig_constant("Slivki\\Entity\\Visit::TYPE_OFFER_CATEGORY"), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'47$this->source); })()), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'47$this->source); })())), "html"nulltrue);
  139.                 echo "</div>
  140.                                     <div>
  141.                                         Акции: ";
  142.                 // line 49
  143.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(473twig_constant("Slivki\\Entity\\Visit::TYPE_OFFER_BY_CATEGORY"), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'49$this->source); })()), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'49$this->source); })())), "html"nulltrue);
  144.                 echo "</div>
  145.                                     <div>
  146.                                         Акции(ref): ";
  147.                 // line 51
  148.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(473twig_constant("Slivki\\Entity\\Visit::TYPE_OFFER_BY_CATEGORY_REF"), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'51$this->source); })()), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'51$this->source); })())), "html"nulltrue);
  149.                 echo "</div>
  150.                                 </div>
  151.                             ";
  152.             }
  153.             // line 54
  154.             echo "                        </a>
  155.                     </li>
  156.                 ";
  157.         }
  158.         // line 62
  159.         echo "                ";
  160.         $this->displayBlock('additionalMenuItems'$context$blocks);
  161.         // line 69
  162.         echo "                ";
  163.         $context["flierURL"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("flierLanding");
  164.         // line 70
  165.         echo "                ";
  166.         $context["menuItem"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getTestMenuItem(1);
  167.         // line 71
  168.         echo "                ";
  169.         if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::FLIERS"))) {
  170.             // line 72
  171.             echo "                    ";
  172.             $context["menuItem"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getTestMenuItem(0);
  173.             // line 73
  174.             echo "                    <li ";
  175.             echo (((=== twig_compare((isset($context["menuSelected"]) || array_key_exists("menuSelected"$context) ? $context["menuSelected"] : (function () { throw new RuntimeError('Variable "menuSelected" does not exist.'73$this->source); })()), twig_constant("Slivki\\Entity\\MainMenu::MENU_ID_FLIER")))) ? ("class=\"selected-item\"") : (""));
  176.             echo ">
  177.                         <a href=\"";
  178.             // line 74
  179.             echo twig_escape_filter($this->env, (isset($context["flierURL"]) || array_key_exists("flierURL"$context) ? $context["flierURL"] : (function () { throw new RuntimeError('Variable "flierURL" does not exist.'74$this->source); })()), "html"nulltrue);
  180.             echo "?utm_source=main_menu\">Листовки
  181.                             ";
  182.             // line 75
  183.             if ((isset($context["statViewer"]) || array_key_exists("statViewer"$context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.'75$this->source); })())) {
  184.                 // line 76
  185.                 echo "                                <div class=\"header-stat\">
  186.                                     <div>
  187.                                         Главная: ";
  188.                 // line 78
  189.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0twig_constant("Slivki\\Entity\\Visit::TYPE_FLIER_MAIN_PAGE"), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'78$this->source); })()), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'78$this->source); })())), "html"nulltrue);
  190.                 echo "</div>
  191.                                     <div>
  192.                                         Рубрики: ";
  193.                 // line 80
  194.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0twig_constant("Slivki\\Entity\\Visit::TYPE_FLIER_CATEGORIES_ALL"), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'80$this->source); })()), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'80$this->source); })())), "html"nulltrue);
  195.                 echo "</div>
  196.                                     <div>
  197.                                         Листовки: ";
  198.                 // line 82
  199.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0twig_constant("Slivki\\Entity\\Visit::TYPE_FLIER_ALL"), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'82$this->source); })()), (isset($context["yesterday"]) || array_key_exists("yesterday"$context) ? $context["yesterday"] : (function () { throw new RuntimeError('Variable "yesterday" does not exist.'82$this->source); })())), "html"nulltrue);
  200.                 echo "</div>
  201.                                 </div>
  202.                             ";
  203.             }
  204.             // line 85
  205.             echo "                        </a>
  206.                     </li>
  207.                 ";
  208.         }
  209.         // line 88
  210.         echo "                <li><a href=\"";
  211.         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.'88$this->source); })()), "html"nulltrue);
  212.         echo "/skidki-i-rasprodazhi\">Новости скидок</a></li>
  213.                 ";
  214.         // line 89
  215.         if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SALES"))) {
  216.             // line 90
  217.             echo "                    ";
  218.             if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) {
  219.                 // line 91
  220.                 echo "                    <li>
  221.                         <a class=\"vakansii\"
  222.                            href=\"";
  223.                 // line 93
  224.                 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.'93$this->source); })()), "user", [], "any"falsefalsefalse93)) ? ("/profile/oplata-pay") : (""));
  225.                 echo "\"";
  226.                 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.'93$this->source); })()), "user", [], "any"falsefalsefalse93)) ? ("data-target=\".modal-auth\" data-toggle=\"modal\"") : (""));
  227.                 echo ">Баланс</a>
  228.                     </li>
  229.                 ";
  230.             } else {
  231.                 // line 96
  232.                 echo "                    <li>
  233.                         <a class=\"vakansii\"
  234.                            href=\"";
  235.                 // line 98
  236.                 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.'98$this->source); })()), "user", [], "any"falsefalsefalse98)) ? ("/oplata") : (""));
  237.                 echo "\"";
  238.                 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.'98$this->source); })()), "user", [], "any"falsefalsefalse98)) ? ("data-target=\".modal-auth\" data-toggle=\"modal\"") : (""));
  239.                 echo ">Баланс</a>
  240.                     </li>
  241.                 ";
  242.             }
  243.             // line 101
  244.             echo "
  245.                 ";
  246.         }
  247.         // line 103
  248.         echo "
  249. ";
  250.         // line 107
  251.         echo "                ";
  252.         $context["subscription"] = ((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.'107$this->source); })()), "user", [], "any"falsefalsefalse107)) ? ($this->env->getRuntime('Slivki\Twig\SubscriptionTwigRuntime')->getSubscription(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.'107$this->source); })()), "user", [], "any"falsefalsefalse107))) : (null));
  253.         // line 108
  254.         echo "                ";
  255.         if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SUBSCRIPTION"))) {
  256.             // line 109
  257.             echo "                    <li>
  258.                         <a href=\"";
  259.             // line 110
  260.             echo twig_escape_filter($this->env, (isset($context["landingUrl"]) || array_key_exists("landingUrl"$context) ? $context["landingUrl"] : (function () { throw new RuntimeError('Variable "landingUrl" does not exist.'110$this->source); })()), "html"nulltrue);
  261.             echo "\">⚡️Подписка</a>
  262.                     </li>
  263.                 ";
  264.         }
  265.         // line 113
  266.         echo "                ";
  267.         if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) {
  268.             // line 114
  269.             echo "                    <li>
  270.                         <a  href=\"";
  271.             // line 115
  272.             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.'115$this->source); })()), "user", [], "any"falsefalsefalse115)) ? ("/virtual-wallet-pay") : (""));
  273.             echo "\"";
  274.             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.'115$this->source); })()), "user", [], "any"falsefalsefalse115)) ? ("data-target=\".modal-auth\" data-toggle=\"modal\"") : (""));
  275.             echo ">SlivkiPay</a>
  276.                     </li>
  277.                 ";
  278.         }
  279.         // line 118
  280.         echo "                <li>
  281.                     <a  href=\"/profile/external-codes/index\">МТС-бонус</a>
  282.                 </li>
  283.             </ul>
  284.             ";
  285.         $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  286.         // line 4
  287.         echo twig_spaceless($___internal_parse_0_);
  288.         // line 123
  289.         echo "            ";
  290.         echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getMainMenu($this->env, (isset($context["statViewer"]) || array_key_exists("statViewer"$context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.'123$this->source); })()));
  291.         echo "
  292.         </div>
  293.     </div>
  294.     ";
  295.         // line 126
  296.         if ((isset($context["statViewer"]) || array_key_exists("statViewer"$context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.'126$this->source); })())) {
  297.             // line 127
  298.             echo "        <input type=\"hidden\" id=\"statViewerInput\"/>
  299.     ";
  300.         }
  301.         // line 129
  302.         echo "</noindex>
  303. ";
  304.         
  305.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  306.         
  307.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  308.     }
  309.     // line 62
  310.     public function block_additionalMenuItems($context, array $blocks = [])
  311.     {
  312.         $macros $this->macros;
  313.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  314.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""additionalMenuItems"));
  315.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  316.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""additionalMenuItems"));
  317.         // line 63
  318.         echo "
  319.                     <li class=\"bg-violet-light br-04 my-1 mx-1 pin-maps-header\">
  320.                         <img height=\"16\" src=\"/images/pin.svg\"/>
  321.                         <a class=\"violet-light-color\" href=\"";
  322.         // line 66
  323.         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.'66$this->source); })()), "html"nulltrue);
  324.         echo "/map\" target=\"_blank\">Я на карте</a>
  325.                     </li>
  326.                 ";
  327.         
  328.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  329.         
  330.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  331.     }
  332.     public function getTemplateName()
  333.     {
  334.         return "Slivki//header_menu.html.twig";
  335.     }
  336.     public function isTraitable()
  337.     {
  338.         return false;
  339.     }
  340.     public function getDebugInfo()
  341.     {
  342.         return array (  337 => 66,  332 => 63,  322 => 62,  311 => 129,  307 => 127,  305 => 126,  298 => 123,  296 => 4,  289 => 118,  281 => 115,  278 => 114,  275 => 113,  269 => 110,  266 => 109,  263 => 108,  260 => 107,  257 => 103,  253 => 101,  245 => 98,  241 => 96,  233 => 93,  229 => 91,  226 => 90,  224 => 89,  219 => 88,  214 => 85,  208 => 82,  203 => 80,  198 => 78,  194 => 76,  192 => 75,  188 => 74,  183 => 73,  180 => 72,  177 => 71,  174 => 70,  171 => 69,  168 => 62,  163 => 54,  157 => 51,  152 => 49,  147 => 47,  143 => 45,  141 => 44,  137 => 43,  134 => 42,  132 => 41,  129 => 40,  123 => 37,  120 => 36,  118 => 35,  115 => 34,  113 => 33,  111 => 32,  109 => 31,  107 => 30,  102 => 26,  96 => 23,  91 => 21,  86 => 19,  82 => 17,  80 => 16,  76 => 15,  71 => 12,  68 => 11,  66 => 10,  63 => 9,  60 => 8,  57 => 7,  54 => 6,  51 => 5,  49 => 4,  44 => 1,);
  343.     }
  344.     public function getSourceContext()
  345.     {
  346.         return new Source("<noindex>
  347.     <div class=\"top-menu\">
  348.         <div class=\"container\">
  349.             {% apply spaceless %}
  350.             {% set landingUrl = '/subscription-landing?utm_source=main_menu' %}
  351.             {% if app.user %}
  352.                 {% set landingUrl = '/profile/subscription/manage?utm_source=main_menu' %}
  353.             {% endif %}
  354.             <ul class=\"top-menu-ul\">
  355.                 {% set yesterday = 'now'|date_modify(\"-1 day\")|date(\"Y-m-d\") %}
  356.                 {% set statViewer = app.user and app.user.hasRole(constant('Slivki\\\\Entity\\\\UserGroup::STATISTICS_VIEWER')) %}
  357.                 <li data-target=\"#promocodeMenuContent\">
  358.                     <div class=\"d-flex pr-3\">
  359.                         <img class=\"mr-1\" width=\"16\" src=\"/images/icon_category.svg\"/>
  360.                         <a href=\"{{ getCurrentCityURL() }}?utm_source=main_menu\">Категории
  361.                             {% if statViewer %}
  362.                                 <div class=\"header-stat\">
  363.                                     <div>
  364.                                         Главная: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_MAIN_PAGE'), yesterday, yesterday) }}</div>
  365.                                     <div>
  366.                                         Рубрики: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFER_CATEGORIES_ALL'), yesterday, yesterday) }}</div>
  367.                                     <div>
  368.                                         Акции: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFERS_ALL'), yesterday, yesterday) }}</div>
  369.                                 </div>
  370.                             {% endif %}
  371.                         </a>
  372.                     </div>
  373.                 </li>
  374.                 {#                    {% if not isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_PAYME')) and getCurrentCity().getID() == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}#}
  375.                 {#                        <li class=\"menu-office-fest\">#}
  376.                 {#                            <a class=\"color-white\" href=\"{{ base_url }}/fest/office\">Офисный фэст до 31.01</a>#}
  377.                 {#                        </li>#}
  378.                 {#                    {% endif %}#}
  379.                 {% if getCurrentCity().getID() == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}
  380.                     <li class=\"d-flex\">
  381.                         <a href=\"{{ base_url }}/den-otca\">👨🏻‍🦰День отца </a>
  382.                     </li>
  383.                 {% endif %}
  384.                 {% if getCurrentCity().getID() == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}
  385.                     <li>
  386.                         <a href=\"{{ base_url }}/eda/dostavka-edy\">Доставка еды
  387.                             {% if statViewer %}
  388.                                 <div class=\"header-stat\">
  389.                                     <div>
  390.                                         Рубрика: {{ getStatVisitCount(473, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFER_CATEGORY'), yesterday, yesterday) }}</div>
  391.                                     <div>
  392.                                         Акции: {{ getStatVisitCount(473, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFER_BY_CATEGORY'), yesterday, yesterday) }}</div>
  393.                                     <div>
  394.                                         Акции(ref): {{ getStatVisitCount(473, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFER_BY_CATEGORY_REF'), yesterday, yesterday) }}</div>
  395.                                 </div>
  396.                             {% endif %}
  397.                         </a>
  398.                     </li>
  399.                 {% endif %}
  400. {#                {% if getCurrentCity().getID() == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}#}
  401. {#                    <li class=\"d-flex\">#}
  402. {#                        <a href=\"{{ base_url }}/fest\">Анатолий доплатит!</a>#}
  403. {#                    </li>#}
  404. {#                {% endif %}#}
  405.                 {% block additionalMenuItems %}
  406.                     <li class=\"bg-violet-light br-04 my-1 mx-1 pin-maps-header\">
  407.                         <img height=\"16\" src=\"/images/pin.svg\"/>
  408.                         <a class=\"violet-light-color\" href=\"{{ base_url }}/map\" target=\"_blank\">Я на карте</a>
  409.                     </li>
  410.                 {% endblock %}
  411.                 {% set flierURL = path('flierLanding') %}
  412.                 {% set menuItem = getTestMenuItem(1) %}
  413.                 {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::FLIERS')) %}
  414.                     {% set menuItem = getTestMenuItem(0) %}
  415.                     <li {{ menuSelected == constant('Slivki\\\\Entity\\\\MainMenu::MENU_ID_FLIER') ? 'class=\"selected-item\"' }}>
  416.                         <a href=\"{{ flierURL }}?utm_source=main_menu\">Листовки
  417.                             {% if statViewer %}
  418.                                 <div class=\"header-stat\">
  419.                                     <div>
  420.                                         Главная: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_FLIER_MAIN_PAGE'), yesterday, yesterday) }}</div>
  421.                                     <div>
  422.                                         Рубрики: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_FLIER_CATEGORIES_ALL'), yesterday, yesterday) }}</div>
  423.                                     <div>
  424.                                         Листовки: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_FLIER_ALL'), yesterday, yesterday) }}</div>
  425.                                 </div>
  426.                             {% endif %}
  427.                         </a>
  428.                     </li>
  429.                 {% endif %}
  430.                 <li><a href=\"{{ base_url }}/skidki-i-rasprodazhi\">Новости скидок</a></li>
  431.                 {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SALES')) %}
  432.                     {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) %}
  433.                     <li>
  434.                         <a class=\"vakansii\"
  435.                            href=\"{{ app.user ?  '/profile/oplata-pay' }}\"{{ not app.user ? 'data-target=\".modal-auth\" data-toggle=\"modal\"' : '' }}>Баланс</a>
  436.                     </li>
  437.                 {% else %}
  438.                     <li>
  439.                         <a class=\"vakansii\"
  440.                            href=\"{{ app.user ?  '/oplata' }}\"{{ not app.user ? 'data-target=\".modal-auth\" data-toggle=\"modal\"' : '' }}>Баланс</a>
  441.                     </li>
  442.                 {% endif %}
  443.                 {% endif %}
  444. {#                <li>#}
  445. {#                    <a href=\"/skidki-i-rasprodazhi/vakansii/brest\">Вакансии</a>#}
  446. {#                </li>#}
  447.                 {% set subscription = app.user ? getSubscription(app.user) : null %}
  448.                 {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SUBSCRIPTION')) %}
  449.                     <li>
  450.                         <a href=\"{{ landingUrl }}\">⚡️Подписка</a>
  451.                     </li>
  452.                 {% endif %}
  453.                 {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) %}
  454.                     <li>
  455.                         <a  href=\"{{ app.user ?  '/virtual-wallet-pay' }}\"{{ not app.user ? 'data-target=\".modal-auth\" data-toggle=\"modal\"' : '' }}>SlivkiPay</a>
  456.                     </li>
  457.                 {% endif %}
  458.                 <li>
  459.                     <a  href=\"/profile/external-codes/index\">МТС-бонус</a>
  460.                 </li>
  461.             </ul>
  462.             {% endapply %}
  463.             {{ getMainMenu(statViewer) }}
  464.         </div>
  465.     </div>
  466.     {% if statViewer %}
  467.         <input type=\"hidden\" id=\"statViewerInput\"/>
  468.     {% endif %}
  469. </noindex>
  470. ""Slivki//header_menu.html.twig""/mnt/data/virtwww/dima/templates/Slivki/header_menu.html.twig");
  471.     }
  472. }