<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* front/base/header/corporate/header_mobile.html.twig */
class __TwigTemplate_32c4a9deb96a6fc7150d78b127e283099b63cffcb35dc37dd383d24f1c80710c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "front/base/header/corporate/header_mobile.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/base/header/corporate/header_mobile.html.twig"));
// line 1
$context["isCorporate"] = false;
// line 2
if ((array_key_exists("routeName", $context) && (0 === CoreExtension::compare((isset($context["routeName"]) || array_key_exists("routeName", $context) ? $context["routeName"] : (function () { throw new RuntimeError('Variable "routeName" does not exist.', 2, $this->source); })()), "homepage")))) {
// line 3
yield "\t";
$context["isCorporate"] = true;
}
// line 5
$context["isImpersonate"] = true;
// line 6
yield "<header class=\"header-mobile ";
if ((isset($context["isCorporate"]) || array_key_exists("isCorporate", $context) ? $context["isCorporate"] : (function () { throw new RuntimeError('Variable "isCorporate" does not exist.', 6, $this->source); })())) {
yield "home-corporative";
}
yield "\"> <div class=\"ui container\">
\t\t<div class=\"ui grid\">
\t\t\t<div class=\"ui menu primary fixed\">
\t\t\t\t";
// line 9
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
// line 10
yield "\t\t\t\t\t";
yield from $this->loadTemplate("front/base/header/impersonate_alert.html.twig", "front/base/header/corporate/header_mobile.html.twig", 10)->unwrap()->yield(CoreExtension::merge($context, ["isCorporate" => true]));
// line 11
yield "\t\t\t\t";
}
// line 12
yield "\t\t\t\t<div class=\"header-mobile-content\">
\t\t\t\t\t<a class=\"logo\" href=\"";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((isset($context["base_url"]) || array_key_exists("base_url", $context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.', 13, $this->source); })()) . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 13, $this->source); })()), "session", [], "any", false, false, false, 13), "get", ["lang"], "method", false, false, false, 13)), "html", null, true);
yield "\">
\t\t\t\t\t\t<img src=\"https://cms.bigbuy.eu/uploads/bigbuy_logo_374c505207.svg\">
\t\t\t\t\t</a>
\t\t\t\t\t<div class=\"right menu right-menu\" data-js-navgroup=\"default\">
\t\t\t\t\t\t<div data-iso-code=\"";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "session", [], "any", false, false, false, 17), "get", ["lang"], "method", false, false, false, 17), "html", null, true);
yield "\" data-session-id=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "session", [], "any", false, false, false, 17), "getId", [], "method", false, false, false, 17), "html", null, true);
yield "\" class=\"item search ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "session", [], "any", false, false, false, 17), "get", ["isCheckout"], "method", false, false, false, 17) === true)) {
yield " hide ";
}
yield "\" id=\"elasticsearchMobile\"></div>
\t\t\t\t\t\t";
// line 18
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 18, $this->source); })()), "user", [], "any", false, false, false, 18)) {
// line 19
yield "\t\t\t\t\t\t\t<div class=\"item user-account-toggle\">
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-user fa-2xl\"></i>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
} else {
// line 23
yield "\t\t\t\t\t\t\t<div class=\"item active user-login\" data-js-btn=\"loginBtn\">
\t\t\t\t\t\t\t\t<button class=\"ui icon primary button item\">
\t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-user-plus fa-sm\"></i>
\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 29
yield "\t\t\t\t\t\t<a class=\"item ";
yield (((0 === CoreExtension::compare((isset($context["cart_number_of_products"]) || array_key_exists("cart_number_of_products", $context) ? $context["cart_number_of_products"] : (function () { throw new RuntimeError('Variable "cart_number_of_products" does not exist.', 29, $this->source); })()), 0))) ? ("disabled") : (""));
yield "\" href=\"";
(((0 === CoreExtension::compare((isset($context["cart_number_of_products"]) || array_key_exists("cart_number_of_products", $context) ? $context["cart_number_of_products"] : (function () { throw new RuntimeError('Variable "cart_number_of_products" does not exist.', 29, $this->source); })()), 0))) ? (yield "#") : (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\LegacyLinkExtension']->legacyFrontUrl("/cart/mobileCart"), "html", null, true)));
yield "\">
\t\t\t\t\t\t\t<i class=\"fa-solid fa-cart-shopping fa-2xl\"></i>
\t\t\t\t\t\t\t";
// line 31
if ((1 === CoreExtension::compare((isset($context["cart_number_of_products"]) || array_key_exists("cart_number_of_products", $context) ? $context["cart_number_of_products"] : (function () { throw new RuntimeError('Variable "cart_number_of_products" does not exist.', 31, $this->source); })()), 0))) {
// line 32
yield "\t\t\t\t\t\t\t\t<p class=\"floating label small ui cart-notify\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cart_number_of_products"]) || array_key_exists("cart_number_of_products", $context) ? $context["cart_number_of_products"] : (function () { throw new RuntimeError('Variable "cart_number_of_products" does not exist.', 32, $this->source); })()), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t";
} else {
// line 34
yield "\t\t\t\t\t\t\t\t<p class=\"floating label small ui cart-notify\">0</p>
\t\t\t\t\t\t\t";
}
// line 36
yield "\t\t\t\t\t\t</a>
\t\t\t\t\t\t<div class=\"item languages-toggle\">
\t\t\t\t\t\t\t<svg role=\"img\" class=\"icon icon--inline icon-lang\">
\t\t\t\t\t\t\t\t<use xlink:href=\"";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\LegacyLinkExtension']->legacyImageUrl(("/icons/svg-defs.svg#icon-" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 39, $this->source); })()), "session", [], "any", false, false, false, 39), "get", ["lang"], "method", false, false, false, 39))), "html", null, true);
yield "\"></use>
\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 42
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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); })()), "session", [], "any", false, false, false, 42), "get", ["isCheckout"], "method", false, false, false, 42) === false)) {
// line 43
yield "\t\t\t\t\t\t\t<div class=\"item menu-toggle\">
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-bars fa-2xl\"></i>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 47
yield "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t
\t\t\t</div>
\t\t</div>
\t</div>
\t\t";
// line 53
if ((((array_key_exists("parameters_menu", $context) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["parameters_menu"]) || array_key_exists("parameters_menu", $context) ? $context["parameters_menu"] : (function () { throw new RuntimeError('Variable "parameters_menu" does not exist.', 53, $this->source); })()), "id", [], "any", false, false, false, 53)) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["parameters_menu"]) || array_key_exists("parameters_menu", $context) ? $context["parameters_menu"] : (function () { throw new RuntimeError('Variable "parameters_menu" does not exist.', 53, $this->source); })()), "parent_id", [], "any", false, false, false, 53)) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["parameters_menu"]) || array_key_exists("parameters_menu", $context) ? $context["parameters_menu"] : (function () { throw new RuntimeError('Variable "parameters_menu" does not exist.', 53, $this->source); })()), "visibility", [], "any", false, false, false, 53))) {
// line 54
yield "\t\t\t<div class=\"ui subheader-container menu fixed ";
if ((isset($context["isImpersonate"]) || array_key_exists("isImpersonate", $context) ? $context["isImpersonate"] : (function () { throw new RuntimeError('Variable "isImpersonate" does not exist.', 54, $this->source); })())) {
yield "impersonate";
}
yield "\">
\t\t\t\t";
// line 55
yield from $this->loadTemplate("front/base/subheader.html.twig", "front/base/header/corporate/header_mobile.html.twig", 55)->unwrap()->yield($context);
// line 56
yield "\t\t\t</div>
\t\t";
}
// line 58
yield "\t";
if (Twig\Extension\CoreExtension::constant("IS_MOBILE")) {
// line 59
yield "\t\t";
yield from $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_languages.html.twig", "front/base/header/corporate/header_mobile.html.twig", 59)->unwrap()->yield($context);
// line 60
yield "\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 60, $this->source); })()), "user", [], "any", false, false, false, 60)) {
// line 61
yield "\t\t\t";
yield from $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_user.html.twig", "front/base/header/corporate/header_mobile.html.twig", 61)->unwrap()->yield($context);
// line 62
yield "\t\t";
}
// line 63
yield "\t\t";
yield from $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_pages.html.twig", "front/base/header/corporate/header_mobile.html.twig", 63)->unwrap()->yield($context);
// line 64
yield "\t";
}
// line 65
yield "
</header>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/base/header/corporate/header_mobile.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 190 => 65, 187 => 64, 184 => 63, 181 => 62, 178 => 61, 175 => 60, 172 => 59, 169 => 58, 165 => 56, 163 => 55, 156 => 54, 154 => 53, 146 => 47, 140 => 43, 138 => 42, 132 => 39, 127 => 36, 123 => 34, 117 => 32, 115 => 31, 107 => 29, 99 => 23, 93 => 19, 91 => 18, 81 => 17, 74 => 13, 71 => 12, 68 => 11, 65 => 10, 63 => 9, 54 => 6, 52 => 5, 48 => 3, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% set isCorporate = false %}
{% if routeName is defined and routeName == 'homepage' %}
\t{% set isCorporate = true %}
{% endif %}
{% set isImpersonate = true %}
<header class=\"header-mobile {% if isCorporate %}home-corporative{% endif %}\"> <div class=\"ui container\">
\t\t<div class=\"ui grid\">
\t\t\t<div class=\"ui menu primary fixed\">
\t\t\t\t{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
\t\t\t\t\t{% include 'front/base/header/impersonate_alert.html.twig' with {isCorporate: true} %}
\t\t\t\t{% endif %}
\t\t\t\t<div class=\"header-mobile-content\">
\t\t\t\t\t<a class=\"logo\" href=\"{{ base_url~app.session.get('lang') }}\">
\t\t\t\t\t\t<img src=\"https://cms.bigbuy.eu/uploads/bigbuy_logo_374c505207.svg\">
\t\t\t\t\t</a>
\t\t\t\t\t<div class=\"right menu right-menu\" data-js-navgroup=\"default\">
\t\t\t\t\t\t<div data-iso-code=\"{{ app.session.get('lang') }}\" data-session-id=\"{{ app.session.getId() }}\" class=\"item search {% if app.session.get('isCheckout') is same as (true) %} hide {% endif %}\" id=\"elasticsearchMobile\"></div>
\t\t\t\t\t\t{% if app.user %}
\t\t\t\t\t\t\t<div class=\"item user-account-toggle\">
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-user fa-2xl\"></i>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<div class=\"item active user-login\" data-js-btn=\"loginBtn\">
\t\t\t\t\t\t\t\t<button class=\"ui icon primary button item\">
\t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-user-plus fa-sm\"></i>
\t\t\t\t\t\t\t\t</button>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<a class=\"item {{ cart_number_of_products == 0 ? 'disabled' }}\" href=\"{{ cart_number_of_products == 0 ? '#' : legacy_front_url('/cart/mobileCart') }}\">
\t\t\t\t\t\t\t<i class=\"fa-solid fa-cart-shopping fa-2xl\"></i>
\t\t\t\t\t\t\t{% if cart_number_of_products > 0 %}
\t\t\t\t\t\t\t\t<p class=\"floating label small ui cart-notify\">{{ cart_number_of_products }}</p>
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<p class=\"floating label small ui cart-notify\">0</p>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</a>
\t\t\t\t\t\t<div class=\"item languages-toggle\">
\t\t\t\t\t\t\t<svg role=\"img\" class=\"icon icon--inline icon-lang\">
\t\t\t\t\t\t\t\t<use xlink:href=\"{{ legacy_image_url('/icons/svg-defs.svg#icon-'~app.session.get('lang')) }}\"></use>
\t\t\t\t\t\t\t</svg>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% if app.session.get('isCheckout') is same as (false) %}
\t\t\t\t\t\t\t<div class=\"item menu-toggle\">
\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-bars fa-2xl\"></i>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t
\t\t\t</div>
\t\t</div>
\t</div>
\t\t{% if parameters_menu is defined and parameters_menu.id and parameters_menu.parent_id and parameters_menu.visibility %}
\t\t\t<div class=\"ui subheader-container menu fixed {% if isImpersonate %}impersonate{% endif %}\">
\t\t\t\t{% include 'front/base/subheader.html.twig' %}
\t\t\t</div>
\t\t{% endif %}
\t{% if constant('IS_MOBILE') %}
\t\t{% include 'front/base/header/general/mobile/sidebar/sidebar_languages.html.twig' %}
\t\t{% if app.user %}
\t\t\t{% include 'front/base/header/general/mobile/sidebar/sidebar_user.html.twig' %}
\t\t{% endif %}
\t\t{% include 'front/base/header/general/mobile/sidebar/sidebar_pages.html.twig' %}
\t{% endif %}
</header>
", "front/base/header/corporate/header_mobile.html.twig", "/var/www/bigbuy-web/templates/front/base/header/corporate/header_mobile.html.twig");
}
}