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

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