<?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))) {
// 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>
";
// line 69
if ($this->extensions['Slivki\Twig\SlivkiTwigExtension']->showMyPromocodesMenuItem(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.', 69, $this->source); })()), "user", [], "any", false, false, false, 69))) {
// line 70
echo " <li class=\"item-discount\">
<a href=\"";
// line 71
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.', 71, $this->source); })()), "html", null, true);
echo "/profile\"><img class=\"side-bar-menu-icons\"
src=\"/images/promo-code.svg\"
alt=\"Промокод\">Мои промокоды
";
// line 79
echo " </a>
</li>
";
}
// line 82
echo "
<li class=\"item-profile\">
<a href=\"";
// line 84
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.', 84, $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 89
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.', 89, $this->source); })()), "html", null, true);
echo "/WatchList\"><img class=\"side-bar-menu-icons\"
src=\"/images/eye-new.svg\"
alt=\"Просмотренные\">Просмотренные
акции</a>
</li>
";
// line 94
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::REPLENISHMENT_BALANCE"))) {
// line 95
echo " <li class=\"balance-replenishment\">
<a href=\"";
// line 96
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.', 96, $this->source); })()), "html", null, true);
echo "/oplata\"><img class=\"side-bar-menu-icons\"
src=\"/images/credit-card.svg\"
alt=\"Пополнить\">Пополнить
счет+бонус</a>
</li>
";
}
// line 102
echo " <li>
<a href=\"";
// line 103
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.', 103, $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 108
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.', 108, $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 113
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 114
echo " <li>
<a href=\"";
// line 115
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.', 115, $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 120
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.', 120, $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 125
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.', 125, $this->source); })()), "html", null, true);
echo "/admin/past_sales\"><img
class=\"side-bar-menu-icons\" alt=\"Прошедшее\"
src=\"/images/past-desk.svg\">Прошедшие НС</a>
</li>
";
}
// line 130
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SUPPLIER")) {
// line 131
echo " <li>
<a href=\"";
// line 132
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.', 132, $this->source); })()), "html", null, true);
echo "/partner\"><img class=\"side-bar-menu-icons\"
src=\"/images/partner-new.svg\"
alt=\"Кабинет партнера\">Кабинет
партнера</a>
</li>
";
}
// line 138
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_IMPERSONATOR")) {
// line 139
echo " <li class=\"item-logout\">
<a style=\"color: red;\"
href=\"";
// line 141
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 146
echo " ";
if ( !$this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::PAYMENT_PAYME"))) {
// line 147
echo " <li class=\"item-profile\">
<a href=\"";
// line 148
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.', 148, $this->source); })()), "html", null, true);
echo "/profile/subscription/manage?utm_source=main_menu\"><span style=\"font-size: 26px\">⚡</span>️Подписка</a>
</li>
";
}
// line 151
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 161
$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.', 161, $this->source); })())) . "/translate_block.html.twig"), "header.html.twig", 161)->display($context);
// line 162
echo " </div>
";
} else {
// line 164
echo " ";
// line 165
echo " <div class=\"header--top-navigation\">
<ul>
<li class=\"phones mr-2\">
<a href=\"#\"> </a>
";
// 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); })())) . "/phones_header_dropdown.html.twig"), "header.html.twig", 169)->display($context);
// line 170
echo " </li>
<li class=\"mr-3\">
";
// line 172
$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.', 172, $this->source); })())) . "/translate_block.html.twig"), "header.html.twig", 172)->display($context);
// line 173
echo " </li>
<li class=\"enter focus-tel login-button\" data-toggle=\"tooltip\"
data-placement=\"bottom\" title=\"Вход или регистрация\">
<a href=\"#\" data-toggle=\"modal\" data-target=\".modal-auth\">Войти</a>
</li>
</ul>
<div class=\"profile-email\"></div>
</div>
";
}
// line 182
echo " </div>
</div>
";
// line 184
$this->displayBlock('headerTopMenu', $context, $blocks);
// line 189
echo " </div>
</div>
</div>
";
// line 193
$this->displayBlock('headerBottom', $context, $blocks);
// line 194
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 184
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 185
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.', 185, $this->source); })()), "user", [], "any", false, false, false, 185)) ? ("class=not-logged-in") : (""));
echo ">
";
// line 186
$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.', 186, $this->source); })())) . "/header_menu.html.twig"), "header.html.twig", 186)->display(twig_array_merge($context, ["menuSelected" => twig_constant("Slivki\\Entity\\MainMenu::MENU_ID_MAIN")]));
// line 187
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 193
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 ( 482 => 193, 471 => 187, 469 => 186, 464 => 185, 454 => 184, 444 => 41, 441 => 40, 431 => 39, 421 => 37, 418 => 36, 408 => 35, 390 => 34, 372 => 3, 362 => 194, 360 => 193, 354 => 189, 352 => 184, 348 => 182, 337 => 173, 335 => 172, 331 => 170, 329 => 169, 323 => 165, 321 => 164, 317 => 162, 315 => 161, 303 => 151, 297 => 148, 294 => 147, 291 => 146, 283 => 141, 279 => 139, 276 => 138, 267 => 132, 264 => 131, 261 => 130, 253 => 125, 245 => 120, 237 => 115, 234 => 114, 232 => 113, 224 => 108, 216 => 103, 213 => 102, 204 => 96, 201 => 95, 199 => 94, 191 => 89, 183 => 84, 179 => 82, 174 => 79, 168 => 71, 165 => 70, 163 => 69, 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'))) %}
<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>
{% if showMyPromocodesMenuItem(app.user) %}
<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>
{% endif %}
<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=\"{{ base_url }}/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 href=\"#\" 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/vlad-slivki/templates/header.html.twig");
}
}