var/cache/dev/twig/13/138abda2484437fc77def0d69d3f2ae11c24cc5ef0d3dc71ad41e68d1b239824.php line 63

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* front/base/header/corporate/header_mobile.html.twig */
  15. class __TwigTemplate_32c4a9deb96a6fc7150d78b127e283099b63cffcb35dc37dd383d24f1c80710c extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/base/header/corporate/header_mobile.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/base/header/corporate/header_mobile.html.twig"));
  34.         // line 1
  35.         $context["isCorporate"] = false;
  36.         // line 2
  37.         if ((array_key_exists("routeName"$context) && (=== 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")))) {
  38.             // line 3
  39.             yield "\t";
  40.             $context["isCorporate"] = true;
  41.         }
  42.         // line 5
  43.         $context["isImpersonate"] = true;
  44.         // line 6
  45.         yield "<header class=\"header-mobile ";
  46.         if ((isset($context["isCorporate"]) || array_key_exists("isCorporate"$context) ? $context["isCorporate"] : (function () { throw new RuntimeError('Variable "isCorporate" does not exist.'6$this->source); })())) {
  47.             yield "home-corporative";
  48.         }
  49.         yield "\"> <div class=\"ui container\">
  50. \t\t<div class=\"ui grid\">
  51. \t\t\t<div class=\"ui menu primary fixed\">
  52. \t\t\t\t";
  53.         // line 9
  54.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
  55.             // line 10
  56.             yield "\t\t\t\t\t";
  57.             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]));
  58.             // line 11
  59.             yield "\t\t\t\t";
  60.         }
  61.         // line 12
  62.         yield "\t\t\t\t<div class=\"header-mobile-content\">
  63. \t\t\t\t\t<a class=\"logo\" href=\"";
  64.         // line 13
  65.         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->sourceCoreExtension::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"falsefalsefalse13), "get", ["lang"], "method"falsefalsefalse13)), "html"nulltrue);
  66.         yield "\">
  67. \t\t\t\t\t\t<img src=\"https://cms.bigbuy.eu/uploads/bigbuy_logo_374c505207.svg\">
  68. \t\t\t\t\t</a>
  69. \t\t\t\t\t<div class=\"right menu right-menu\" data-js-navgroup=\"default\">
  70. \t\t\t\t\t\t<div data-iso-code=\"";
  71.         // line 17
  72.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse17), "get", ["lang"], "method"falsefalsefalse17), "html"nulltrue);
  73.         yield "\" data-session-id=\"";
  74.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse17), "getId", [], "method"falsefalsefalse17), "html"nulltrue);
  75.         yield "\" class=\"item search ";
  76.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse17), "get", ["isCheckout"], "method"falsefalsefalse17) === true)) {
  77.             yield " hide ";
  78.         }
  79.         yield "\" id=\"elasticsearchMobile\"></div>
  80. \t\t\t\t\t\t";
  81.         // line 18
  82.         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"falsefalsefalse18)) {
  83.             // line 19
  84.             yield "\t\t\t\t\t\t\t<div class=\"item user-account-toggle\">
  85. \t\t\t\t\t\t\t\t<i class=\"fa-solid fa-user fa-2xl\"></i>
  86. \t\t\t\t\t\t\t</div>
  87. \t\t\t\t\t\t";
  88.         } else {
  89.             // line 23
  90.             yield "\t\t\t\t\t\t\t<div class=\"item active user-login\" data-js-btn=\"loginBtn\">
  91. \t\t\t\t\t\t\t\t<button class=\"ui icon primary button item\">
  92. \t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-user-plus fa-sm\"></i>
  93. \t\t\t\t\t\t\t\t</button>
  94. \t\t\t\t\t\t\t</div>
  95. \t\t\t\t\t\t";
  96.         }
  97.         // line 29
  98.         yield "\t\t\t\t\t\t<a class=\"item ";
  99.         yield (((=== 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") : (""));
  100.         yield "\" href=\"";
  101.         (((=== 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"nulltrue)));
  102.         yield "\">
  103. \t\t\t\t\t\t\t<i class=\"fa-solid fa-cart-shopping fa-2xl\"></i>
  104. \t\t\t\t\t\t\t";
  105.         // line 31
  106.         if ((=== 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))) {
  107.             // line 32
  108.             yield "\t\t\t\t\t\t\t\t<p class=\"floating label small ui cart-notify\">";
  109.             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"nulltrue);
  110.             yield "</p>
  111. \t\t\t\t\t\t\t";
  112.         } else {
  113.             // line 34
  114.             yield "\t\t\t\t\t\t\t\t<p class=\"floating label small ui cart-notify\">0</p>
  115. \t\t\t\t\t\t\t";
  116.         }
  117.         // line 36
  118.         yield "\t\t\t\t\t\t</a>
  119. \t\t\t\t\t\t<div class=\"item languages-toggle\">
  120. \t\t\t\t\t\t\t<svg role=\"img\" class=\"icon icon--inline icon-lang\">
  121. \t\t\t\t\t\t\t\t<use xlink:href=\"";
  122.         // line 39
  123.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\LegacyLinkExtension']->legacyImageUrl(("/icons/svg-defs.svg#icon-" CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse39), "get", ["lang"], "method"falsefalsefalse39))), "html"nulltrue);
  124.         yield "\"></use>
  125. \t\t\t\t\t\t\t</svg>
  126. \t\t\t\t\t\t</div>
  127. \t\t\t\t\t\t";
  128.         // line 42
  129.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse42), "get", ["isCheckout"], "method"falsefalsefalse42) === false)) {
  130.             // line 43
  131.             yield "\t\t\t\t\t\t\t<div class=\"item menu-toggle\">
  132. \t\t\t\t\t\t\t\t<i class=\"fa-solid fa-bars fa-2xl\"></i>
  133. \t\t\t\t\t\t\t</div>
  134. \t\t\t\t\t\t";
  135.         }
  136.         // line 47
  137.         yield "\t\t\t\t\t</div>
  138. \t\t\t\t</div>
  139. \t\t\t\t
  140. \t\t\t</div>
  141. \t\t</div>
  142. \t</div>
  143. \t\t";
  144.         // line 53
  145.         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"falsefalsefalse53)) && 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"falsefalsefalse53)) && 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"falsefalsefalse53))) {
  146.             // line 54
  147.             yield "\t\t\t<div class=\"ui subheader-container menu fixed ";
  148.             if ((isset($context["isImpersonate"]) || array_key_exists("isImpersonate"$context) ? $context["isImpersonate"] : (function () { throw new RuntimeError('Variable "isImpersonate" does not exist.'54$this->source); })())) {
  149.                 yield "impersonate";
  150.             }
  151.             yield "\">
  152. \t\t\t\t";
  153.             // line 55
  154.             yield from             $this->loadTemplate("front/base/subheader.html.twig""front/base/header/corporate/header_mobile.html.twig"55)->unwrap()->yield($context);
  155.             // line 56
  156.             yield "\t\t\t</div>
  157. \t\t";
  158.         }
  159.         // line 58
  160.         yield "\t";
  161.         if (Twig\Extension\CoreExtension::constant("IS_MOBILE")) {
  162.             // line 59
  163.             yield "\t\t";
  164.             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);
  165.             // line 60
  166.             yield "\t\t";
  167.             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"falsefalsefalse60)) {
  168.                 // line 61
  169.                 yield "\t\t\t";
  170.                 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);
  171.                 // line 62
  172.                 yield "\t\t";
  173.             }
  174.             // line 63
  175.             yield "\t\t";
  176.             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);
  177.             // line 64
  178.             yield "\t";
  179.         }
  180.         // line 65
  181.         yield "
  182. </header>
  183. ";
  184.         
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  186.         
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  188.         return; yield '';
  189.     }
  190.     /**
  191.      * @codeCoverageIgnore
  192.      */
  193.     public function getTemplateName()
  194.     {
  195.         return "front/base/header/corporate/header_mobile.html.twig";
  196.     }
  197.     /**
  198.      * @codeCoverageIgnore
  199.      */
  200.     public function isTraitable()
  201.     {
  202.         return false;
  203.     }
  204.     /**
  205.      * @codeCoverageIgnore
  206.      */
  207.     public function getDebugInfo()
  208.     {
  209.         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,);
  210.     }
  211.     public function getSourceContext()
  212.     {
  213.         return new Source("{% set isCorporate = false %}
  214. {% if routeName is defined and routeName == 'homepage' %}
  215. \t{% set isCorporate = true %}
  216. {% endif %}
  217. {% set isImpersonate = true %}
  218. <header class=\"header-mobile {% if isCorporate %}home-corporative{% endif %}\"> <div class=\"ui container\">
  219. \t\t<div class=\"ui grid\">
  220. \t\t\t<div class=\"ui menu primary fixed\">
  221. \t\t\t\t{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  222. \t\t\t\t\t{% include 'front/base/header/impersonate_alert.html.twig' with {isCorporate: true} %}
  223. \t\t\t\t{% endif %}
  224. \t\t\t\t<div class=\"header-mobile-content\">
  225. \t\t\t\t\t<a class=\"logo\" href=\"{{ base_url~app.session.get('lang') }}\">
  226. \t\t\t\t\t\t<img src=\"https://cms.bigbuy.eu/uploads/bigbuy_logo_374c505207.svg\">
  227. \t\t\t\t\t</a>
  228. \t\t\t\t\t<div class=\"right menu right-menu\" data-js-navgroup=\"default\">
  229. \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>
  230. \t\t\t\t\t\t{% if app.user %}
  231. \t\t\t\t\t\t\t<div class=\"item user-account-toggle\">
  232. \t\t\t\t\t\t\t\t<i class=\"fa-solid fa-user fa-2xl\"></i>
  233. \t\t\t\t\t\t\t</div>
  234. \t\t\t\t\t\t{% else %}
  235. \t\t\t\t\t\t\t<div class=\"item active user-login\" data-js-btn=\"loginBtn\">
  236. \t\t\t\t\t\t\t\t<button class=\"ui icon primary button item\">
  237. \t\t\t\t\t\t\t\t\t<i class=\"fa-solid fa-user-plus fa-sm\"></i>
  238. \t\t\t\t\t\t\t\t</button>
  239. \t\t\t\t\t\t\t</div>
  240. \t\t\t\t\t\t{% endif %}
  241. \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') }}\">
  242. \t\t\t\t\t\t\t<i class=\"fa-solid fa-cart-shopping fa-2xl\"></i>
  243. \t\t\t\t\t\t\t{% if cart_number_of_products > 0 %}
  244. \t\t\t\t\t\t\t\t<p class=\"floating label small ui cart-notify\">{{ cart_number_of_products }}</p>
  245. \t\t\t\t\t\t\t{% else %}
  246. \t\t\t\t\t\t\t\t<p class=\"floating label small ui cart-notify\">0</p>
  247. \t\t\t\t\t\t\t{% endif %}
  248. \t\t\t\t\t\t</a>
  249. \t\t\t\t\t\t<div class=\"item languages-toggle\">
  250. \t\t\t\t\t\t\t<svg role=\"img\" class=\"icon icon--inline icon-lang\">
  251. \t\t\t\t\t\t\t\t<use xlink:href=\"{{ legacy_image_url('/icons/svg-defs.svg#icon-'~app.session.get('lang')) }}\"></use>
  252. \t\t\t\t\t\t\t</svg>
  253. \t\t\t\t\t\t</div>
  254. \t\t\t\t\t\t{% if app.session.get('isCheckout') is same as (false) %}
  255. \t\t\t\t\t\t\t<div class=\"item menu-toggle\">
  256. \t\t\t\t\t\t\t\t<i class=\"fa-solid fa-bars fa-2xl\"></i>
  257. \t\t\t\t\t\t\t</div>
  258. \t\t\t\t\t\t{% endif %}
  259. \t\t\t\t\t</div>
  260. \t\t\t\t</div>
  261. \t\t\t\t
  262. \t\t\t</div>
  263. \t\t</div>
  264. \t</div>
  265. \t\t{% if parameters_menu is defined and parameters_menu.id and parameters_menu.parent_id and parameters_menu.visibility %}
  266. \t\t\t<div class=\"ui subheader-container menu fixed {% if isImpersonate %}impersonate{% endif %}\">
  267. \t\t\t\t{% include 'front/base/subheader.html.twig' %}
  268. \t\t\t</div>
  269. \t\t{% endif %}
  270. \t{% if constant('IS_MOBILE') %}
  271. \t\t{% include 'front/base/header/general/mobile/sidebar/sidebar_languages.html.twig' %}
  272. \t\t{% if app.user %}
  273. \t\t\t{% include 'front/base/header/general/mobile/sidebar/sidebar_user.html.twig' %}
  274. \t\t{% endif %}
  275. \t\t{% include 'front/base/header/general/mobile/sidebar/sidebar_pages.html.twig' %}
  276. \t{% endif %}
  277. </header>
  278. ""front/base/header/corporate/header_mobile.html.twig""/var/www/bigbuy-web/templates/front/base/header/corporate/header_mobile.html.twig");
  279.     }
  280. }