<?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/mobile//header_menu.html.twig */
class __TwigTemplate_2e8ca86d43ecdb6947451951b23c71efe692fdae6e7bc8f52566a166442d586a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'meOnMap' => [$this, 'block_meOnMap'],
'vacancy' => [$this, 'block_vacancy'],
];
}
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/mobile//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/mobile//header_menu.html.twig"));
// line 1
echo "<nav id=\"headerMenu\" class=\"navbar\">
";
// line 2
ob_start();
// line 3
echo " <ul class=\"list-unstyled m-0 pt-1 d-flex align-items-center\">
";
// line 4
$context["currentPath"] = 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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "pathinfo", [], "any", false, false, false, 4);
// line 5
echo " <li class=\"d-flex ";
echo (((0 === twig_compare((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 5, $this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage")))) ? ("active") : (""));
echo "\"><img class=\"mr-1\" width=\"16\" src=\"/images/icon_category.svg\"/><a href=\"#\" role=\"button\" data-toggle=\"modal\" data-target=\"#offerCategoryMenuPopup\">Категории</a></li>
";
// line 6
$this->loadTemplate((("Slivki/mobile" . (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.', 6, $this->source); })())) . "/info_massage_block.html.twig"), "Slivki/mobile//header_menu.html.twig", 6)->display($context);
// line 12
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, 12), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID"))))) {
// line 13
echo " <li>
<a href=\"";
// line 14
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.', 14, $this->source); })()), "html", null, true);
echo "/avto/shinomontazh\">🛞 Шиномонтаж</a>
</li>
";
}
// line 20
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCurrentCity(), "getID", [], "method", false, false, false, 20), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID")))) {
// line 21
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.', 21, $this->source); })()), "html", null, true);
echo "/eda/dostavka-edy?utm_source=main_menu\">Доставка еды</a></li>
";
}
// line 23
echo " ";
$this->displayBlock('meOnMap', $context, $blocks);
// line 31
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SALES"))) {
// line 32
echo " <li ";
echo (((0 === twig_compare((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 32, $this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sales")))) ? ("class=\"active\"") : (""));
echo "><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.', 32, $this->source); })()), "html", null, true);
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sales");
echo "\">Новости скидок</a></li>
";
}
// line 34
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, 34), twig_constant("Slivki\\Entity\\City::DEFAULT_CITY_ID"))))) {
// line 35
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.', 35, $this->source); })()), "html", null, true);
echo "/gift\">🎁 Подарки</a></li>
";
}
// line 37
echo " ";
$context["menuItem"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getTestMenuItem(2);
// line 38
echo " ";
$context["landingUrl"] = "/subscription-landing?utm_source=slivki&utm_medium=button&utm_campaign=slivki-header-mob";
// line 39
echo " ";
if (( !(null === (isset($context["subscription"]) || array_key_exists("subscription", $context) ? $context["subscription"] : (function () { throw new RuntimeError('Variable "subscription" does not exist.', 39, $this->source); })())) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["subscription"]) || array_key_exists("subscription", $context) ? $context["subscription"] : (function () { throw new RuntimeError('Variable "subscription" does not exist.', 39, $this->source); })()), "status", [], "any", false, false, false, 39), twig_constant("Slivki\\Bundle\\SubscriptionBundle\\Enum\\SubscriptionStatus::CANCELED"))))) {
// line 40
echo " ";
$context["landingUrl"] = "/profile/subscription/manage?utm_source=main_menu";
// line 41
echo " ";
}
// line 42
echo " ";
$context["videoGuideURL"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL(twig_constant("Slivki\\Repository\\SeoRepository::RESOURCE_URL_SALE_CATEGORY"), twig_constant("Slivki\\Entity\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID"));
// line 43
echo " ";
$context["flierUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("flierLanding");
// line 44
echo " ";
$this->displayBlock('vacancy', $context, $blocks);
// line 49
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::FLIERS"))) {
// line 50
echo " <li ";
echo (((0 === twig_compare((isset($context["currentPath"]) || array_key_exists("currentPath", $context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.', 50, $this->source); })()), (isset($context["flierUrl"]) || array_key_exists("flierUrl", $context) ? $context["flierUrl"] : (function () { throw new RuntimeError('Variable "flierUrl" does not exist.', 50, $this->source); })())))) ? ("class=\"active\"") : (""));
echo "><a href=\"";
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.', 50, $this->source); })()), "html", null, true);
echo "\">Листовки</a></li>
";
}
// line 52
echo " <li>
<a href=\"/skidki-i-rasprodazhi/vakansii/brest\">Вакансии</a>
</li>
";
// line 55
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SUBSCRIPTION"))) {
// line 56
echo " <li>
<a href=\"";
// line 57
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.', 57, $this->source); })()), "html", null, true);
echo "\">⚡️ Подписка</a>
</li>
";
}
// line 60
echo " ";
if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY"))) {
// line 61
echo " <li>
<a href=\"/virtual-wallet-pay\">SlivkiPay</a>
</li>
";
}
// line 65
echo " </ul>
";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 2
echo twig_spaceless($___internal_parse_0_);
// line 67
echo "</nav>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 23
public function block_meOnMap($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", "meOnMap"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meOnMap"));
// line 24
echo " <li>
<a href=\"";
// line 25
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.', 25, $this->source); })()), "html", null, true);
echo "/map\" target=\"_blank\" class=\"d-flex pin-maps-header position-relative pr-3 py-1 violet-light-color\">
<img height=\"20\" src=\"/images/pin.svg\"/>
<span>Я на карте</span>
</a>
</li>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 44
public function block_vacancy($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", "vacancy"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "vacancy"));
// line 45
echo " <li>
<a class=\"vakansii\" href=\"";
// line 46
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.', 46, $this->source); })()), "user", [], "any", false, false, false, 46)) ? ("/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.', 46, $this->source); })()), "user", [], "any", false, false, false, 46)) ? ("data-target=\".modal-auth\" data-toggle=\"modal\"") : (""));
echo ">Баланс</a>
</li>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/mobile//header_menu.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 225 => 46, 222 => 45, 212 => 44, 196 => 25, 193 => 24, 183 => 23, 173 => 67, 171 => 2, 167 => 65, 161 => 61, 158 => 60, 152 => 57, 149 => 56, 147 => 55, 142 => 52, 134 => 50, 131 => 49, 128 => 44, 125 => 43, 122 => 42, 119 => 41, 116 => 40, 113 => 39, 110 => 38, 107 => 37, 101 => 35, 98 => 34, 89 => 32, 86 => 31, 83 => 23, 77 => 21, 74 => 20, 68 => 14, 65 => 13, 62 => 12, 60 => 6, 55 => 5, 53 => 4, 50 => 3, 48 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<nav id=\"headerMenu\" class=\"navbar\">
{% apply spaceless %}
<ul class=\"list-unstyled m-0 pt-1 d-flex align-items-center\">
{% set currentPath = app.request.pathinfo %}
<li class=\"d-flex {{ currentPath == path('homepage') ? 'active' }}\"><img class=\"mr-1\" width=\"16\" src=\"/images/icon_category.svg\"/><a href=\"#\" role=\"button\" data-toggle=\"modal\" data-target=\"#offerCategoryMenuPopup\">Категории</a></li>
{% include \"Slivki/mobile#{regional_template_path}/info_massage_block.html.twig\" %}
{# {% 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 href=\"{{ base_url }}/fest/office\" class=\"color-white\">Офисный фэст до 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 %}
{# <li>#}
{# <a href=\"{{ base_url }}/profile/external-codes/index \">МТС-БОНУС</a>#}
{# </li>#}
{% if getCurrentCity().getID() == constant('Slivki\\\\Entity\\\\City::DEFAULT_CITY_ID') %}
<li><a href=\"{{ base_url }}/eda/dostavka-edy?utm_source=main_menu\">Доставка еды</a></li>
{% endif %}
{% block meOnMap %}
<li>
<a href=\"{{ base_url }}/map\" target=\"_blank\" class=\"d-flex pin-maps-header position-relative pr-3 py-1 violet-light-color\">
<img height=\"20\" src=\"/images/pin.svg\"/>
<span>Я на карте</span>
</a>
</li>
{% endblock %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::SALES')) %}
<li {{ currentPath == path('sales') ? 'class=\"active\"' }}><a href=\"{{ base_url }}{{ path('sales') }}\">Новости скидок</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 %}
{% set menuItem = getTestMenuItem(2) %}
{% set landingUrl = '/subscription-landing?utm_source=slivki&utm_medium=button&utm_campaign=slivki-header-mob' %}
{% if subscription is not null and subscription.status == constant('Slivki\\\\Bundle\\\\SubscriptionBundle\\\\Enum\\\\SubscriptionStatus::CANCELED') %}
{% set landingUrl = '/profile/subscription/manage?utm_source=main_menu' %}
{% endif %}
{% set videoGuideURL = getURL(constant('Slivki\\\\Repository\\\\SeoRepository::RESOURCE_URL_SALE_CATEGORY'), constant('Slivki\\\\Entity\\\\Category::SALE_VIDEO_GUIDE_CATEGORY_ID')) %}
{% set flierUrl = path('flierLanding') %}
{% block vacancy %}
<li>
<a class=\"vakansii\" href=\"{{ app.user ? '/profile/oplata-pay' }}\"{{ not app.user ? 'data-target=\".modal-auth\" data-toggle=\"modal\"' : '' }}>Баланс</a>
</li>
{% endblock %}
{% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::FLIERS')) %}
<li {{ currentPath == flierUrl ? 'class=\"active\"' }}><a href=\"{{ flierUrl }}\">Листовки</a></li>
{% endif %}
<li>
<a href=\"/skidki-i-rasprodazhi/vakansii/brest\">Вакансии</a>
</li>
{% 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 %}
</nav>", "Slivki/mobile//header_menu.html.twig", "/mnt/data/virtwww/anna/templates/Slivki/mobile/header_menu.html.twig");
}
}