<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Slivki//header_menu.html.twig */
class __TwigTemplate_3f89369b7d683847b914239a0372414baaf8d43cac46dffc50803e0db5376c91 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'additionalMenuItems' => [$this, 'block_additionalMenuItems'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki//header_menu.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki//header_menu.html.twig"));
// line 1
echo "<noindex>
<div class=\"top-menu\">
<div class=\"container\">
";
// line 4
ob_start();
// line 5
echo " ";
$context["landingUrl"] = "/subscription-landing?utm_source=main_menu";
// line 6
echo " ";
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", false, false, false, 6)) {
// line 7
echo " ";
$context["landingUrl"] = "/profile/subscription/manage?utm_source=main_menu";
// line 8
echo " ";
}
// line 9
echo " <ul class=\"top-menu-ul\">
";
// line 10
$context["yesterday"] = twig_date_format_filter($this->env, twig_date_modify_filter($this->env, "now", "-1 day"), "Y-m-d");
// line 11
echo " ";
$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", false, false, false, 11) && twig_get_attribute($this->env, $this->source, 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", false, false, false, 11), "hasRole", [0 => twig_constant("Slivki\\Entity\\UserGroup::STATISTICS_VIEWER")], "method", false, false, false, 11));
// line 12
echo " <li data-target=\"#promocodeMenuContent\">
<div class=\"d-flex pr-3\">
<img class=\"mr-1\" width=\"16\" src=\"/images/icon_category.svg\"/>
<a href=\"";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCityURL(), "html", null, true);
echo "?utm_source=main_menu\">Категории
";
// line 16
if ((isset($context["statViewer"]) || array_key_exists("statViewer", $context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.', 16, $this->source); })())) {
// line 17
echo " <div class=\"header-stat\">
<div>
Главная: ";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0, twig_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", null, true);
echo "</div>
<div>
Рубрики: ";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0, twig_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", null, true);
echo "</div>
<div>
Акции: ";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0, twig_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", null, true);
echo "</div>
</div>
";
}
// line 26
echo " </a>
</div>
</li>
";
// line 30
echo " ";
// line 31
echo " ";
// line 32
echo " ";
// line 33
echo " ";
// line 34
echo " ";
if (( !$this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME")) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method", false, false, false, 34), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID"))))) {
// line 35
echo " <li>
<a href=\"";
// line 36
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", null, true);
echo "/avto/shinomontazh\">🛞 Шиномонтаж</a>
</li>
";
}
// line 39
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method", false, false, false, 39), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID")))) {
// line 40
echo " <li>
<a href=\"";
// line 41
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", null, true);
echo "/eda/dostavka-edy\">Доставка еды
";
// line 42
if ((isset($context["statViewer"]) || array_key_exists("statViewer", $context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.', 42, $this->source); })())) {
// line 43
echo " <div class=\"header-stat\">
<div>
Рубрика: ";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(473, twig_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", null, true);
echo "</div>
<div>
Акции: ";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(473, twig_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", null, true);
echo "</div>
<div>
Акции(ref): ";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(473, twig_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", null, true);
echo "</div>
</div>
";
}
// line 52
echo " </a>
</li>
";
}
// line 55
echo " ";
$this->displayBlock('additionalMenuItems', $context, $blocks);
// line 61
echo " ";
$context["flierURL"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("flierLanding");
// line 62
echo " ";
$context["menuItem"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getTestMenuItem(1);
// line 63
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SALES"))) {
// line 64
echo " <li ";
echo (((0 === 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\"") : (""));
echo ">
<a href=\"";
// line 65
echo twig_escape_filter($this->env, twig_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", false, false, false, 65), "html", null, true);
echo "?utm_source=main_menu\">";
echo twig_escape_filter($this->env, twig_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", false, false, false, 65), "html", null, true);
echo "
";
// line 66
if ((isset($context["statViewer"]) || array_key_exists("statViewer", $context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.', 66, $this->source); })())) {
// line 67
echo " <div class=\"header-stat\">
<div>
Главная: ";
// line 69
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0, twig_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", null, true);
echo "</div>
<div>
Рубрики: ";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0, twig_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", null, true);
echo "</div>
<div>
Акции: ";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0, twig_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", null, true);
echo "</div>
</div>
";
}
// line 76
echo " </a>
</li>
";
}
// line 79
echo " ";
if (($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::GIFTS")) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method", false, false, false, 79), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID"))))) {
// line 80
echo " <li><a href=\"";
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", null, true);
echo "/gift\">🎁 Подарки</a></li>
";
}
// line 82
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SALES"))) {
// line 83
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) {
// line 84
echo " <li>
<a class=\"vakansii\"
href=\"";
// line 86
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", false, false, false, 86)) ? ("/profile/oplata-pay") : (""));
echo "\"";
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", false, false, false, 86)) ? ("data-target=\".modal-auth\" data-toggle=\"modal\"") : (""));
echo ">Баланс</a>
</li>
";
} else {
// line 89
echo " <li>
<a class=\"vakansii\"
href=\"";
// line 91
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", false, false, false, 91)) ? ("/oplata") : (""));
echo "\"";
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", false, false, false, 91)) ? ("data-target=\".modal-auth\" data-toggle=\"modal\"") : (""));
echo ">Баланс</a>
</li>
";
}
// line 94
echo "
";
}
// line 96
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::FLIERS"))) {
// line 97
echo " ";
$context["menuItem"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getTestMenuItem(0);
// line 98
echo " <li ";
echo (((0 === 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\"") : (""));
echo ">
<a href=\"";
// line 99
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", null, true);
echo "?utm_source=main_menu\">Листовки
";
// line 100
if ((isset($context["statViewer"]) || array_key_exists("statViewer", $context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.', 100, $this->source); })())) {
// line 101
echo " <div class=\"header-stat\">
<div>
Главная: ";
// line 103
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0, twig_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", null, true);
echo "</div>
<div>
Рубрики: ";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0, twig_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", null, true);
echo "</div>
<div>
Листовки: ";
// line 107
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getStatVisitCount(0, twig_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", null, true);
echo "</div>
</div>
";
}
// line 110
echo " </a>
</li>
";
}
// line 113
echo " <li>
<a href=\"/skidki-i-rasprodazhi/vakansii/brest\">Вакансии</a>
</li>
";
// line 116
$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", false, false, false, 116)) ? ($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", false, false, false, 116))) : (null));
// line 117
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SUBSCRIPTION"))) {
// line 118
echo " <li>
<a href=\"";
// line 119
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", null, true);
echo "\">⚡️Подписка</a>
</li>
";
}
// line 122
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) {
// line 123
echo " <li>
<a href=\"/virtual-wallet-pay\">SlivkiPay</a>
</li>
";
}
// line 127
echo " </ul>
";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 4
echo twig_spaceless($___internal_parse_0_);
// line 129
echo " ";
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); })()));
echo "
</div>
</div>
";
// line 132
if ((isset($context["statViewer"]) || array_key_exists("statViewer", $context) ? $context["statViewer"] : (function () { throw new RuntimeError('Variable "statViewer" does not exist.', 132, $this->source); })())) {
// line 133
echo " <input type=\"hidden\" id=\"statViewerInput\"/>
";
}
// line 135
echo "</noindex>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 55
public function block_additionalMenuItems($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "additionalMenuItems"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "additionalMenuItems"));
// line 56
echo " <li class=\"bg-violet-light br-04 my-1 mx-1 pin-maps-header\">
<img height=\"16\" src=\"/images/pin.svg\"/>
<a class=\"violet-light-color\" href=\"";
// line 58
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", null, true);
echo "/map\" target=\"_blank\">Я на карте</a>
</li>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki//header_menu.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<noindex>
<div class=\"top-menu\">
<div class=\"container\">
{% apply spaceless %}
{% set landingUrl = '/subscription-landing?utm_source=main_menu' %}
{% if app.user %}
{% set landingUrl = '/profile/subscription/manage?utm_source=main_menu' %}
{% endif %}
<ul class=\"top-menu-ul\">
{% set yesterday = 'now'|date_modify(\"-1 day\")|date(\"Y-m-d\") %}
{% set statViewer = app.user and app.user.hasRole(constant('Slivki\\\\Entity\\\\UserGroup::STATISTICS_VIEWER')) %}
<li data-target=\"#promocodeMenuContent\">
<div class=\"d-flex pr-3\">
<img class=\"mr-1\" width=\"16\" src=\"/images/icon_category.svg\"/>
<a href=\"{{ getCurrentCityURL() }}?utm_source=main_menu\">Категории
{% if statViewer %}
<div class=\"header-stat\">
<div>
Главная: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_MAIN_PAGE'), yesterday, yesterday) }}</div>
<div>
Рубрики: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFER_CATEGORIES_ALL'), yesterday, yesterday) }}</div>
<div>
Акции: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFERS_ALL'), yesterday, yesterday) }}</div>
</div>
{% endif %}
</a>
</div>
</li>
{# {% if not isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_PAYME')) and getCurrentCity().getID() == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}#}
{# <li class=\"menu-office-fest\">#}
{# <a class=\"color-white\" href=\"{{ base_url }}/fest/office\">Офисный фэст до 31.01</a>#}
{# </li>#}
{# {% endif %}#}
{% if not isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_PAYME')) and getCurrentCity().getID() == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}
<li>
<a href=\"{{ base_url }}/avto/shinomontazh\">🛞 Шиномонтаж</a>
</li>
{% endif %}
{% if getCurrentCity().getID() == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}
<li>
<a href=\"{{ base_url }}/eda/dostavka-edy\">Доставка еды
{% if statViewer %}
<div class=\"header-stat\">
<div>
Рубрика: {{ getStatVisitCount(473, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFER_CATEGORY'), yesterday, yesterday) }}</div>
<div>
Акции: {{ getStatVisitCount(473, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFER_BY_CATEGORY'), yesterday, yesterday) }}</div>
<div>
Акции(ref): {{ getStatVisitCount(473, constant('Slivki\\\\Entity\\\\Visit::TYPE_OFFER_BY_CATEGORY_REF'), yesterday, yesterday) }}</div>
</div>
{% endif %}
</a>
</li>
{% endif %}
{% block additionalMenuItems %}
<li class=\"bg-violet-light br-04 my-1 mx-1 pin-maps-header\">
<img height=\"16\" src=\"/images/pin.svg\"/>
<a class=\"violet-light-color\" href=\"{{ base_url }}/map\" target=\"_blank\">Я на карте</a>
</li>
{% endblock %}
{% set flierURL = path('flierLanding') %}
{% set menuItem = getTestMenuItem(1) %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SALES')) %}
<li {{ menuSelected == constant('Slivki\\\\Entity\\\\MainMenu::MENU_ID_SALE') ? 'class=\"selected-item\"' }}>
<a href=\"{{ menuItem.url }}?utm_source=main_menu\">{{ menuItem.name }}
{% if statViewer %}
<div class=\"header-stat\">
<div>
Главная: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_SALE_MAIN_PAGE'), yesterday, yesterday) }}</div>
<div>
Рубрики: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_SALE_CATEGORIES_ALL'), yesterday, yesterday) }}</div>
<div>
Акции: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_SALE_ALL'), yesterday, yesterday) }}</div>
</div>
{% endif %}
</a>
</li>
{% endif %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::GIFTS')) and getCurrentCity().getID() == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}
<li><a href=\"{{ base_url }}/gift\">🎁 Подарки</a></li>
{% endif %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SALES')) %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) %}
<li>
<a class=\"vakansii\"
href=\"{{ app.user ? '/profile/oplata-pay' }}\"{{ not app.user ? 'data-target=\".modal-auth\" data-toggle=\"modal\"' : '' }}>Баланс</a>
</li>
{% else %}
<li>
<a class=\"vakansii\"
href=\"{{ app.user ? '/oplata' }}\"{{ not app.user ? 'data-target=\".modal-auth\" data-toggle=\"modal\"' : '' }}>Баланс</a>
</li>
{% endif %}
{% endif %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::FLIERS')) %}
{% set menuItem = getTestMenuItem(0) %}
<li {{ menuSelected == constant('Slivki\\\\Entity\\\\MainMenu::MENU_ID_FLIER') ? 'class=\"selected-item\"' }}>
<a href=\"{{ flierURL }}?utm_source=main_menu\">Листовки
{% if statViewer %}
<div class=\"header-stat\">
<div>
Главная: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_FLIER_MAIN_PAGE'), yesterday, yesterday) }}</div>
<div>
Рубрики: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_FLIER_CATEGORIES_ALL'), yesterday, yesterday) }}</div>
<div>
Листовки: {{ getStatVisitCount(0, constant('Slivki\\\\Entity\\\\Visit::TYPE_FLIER_ALL'), yesterday, yesterday) }}</div>
</div>
{% endif %}
</a>
</li>
{% endif %}
<li>
<a href=\"/skidki-i-rasprodazhi/vakansii/brest\">Вакансии</a>
</li>
{% set subscription = app.user ? getSubscription(app.user) : null %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SUBSCRIPTION')) %}
<li>
<a href=\"{{ landingUrl }}\">⚡️Подписка</a>
</li>
{% endif %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SLIVKI_PAY')) %}
<li>
<a href=\"/virtual-wallet-pay\">SlivkiPay</a>
</li>
{% endif %}
</ul>
{% endapply %}
{{ getMainMenu(statViewer) }}
</div>
</div>
{% if statViewer %}
<input type=\"hidden\" id=\"statViewerInput\"/>
{% endif %}
</noindex>
", "Slivki//header_menu.html.twig", "/mnt/data/virtwww/test/templates/Slivki/header_menu.html.twig");
}
}