var/cache/dev/twig/51/518068afd0d185a8f08dcaad0af34c3d.php line 69

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. use Twig\TemplateWrapper;
  15. /* components/organisms/header/header.html.twig */
  16. class __TwigTemplate_2f4d3237e63d609622185a27c8e8cd20 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. 'headerClass' => [$this, 'block_headerClass'],
  30. 'headerLogo' => [$this, 'block_headerLogo'],
  31. 'headerLinks' => [$this, 'block_headerLinks'],
  32. 'headerShopNavigation' => [$this, 'block_headerShopNavigation'],
  33. 'accountStatus' => [$this, 'block_accountStatus'],
  34. 'headerNavigationBar' => [$this, 'block_headerNavigationBar'],
  35. 'headerPrint' => [$this, 'block_headerPrint'],
  36. ];
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/header/header.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/header/header.html.twig"));
  45. // line 1
  46. yield "<div class=\"header-observer\"></div>
  47. <header class=\"header";
  48. // line 3
  49. yield from $this->unwrap()->yieldBlock('headerClass', $context, $blocks);
  50. yield "\">
  51. ";
  52. // line 4
  53. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["cms_globals"] ?? null), "upper_menu", [], "any", true, true, false, 4) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), ((CoreExtension::getAttribute($this->env, $this->source, ($context["cms_globals"] ?? null), "upper_menu", [], "any", true, true, false, 4)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cms_globals"]) || array_key_exists("cms_globals", $context) ? $context["cms_globals"] : (function () { throw new RuntimeError('Variable "cms_globals" does not exist.', 4, $this->source); })()), "upper_menu", [], "any", false, false, false, 4))) : (""))) > 0))) {
  54. // line 5
  55. yield " <div class=\"header__upper\">
  56. <div class=\"header__upper--inner\">
  57. ";
  58. // line 7
  59. yield from $this->load("components/organisms/storyblok/storyblok.html.twig", 7)->unwrap()->yield(CoreExtension::merge($context, ["componentData" => ((CoreExtension::getAttribute($this->env, $this->source, // line 8
  60. ($context["cms_globals"] ?? null), "upper_menu", [], "any", true, true, false, 8)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["cms_globals"]) || array_key_exists("cms_globals", $context) ? $context["cms_globals"] : (function () { throw new RuntimeError('Variable "cms_globals" does not exist.', 8, $this->source); })()), "upper_menu", [], "any", false, false, false, 8))) : ("")), "componentConfig" => ["link-open-menu" => ["additionalClass" => "header__upper-entry"], "text-link" => ["class" => "header__upper-entry text-link--upper-menu"]]]));
  61. // line 20
  62. yield " </div>
  63. </div>
  64. ";
  65. }
  66. // line 23
  67. yield " <div class=\"header__inner\">
  68. ";
  69. // line 24
  70. yield from $this->unwrap()->yieldBlock('headerLogo', $context, $blocks);
  71. // line 46
  72. yield "
  73. ";
  74. // line 47
  75. yield from $this->unwrap()->yieldBlock('headerLinks', $context, $blocks);
  76. // line 62
  77. yield "
  78. ";
  79. // line 63
  80. yield from $this->unwrap()->yieldBlock('headerShopNavigation', $context, $blocks);
  81. // line 152
  82. yield "
  83. ";
  84. // line 153
  85. yield from $this->unwrap()->yieldBlock('headerNavigationBar', $context, $blocks);
  86. // line 158
  87. yield " ";
  88. yield from $this->unwrap()->yieldBlock('headerPrint', $context, $blocks);
  89. // line 163
  90. yield " </div>
  91. </header>
  92. ";
  93. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95. yield from [];
  96. }
  97. // line 3
  98. /**
  99. * @return iterable<null|scalar|\Stringable>
  100. */
  101. public function block_headerClass(array $context, array $blocks = []): iterable
  102. {
  103. $macros = $this->macros;
  104. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  105. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerClass"));
  106. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  107. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerClass"));
  108. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  109. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  110. yield from [];
  111. }
  112. // line 24
  113. /**
  114. * @return iterable<null|scalar|\Stringable>
  115. */
  116. public function block_headerLogo(array $context, array $blocks = []): iterable
  117. {
  118. $macros = $this->macros;
  119. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerLogo"));
  121. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerLogo"));
  123. // line 25
  124. yield " <div class=\"header__logo\">
  125. ";
  126. // line 26
  127. $context["eventArray"] = ["X_MAS" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/denios/logo_denios_x_mas.svg"), "birthdayES" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/denios/logo_es_20aniversario.svg")];
  128. // line 30
  129. yield " ";
  130. if ((($tmp = (isset($context["isPunchout"]) || array_key_exists("isPunchout", $context) ? $context["isPunchout"] : (function () { throw new RuntimeError('Variable "isPunchout" does not exist.', 30, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  131. // line 31
  132. yield " ";
  133. $context["path_logo_home"] = "app_shop";
  134. // line 32
  135. yield " ";
  136. } else {
  137. // line 33
  138. yield " ";
  139. $context["path_logo_home"] = "app_get_home";
  140. // line 34
  141. yield " ";
  142. }
  143. // line 35
  144. yield " ";
  145. yield from $this->load("components/molecules/logo/logo.html.twig", 35)->unwrap()->yield(CoreExtension::merge($context, ["class" => "logo--header", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath( // line 38
  146. (isset($context["path_logo_home"]) || array_key_exists("path_logo_home", $context) ? $context["path_logo_home"] : (function () { throw new RuntimeError('Variable "path_logo_home" does not exist.', 38, $this->source); })())), "src" => Twig\Extension\CoreExtension::default($this->extensions['App\Twig\Functions\LogoExtension']->getLogo( // line 39
  147. (isset($context["storeContext"]) || array_key_exists("storeContext", $context) ? $context["storeContext"] : (function () { throw new RuntimeError('Variable "storeContext" does not exist.', 39, $this->source); })()), $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/denios/logo_minimal.svg"), (isset($context["eventArray"]) || array_key_exists("eventArray", $context) ? $context["eventArray"] : (function () { throw new RuntimeError('Variable "eventArray" does not exist.', 39, $this->source); })())), $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/denios/logo_minimal.svg")), "srcset" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/denios/logo_minimal.svg"), "alt" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_logo_description"), "lazyload" => false]));
  148. // line 44
  149. yield " </div>
  150. ";
  151. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  152. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153. yield from [];
  154. }
  155. // line 47
  156. /**
  157. * @return iterable<null|scalar|\Stringable>
  158. */
  159. public function block_headerLinks(array $context, array $blocks = []): iterable
  160. {
  161. $macros = $this->macros;
  162. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  163. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerLinks"));
  164. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  165. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerLinks"));
  166. // line 48
  167. yield " <div class=\"header__links\">
  168. ";
  169. // line 49
  170. yield from $this->load("components/molecules/expert-advice-trigger/expert-advice-trigger.html.twig", 49)->unwrap()->yield(CoreExtension::merge($context, ["class" => "header__link-entry header__link-entry--expert-advice"]));
  171. // line 52
  172. yield "
  173. ";
  174. // line 53
  175. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ((CoreExtension::getAttribute($this->env, $this->source, ($context["storeContext"] ?? null), "languages", [], "any", true, true, false, 53)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["storeContext"]) || array_key_exists("storeContext", $context) ? $context["storeContext"] : (function () { throw new RuntimeError('Variable "storeContext" does not exist.', 53, $this->source); })()), "languages", [], "any", false, false, false, 53))) : (""))) > 1)) {
  176. // line 54
  177. yield " ";
  178. yield from $this->load("components/molecules/language-select/language-select.html.twig", 54)->unwrap()->yield(CoreExtension::merge($context, ["class" => "language-select--desktop", "current_language" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 57
  179. (isset($context["storeContext"]) || array_key_exists("storeContext", $context) ? $context["storeContext"] : (function () { throw new RuntimeError('Variable "storeContext" does not exist.', 57, $this->source); })()), "localeInfo", [], "any", false, false, false, 57), "currentLocale", [], "any", false, false, false, 57), "languages" => CoreExtension::getAttribute($this->env, $this->source, // line 58
  180. (isset($context["storeContext"]) || array_key_exists("storeContext", $context) ? $context["storeContext"] : (function () { throw new RuntimeError('Variable "storeContext" does not exist.', 58, $this->source); })()), "languages", [], "any", false, false, false, 58)]));
  181. // line 59
  182. yield " ";
  183. }
  184. // line 60
  185. yield " </div>
  186. ";
  187. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  188. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  189. yield from [];
  190. }
  191. // line 63
  192. /**
  193. * @return iterable<null|scalar|\Stringable>
  194. */
  195. public function block_headerShopNavigation(array $context, array $blocks = []): iterable
  196. {
  197. $macros = $this->macros;
  198. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerShopNavigation"));
  200. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerShopNavigation"));
  202. // line 64
  203. yield " <div class=\"header__shop-navigation\">
  204. ";
  205. // line 65
  206. if ((($tmp = !(isset($context["isPunchout"]) || array_key_exists("isPunchout", $context) ? $context["isPunchout"] : (function () { throw new RuntimeError('Variable "isPunchout" does not exist.', 65, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  207. // line 66
  208. yield " <div class=\"header__shop-action\">
  209. ";
  210. // line 67
  211. yield from $this->load("components/organisms/header/header.html.twig", 67, "2077910619")->unwrap()->yield(CoreExtension::merge($context, ["class" => ("icon-link--shop-action icon-link--account js-shop-action-account" . (((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 68
  212. (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 68, $this->source); })()), "user", [], "any", false, false, false, 68)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" icon-link--active") : (" js-offside"))), "href" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_get_account"), "attributes" => ["data-offside-component" => "accountMenu", "data-collapse-close-on-body" => "true", "data-offside-sliding-side" => "right", "title" => (((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 74
  213. (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 74, $this->source); })()), "user", [], "any", false, false, false, 74)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_account_label")) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_account_label_logged_out"))), "aria-label" => (((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 75
  214. (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 75, $this->source); })()), "user", [], "any", false, false, false, 75)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_account_label")) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_account_label_logged_out")))]]));
  215. // line 88
  216. yield "
  217. ";
  218. // line 89
  219. yield from $this->unwrap()->yieldBlock('accountStatus', $context, $blocks);
  220. // line 95
  221. yield " </div>
  222. <div class=\"header__shop-action\">
  223. ";
  224. // line 98
  225. yield from $this->load("components/organisms/header/header.html.twig", 98, "1056644019")->unwrap()->yield(CoreExtension::merge($context, ["class" => "icon-link--shop-action", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_get_account_shopping_list"), "attributes" => ["aria-label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_note_label"), "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_note_label")]]));
  226. // line 121
  227. yield " </div>
  228. ";
  229. }
  230. // line 123
  231. yield " <div class=\"header__shop-action\">
  232. ";
  233. // line 124
  234. if ((array_key_exists("cart", $context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["cart"]) || array_key_exists("cart", $context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.', 124, $this->source); })()), "lineItems", [], "any", false, false, false, 124)) > 0))) {
  235. // line 125
  236. yield " ";
  237. $context["ariaLabelCart"] = (((". " . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("line_item_header_quantity")) . ": ") . Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["cart"]) || array_key_exists("cart", $context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.', 125, $this->source); })()), "lineItems", [], "any", false, false, false, 125)));
  238. // line 126
  239. yield " ";
  240. }
  241. // line 127
  242. yield " ";
  243. yield from $this->load("components/organisms/header/header.html.twig", 127, "167312584")->unwrap()->yield(CoreExtension::merge($context, ["class" => "icon-link--shop-action", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("checkout_cart_index"), "attributes" => ["aria-label" => ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("off_canvas_cart_go_to_cart") . (( // line 131
  244. array_key_exists("ariaLabelCart", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["ariaLabelCart"]) || array_key_exists("ariaLabelCart", $context) ? $context["ariaLabelCart"] : (function () { throw new RuntimeError('Variable "ariaLabelCart" does not exist.', 131, $this->source); })()))) : (""))), "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("off_canvas_cart_go_to_cart")]]));
  245. // line 149
  246. yield " </div>
  247. </div>
  248. ";
  249. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  250. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  251. yield from [];
  252. }
  253. // line 89
  254. /**
  255. * @return iterable<null|scalar|\Stringable>
  256. */
  257. public function block_accountStatus(array $context, array $blocks = []): iterable
  258. {
  259. $macros = $this->macros;
  260. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  261. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "accountStatus"));
  262. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  263. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "accountStatus"));
  264. // line 90
  265. yield " ";
  266. // line 91
  267. yield " ";
  268. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  269. // line 92
  270. yield " <div class=\"account__user-logged-in-status\" data-gtm-user-email=\"";
  271. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "email", [], "any", true, true, false, 92)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 92, $this->source); })()), "email", [], "any", false, false, false, 92), "")) : ("")), "html", null, true);
  272. yield "\"></div>
  273. ";
  274. }
  275. // line 94
  276. yield " ";
  277. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  278. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  279. yield from [];
  280. }
  281. // line 153
  282. /**
  283. * @return iterable<null|scalar|\Stringable>
  284. */
  285. public function block_headerNavigationBar(array $context, array $blocks = []): iterable
  286. {
  287. $macros = $this->macros;
  288. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  289. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerNavigationBar"));
  290. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  291. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerNavigationBar"));
  292. // line 154
  293. yield " <div class=\"header__navigation-bar\">
  294. ";
  295. // line 155
  296. yield from $this->load("components/organisms/navigation-bar/navigation-bar.html.twig", 155)->unwrap()->yield($context);
  297. // line 156
  298. yield " </div>
  299. ";
  300. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  301. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  302. yield from [];
  303. }
  304. // line 158
  305. /**
  306. * @return iterable<null|scalar|\Stringable>
  307. */
  308. public function block_headerPrint(array $context, array $blocks = []): iterable
  309. {
  310. $macros = $this->macros;
  311. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  312. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerPrint"));
  313. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  314. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headerPrint"));
  315. // line 159
  316. yield " <div class=\"header__contact\">
  317. ";
  318. // line 160
  319. yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_contact_print");
  320. yield "
  321. </div>
  322. ";
  323. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  324. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  325. yield from [];
  326. }
  327. /**
  328. * @codeCoverageIgnore
  329. */
  330. public function getTemplateName(): string
  331. {
  332. return "components/organisms/header/header.html.twig";
  333. }
  334. /**
  335. * @codeCoverageIgnore
  336. */
  337. public function isTraitable(): bool
  338. {
  339. return false;
  340. }
  341. /**
  342. * @codeCoverageIgnore
  343. */
  344. public function getDebugInfo(): array
  345. {
  346. return array ( 379 => 160, 376 => 159, 363 => 158, 351 => 156, 349 => 155, 346 => 154, 333 => 153, 322 => 94, 316 => 92, 313 => 91, 311 => 90, 298 => 89, 285 => 149, 283 => 131, 281 => 127, 278 => 126, 275 => 125, 273 => 124, 270 => 123, 266 => 121, 264 => 98, 259 => 95, 257 => 89, 254 => 88, 252 => 75, 251 => 74, 250 => 68, 249 => 67, 246 => 66, 244 => 65, 241 => 64, 228 => 63, 216 => 60, 213 => 59, 211 => 58, 210 => 57, 208 => 54, 206 => 53, 203 => 52, 201 => 49, 198 => 48, 185 => 47, 173 => 44, 171 => 39, 170 => 38, 168 => 35, 165 => 34, 162 => 33, 159 => 32, 156 => 31, 153 => 30, 151 => 26, 148 => 25, 135 => 24, 113 => 3, 100 => 163, 97 => 158, 95 => 153, 92 => 152, 90 => 63, 87 => 62, 85 => 47, 82 => 46, 80 => 24, 77 => 23, 72 => 20, 70 => 8, 69 => 7, 65 => 5, 63 => 4, 59 => 3, 55 => 1,);
  347. }
  348. public function getSourceContext(): Source
  349. {
  350. return new Source("<div class=\"header-observer\"></div>
  351. <header class=\"header{% block headerClass %}{% endblock %}\">
  352. {% if cms_globals.upper_menu is defined and cms_globals.upper_menu|default|length > 0 %}
  353. <div class=\"header__upper\">
  354. <div class=\"header__upper--inner\">
  355. {% include 'components/organisms/storyblok/storyblok.html.twig' with {
  356. 'componentData': cms_globals.upper_menu|default,
  357. 'componentConfig': {
  358. 'link-open-menu': {
  359. additionalClass: 'header__upper-entry',
  360. },
  361. 'text-link': {
  362. class: 'header__upper-entry text-link--upper-menu',
  363. },
  364. }
  365. }
  366. %}
  367. </div>
  368. </div>
  369. {% endif %}
  370. <div class=\"header__inner\">
  371. {% block headerLogo %}
  372. <div class=\"header__logo\">
  373. {% set eventArray = {
  374. 'X_MAS' : asset('build/images/denios/logo_denios_x_mas.svg'),
  375. 'birthdayES':asset('build/images/denios/logo_es_20aniversario.svg')
  376. } %}
  377. {% if isPunchout %}
  378. {% set path_logo_home = 'app_shop' %}
  379. {% else %}
  380. {% set path_logo_home = 'app_get_home' %}
  381. {% endif %}
  382. {% include 'components/molecules/logo/logo.html.twig'
  383. with {
  384. 'class': 'logo--header',
  385. 'href': path(path_logo_home),
  386. 'src': getLogo(storeContext, asset('build/images/denios/logo_minimal.svg'), eventArray )|default(asset('build/images/denios/logo_minimal.svg')),
  387. 'srcset': asset('build/images/denios/logo_minimal.svg'),
  388. 'alt': 'header_logo_description'|trans,
  389. 'lazyload':false
  390. } %}
  391. </div>
  392. {% endblock %}
  393. {% block headerLinks %}
  394. <div class=\"header__links\">
  395. {% include 'components/molecules/expert-advice-trigger/expert-advice-trigger.html.twig' with {
  396. 'class': 'header__link-entry header__link-entry--expert-advice',
  397. }%}
  398. {% if storeContext.languages|default|length > 1 %}
  399. {% include 'components/molecules/language-select/language-select.html.twig'
  400. with {
  401. 'class': 'language-select--desktop',
  402. 'current_language': storeContext.localeInfo.currentLocale,
  403. 'languages': storeContext.languages} %}
  404. {% endif %}
  405. </div>
  406. {% endblock %}
  407. {% block headerShopNavigation %}
  408. <div class=\"header__shop-navigation\">
  409. {% if not isPunchout %}
  410. <div class=\"header__shop-action\">
  411. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  412. 'class': 'icon-link--shop-action icon-link--account js-shop-action-account' ~ ((app.user) ? ' icon-link--active' : ' js-offside'),
  413. 'href': path('app_get_account'),
  414. 'attributes': {
  415. 'data-offside-component': 'accountMenu',
  416. 'data-collapse-close-on-body': 'true',
  417. 'data-offside-sliding-side': 'right',
  418. 'title': ((app.user) ? 'header_account_label'|trans : 'header_account_label_logged_out'|trans),
  419. 'aria-label': ((app.user) ? 'header_account_label'|trans : 'header_account_label_logged_out'|trans),
  420. }
  421. } %}
  422. {% block icon %}
  423. <div class=\"icon-link__icon icon-link__account\" aria-hidden=\"true\" title=\"{{ 'header_account_label'|trans}}\">
  424. {% include 'components/atoms/badge/badge.html.twig' with {
  425. 'class': 'badge--check ' ~ ((app.user) ? '' : 'badge--hide'),
  426. } %}
  427. </div>
  428. {% endblock %}
  429. {% block linkText %}
  430. {% endblock %}
  431. {% endembed %}
  432. {% block accountStatus %}
  433. {# User email should be a data attribute in a div on every page (see DO-355) #}
  434. {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  435. <div class=\"account__user-logged-in-status\" data-gtm-user-email=\"{{ user.email|default('')}}\"></div>
  436. {% endif %}
  437. {% endblock %}
  438. </div>
  439. <div class=\"header__shop-action\">
  440. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  441. 'class': 'icon-link--shop-action',
  442. 'href': path('app_get_account_shopping_list'),
  443. 'attributes' : {
  444. 'aria-label': 'header_note_label'|trans,
  445. 'title': 'header_note_label'|trans,
  446. }
  447. } %}
  448. {% block icon %}
  449. <div class=\"icon-link__icon icon-link__shopping-list\" title=\"{{ 'shopping_list_forwarded_headline'|trans}}\">
  450. {% set shopping_list_product_count = shopping_list_product_count() %}
  451. {% if shopping_list_product_count > 0 %}
  452. {% include 'components/atoms/badge/badge.html.twig' with {
  453. 'class': 'badge--header',
  454. 'content': shopping_list_product_count
  455. } %}
  456. {% endif %}
  457. </div>
  458. {% endblock %}
  459. {% block linkText %}
  460. {% endblock %}
  461. {% endembed %}
  462. </div>
  463. {% endif %}
  464. <div class=\"header__shop-action\">
  465. {% if cart is defined and cart.lineItems|length > 0 %}
  466. {% set ariaLabelCart= '. ' ~ 'line_item_header_quantity'|trans ~': '~ cart.lineItems|length %}
  467. {% endif %}
  468. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  469. 'class': 'icon-link--shop-action',
  470. 'href': path('checkout_cart_index'),
  471. 'attributes' : {
  472. 'aria-label': 'off_canvas_cart_go_to_cart'|trans ~ ariaLabelCart|default,
  473. 'title': 'off_canvas_cart_go_to_cart'|trans,
  474. }
  475. } %}
  476. {% block icon %}
  477. <div class=\"icon-link__icon icon-link__icon--cart\" title=\"{{ 'header_cart_label'|trans }}\">
  478. {% if cart is defined and cart.lineItems|length > 0 %}
  479. {% include 'components/atoms/badge/badge.html.twig' with {
  480. 'class': 'badge--header js-badge-cart',
  481. 'content': cart.lineItems|length
  482. } %}
  483. {% endif %}
  484. </div>
  485. {% endblock %}
  486. {% block linkText %}
  487. {% endblock %}
  488. {% endembed %}
  489. </div>
  490. </div>
  491. {% endblock %}
  492. {% block headerNavigationBar %}
  493. <div class=\"header__navigation-bar\">
  494. {% include 'components/organisms/navigation-bar/navigation-bar.html.twig' %}
  495. </div>
  496. {% endblock %}
  497. {% block headerPrint %}
  498. <div class=\"header__contact\">
  499. {{ 'header_contact_print'|trans|raw }}
  500. </div>
  501. {% endblock %}
  502. </div>
  503. </header>
  504. ", "components/organisms/header/header.html.twig", "/var/www/html/templates/default/components/organisms/header/header.html.twig");
  505. }
  506. }
  507. /* components/organisms/header/header.html.twig */
  508. class __TwigTemplate_2f4d3237e63d609622185a27c8e8cd20___2077910619 extends Template
  509. {
  510. private Source $source;
  511. /**
  512. * @var array<string, Template>
  513. */
  514. private array $macros = [];
  515. public function __construct(Environment $env)
  516. {
  517. parent::__construct($env);
  518. $this->source = $this->getSourceContext();
  519. $this->blocks = [
  520. 'icon' => [$this, 'block_icon'],
  521. 'linkText' => [$this, 'block_linkText'],
  522. ];
  523. }
  524. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  525. {
  526. // line 67
  527. return "components/molecules/icon-link/icon-link.html.twig";
  528. }
  529. protected function doDisplay(array $context, array $blocks = []): iterable
  530. {
  531. $macros = $this->macros;
  532. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  533. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/header/header.html.twig"));
  534. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  535. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/header/header.html.twig"));
  536. $this->parent = $this->load("components/molecules/icon-link/icon-link.html.twig", 67);
  537. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  538. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  539. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  540. }
  541. // line 78
  542. /**
  543. * @return iterable<null|scalar|\Stringable>
  544. */
  545. public function block_icon(array $context, array $blocks = []): iterable
  546. {
  547. $macros = $this->macros;
  548. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  549. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "icon"));
  550. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  551. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "icon"));
  552. // line 79
  553. yield " <div class=\"icon-link__icon icon-link__account\" aria-hidden=\"true\" title=\"";
  554. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_account_label"), "html", null, true);
  555. yield "\">
  556. ";
  557. // line 80
  558. yield from $this->load("components/atoms/badge/badge.html.twig", 80)->unwrap()->yield(CoreExtension::merge($context, ["class" => ("badge--check " . (((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 81
  559. (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 81, $this->source); })()), "user", [], "any", false, false, false, 81)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("") : ("badge--hide")))]));
  560. // line 83
  561. yield " </div>
  562. ";
  563. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  564. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  565. yield from [];
  566. }
  567. // line 85
  568. /**
  569. * @return iterable<null|scalar|\Stringable>
  570. */
  571. public function block_linkText(array $context, array $blocks = []): iterable
  572. {
  573. $macros = $this->macros;
  574. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  575. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "linkText"));
  576. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  577. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "linkText"));
  578. // line 86
  579. yield " ";
  580. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  581. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  582. yield from [];
  583. }
  584. /**
  585. * @codeCoverageIgnore
  586. */
  587. public function getTemplateName(): string
  588. {
  589. return "components/organisms/header/header.html.twig";
  590. }
  591. /**
  592. * @codeCoverageIgnore
  593. */
  594. public function isTraitable(): bool
  595. {
  596. return false;
  597. }
  598. /**
  599. * @codeCoverageIgnore
  600. */
  601. public function getDebugInfo(): array
  602. {
  603. return array ( 680 => 86, 667 => 85, 655 => 83, 653 => 81, 652 => 80, 647 => 79, 634 => 78, 611 => 67, 379 => 160, 376 => 159, 363 => 158, 351 => 156, 349 => 155, 346 => 154, 333 => 153, 322 => 94, 316 => 92, 313 => 91, 311 => 90, 298 => 89, 285 => 149, 283 => 131, 281 => 127, 278 => 126, 275 => 125, 273 => 124, 270 => 123, 266 => 121, 264 => 98, 259 => 95, 257 => 89, 254 => 88, 252 => 75, 251 => 74, 250 => 68, 249 => 67, 246 => 66, 244 => 65, 241 => 64, 228 => 63, 216 => 60, 213 => 59, 211 => 58, 210 => 57, 208 => 54, 206 => 53, 203 => 52, 201 => 49, 198 => 48, 185 => 47, 173 => 44, 171 => 39, 170 => 38, 168 => 35, 165 => 34, 162 => 33, 159 => 32, 156 => 31, 153 => 30, 151 => 26, 148 => 25, 135 => 24, 113 => 3, 100 => 163, 97 => 158, 95 => 153, 92 => 152, 90 => 63, 87 => 62, 85 => 47, 82 => 46, 80 => 24, 77 => 23, 72 => 20, 70 => 8, 69 => 7, 65 => 5, 63 => 4, 59 => 3, 55 => 1,);
  604. }
  605. public function getSourceContext(): Source
  606. {
  607. return new Source("<div class=\"header-observer\"></div>
  608. <header class=\"header{% block headerClass %}{% endblock %}\">
  609. {% if cms_globals.upper_menu is defined and cms_globals.upper_menu|default|length > 0 %}
  610. <div class=\"header__upper\">
  611. <div class=\"header__upper--inner\">
  612. {% include 'components/organisms/storyblok/storyblok.html.twig' with {
  613. 'componentData': cms_globals.upper_menu|default,
  614. 'componentConfig': {
  615. 'link-open-menu': {
  616. additionalClass: 'header__upper-entry',
  617. },
  618. 'text-link': {
  619. class: 'header__upper-entry text-link--upper-menu',
  620. },
  621. }
  622. }
  623. %}
  624. </div>
  625. </div>
  626. {% endif %}
  627. <div class=\"header__inner\">
  628. {% block headerLogo %}
  629. <div class=\"header__logo\">
  630. {% set eventArray = {
  631. 'X_MAS' : asset('build/images/denios/logo_denios_x_mas.svg'),
  632. 'birthdayES':asset('build/images/denios/logo_es_20aniversario.svg')
  633. } %}
  634. {% if isPunchout %}
  635. {% set path_logo_home = 'app_shop' %}
  636. {% else %}
  637. {% set path_logo_home = 'app_get_home' %}
  638. {% endif %}
  639. {% include 'components/molecules/logo/logo.html.twig'
  640. with {
  641. 'class': 'logo--header',
  642. 'href': path(path_logo_home),
  643. 'src': getLogo(storeContext, asset('build/images/denios/logo_minimal.svg'), eventArray )|default(asset('build/images/denios/logo_minimal.svg')),
  644. 'srcset': asset('build/images/denios/logo_minimal.svg'),
  645. 'alt': 'header_logo_description'|trans,
  646. 'lazyload':false
  647. } %}
  648. </div>
  649. {% endblock %}
  650. {% block headerLinks %}
  651. <div class=\"header__links\">
  652. {% include 'components/molecules/expert-advice-trigger/expert-advice-trigger.html.twig' with {
  653. 'class': 'header__link-entry header__link-entry--expert-advice',
  654. }%}
  655. {% if storeContext.languages|default|length > 1 %}
  656. {% include 'components/molecules/language-select/language-select.html.twig'
  657. with {
  658. 'class': 'language-select--desktop',
  659. 'current_language': storeContext.localeInfo.currentLocale,
  660. 'languages': storeContext.languages} %}
  661. {% endif %}
  662. </div>
  663. {% endblock %}
  664. {% block headerShopNavigation %}
  665. <div class=\"header__shop-navigation\">
  666. {% if not isPunchout %}
  667. <div class=\"header__shop-action\">
  668. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  669. 'class': 'icon-link--shop-action icon-link--account js-shop-action-account' ~ ((app.user) ? ' icon-link--active' : ' js-offside'),
  670. 'href': path('app_get_account'),
  671. 'attributes': {
  672. 'data-offside-component': 'accountMenu',
  673. 'data-collapse-close-on-body': 'true',
  674. 'data-offside-sliding-side': 'right',
  675. 'title': ((app.user) ? 'header_account_label'|trans : 'header_account_label_logged_out'|trans),
  676. 'aria-label': ((app.user) ? 'header_account_label'|trans : 'header_account_label_logged_out'|trans),
  677. }
  678. } %}
  679. {% block icon %}
  680. <div class=\"icon-link__icon icon-link__account\" aria-hidden=\"true\" title=\"{{ 'header_account_label'|trans}}\">
  681. {% include 'components/atoms/badge/badge.html.twig' with {
  682. 'class': 'badge--check ' ~ ((app.user) ? '' : 'badge--hide'),
  683. } %}
  684. </div>
  685. {% endblock %}
  686. {% block linkText %}
  687. {% endblock %}
  688. {% endembed %}
  689. {% block accountStatus %}
  690. {# User email should be a data attribute in a div on every page (see DO-355) #}
  691. {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  692. <div class=\"account__user-logged-in-status\" data-gtm-user-email=\"{{ user.email|default('')}}\"></div>
  693. {% endif %}
  694. {% endblock %}
  695. </div>
  696. <div class=\"header__shop-action\">
  697. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  698. 'class': 'icon-link--shop-action',
  699. 'href': path('app_get_account_shopping_list'),
  700. 'attributes' : {
  701. 'aria-label': 'header_note_label'|trans,
  702. 'title': 'header_note_label'|trans,
  703. }
  704. } %}
  705. {% block icon %}
  706. <div class=\"icon-link__icon icon-link__shopping-list\" title=\"{{ 'shopping_list_forwarded_headline'|trans}}\">
  707. {% set shopping_list_product_count = shopping_list_product_count() %}
  708. {% if shopping_list_product_count > 0 %}
  709. {% include 'components/atoms/badge/badge.html.twig' with {
  710. 'class': 'badge--header',
  711. 'content': shopping_list_product_count
  712. } %}
  713. {% endif %}
  714. </div>
  715. {% endblock %}
  716. {% block linkText %}
  717. {% endblock %}
  718. {% endembed %}
  719. </div>
  720. {% endif %}
  721. <div class=\"header__shop-action\">
  722. {% if cart is defined and cart.lineItems|length > 0 %}
  723. {% set ariaLabelCart= '. ' ~ 'line_item_header_quantity'|trans ~': '~ cart.lineItems|length %}
  724. {% endif %}
  725. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  726. 'class': 'icon-link--shop-action',
  727. 'href': path('checkout_cart_index'),
  728. 'attributes' : {
  729. 'aria-label': 'off_canvas_cart_go_to_cart'|trans ~ ariaLabelCart|default,
  730. 'title': 'off_canvas_cart_go_to_cart'|trans,
  731. }
  732. } %}
  733. {% block icon %}
  734. <div class=\"icon-link__icon icon-link__icon--cart\" title=\"{{ 'header_cart_label'|trans }}\">
  735. {% if cart is defined and cart.lineItems|length > 0 %}
  736. {% include 'components/atoms/badge/badge.html.twig' with {
  737. 'class': 'badge--header js-badge-cart',
  738. 'content': cart.lineItems|length
  739. } %}
  740. {% endif %}
  741. </div>
  742. {% endblock %}
  743. {% block linkText %}
  744. {% endblock %}
  745. {% endembed %}
  746. </div>
  747. </div>
  748. {% endblock %}
  749. {% block headerNavigationBar %}
  750. <div class=\"header__navigation-bar\">
  751. {% include 'components/organisms/navigation-bar/navigation-bar.html.twig' %}
  752. </div>
  753. {% endblock %}
  754. {% block headerPrint %}
  755. <div class=\"header__contact\">
  756. {{ 'header_contact_print'|trans|raw }}
  757. </div>
  758. {% endblock %}
  759. </div>
  760. </header>
  761. ", "components/organisms/header/header.html.twig", "/var/www/html/templates/default/components/organisms/header/header.html.twig");
  762. }
  763. }
  764. /* components/organisms/header/header.html.twig */
  765. class __TwigTemplate_2f4d3237e63d609622185a27c8e8cd20___1056644019 extends Template
  766. {
  767. private Source $source;
  768. /**
  769. * @var array<string, Template>
  770. */
  771. private array $macros = [];
  772. public function __construct(Environment $env)
  773. {
  774. parent::__construct($env);
  775. $this->source = $this->getSourceContext();
  776. $this->blocks = [
  777. 'icon' => [$this, 'block_icon'],
  778. 'linkText' => [$this, 'block_linkText'],
  779. ];
  780. }
  781. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  782. {
  783. // line 98
  784. return "components/molecules/icon-link/icon-link.html.twig";
  785. }
  786. protected function doDisplay(array $context, array $blocks = []): iterable
  787. {
  788. $macros = $this->macros;
  789. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  790. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/header/header.html.twig"));
  791. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  792. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/header/header.html.twig"));
  793. $this->parent = $this->load("components/molecules/icon-link/icon-link.html.twig", 98);
  794. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  795. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  796. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  797. }
  798. // line 106
  799. /**
  800. * @return iterable<null|scalar|\Stringable>
  801. */
  802. public function block_icon(array $context, array $blocks = []): iterable
  803. {
  804. $macros = $this->macros;
  805. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  806. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "icon"));
  807. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  808. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "icon"));
  809. // line 107
  810. yield " <div class=\"icon-link__icon icon-link__shopping-list\" title=\"";
  811. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("shopping_list_forwarded_headline"), "html", null, true);
  812. yield "\">
  813. ";
  814. // line 108
  815. $context["shopping_list_product_count"] = $this->env->getFunction('shopping_list_product_count')->getCallable()();
  816. // line 109
  817. yield " ";
  818. if (((isset($context["shopping_list_product_count"]) || array_key_exists("shopping_list_product_count", $context) ? $context["shopping_list_product_count"] : (function () { throw new RuntimeError('Variable "shopping_list_product_count" does not exist.', 109, $this->source); })()) > 0)) {
  819. // line 110
  820. yield " ";
  821. yield from $this->load("components/atoms/badge/badge.html.twig", 110)->unwrap()->yield(CoreExtension::merge($context, ["class" => "badge--header", "content" => // line 112
  822. (isset($context["shopping_list_product_count"]) || array_key_exists("shopping_list_product_count", $context) ? $context["shopping_list_product_count"] : (function () { throw new RuntimeError('Variable "shopping_list_product_count" does not exist.', 112, $this->source); })())]));
  823. // line 114
  824. yield " ";
  825. }
  826. // line 115
  827. yield " </div>
  828. ";
  829. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  830. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  831. yield from [];
  832. }
  833. // line 118
  834. /**
  835. * @return iterable<null|scalar|\Stringable>
  836. */
  837. public function block_linkText(array $context, array $blocks = []): iterable
  838. {
  839. $macros = $this->macros;
  840. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  841. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "linkText"));
  842. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  843. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "linkText"));
  844. // line 119
  845. yield " ";
  846. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  847. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  848. yield from [];
  849. }
  850. /**
  851. * @codeCoverageIgnore
  852. */
  853. public function getTemplateName(): string
  854. {
  855. return "components/organisms/header/header.html.twig";
  856. }
  857. /**
  858. * @codeCoverageIgnore
  859. */
  860. public function isTraitable(): bool
  861. {
  862. return false;
  863. }
  864. /**
  865. * @codeCoverageIgnore
  866. */
  867. public function getDebugInfo(): array
  868. {
  869. return array ( 987 => 119, 974 => 118, 962 => 115, 959 => 114, 957 => 112, 955 => 110, 952 => 109, 950 => 108, 945 => 107, 932 => 106, 909 => 98, 680 => 86, 667 => 85, 655 => 83, 653 => 81, 652 => 80, 647 => 79, 634 => 78, 611 => 67, 379 => 160, 376 => 159, 363 => 158, 351 => 156, 349 => 155, 346 => 154, 333 => 153, 322 => 94, 316 => 92, 313 => 91, 311 => 90, 298 => 89, 285 => 149, 283 => 131, 281 => 127, 278 => 126, 275 => 125, 273 => 124, 270 => 123, 266 => 121, 264 => 98, 259 => 95, 257 => 89, 254 => 88, 252 => 75, 251 => 74, 250 => 68, 249 => 67, 246 => 66, 244 => 65, 241 => 64, 228 => 63, 216 => 60, 213 => 59, 211 => 58, 210 => 57, 208 => 54, 206 => 53, 203 => 52, 201 => 49, 198 => 48, 185 => 47, 173 => 44, 171 => 39, 170 => 38, 168 => 35, 165 => 34, 162 => 33, 159 => 32, 156 => 31, 153 => 30, 151 => 26, 148 => 25, 135 => 24, 113 => 3, 100 => 163, 97 => 158, 95 => 153, 92 => 152, 90 => 63, 87 => 62, 85 => 47, 82 => 46, 80 => 24, 77 => 23, 72 => 20, 70 => 8, 69 => 7, 65 => 5, 63 => 4, 59 => 3, 55 => 1,);
  870. }
  871. public function getSourceContext(): Source
  872. {
  873. return new Source("<div class=\"header-observer\"></div>
  874. <header class=\"header{% block headerClass %}{% endblock %}\">
  875. {% if cms_globals.upper_menu is defined and cms_globals.upper_menu|default|length > 0 %}
  876. <div class=\"header__upper\">
  877. <div class=\"header__upper--inner\">
  878. {% include 'components/organisms/storyblok/storyblok.html.twig' with {
  879. 'componentData': cms_globals.upper_menu|default,
  880. 'componentConfig': {
  881. 'link-open-menu': {
  882. additionalClass: 'header__upper-entry',
  883. },
  884. 'text-link': {
  885. class: 'header__upper-entry text-link--upper-menu',
  886. },
  887. }
  888. }
  889. %}
  890. </div>
  891. </div>
  892. {% endif %}
  893. <div class=\"header__inner\">
  894. {% block headerLogo %}
  895. <div class=\"header__logo\">
  896. {% set eventArray = {
  897. 'X_MAS' : asset('build/images/denios/logo_denios_x_mas.svg'),
  898. 'birthdayES':asset('build/images/denios/logo_es_20aniversario.svg')
  899. } %}
  900. {% if isPunchout %}
  901. {% set path_logo_home = 'app_shop' %}
  902. {% else %}
  903. {% set path_logo_home = 'app_get_home' %}
  904. {% endif %}
  905. {% include 'components/molecules/logo/logo.html.twig'
  906. with {
  907. 'class': 'logo--header',
  908. 'href': path(path_logo_home),
  909. 'src': getLogo(storeContext, asset('build/images/denios/logo_minimal.svg'), eventArray )|default(asset('build/images/denios/logo_minimal.svg')),
  910. 'srcset': asset('build/images/denios/logo_minimal.svg'),
  911. 'alt': 'header_logo_description'|trans,
  912. 'lazyload':false
  913. } %}
  914. </div>
  915. {% endblock %}
  916. {% block headerLinks %}
  917. <div class=\"header__links\">
  918. {% include 'components/molecules/expert-advice-trigger/expert-advice-trigger.html.twig' with {
  919. 'class': 'header__link-entry header__link-entry--expert-advice',
  920. }%}
  921. {% if storeContext.languages|default|length > 1 %}
  922. {% include 'components/molecules/language-select/language-select.html.twig'
  923. with {
  924. 'class': 'language-select--desktop',
  925. 'current_language': storeContext.localeInfo.currentLocale,
  926. 'languages': storeContext.languages} %}
  927. {% endif %}
  928. </div>
  929. {% endblock %}
  930. {% block headerShopNavigation %}
  931. <div class=\"header__shop-navigation\">
  932. {% if not isPunchout %}
  933. <div class=\"header__shop-action\">
  934. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  935. 'class': 'icon-link--shop-action icon-link--account js-shop-action-account' ~ ((app.user) ? ' icon-link--active' : ' js-offside'),
  936. 'href': path('app_get_account'),
  937. 'attributes': {
  938. 'data-offside-component': 'accountMenu',
  939. 'data-collapse-close-on-body': 'true',
  940. 'data-offside-sliding-side': 'right',
  941. 'title': ((app.user) ? 'header_account_label'|trans : 'header_account_label_logged_out'|trans),
  942. 'aria-label': ((app.user) ? 'header_account_label'|trans : 'header_account_label_logged_out'|trans),
  943. }
  944. } %}
  945. {% block icon %}
  946. <div class=\"icon-link__icon icon-link__account\" aria-hidden=\"true\" title=\"{{ 'header_account_label'|trans}}\">
  947. {% include 'components/atoms/badge/badge.html.twig' with {
  948. 'class': 'badge--check ' ~ ((app.user) ? '' : 'badge--hide'),
  949. } %}
  950. </div>
  951. {% endblock %}
  952. {% block linkText %}
  953. {% endblock %}
  954. {% endembed %}
  955. {% block accountStatus %}
  956. {# User email should be a data attribute in a div on every page (see DO-355) #}
  957. {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  958. <div class=\"account__user-logged-in-status\" data-gtm-user-email=\"{{ user.email|default('')}}\"></div>
  959. {% endif %}
  960. {% endblock %}
  961. </div>
  962. <div class=\"header__shop-action\">
  963. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  964. 'class': 'icon-link--shop-action',
  965. 'href': path('app_get_account_shopping_list'),
  966. 'attributes' : {
  967. 'aria-label': 'header_note_label'|trans,
  968. 'title': 'header_note_label'|trans,
  969. }
  970. } %}
  971. {% block icon %}
  972. <div class=\"icon-link__icon icon-link__shopping-list\" title=\"{{ 'shopping_list_forwarded_headline'|trans}}\">
  973. {% set shopping_list_product_count = shopping_list_product_count() %}
  974. {% if shopping_list_product_count > 0 %}
  975. {% include 'components/atoms/badge/badge.html.twig' with {
  976. 'class': 'badge--header',
  977. 'content': shopping_list_product_count
  978. } %}
  979. {% endif %}
  980. </div>
  981. {% endblock %}
  982. {% block linkText %}
  983. {% endblock %}
  984. {% endembed %}
  985. </div>
  986. {% endif %}
  987. <div class=\"header__shop-action\">
  988. {% if cart is defined and cart.lineItems|length > 0 %}
  989. {% set ariaLabelCart= '. ' ~ 'line_item_header_quantity'|trans ~': '~ cart.lineItems|length %}
  990. {% endif %}
  991. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  992. 'class': 'icon-link--shop-action',
  993. 'href': path('checkout_cart_index'),
  994. 'attributes' : {
  995. 'aria-label': 'off_canvas_cart_go_to_cart'|trans ~ ariaLabelCart|default,
  996. 'title': 'off_canvas_cart_go_to_cart'|trans,
  997. }
  998. } %}
  999. {% block icon %}
  1000. <div class=\"icon-link__icon icon-link__icon--cart\" title=\"{{ 'header_cart_label'|trans }}\">
  1001. {% if cart is defined and cart.lineItems|length > 0 %}
  1002. {% include 'components/atoms/badge/badge.html.twig' with {
  1003. 'class': 'badge--header js-badge-cart',
  1004. 'content': cart.lineItems|length
  1005. } %}
  1006. {% endif %}
  1007. </div>
  1008. {% endblock %}
  1009. {% block linkText %}
  1010. {% endblock %}
  1011. {% endembed %}
  1012. </div>
  1013. </div>
  1014. {% endblock %}
  1015. {% block headerNavigationBar %}
  1016. <div class=\"header__navigation-bar\">
  1017. {% include 'components/organisms/navigation-bar/navigation-bar.html.twig' %}
  1018. </div>
  1019. {% endblock %}
  1020. {% block headerPrint %}
  1021. <div class=\"header__contact\">
  1022. {{ 'header_contact_print'|trans|raw }}
  1023. </div>
  1024. {% endblock %}
  1025. </div>
  1026. </header>
  1027. ", "components/organisms/header/header.html.twig", "/var/www/html/templates/default/components/organisms/header/header.html.twig");
  1028. }
  1029. }
  1030. /* components/organisms/header/header.html.twig */
  1031. class __TwigTemplate_2f4d3237e63d609622185a27c8e8cd20___167312584 extends Template
  1032. {
  1033. private Source $source;
  1034. /**
  1035. * @var array<string, Template>
  1036. */
  1037. private array $macros = [];
  1038. public function __construct(Environment $env)
  1039. {
  1040. parent::__construct($env);
  1041. $this->source = $this->getSourceContext();
  1042. $this->blocks = [
  1043. 'icon' => [$this, 'block_icon'],
  1044. 'linkText' => [$this, 'block_linkText'],
  1045. ];
  1046. }
  1047. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  1048. {
  1049. // line 127
  1050. return "components/molecules/icon-link/icon-link.html.twig";
  1051. }
  1052. protected function doDisplay(array $context, array $blocks = []): iterable
  1053. {
  1054. $macros = $this->macros;
  1055. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1056. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/header/header.html.twig"));
  1057. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1058. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/header/header.html.twig"));
  1059. $this->parent = $this->load("components/molecules/icon-link/icon-link.html.twig", 127);
  1060. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  1061. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1062. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1063. }
  1064. // line 135
  1065. /**
  1066. * @return iterable<null|scalar|\Stringable>
  1067. */
  1068. public function block_icon(array $context, array $blocks = []): iterable
  1069. {
  1070. $macros = $this->macros;
  1071. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1072. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "icon"));
  1073. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1074. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "icon"));
  1075. // line 136
  1076. yield " <div class=\"icon-link__icon icon-link__icon--cart\" title=\"";
  1077. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_cart_label"), "html", null, true);
  1078. yield "\">
  1079. ";
  1080. // line 137
  1081. if ((array_key_exists("cart", $context) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["cart"]) || array_key_exists("cart", $context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.', 137, $this->source); })()), "lineItems", [], "any", false, false, false, 137)) > 0))) {
  1082. // line 138
  1083. yield " ";
  1084. yield from $this->load("components/atoms/badge/badge.html.twig", 138)->unwrap()->yield(CoreExtension::merge($context, ["class" => "badge--header js-badge-cart", "content" => Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, // line 140
  1085. (isset($context["cart"]) || array_key_exists("cart", $context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.', 140, $this->source); })()), "lineItems", [], "any", false, false, false, 140))]));
  1086. // line 142
  1087. yield " ";
  1088. }
  1089. // line 143
  1090. yield " </div>
  1091. ";
  1092. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1093. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1094. yield from [];
  1095. }
  1096. // line 146
  1097. /**
  1098. * @return iterable<null|scalar|\Stringable>
  1099. */
  1100. public function block_linkText(array $context, array $blocks = []): iterable
  1101. {
  1102. $macros = $this->macros;
  1103. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1104. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "linkText"));
  1105. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1106. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "linkText"));
  1107. // line 147
  1108. yield " ";
  1109. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1110. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1111. yield from [];
  1112. }
  1113. /**
  1114. * @codeCoverageIgnore
  1115. */
  1116. public function getTemplateName(): string
  1117. {
  1118. return "components/organisms/header/header.html.twig";
  1119. }
  1120. /**
  1121. * @codeCoverageIgnore
  1122. */
  1123. public function isTraitable(): bool
  1124. {
  1125. return false;
  1126. }
  1127. /**
  1128. * @codeCoverageIgnore
  1129. */
  1130. public function getDebugInfo(): array
  1131. {
  1132. return array ( 1291 => 147, 1278 => 146, 1266 => 143, 1263 => 142, 1261 => 140, 1259 => 138, 1257 => 137, 1252 => 136, 1239 => 135, 1216 => 127, 987 => 119, 974 => 118, 962 => 115, 959 => 114, 957 => 112, 955 => 110, 952 => 109, 950 => 108, 945 => 107, 932 => 106, 909 => 98, 680 => 86, 667 => 85, 655 => 83, 653 => 81, 652 => 80, 647 => 79, 634 => 78, 611 => 67, 379 => 160, 376 => 159, 363 => 158, 351 => 156, 349 => 155, 346 => 154, 333 => 153, 322 => 94, 316 => 92, 313 => 91, 311 => 90, 298 => 89, 285 => 149, 283 => 131, 281 => 127, 278 => 126, 275 => 125, 273 => 124, 270 => 123, 266 => 121, 264 => 98, 259 => 95, 257 => 89, 254 => 88, 252 => 75, 251 => 74, 250 => 68, 249 => 67, 246 => 66, 244 => 65, 241 => 64, 228 => 63, 216 => 60, 213 => 59, 211 => 58, 210 => 57, 208 => 54, 206 => 53, 203 => 52, 201 => 49, 198 => 48, 185 => 47, 173 => 44, 171 => 39, 170 => 38, 168 => 35, 165 => 34, 162 => 33, 159 => 32, 156 => 31, 153 => 30, 151 => 26, 148 => 25, 135 => 24, 113 => 3, 100 => 163, 97 => 158, 95 => 153, 92 => 152, 90 => 63, 87 => 62, 85 => 47, 82 => 46, 80 => 24, 77 => 23, 72 => 20, 70 => 8, 69 => 7, 65 => 5, 63 => 4, 59 => 3, 55 => 1,);
  1133. }
  1134. public function getSourceContext(): Source
  1135. {
  1136. return new Source("<div class=\"header-observer\"></div>
  1137. <header class=\"header{% block headerClass %}{% endblock %}\">
  1138. {% if cms_globals.upper_menu is defined and cms_globals.upper_menu|default|length > 0 %}
  1139. <div class=\"header__upper\">
  1140. <div class=\"header__upper--inner\">
  1141. {% include 'components/organisms/storyblok/storyblok.html.twig' with {
  1142. 'componentData': cms_globals.upper_menu|default,
  1143. 'componentConfig': {
  1144. 'link-open-menu': {
  1145. additionalClass: 'header__upper-entry',
  1146. },
  1147. 'text-link': {
  1148. class: 'header__upper-entry text-link--upper-menu',
  1149. },
  1150. }
  1151. }
  1152. %}
  1153. </div>
  1154. </div>
  1155. {% endif %}
  1156. <div class=\"header__inner\">
  1157. {% block headerLogo %}
  1158. <div class=\"header__logo\">
  1159. {% set eventArray = {
  1160. 'X_MAS' : asset('build/images/denios/logo_denios_x_mas.svg'),
  1161. 'birthdayES':asset('build/images/denios/logo_es_20aniversario.svg')
  1162. } %}
  1163. {% if isPunchout %}
  1164. {% set path_logo_home = 'app_shop' %}
  1165. {% else %}
  1166. {% set path_logo_home = 'app_get_home' %}
  1167. {% endif %}
  1168. {% include 'components/molecules/logo/logo.html.twig'
  1169. with {
  1170. 'class': 'logo--header',
  1171. 'href': path(path_logo_home),
  1172. 'src': getLogo(storeContext, asset('build/images/denios/logo_minimal.svg'), eventArray )|default(asset('build/images/denios/logo_minimal.svg')),
  1173. 'srcset': asset('build/images/denios/logo_minimal.svg'),
  1174. 'alt': 'header_logo_description'|trans,
  1175. 'lazyload':false
  1176. } %}
  1177. </div>
  1178. {% endblock %}
  1179. {% block headerLinks %}
  1180. <div class=\"header__links\">
  1181. {% include 'components/molecules/expert-advice-trigger/expert-advice-trigger.html.twig' with {
  1182. 'class': 'header__link-entry header__link-entry--expert-advice',
  1183. }%}
  1184. {% if storeContext.languages|default|length > 1 %}
  1185. {% include 'components/molecules/language-select/language-select.html.twig'
  1186. with {
  1187. 'class': 'language-select--desktop',
  1188. 'current_language': storeContext.localeInfo.currentLocale,
  1189. 'languages': storeContext.languages} %}
  1190. {% endif %}
  1191. </div>
  1192. {% endblock %}
  1193. {% block headerShopNavigation %}
  1194. <div class=\"header__shop-navigation\">
  1195. {% if not isPunchout %}
  1196. <div class=\"header__shop-action\">
  1197. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  1198. 'class': 'icon-link--shop-action icon-link--account js-shop-action-account' ~ ((app.user) ? ' icon-link--active' : ' js-offside'),
  1199. 'href': path('app_get_account'),
  1200. 'attributes': {
  1201. 'data-offside-component': 'accountMenu',
  1202. 'data-collapse-close-on-body': 'true',
  1203. 'data-offside-sliding-side': 'right',
  1204. 'title': ((app.user) ? 'header_account_label'|trans : 'header_account_label_logged_out'|trans),
  1205. 'aria-label': ((app.user) ? 'header_account_label'|trans : 'header_account_label_logged_out'|trans),
  1206. }
  1207. } %}
  1208. {% block icon %}
  1209. <div class=\"icon-link__icon icon-link__account\" aria-hidden=\"true\" title=\"{{ 'header_account_label'|trans}}\">
  1210. {% include 'components/atoms/badge/badge.html.twig' with {
  1211. 'class': 'badge--check ' ~ ((app.user) ? '' : 'badge--hide'),
  1212. } %}
  1213. </div>
  1214. {% endblock %}
  1215. {% block linkText %}
  1216. {% endblock %}
  1217. {% endembed %}
  1218. {% block accountStatus %}
  1219. {# User email should be a data attribute in a div on every page (see DO-355) #}
  1220. {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  1221. <div class=\"account__user-logged-in-status\" data-gtm-user-email=\"{{ user.email|default('')}}\"></div>
  1222. {% endif %}
  1223. {% endblock %}
  1224. </div>
  1225. <div class=\"header__shop-action\">
  1226. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  1227. 'class': 'icon-link--shop-action',
  1228. 'href': path('app_get_account_shopping_list'),
  1229. 'attributes' : {
  1230. 'aria-label': 'header_note_label'|trans,
  1231. 'title': 'header_note_label'|trans,
  1232. }
  1233. } %}
  1234. {% block icon %}
  1235. <div class=\"icon-link__icon icon-link__shopping-list\" title=\"{{ 'shopping_list_forwarded_headline'|trans}}\">
  1236. {% set shopping_list_product_count = shopping_list_product_count() %}
  1237. {% if shopping_list_product_count > 0 %}
  1238. {% include 'components/atoms/badge/badge.html.twig' with {
  1239. 'class': 'badge--header',
  1240. 'content': shopping_list_product_count
  1241. } %}
  1242. {% endif %}
  1243. </div>
  1244. {% endblock %}
  1245. {% block linkText %}
  1246. {% endblock %}
  1247. {% endembed %}
  1248. </div>
  1249. {% endif %}
  1250. <div class=\"header__shop-action\">
  1251. {% if cart is defined and cart.lineItems|length > 0 %}
  1252. {% set ariaLabelCart= '. ' ~ 'line_item_header_quantity'|trans ~': '~ cart.lineItems|length %}
  1253. {% endif %}
  1254. {% embed 'components/molecules/icon-link/icon-link.html.twig' with {
  1255. 'class': 'icon-link--shop-action',
  1256. 'href': path('checkout_cart_index'),
  1257. 'attributes' : {
  1258. 'aria-label': 'off_canvas_cart_go_to_cart'|trans ~ ariaLabelCart|default,
  1259. 'title': 'off_canvas_cart_go_to_cart'|trans,
  1260. }
  1261. } %}
  1262. {% block icon %}
  1263. <div class=\"icon-link__icon icon-link__icon--cart\" title=\"{{ 'header_cart_label'|trans }}\">
  1264. {% if cart is defined and cart.lineItems|length > 0 %}
  1265. {% include 'components/atoms/badge/badge.html.twig' with {
  1266. 'class': 'badge--header js-badge-cart',
  1267. 'content': cart.lineItems|length
  1268. } %}
  1269. {% endif %}
  1270. </div>
  1271. {% endblock %}
  1272. {% block linkText %}
  1273. {% endblock %}
  1274. {% endembed %}
  1275. </div>
  1276. </div>
  1277. {% endblock %}
  1278. {% block headerNavigationBar %}
  1279. <div class=\"header__navigation-bar\">
  1280. {% include 'components/organisms/navigation-bar/navigation-bar.html.twig' %}
  1281. </div>
  1282. {% endblock %}
  1283. {% block headerPrint %}
  1284. <div class=\"header__contact\">
  1285. {{ 'header_contact_print'|trans|raw }}
  1286. </div>
  1287. {% endblock %}
  1288. </div>
  1289. </header>
  1290. ", "components/organisms/header/header.html.twig", "/var/www/html/templates/default/components/organisms/header/header.html.twig");
  1291. }
  1292. }