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

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