<?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/shop/mobile/header_shop_mobile.html.twig */
class __TwigTemplate_4c820f788d57a7d1d01024f51786ff03c0e26750fdab4795853fc0da33949e5c 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/shop/mobile/header_shop_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/shop/mobile/header_shop_mobile.html.twig"));
// line 1
yield "<header class=\"header-mobile\">
<div class=\"ui container\">
<div class=\"ui grid\">
<div class=\"ui primary menu fixed\">
";
// line 5
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
// line 6
yield "\t\t\t\t ";
yield from $this->loadTemplate("front/base/header/impersonate_alert.html.twig", "front/base/header/shop/mobile/header_shop_mobile.html.twig", 6)->unwrap()->yield(CoreExtension::merge($context, ["isCorporate" => false]));
// line 7
yield "\t\t\t ";
}
// line 8
yield " ";
if ((array_key_exists("announcement", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["announcement"]) || array_key_exists("announcement", $context) ? $context["announcement"] : (function () { throw new RuntimeError('Variable "announcement" does not exist.', 8, $this->source); })())))) {
// line 9
yield " ";
yield from $this->loadTemplate("front/base/preheader.html.twig", "front/base/header/shop/mobile/header_shop_mobile.html.twig", 9)->unwrap()->yield($context);
// line 10
yield " ";
}
// line 11
yield " <div class=\"header-mobile-content\">
<a class=\"logo\" href=\"";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\LegacyLinkExtension']->legacyFrontUrl("/tiendab2b.html"), "html", null, true);
yield "\">
<img src=\"https://cms.bigbuy.eu/uploads/bigbuy_logo_374c505207.svg\">
</a>
<div class=\"right menu \" data-js-navgroup=\"default\">
<div data-iso-code=\"";
// line 16
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.', 16, $this->source); })()), "session", [], "any", false, false, false, 16), "get", ["lang"], "method", false, false, false, 16), "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.', 16, $this->source); })()), "session", [], "any", false, false, false, 16), "getId", [], "method", false, false, false, 16), "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.', 16, $this->source); })()), "session", [], "any", false, false, false, 16), "get", ["isCheckout"], "method", false, false, false, 16) === true)) {
yield " hide ";
}
yield "\" id=\"elasticsearchMobile\"></div>
";
// line 17
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.', 17, $this->source); })()), "user", [], "any", false, false, false, 17)) {
// line 18
yield " <div class=\"item user-account-toggle\">
<i class=\"large user icon fitted\"></i>
</div>
";
} else {
// line 22
yield " <div class=\"item active\" data-js-btn=\"loginBtn\">
<i class=\"large user plus icon fitted\"></i>
</div>
";
}
// line 26
yield " <a class=\"item\"
href=\"";
// line 27
(((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.', 27, $this->source); })()), 0))) ? (yield "#") : (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\LegacyLinkExtension']->legacyFrontUrl("/cart/mobileCart"), "html", null, true)));
yield "\">
<i class=\"large shopping cart icon fitted\"></i>
";
// line 29
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.', 29, $this->source); })()), 0))) {
// line 30
yield " <b class=\"mobileToolbar-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.', 30, $this->source); })()), "html", null, true);
yield "</b>
";
} else {
// line 32
yield " <b class=\"mobileToolbar-notify\">0</b>
";
}
// line 34
yield " </a>
<div class=\"item languages-toggle\">
<svg role=\"img\" class=\"icon icon--inline icon-lang\">
<use
xlink:href=\"";
// line 38
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.', 38, $this->source); })()), "session", [], "any", false, false, false, 38), "get", ["lang"], "method", false, false, false, 38))), "html", null, true);
yield "\"></use>
</svg>
</div>
";
// line 41
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.', 41, $this->source); })()), "session", [], "any", false, false, false, 41), "get", ["isCheckout"], "method", false, false, false, 41) === false)) {
// line 42
yield " <div class=\"item menu-toggle\">
<div class=\"item menu-toggle\">
<i class=\"bb icon icon-menu\"></i>
</div>
";
}
// line 47
yield " </div>
</div>
</div>
</div>
</div>
";
// line 53
if (Twig\Extension\CoreExtension::constant("IS_MOBILE")) {
// line 54
yield " ";
yield from $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_category.html.twig", "front/base/header/shop/mobile/header_shop_mobile.html.twig", 54)->unwrap()->yield($context);
// line 55
yield " ";
yield from $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_category_child.html.twig", "front/base/header/shop/mobile/header_shop_mobile.html.twig", 55)->unwrap()->yield($context);
// line 56
yield " ";
yield from $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_category_grand_child.html.twig", "front/base/header/shop/mobile/header_shop_mobile.html.twig", 56)->unwrap()->yield($context);
// line 57
yield " ";
yield from $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_languages.html.twig", "front/base/header/shop/mobile/header_shop_mobile.html.twig", 57)->unwrap()->yield($context);
// line 58
yield " ";
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.', 58, $this->source); })()), "user", [], "any", false, false, false, 58)) {
// line 59
yield " ";
yield from $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_user.html.twig", "front/base/header/shop/mobile/header_shop_mobile.html.twig", 59)->unwrap()->yield($context);
// line 60
yield " ";
}
// line 61
yield " ";
}
// line 62
yield "
</header>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/base/header/shop/mobile/header_shop_mobile.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 176 => 62, 173 => 61, 170 => 60, 167 => 59, 164 => 58, 161 => 57, 158 => 56, 155 => 55, 152 => 54, 150 => 53, 142 => 47, 135 => 42, 133 => 41, 127 => 38, 121 => 34, 117 => 32, 111 => 30, 109 => 29, 104 => 27, 101 => 26, 95 => 22, 89 => 18, 87 => 17, 77 => 16, 70 => 12, 67 => 11, 64 => 10, 61 => 9, 58 => 8, 55 => 7, 52 => 6, 50 => 5, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<header class=\"header-mobile\">
<div class=\"ui container\">
<div class=\"ui grid\">
<div class=\"ui primary menu fixed\">
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
\t\t\t\t {% include 'front/base/header/impersonate_alert.html.twig' with {isCorporate: false} %}
\t\t\t {% endif %}
{% if announcement is defined and announcement is not empty %}
{% include 'front/base/preheader.html.twig' %}
{% endif %}
<div class=\"header-mobile-content\">
<a class=\"logo\" href=\"{{ legacy_front_url('/tiendab2b.html') }}\">
<img src=\"https://cms.bigbuy.eu/uploads/bigbuy_logo_374c505207.svg\">
</a>
<div class=\"right menu \" data-js-navgroup=\"default\">
<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>
{% if app.user %}
<div class=\"item user-account-toggle\">
<i class=\"large user icon fitted\"></i>
</div>
{% else %}
<div class=\"item active\" data-js-btn=\"loginBtn\">
<i class=\"large user plus icon fitted\"></i>
</div>
{% endif %}
<a class=\"item\"
href=\"{{ cart_number_of_products == 0 ? '#' : legacy_front_url('/cart/mobileCart') }}\">
<i class=\"large shopping cart icon fitted\"></i>
{% if cart_number_of_products > 0 %}
<b class=\"mobileToolbar-notify\">{{ cart_number_of_products }}</b>
{% else %}
<b class=\"mobileToolbar-notify\">0</b>
{% endif %}
</a>
<div class=\"item languages-toggle\">
<svg role=\"img\" class=\"icon icon--inline icon-lang\">
<use
xlink:href=\"{{ legacy_image_url('/icons/svg-defs.svg#icon-'~app.session.get('lang')) }}\"></use>
</svg>
</div>
{% if app.session.get('isCheckout') is same as (false) %}
<div class=\"item menu-toggle\">
<div class=\"item menu-toggle\">
<i class=\"bb icon icon-menu\"></i>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% if constant('IS_MOBILE') %}
{% include 'front/base/header/general/mobile/sidebar/sidebar_category.html.twig' %}
{% include 'front/base/header/general/mobile/sidebar/sidebar_category_child.html.twig' %}
{% include 'front/base/header/general/mobile/sidebar/sidebar_category_grand_child.html.twig' %}
{% include 'front/base/header/general/mobile/sidebar/sidebar_languages.html.twig' %}
{% if app.user %}
{% include 'front/base/header/general/mobile/sidebar/sidebar_user.html.twig' %}
{% endif %}
{% endif %}
</header>", "front/base/header/shop/mobile/header_shop_mobile.html.twig", "/var/www/bigbuy-web/templates/front/base/header/shop/mobile/header_shop_mobile.html.twig");
}
}