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

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