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

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