<?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;
/* header.html.twig */
class __TwigTemplate_da8c951c0b0debd7000b8779a2432698bccf4ba234955a37d2ca0fd6cc377fda extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'headerClass' => [$this, 'block_headerClass'],
'afterLogo' => [$this, 'block_afterLogo'],
'headerSearch' => [$this, 'block_headerSearch'],
'headerCitySelector' => [$this, 'block_headerCitySelector'],
'headerTopMenu' => [$this, 'block_headerTopMenu'],
'headerBottom' => [$this, 'block_headerBottom'],
];
}
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", "header.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "header.html.twig"));
// line 1
$context["siteSettings"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getSiteSettings();
// line 2
echo "<!--[ignore]-->
<div class=\"header ";
// line 3
$this->displayBlock('headerClass', $context, $blocks);
echo "\">
<div id=\"scrolltop\">
<div class=\"scrolltop\" style=\"display: none;\">
<span class=\"link pseudo-link\">В начало</span>
</div>
</div>
";
// line 9
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.', 9, $this->source); })()), "user", [], "any", false, false, false, 9) && 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.', 9, $this->source); })()), "user", [], "any", false, false, false, 9), "hasRole", [0 => twig_constant("\\Slivki\\Entity\\UserGroup::ROLE_ADS_FREE")], "method", false, false, false, 9)) && (0 !== twig_compare(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.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "requestUri", [], "method", false, false, false, 9), "/betera-advent")))) {
// line 10
echo " <div id=\"head-banner\">
<div class=\"head-banner-section\">
<div class=\"head-banner-section-center\">
<div class=\"head-banner-container\">
";
// line 14
echo $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getTopSiteBanner(((array_key_exists("brandingBannerCategoryIDs", $context)) ? ((isset($context["brandingBannerCategoryIDs"]) || array_key_exists("brandingBannerCategoryIDs", $context) ? $context["brandingBannerCategoryIDs"] : (function () { throw new RuntimeError('Variable "brandingBannerCategoryIDs" does not exist.', 14, $this->source); })())) : ([])), false);
echo "
</div>
</div>
</div>
</div>
";
}
// line 20
echo " <div class=\"header--top-wrapp\" style=\"min-height: 80px;\">
<div class=\"header--top\" data-spy=\"affix\" data-offset-top=\"90\">
<div class=\"header--top--head\">
<div class=\"container\">
";
// line 24
if (array_key_exists("currentCategoryMonthlyVisits", $context)) {
// line 25
echo " <div style=\"position: absolute; top: 84px; right: 120px;\" data-toggle=\"tooltip\"
data-placement=\"bottom\" title=\"Просмотров за месяц\">
<i class=\"slivki-icon-eye\"></i>";
// line 27
echo twig_escape_filter($this->env, (isset($context["currentCategoryMonthlyVisits"]) || array_key_exists("currentCategoryMonthlyVisits", $context) ? $context["currentCategoryMonthlyVisits"] : (function () { throw new RuntimeError('Variable "currentCategoryMonthlyVisits" does not exist.', 27, $this->source); })()), "html", null, true);
echo "
</div>
";
}
// line 30
echo " ";
$context["currentCity"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity();
// line 31
echo " <input id=\"cityName\" type=\"hidden\" value=\"";
((twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["currentCity"]) || array_key_exists("currentCity", $context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.', 31, $this->source); })()), "getID", [], "method", false, false, false, 31), [0 => twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID"), 1 => twig_constant("Slivki\\Entity\\City::TASHKENT_CITY_ID")])) ? (print ("/")) : (print (twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL(twig_constant("Slivki\\Repository\\SeoRepository::RESOURCE_URL_CITY"), twig_get_attribute($this->env, $this->source, (isset($context["currentCity"]) || array_key_exists("currentCity", $context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.', 31, $this->source); })()), "getID", [], "method", false, false, false, 31)), "html", null, true))));
echo "\"/>
<a href=\"";
// line 32
((twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["currentCity"]) || array_key_exists("currentCity", $context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.', 32, $this->source); })()), "getID", [], "method", false, false, false, 32), [0 => twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID"), 1 => twig_constant("Slivki\\Entity\\City::TASHKENT_CITY_ID")])) ? (print ("/")) : (print (twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL(twig_constant("Slivki\\Repository\\SeoRepository::RESOURCE_URL_CITY"), twig_get_attribute($this->env, $this->source, (isset($context["currentCity"]) || array_key_exists("currentCity", $context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.', 32, $this->source); })()), "getID", [], "method", false, false, false, 32)), "html", null, true))));
echo "\"
class=\"logo\"></a>
";
// line 34
$this->displayBlock('afterLogo', $context, $blocks);
// line 35
echo " ";
$this->displayBlock('headerSearch', $context, $blocks);
// line 38
echo "
";
// line 39
$this->displayBlock('headerCitySelector', $context, $blocks);
// line 42
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.', 42, $this->source); })()), "user", [], "any", false, false, false, 42)) {
// line 43
echo " ";
// line 44
echo " <div class=\"header_top_navigation_container d-flex align-items-center\">
<div class=\"header--top-navigation\">
<ul>
<li class=\"profile-data\">
<a href=\"";
// line 48
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.', 48, $this->source); })()), "html", null, true);
echo "/profile\">";
echo twig_escape_filter($this->env, ((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.', 48, $this->source); })()), "user", [], "any", false, false, false, 48), "getPhone", [], "method", false, false, false, 48)) ? (("***" . twig_slice($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->phoneFilter(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.', 48, $this->source); })()), "user", [], "any", false, false, false, 48), "getPhone", [], "method", false, false, false, 48)), 3, null))) : (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.', 48, $this->source); })()), "user", [], "any", false, false, false, 48), "getFirstName", [], "method", false, false, false, 48))), "html", null, true);
echo "</a>
<input type=\"hidden\" id=\"userEmail\" value=\"";
// line 49
echo twig_escape_filter($this->env, 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.', 49, $this->source); })()), "user", [], "any", false, false, false, 49), "getEmail", [], "method", false, false, false, 49), "html", null, true);
echo "\"/>
<a href=\"javascript:void(0)\" data-toggle=\"modal\" data-target=\"#modal_billing\">
";
// line 51
$context["userBalanceCodesCount"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getUserBalanceCodesCount(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.', 51, $this->source); })()), "user", [], "any", false, false, false, 51), twig_get_attribute($this->env, $this->source, (isset($context["currentCity"]) || array_key_exists("currentCity", $context) ? $context["currentCity"] : (function () { throw new RuntimeError('Variable "currentCity" does not exist.', 51, $this->source); })()), "getID", [], "method", false, false, false, 51));
// line 52
echo " <span class=\"d-flex\">
<div class=\"d-none\">
(<span id=\"balance\">";
// line 54
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, 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.', 54, $this->source); })()), "user", [], "any", false, false, false, 54), "getFullBalance", [], "method", false, false, false, 54), 2, ",", ""), "html", null, true);
echo "</span> руб)
</div>
</span>
</a>
</li>
<li class=\"header-profile-menu\">
<a id=\"header-profile-menu-opener\" href=\"javascript:void(0)\">
";
// line 67
echo " </a>
<ul>
<li class=\"item-discount\">
<a href=\"";
// line 70
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.', 70, $this->source); })()), "html", null, true);
echo "/profile\"><img class=\"side-bar-menu-icons\"
src=\"/images/promo-code.svg\"
alt=\"Промокод\">Мои промокоды
";
// line 78
echo " </a>
</li>
<li class=\"item-profile\">
<a href=\"";
// line 81
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.', 81, $this->source); })()), "html", null, true);
echo "/profile\"><img class=\"side-bar-menu-icons\"
src=\"/images/profile-user.svg\"
alt=\"Профиль\">Личный кабинет</a>
</li>
<li>
<a href=\"";
// line 86
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.', 86, $this->source); })()), "html", null, true);
echo "/WatchList\"><img class=\"side-bar-menu-icons\"
src=\"/images/eye-new.svg\"
alt=\"Просмотренные\">Просмотренные
акции</a>
</li>
";
// line 91
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::REPLENISHMENT_BALANCE"))) {
// line 92
echo " <li class=\"balance-replenishment\">
<a href=";
// line 93
echo (($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::VIRTUAL_WALLET_REPLENISHMENT"))) ? ("/profile/oplata-pay") : ("/oplata"));
echo "><img class=\"side-bar-menu-icons\"
src=\"/images/credit-card.svg\"
alt=\"Пополнить\">Пополнить
счет+бонус</a>
</li>
";
}
// line 99
echo " <li>
<a href=\"";
// line 100
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.', 100, $this->source); })()), "html", null, true);
echo "/profile#profile_favorites\"><img
class=\"side-bar-menu-icons\"
src=\"/images/heart-new-profile.svg\" alt=\"Избранное\">Избранное</a>
</li>
<li class=\"item-own-offer\">
<a href=\"";
// line 105
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.', 105, $this->source); })()), "html", null, true);
echo "/moya_akciya\"
onclick=\"ga('send', 'event', 'create-own-offer-button--top-menu', 'Click', '1');\"><img
class=\"side-bar-menu-icons\" src=\"/images/add-offer-new.svg\"
alt=\"Добавить\">Создать свою акцию</a>
</li>
";
// line 110
if ((((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER_STATISTIC")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_OPERATOR")) || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PUBLICIST"))) {
// line 111
echo " <li>
<a href=\"";
// line 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.', 112, $this->source); })()), "html", null, true);
echo "/admin\"><img class=\"side-bar-menu-icons\"
alt=\"Администрирование\"
src=\"/images/admin-desk.svg\">Администрирование</a>
</li>
<li>
<a href=\"";
// line 117
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.', 117, $this->source); })()), "html", null, true);
echo "/admin/past_offers\"><img
class=\"side-bar-menu-icons\" alt=\"Прошедшее\"
src=\"/images/past-desk.svg\">Прошедшие акции</a>
</li>
<li>
<a href=\"";
// line 122
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.', 122, $this->source); })()), "html", null, true);
echo "/admin/past_sales\"><img
class=\"side-bar-menu-icons\" alt=\"Прошедшее\"
src=\"/images/past-desk.svg\">Прошедшие НС</a>
</li>
";
}
// line 127
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPPLIER")) {
// line 128
echo " <li>
<a href=\"";
// line 129
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.', 129, $this->source); })()), "html", null, true);
echo "/partner\"><img class=\"side-bar-menu-icons\"
src=\"/images/partner-new.svg\"
alt=\"Кабинет партнера\">Кабинет
партнера</a>
</li>
";
}
// line 135
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_IMPERSONATOR")) {
// line 136
echo " <li class=\"item-logout\">
<a style=\"color: red;\"
href=\"";
// line 138
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->getImpersonateExitPath($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage")), "html", null, true);
echo "\"><img
class=\"side-bar-menu-icons\" src=\"/images/back-arrow.svg\"
alt=\"Вернуться\">Вернутся в свой акк</a>
</li>
";
}
// line 143
echo " ";
if ( !$this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME"))) {
// line 144
echo " <li class=\"item-profile\">
<a href=\"";
// line 145
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.', 145, $this->source); })()), "html", null, true);
echo "/profile/subscription/manage?utm_source=main_menu\"><span style=\"font-size: 26px\">⚡</span>️Подписка</a>
</li>
";
}
// line 148
echo " <li class=\"item-logout\">
<a href=\"javascript:void(0)\" data-toggle=\"modal\"
data-target=\"#logoutConfirmPopup\"><img class=\"side-bar-menu-icons\"
src=\"/images/log-out.svg\"
alt=\"Выйти\">Выйти</a>
</li>
</ul>
</li>
</ul>
</div>
";
// line 158
$this->loadTemplate((("Slivki/" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path", $context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.', 158, $this->source); })())) . "/translate_block.html.twig"), "header.html.twig", 158)->display($context);
// line 159
echo " </div>
";
} else {
// line 161
echo " ";
// line 162
echo " <div class=\"header--top-navigation\">
<ul>
<li class=\"phones mr-2\">
<a href=\"#\"> </a>
";
// line 166
$this->loadTemplate((("Slivki/" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path", $context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.', 166, $this->source); })())) . "/phones_header_dropdown.html.twig"), "header.html.twig", 166)->display($context);
// line 167
echo " </li>
<li class=\"mr-3\">
";
// line 169
$this->loadTemplate((("Slivki/" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path", $context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.', 169, $this->source); })())) . "/translate_block.html.twig"), "header.html.twig", 169)->display($context);
// line 170
echo " </li>
<li class=\"enter focus-tel login-button\" data-toggle=\"tooltip\"
data-placement=\"bottom\" title=\"Вход или регистрация\">
<a data-toggle=\"modal\" data-target=\".modal-auth\">Войти</a>
</li>
</ul>
<div class=\"profile-email\"></div>
</div>
";
}
// line 179
echo " </div>
</div>
";
// line 181
$this->displayBlock('headerTopMenu', $context, $blocks);
// line 186
echo " </div>
</div>
</div>
";
// line 190
$this->displayBlock('headerBottom', $context, $blocks);
// line 191
echo "<!--[/ignore]-->";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_headerClass($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", "headerClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 34
public function block_afterLogo($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", "afterLogo"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "afterLogo"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 35
public function block_headerSearch($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", "headerSearch"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerSearch"));
// line 36
echo " ";
$this->loadTemplate("header_search_block.html.twig", "header.html.twig", 36)->display(twig_array_merge($context, ["searchIn" => twig_constant("Slivki\\Controller\\SearchController::SEARCH_OFFERS"), "placeholder" => "Я ищу..."]));
// line 37
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 39
public function block_headerCitySelector($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", "headerCitySelector"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerCitySelector"));
// line 40
echo " ";
$this->loadTemplate((("Slivki" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path", $context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.', 40, $this->source); })())) . "/city_selector.html.twig"), "header.html.twig", 40)->display($context);
// line 41
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 181
public function block_headerTopMenu($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", "headerTopMenu"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerTopMenu"));
// line 182
echo " <div ";
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.', 182, $this->source); })()), "user", [], "any", false, false, false, 182)) ? ("class=not-logged-in") : (""));
echo ">
";
// line 183
$this->loadTemplate((("Slivki/" . (isset($context["regional_template_path"]) || array_key_exists("regional_template_path", $context) ? $context["regional_template_path"] : (function () { throw new RuntimeError('Variable "regional_template_path" does not exist.', 183, $this->source); })())) . "/header_menu.html.twig"), "header.html.twig", 183)->display(twig_array_merge($context, ["menuSelected" => twig_constant("Slivki\\Entity\\MainMenu::MENU_ID_MAIN")]));
// line 184
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 190
public function block_headerBottom($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", "headerBottom"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerBottom"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 474 => 190, 463 => 184, 461 => 183, 456 => 182, 446 => 181, 436 => 41, 433 => 40, 423 => 39, 413 => 37, 410 => 36, 400 => 35, 382 => 34, 364 => 3, 354 => 191, 352 => 190, 346 => 186, 344 => 181, 340 => 179, 329 => 170, 327 => 169, 323 => 167, 321 => 166, 315 => 162, 313 => 161, 309 => 159, 307 => 158, 295 => 148, 289 => 145, 286 => 144, 283 => 143, 275 => 138, 271 => 136, 268 => 135, 259 => 129, 256 => 128, 253 => 127, 245 => 122, 237 => 117, 229 => 112, 226 => 111, 224 => 110, 216 => 105, 208 => 100, 205 => 99, 196 => 93, 193 => 92, 191 => 91, 183 => 86, 175 => 81, 170 => 78, 164 => 70, 159 => 67, 149 => 54, 145 => 52, 143 => 51, 138 => 49, 132 => 48, 126 => 44, 124 => 43, 121 => 42, 119 => 39, 116 => 38, 113 => 35, 111 => 34, 106 => 32, 101 => 31, 98 => 30, 92 => 27, 88 => 25, 86 => 24, 80 => 20, 71 => 14, 65 => 10, 63 => 9, 54 => 3, 51 => 2, 49 => 1,);
}
public function getSourceContext()
{
return new Source("{% set siteSettings = getSiteSettings() %}
<!--[ignore]-->
<div class=\"header {% block headerClass %}{% endblock %}\">
<div id=\"scrolltop\">
<div class=\"scrolltop\" style=\"display: none;\">
<span class=\"link pseudo-link\">В начало</span>
</div>
</div>
{% if not (app.user and app.user.hasRole(constant('\\\\Slivki\\\\Entity\\\\UserGroup::ROLE_ADS_FREE'))) and app.request.requestUri() != '/betera-advent' %}
<div id=\"head-banner\">
<div class=\"head-banner-section\">
<div class=\"head-banner-section-center\">
<div class=\"head-banner-container\">
{{ getTopSiteBanner(brandingBannerCategoryIDs is defined ? brandingBannerCategoryIDs : [], false) }}
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"header--top-wrapp\" style=\"min-height: 80px;\">
<div class=\"header--top\" data-spy=\"affix\" data-offset-top=\"90\">
<div class=\"header--top--head\">
<div class=\"container\">
{% if currentCategoryMonthlyVisits is defined %}
<div style=\"position: absolute; top: 84px; right: 120px;\" data-toggle=\"tooltip\"
data-placement=\"bottom\" title=\"Просмотров за месяц\">
<i class=\"slivki-icon-eye\"></i>{{ currentCategoryMonthlyVisits }}
</div>
{% endif %}
{% set currentCity = getCurrentCity() %}
<input id=\"cityName\" type=\"hidden\" value=\"{{ currentCity.getID() in [constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID'), constant('Slivki\\\\Entity\\\\City::TASHKENT_CITY_ID')] ? '/' : getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_CITY'), currentCity.getID()) }}\"/>
<a href=\"{{ currentCity.getID() in [constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID'), constant('Slivki\\\\Entity\\\\City::TASHKENT_CITY_ID')] ? '/' : getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_CITY'), currentCity.getID()) }}\"
class=\"logo\"></a>
{% block afterLogo %}{% endblock %}
{% block headerSearch %}
{% include 'header_search_block.html.twig' with {'searchIn': constant('Slivki\\\\Controller\\\\SearchController::SEARCH_OFFERS'), 'placeholder': 'Я ищу...'} %}
{% endblock %}
{% block headerCitySelector %}
{% include \"Slivki#{regional_template_path}/city_selector.html.twig\" %}
{% endblock %}
{% if app.user %}
{# user is logged in #}
<div class=\"header_top_navigation_container d-flex align-items-center\">
<div class=\"header--top-navigation\">
<ul>
<li class=\"profile-data\">
<a href=\"{{ base_url }}/profile\">{{ app.user.getPhone() ? '***' ~ app.user.getPhone()|phone[3:] : app.user.getFirstName() }}</a>
<input type=\"hidden\" id=\"userEmail\" value=\"{{ app.user.getEmail() }}\"/>
<a href=\"javascript:void(0)\" data-toggle=\"modal\" data-target=\"#modal_billing\">
{% set userBalanceCodesCount = getUserBalanceCodesCount(app.user, currentCity.getID()) %}
<span class=\"d-flex\">
<div class=\"d-none\">
(<span id=\"balance\">{{ app.user.getFullBalance()|number_format(2, ',', '') }}</span> руб)
</div>
</span>
</a>
</li>
<li class=\"header-profile-menu\">
<a id=\"header-profile-menu-opener\" href=\"javascript:void(0)\">
{#
{% set profileNotification = app.user.getNotSeenOfferOrders()|length %}
{% if profileNotification > 0 %}
<div class=\"profile-notification\">{{ profileNotification }}</div>
{% endif %}
#}
</a>
<ul>
<li class=\"item-discount\">
<a href=\"{{ base_url }}/profile\"><img class=\"side-bar-menu-icons\"
src=\"/images/promo-code.svg\"
alt=\"Промокод\">Мои промокоды
{#
{% if profileNotification > 0 %}
<div class=\"profile-notification \">{{ profileNotification }}</div>
{% endif %}
#}
</a>
</li>
<li class=\"item-profile\">
<a href=\"{{ base_url }}/profile\"><img class=\"side-bar-menu-icons\"
src=\"/images/profile-user.svg\"
alt=\"Профиль\">Личный кабинет</a>
</li>
<li>
<a href=\"{{ base_url }}/WatchList\"><img class=\"side-bar-menu-icons\"
src=\"/images/eye-new.svg\"
alt=\"Просмотренные\">Просмотренные
акции</a>
</li>
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::REPLENISHMENT_BALANCE')) %}
<li class=\"balance-replenishment\">
<a href={{ isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::VIRTUAL_WALLET_REPLENISHMENT')) ? '/profile/oplata-pay' : '/oplata'}}><img class=\"side-bar-menu-icons\"
src=\"/images/credit-card.svg\"
alt=\"Пополнить\">Пополнить
счет+бонус</a>
</li>
{% endif %}
<li>
<a href=\"{{ base_url }}/profile#profile_favorites\"><img
class=\"side-bar-menu-icons\"
src=\"/images/heart-new-profile.svg\" alt=\"Избранное\">Избранное</a>
</li>
<li class=\"item-own-offer\">
<a href=\"{{ base_url }}/moya_akciya\"
onclick=\"ga('send', 'event', 'create-own-offer-button--top-menu', 'Click', '1');\"><img
class=\"side-bar-menu-icons\" src=\"/images/add-offer-new.svg\"
alt=\"Добавить\">Создать свою акцию</a>
</li>
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MANAGER_STATISTIC') or is_granted('ROLE_MANAGER') or is_granted('ROLE_OPERATOR') or is_granted('ROLE_PUBLICIST') %}
<li>
<a href=\"{{ base_url }}/admin\"><img class=\"side-bar-menu-icons\"
alt=\"Администрирование\"
src=\"/images/admin-desk.svg\">Администрирование</a>
</li>
<li>
<a href=\"{{ base_url }}/admin/past_offers\"><img
class=\"side-bar-menu-icons\" alt=\"Прошедшее\"
src=\"/images/past-desk.svg\">Прошедшие акции</a>
</li>
<li>
<a href=\"{{ base_url }}/admin/past_sales\"><img
class=\"side-bar-menu-icons\" alt=\"Прошедшее\"
src=\"/images/past-desk.svg\">Прошедшие НС</a>
</li>
{% endif %}
{% if is_granted('ROLE_SUPPLIER') %}
<li>
<a href=\"{{ base_url }}/partner\"><img class=\"side-bar-menu-icons\"
src=\"/images/partner-new.svg\"
alt=\"Кабинет партнера\">Кабинет
партнера</a>
</li>
{% endif %}
{% if is_granted('IS_IMPERSONATOR') %}
<li class=\"item-logout\">
<a style=\"color: red;\"
href=\"{{ impersonation_exit_path(path('homepage')) }}\"><img
class=\"side-bar-menu-icons\" src=\"/images/back-arrow.svg\"
alt=\"Вернуться\">Вернутся в свой акк</a>
</li>
{% endif %}
{% if not isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::PAYMENT_PAYME')) %}
<li class=\"item-profile\">
<a href=\"{{ base_url }}/profile/subscription/manage?utm_source=main_menu\"><span style=\"font-size: 26px\">⚡</span>️Подписка</a>
</li>
{% endif %}
<li class=\"item-logout\">
<a href=\"javascript:void(0)\" data-toggle=\"modal\"
data-target=\"#logoutConfirmPopup\"><img class=\"side-bar-menu-icons\"
src=\"/images/log-out.svg\"
alt=\"Выйти\">Выйти</a>
</li>
</ul>
</li>
</ul>
</div>
{% include \"Slivki/#{regional_template_path}/translate_block.html.twig\" %}
</div>
{% else %}
{# user is not logged in #}
<div class=\"header--top-navigation\">
<ul>
<li class=\"phones mr-2\">
<a href=\"#\"> </a>
{% include \"Slivki/#{regional_template_path}/phones_header_dropdown.html.twig\" %}
</li>
<li class=\"mr-3\">
{% include \"Slivki/#{regional_template_path}/translate_block.html.twig\" %}
</li>
<li class=\"enter focus-tel login-button\" data-toggle=\"tooltip\"
data-placement=\"bottom\" title=\"Вход или регистрация\">
<a data-toggle=\"modal\" data-target=\".modal-auth\">Войти</a>
</li>
</ul>
<div class=\"profile-email\"></div>
</div>
{% endif %}
</div>
</div>
{% block headerTopMenu %}
<div {{ not app.user ? 'class=not-logged-in' }}>
{% include \"Slivki/#{regional_template_path}/header_menu.html.twig\" with {'menuSelected': constant('Slivki\\\\Entity\\\\MainMenu::MENU_ID_MAIN')} %}
</div>
{% endblock %}
</div>
</div>
</div>
{% block headerBottom %}{% endblock %}
<!--[/ignore]-->", "header.html.twig", "/mnt/data/virtwww/test/templates/header.html.twig");
}
}