var/cache/dev/twig/e1/e154794ea31407916ca7ca5e99b1c416.php line 149

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. /* base.html.twig */
  16. class __TwigTemplate_0bb25ea9a5ebd10acc816bea795146c1 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. 'title' => [$this, 'block_title'],
  30. 'head' => [$this, 'block_head'],
  31. 'overlays' => [$this, 'block_overlays'],
  32. 'header_wrapper_content' => [$this, 'block_header_wrapper_content'],
  33. 'body' => [$this, 'block_body'],
  34. ];
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
  43. // line 1
  44. $macros["assets_macros"] = $this->macros["assets_macros"] = $this->load("@BoldrCms/_macros/assets.twig", 1)->unwrap();
  45. // line 2
  46. yield "
  47. ";
  48. // line 3
  49. $context["assets"] = (((array_key_exists("assets", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 3, $this->source); })())))) ? (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getAssets($context), "addAll", [(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 3, $this->source); })())], "method", false, false, false, 3)) : ($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getAssets($context)));
  50. // line 4
  51. yield "
  52. <!DOCTYPE html>
  53. <html lang=\"";
  54. // line 6
  55. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "locale", [], "any", false, false, false, 6), "html", null, true);
  56. yield "\">
  57. <head>
  58. <meta charset=\"UTF-8\">
  59. <title>";
  60. // line 9
  61. yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
  62. yield "</title>
  63. <meta name=\"viewport\" content=\"width=device-width\" />
  64. <link rel=\"stylesheet\" href=\"";
  65. // line 11
  66. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/boldrcms-theme-variables.css"), "html", null, true);
  67. yield "\" />
  68. <link rel=\"stylesheet\" href=\"";
  69. // line 12
  70. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/boldrcms/boldrcms-calculated.css"), "html", null, true);
  71. yield "\" />
  72. <link rel=\"icon\" href=\"";
  73. // line 13
  74. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.svg"), "html", null, true);
  75. yield "\" />
  76. ";
  77. // line 14
  78. yield $macros["assets_macros"]->getTemplateForMacro("macro_renderHeadContents", $context, 14, $this->getSourceContext())->macro_renderHeadContents(...[(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 14, $this->source); })())]);
  79. yield "
  80. ";
  81. // line 15
  82. yield $macros["assets_macros"]->getTemplateForMacro("macro_renderCssFiles", $context, 15, $this->getSourceContext())->macro_renderCssFiles(...[(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 15, $this->source); })())]);
  83. yield "
  84. ";
  85. // line 16
  86. yield $macros["assets_macros"]->getTemplateForMacro("macro_renderWebpackEncoreStyleEntries", $context, 16, $this->getSourceContext())->macro_renderWebpackEncoreStyleEntries(...[(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 16, $this->source); })())]);
  87. yield "
  88. ";
  89. // line 17
  90. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getCookieState(), "analysis", [], "any", false, false, false, 17)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  91. // line 18
  92. yield " <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  93. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  94. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  95. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  96. })(window,document,'script','dataLayer','GTM-55B36VC');</script>
  97. ";
  98. }
  99. // line 24
  100. yield " <link rel=\"stylesheet\" href=\"";
  101. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.css"), "html", null, true);
  102. yield "?v=1.0.2\" />
  103. ";
  104. // line 25
  105. yield from $this->unwrap()->yieldBlock('head', $context, $blocks);
  106. // line 27
  107. 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.', 27, $this->source); })()), "environment", [], "any", false, false, false, 27) == "dev")) {
  108. // line 28
  109. yield " <style>
  110. body {box-shadow: inset 10px 0 0 red; }
  111. </style>
  112. ";
  113. }
  114. // line 32
  115. yield " </head>
  116. <body class=\"";
  117. // line 33
  118. yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "attributes", [], "any", false, false, false, 33), "get", ["_route"], "method", false, false, false, 33) == "shop_shop")) ? ("boldr-shop-order-page") : (""));
  119. yield "\">
  120. <div id=\"wrap\">
  121. <div id=\"overlay-container\">
  122. <div id=\"overlay-loading\">
  123. <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" style=\"margin: auto; display: block;\" width=\"100px\" height=\"100px\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\">
  124. <circle cx=\"50\" cy=\"50\" fill=\"none\" stroke=\"#ffffff\" stroke-width=\"10\" r=\"35\" stroke-dasharray=\"164.93361431346415 56.97787143782138\">
  125. <animateTransform attributeName=\"transform\" type=\"rotate\" repeatCount=\"indefinite\" dur=\"1s\" values=\"0 50 50;360 50 50\" keyTimes=\"0;1\"></animateTransform>
  126. </circle>
  127. </svg>
  128. </div>
  129. ";
  130. // line 43
  131. yield from $this->unwrap()->yieldBlock('overlays', $context, $blocks);
  132. // line 44
  133. yield " </div>
  134. ";
  135. // line 47
  136. yield " <div class=\"header-wrapper\">
  137. ";
  138. // line 48
  139. yield from $this->unwrap()->yieldBlock('header_wrapper_content', $context, $blocks);
  140. // line 210
  141. yield " </div>
  142. ";
  143. // line 213
  144. yield " <div class=\"main\">
  145. ";
  146. // line 214
  147. yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
  148. // line 215
  149. yield " </div>
  150. ";
  151. // line 218
  152. yield " <div class=\"footer-wrapper\">
  153. <div class=\"footer-content\">
  154. <div class=\"footer-top\">
  155. <div class=\"footer-opening-hours\">
  156. <h3>";
  157. // line 222
  158. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("opening_hours", [], "HelensBakery"), "html", null, true);
  159. yield "</h3>
  160. ";
  161. // line 224
  162. yield $this->extensions['Boldr\Cms\OpeningHoursBundle\TwigExtension']->renderOpeningHours($this->extensions['App\TwigExtension']->getOpeningHoursSet());
  163. yield "
  164. <p class=\"footer-bereidingstijd\">
  165. ";
  166. // line 226
  167. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("warm_bread_15_min_before_close", [], "HelensBakery"), "html", null, true);
  168. yield "
  169. </p>
  170. ";
  171. // line 229
  172. $context["bestellijstPdf"] = $this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "bestellijst_pdf");
  173. // line 230
  174. yield " ";
  175. if ((($tmp = (isset($context["bestellijstPdf"]) || array_key_exists("bestellijstPdf", $context) ? $context["bestellijstPdf"] : (function () { throw new RuntimeError('Variable "bestellijstPdf" does not exist.', 230, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  176. // line 231
  177. yield " <a target=\"_blank\" class=\"bestellijst-button\" href=\"";
  178. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->generateLink($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "bestellijst_pdf")), "html", null, true);
  179. yield "\">
  180. ";
  181. // line 232
  182. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order_list", [], "HelensBakery"), "html", null, true);
  183. yield "
  184. </a>
  185. ";
  186. }
  187. // line 235
  188. yield " </div>
  189. <div class=\"footer-contact\">
  190. <h3>";
  191. // line 237
  192. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact_details", [], "HelensBakery"), "html", null, true);
  193. yield "</h3>
  194. <div class=\"footer-contact-lines\">
  195. ";
  196. // line 241
  197. yield " <div class=\"footer-contact-line-group\">
  198. <div class=\"boldr-contact-map-line\">
  199. <i class=\"icon-pin\"></i>
  200. <div class=\"boldr-contact-map-address\">
  201. ";
  202. // line 245
  203. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "contact_details_address"), "html", null, true);
  204. yield "<br />
  205. ";
  206. // line 246
  207. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "contact_details_postal_code"), "html", null, true);
  208. yield "
  209. ";
  210. // line 247
  211. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "contact_details_city"), "html", null, true);
  212. yield "<br />
  213. ";
  214. // line 248
  215. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("zep", [], "HelensBakery"), "html", null, true);
  216. yield "
  217. </div>
  218. </div>
  219. </div>
  220. ";
  221. // line 254
  222. yield " <div class=\"footer-contact-line-group\">
  223. ";
  224. // line 255
  225. $context['_parent'] = $context;
  226. $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "contact_details_contact_methods"));
  227. foreach ($context['_seq'] as $context["_key"] => $context["contactOption"]) {
  228. // line 256
  229. yield " <";
  230. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["contactOption"], "url", [], "any", false, false, false, 256)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ((("a href=\"" . CoreExtension::getAttribute($this->env, $this->source, $context["contactOption"], "url", [], "any", false, false, false, 256)) . "\"")) : ("span"));
  231. yield " class=\"boldr-contact-map-line boldr-contact-map-contact-option\">
  232. <i class=\"boldr-icon ";
  233. // line 257
  234. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["contactOption"], "icon", [], "any", false, false, false, 257), "html", null, true);
  235. yield "\"></i>
  236. <span class=\"boldr-contact-map-contact-option-text\">
  237. ";
  238. // line 259
  239. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["contactOption"], "text", [], "any", false, false, false, 259), "html", null, true);
  240. yield "
  241. </span>
  242. </";
  243. // line 261
  244. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["contactOption"], "url", [], "any", false, false, false, 261)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("a") : ("span"));
  245. yield ">
  246. ";
  247. }
  248. $_parent = $context['_parent'];
  249. unset($context['_seq'], $context['_key'], $context['contactOption'], $context['_parent']);
  250. $context = array_intersect_key($context, $_parent) + $_parent;
  251. // line 263
  252. yield " </div>
  253. <div class=\"footer-social-media\">
  254. ";
  255. // line 266
  256. $context['_parent'] = $context;
  257. $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "social_media_links"));
  258. foreach ($context['_seq'] as $context["_key"] => $context["socialMediaLink"]) {
  259. // line 267
  260. yield " <a href=\"";
  261. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["socialMediaLink"], "url", [], "any", false, false, false, 267), "html", null, true);
  262. yield "\" target=\"_blank\" title=\"";
  263. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["socialMediaLink"], "name", [], "any", false, false, false, 267), "html", null, true);
  264. yield "\" class=\"boldr-contact-map-social-media-link\">
  265. <i class=\"boldr-icon ";
  266. // line 268
  267. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["socialMediaLink"], "icon", [], "any", false, false, false, 268), "html", null, true);
  268. yield "\"></i>
  269. </a>
  270. ";
  271. }
  272. $_parent = $context['_parent'];
  273. unset($context['_seq'], $context['_key'], $context['socialMediaLink'], $context['_parent']);
  274. $context = array_intersect_key($context, $_parent) + $_parent;
  275. // line 271
  276. yield " </div>
  277. </div>
  278. </div>
  279. </div>
  280. <div class=\"footer-bottom\">
  281. <div class=\"footer-content-left\">
  282. ";
  283. // line 278
  284. yield " <span class=\"footer-copyright\">&copy; ";
  285. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y"), "html", null, true);
  286. yield " - ";
  287. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getSiteName(), "html", null, true);
  288. yield ".</span>
  289. <span class=\"footer-developer\">
  290. ";
  291. // line 281
  292. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("website_by", [], "HelensBakery"), "html", null, true);
  293. yield "
  294. <a href=\"https://boldragency.nl\" target=\"_blank\" class=\"footer-developer-name\">
  295. Boldr Digital Agency
  296. </a>
  297. </span>
  298. </div>
  299. <div class=\"footer-content-right\">
  300. ";
  301. // line 290
  302. yield " ";
  303. $context['_parent'] = $context;
  304. $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getMenusAtLocation("footer"));
  305. foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
  306. // line 291
  307. yield " ";
  308. yield $this->getTemplateForMacro("macro_menu", $context, 291, $this->getSourceContext())->macro_menu(...[$context["menu"], "footer-menu"]);
  309. yield "
  310. ";
  311. }
  312. $_parent = $context['_parent'];
  313. unset($context['_seq'], $context['_key'], $context['menu'], $context['_parent']);
  314. $context = array_intersect_key($context, $_parent) + $_parent;
  315. // line 293
  316. yield " </div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. ";
  322. // line 299
  323. if (( !((array_key_exists("isShop", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["isShop"]) || array_key_exists("isShop", $context) ? $context["isShop"] : (function () { throw new RuntimeError('Variable "isShop" does not exist.', 299, $this->source); })()), false)) : (false)) && !((array_key_exists("isCheckout", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["isCheckout"]) || array_key_exists("isCheckout", $context) ? $context["isCheckout"] : (function () { throw new RuntimeError('Variable "isCheckout" does not exist.', 299, $this->source); })()), false)) : (false)))) {
  324. // line 300
  325. yield " <div class=\"mobile-begin-order-bar\">
  326. ";
  327. // line 301
  328. $context["itemCount"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCartView(), "itemCount", [], "any", false, false, false, 301);
  329. // line 302
  330. yield " <a href=\"";
  331. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_shop");
  332. yield "\" class=\"boldr-button boldr-button-filled\">
  333. ";
  334. // line 303
  335. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((((isset($context["itemCount"]) || array_key_exists("itemCount", $context) ? $context["itemCount"] : (function () { throw new RuntimeError('Variable "itemCount" does not exist.', 303, $this->source); })()) > 0)) ? ("contiue_order") : ("start_order")), [], "HelensBakery"), "html", null, true);
  336. yield "
  337. ";
  338. // line 304
  339. if (((isset($context["itemCount"]) || array_key_exists("itemCount", $context) ? $context["itemCount"] : (function () { throw new RuntimeError('Variable "itemCount" does not exist.', 304, $this->source); })()) > 0)) {
  340. // line 305
  341. yield " <span class=\"boldr-button-notification-count\">";
  342. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["itemCount"]) || array_key_exists("itemCount", $context) ? $context["itemCount"] : (function () { throw new RuntimeError('Variable "itemCount" does not exist.', 305, $this->source); })()), "html", null, true);
  343. yield "</span>
  344. ";
  345. }
  346. // line 307
  347. yield " </a>
  348. </div>
  349. ";
  350. }
  351. // line 310
  352. yield "
  353. ";
  354. // line 311
  355. yield $this->extensions['Boldr\Cms\CookiesBundle\TwigExtension']->render($this->env);
  356. yield "
  357. ";
  358. // line 314
  359. yield " ";
  360. yield $macros["assets_macros"]->getTemplateForMacro("macro_renderHeadContents", $context, 314, $this->getSourceContext())->macro_renderHeadContents(...[(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 314, $this->source); })())]);
  361. yield "
  362. ";
  363. // line 315
  364. yield $macros["assets_macros"]->getTemplateForMacro("macro_renderCssFiles", $context, 315, $this->getSourceContext())->macro_renderCssFiles(...[(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 315, $this->source); })())]);
  365. yield "
  366. ";
  367. // line 316
  368. yield $macros["assets_macros"]->getTemplateForMacro("macro_renderWebpackEncoreStyleEntries", $context, 316, $this->getSourceContext())->macro_renderWebpackEncoreStyleEntries(...[(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 316, $this->source); })())]);
  369. yield "
  370. ";
  371. // line 317
  372. yield $macros["assets_macros"]->getTemplateForMacro("macro_renderJsFiles", $context, 317, $this->getSourceContext())->macro_renderJsFiles(...[(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 317, $this->source); })())]);
  373. yield "
  374. ";
  375. // line 318
  376. yield $macros["assets_macros"]->getTemplateForMacro("macro_renderWebpackEncoreScriptEntries", $context, 318, $this->getSourceContext())->macro_renderWebpackEncoreScriptEntries(...[(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 318, $this->source); })())]);
  377. yield "
  378. ";
  379. // line 319
  380. yield $macros["assets_macros"]->getTemplateForMacro("macro_renderBodyContents", $context, 319, $this->getSourceContext())->macro_renderBodyContents(...[(isset($context["assets"]) || array_key_exists("assets", $context) ? $context["assets"] : (function () { throw new RuntimeError('Variable "assets" does not exist.', 319, $this->source); })())]);
  381. yield "
  382. ";
  383. // line 321
  384. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getCookieState(), "analysis", [], "any", false, false, false, 321)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  385. // line 322
  386. yield " <noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-KPHG9RG\"
  387. height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
  388. ";
  389. }
  390. // line 325
  391. yield " </body>
  392. </html>
  393. ";
  394. // line 335
  395. yield "
  396. ";
  397. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  398. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  399. yield from [];
  400. }
  401. // line 9
  402. /**
  403. * @return iterable<null|scalar|\Stringable>
  404. */
  405. public function block_title(array $context, array $blocks = []): iterable
  406. {
  407. $macros = $this->macros;
  408. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  409. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  410. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  411. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  412. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getSiteName(), "html", null, true);
  413. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  414. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  415. yield from [];
  416. }
  417. // line 25
  418. /**
  419. * @return iterable<null|scalar|\Stringable>
  420. */
  421. public function block_head(array $context, array $blocks = []): iterable
  422. {
  423. $macros = $this->macros;
  424. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  425. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
  426. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  427. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
  428. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  429. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  430. yield from [];
  431. }
  432. // line 43
  433. /**
  434. * @return iterable<null|scalar|\Stringable>
  435. */
  436. public function block_overlays(array $context, array $blocks = []): iterable
  437. {
  438. $macros = $this->macros;
  439. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  440. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "overlays"));
  441. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  442. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "overlays"));
  443. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  444. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  445. yield from [];
  446. }
  447. // line 48
  448. /**
  449. * @return iterable<null|scalar|\Stringable>
  450. */
  451. public function block_header_wrapper_content(array $context, array $blocks = []): iterable
  452. {
  453. $macros = $this->macros;
  454. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  455. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_wrapper_content"));
  456. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  457. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_wrapper_content"));
  458. // line 49
  459. yield " <div class=\"header-content\">
  460. <div class=\"header-content-left\">
  461. ";
  462. // line 52
  463. yield " ";
  464. $context["availableLocales"] = $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getEnabledLocales();
  465. // line 53
  466. yield " ";
  467. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["availableLocales"]) || array_key_exists("availableLocales", $context) ? $context["availableLocales"] : (function () { throw new RuntimeError('Variable "availableLocales" does not exist.', 53, $this->source); })())) > 1)) {
  468. // line 54
  469. yield " <div class=\"header-language-selector\">
  470. ";
  471. // line 55
  472. $context['_parent'] = $context;
  473. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["availableLocales"]) || array_key_exists("availableLocales", $context) ? $context["availableLocales"] : (function () { throw new RuntimeError('Variable "availableLocales" does not exist.', 55, $this->source); })()));
  474. foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
  475. // line 56
  476. yield " ";
  477. $context["translatedUrl"] = $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getTranslationUrl($context["locale"]);
  478. // line 57
  479. yield " ";
  480. if (( !(null === (isset($context["translatedUrl"]) || array_key_exists("translatedUrl", $context) ? $context["translatedUrl"] : (function () { throw new RuntimeError('Variable "translatedUrl" does not exist.', 57, $this->source); })())) && ($context["locale"] != CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "locale", [], "any", false, false, false, 57)))) {
  481. // line 58
  482. yield " <a href=\"";
  483. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["translatedUrl"]) || array_key_exists("translatedUrl", $context) ? $context["translatedUrl"] : (function () { throw new RuntimeError('Variable "translatedUrl" does not exist.', 58, $this->source); })()), "html", null, true);
  484. yield "\" class=\"available-locale\">
  485. <img class=\"language-selector-flag\" src=\"";
  486. // line 59
  487. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("assets/images/flags/" . $context["locale"]) . ".png")), "html", null, true);
  488. yield "\" title=\"";
  489. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
  490. yield "\" />
  491. <span>";
  492. // line 60
  493. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
  494. yield "</span>
  495. </a>
  496. ";
  497. }
  498. // line 63
  499. yield " ";
  500. }
  501. $_parent = $context['_parent'];
  502. unset($context['_seq'], $context['_key'], $context['locale'], $context['_parent']);
  503. $context = array_intersect_key($context, $_parent) + $_parent;
  504. // line 64
  505. yield " </div>
  506. ";
  507. }
  508. // line 66
  509. yield "
  510. ";
  511. // line 68
  512. yield " ";
  513. $context['_parent'] = $context;
  514. $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getMenusAtLocation("header"));
  515. foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
  516. // line 69
  517. yield " ";
  518. yield $this->getTemplateForMacro("macro_menu", $context, 69, $this->getSourceContext())->macro_menu(...[$context["menu"], "header-menu"]);
  519. yield "
  520. ";
  521. }
  522. $_parent = $context['_parent'];
  523. unset($context['_seq'], $context['_key'], $context['menu'], $context['_parent']);
  524. $context = array_intersect_key($context, $_parent) + $_parent;
  525. // line 71
  526. yield " </div>
  527. ";
  528. // line 74
  529. yield " <a class=\"header-logo\" href=\"";
  530. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cms_home");
  531. yield "\">
  532. <img class=\"header-logo-image\" src=\"";
  533. // line 75
  534. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.svg"), "html", null, true);
  535. yield "\" alt=\"";
  536. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getSiteName(), "html", null, true);
  537. yield "\" title=\"";
  538. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getSiteName(), "html", null, true);
  539. yield "\">
  540. </a>
  541. <div class=\"header-content-right\">
  542. ";
  543. // line 79
  544. if ((($tmp = 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.', 79, $this->source); })()), "user", [], "any", false, false, false, 79)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  545. // line 80
  546. yield " ";
  547. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCustomerView(), "getCanChangeOwnDetails", [], "method", false, false, false, 80)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  548. // line 81
  549. yield " <a class=\"header-user-link\" href=\"";
  550. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_personal_details");
  551. yield "\" id=\"header-user-button\">
  552. ";
  553. // line 82
  554. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my_account", [], "HelensBakery"), "html", null, true);
  555. yield "
  556. </a>
  557. ";
  558. } else {
  559. // line 85
  560. yield " <a class=\"header-user-link\" href=\"";
  561. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_logout");
  562. yield "\" id=\"header-user-button\">
  563. ";
  564. // line 86
  565. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my_account", [], "HelensBakery"), "html", null, true);
  566. yield "
  567. Log out
  568. </a>
  569. ";
  570. }
  571. // line 90
  572. yield " ";
  573. } else {
  574. // line 91
  575. yield " <div class=\"header-login-wrapper\">
  576. <a href=\"#\" id=\"header-login-button\">";
  577. // line 92
  578. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("log_in", [], "HelensBakery"), "html", null, true);
  579. yield "</a>
  580. <form class=\"header-login-form\" method=\"post\" action=\"";
  581. // line 93
  582. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_login");
  583. yield "\">
  584. <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  585. // line 94
  586. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
  587. yield "\">
  588. <span class=\"header-login-form-header\">";
  589. // line 95
  590. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("log_in", [], "HelensBakery"), "html", null, true);
  591. yield "</span>
  592. <div class=\"header-login-form-error\"></div>
  593. <input type=\"text\" id=\"header-login-username\" name=\"_username\" placeholder=\"";
  594. // line 97
  595. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("username", [], "BoldrUsersBundle"), "html", null, true);
  596. yield "\" />
  597. <input type=\"password\" id=\"header-login-password\" name=\"_password\" placeholder=\"";
  598. // line 98
  599. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password", [], "BoldrUsersBundle"), "html", null, true);
  600. yield "\" />
  601. <div class=\"form-label-control header-login-remember-me\">
  602. <input type=\"checkbox\" name=\"_remember_me\" id=\"header-login-remember\" />
  603. <label for=\"header-login-remember\">";
  604. // line 101
  605. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("remember_me", [], "BoldrUsersBundle"), "html", null, true);
  606. yield "</label>
  607. </diV>
  608. <a href=\"";
  609. // line 103
  610. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_forgot_password");
  611. yield "\" class=\"header-login-form-forgot\">";
  612. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forgot_password", [], "BoldrUsersBundle"), "html", null, true);
  613. yield "</a>
  614. <button class=\"header-login-form-submit boldr-button boldr-button-filled\" type=\"submit\">
  615. Inloggen
  616. </button>
  617. <a href=\"";
  618. // line 107
  619. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_register");
  620. yield "\" class=\"header-login-form-register\">";
  621. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no_account_click_here", [], "HelensBakery"), "html", null, true);
  622. yield "</a>
  623. </form>
  624. </div>
  625. ";
  626. }
  627. // line 111
  628. yield "
  629. ";
  630. // line 112
  631. $context["itemCount"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCartView(), "itemCount", [], "any", false, false, false, 112);
  632. // line 113
  633. yield " ";
  634. if ((($tmp = ((array_key_exists("isShop", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["isShop"]) || array_key_exists("isShop", $context) ? $context["isShop"] : (function () { throw new RuntimeError('Variable "isShop" does not exist.', 113, $this->source); })()), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  635. // line 114
  636. yield " <div class=\"order-window-cart-next-states only-finish\">
  637. ";
  638. // line 115
  639. $context['_parent'] = $context;
  640. $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::filter($this->env, 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.', 115, $this->source); })()), "nextStates", [], "any", false, false, false, 115), function ($__v__) use ($context, $macros) { $context["v"] = $__v__; return ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 115, $this->source); })()), "state", [], "any", false, false, false, 115) == "payment") || (CoreExtension::getAttribute($this->env, $this->source, (isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 115, $this->source); })()), "state", [], "any", false, false, false, 115) == "confirmed")); }));
  641. foreach ($context['_seq'] as $context["_key"] => $context["nextState"]) {
  642. // line 116
  643. yield " <a href=\"";
  644. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["nextState"], "url", [], "any", false, false, false, 116), "html", null, true);
  645. yield "\" class=\"boldr-button boldr-button-highlight\">
  646. ";
  647. // line 117
  648. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["nextState"], "buttonText", [], "any", false, false, false, 117), "html", null, true);
  649. yield "
  650. </a>
  651. ";
  652. }
  653. $_parent = $context['_parent'];
  654. unset($context['_seq'], $context['_key'], $context['nextState'], $context['_parent']);
  655. $context = array_intersect_key($context, $_parent) + $_parent;
  656. // line 120
  657. yield " </div>
  658. ";
  659. } else {
  660. // line 122
  661. yield " <a href=\"";
  662. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_shop");
  663. yield "\" id=\"header-order-button\" class=\"boldr-button boldr-button-filled ";
  664. yield ((((isset($context["itemCount"]) || array_key_exists("itemCount", $context) ? $context["itemCount"] : (function () { throw new RuntimeError('Variable "itemCount" does not exist.', 122, $this->source); })()) > 0)) ? ("has-items") : (""));
  665. yield "\">
  666. <span id=\"header-order-button-order\">";
  667. // line 123
  668. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order", [], "HelensBakery"), "html", null, true);
  669. yield "</span>
  670. <span id=\"header-order-button-continue\">";
  671. // line 124
  672. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("continue_order", [], "HelensBakery"), "html", null, true);
  673. yield "</span>
  674. <span id=\"header-order-button-count\" class=\"boldr-button-notification-count\">";
  675. // line 125
  676. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["itemCount"]) || array_key_exists("itemCount", $context) ? $context["itemCount"] : (function () { throw new RuntimeError('Variable "itemCount" does not exist.', 125, $this->source); })()), "html", null, true);
  677. yield "</span>
  678. </a>
  679. ";
  680. }
  681. // line 128
  682. yield " </div>
  683. </div>
  684. <div class=\"header-mobile\">
  685. <div class=\"header-mobile-language\">
  686. <ul>
  687. ";
  688. // line 134
  689. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["availableLocales"]) || array_key_exists("availableLocales", $context) ? $context["availableLocales"] : (function () { throw new RuntimeError('Variable "availableLocales" does not exist.', 134, $this->source); })())) > 1)) {
  690. // line 135
  691. yield " <li>
  692. ";
  693. // line 136
  694. $context['_parent'] = $context;
  695. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["availableLocales"]) || array_key_exists("availableLocales", $context) ? $context["availableLocales"] : (function () { throw new RuntimeError('Variable "availableLocales" does not exist.', 136, $this->source); })()));
  696. foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
  697. // line 137
  698. yield " ";
  699. $context["translatedUrl"] = $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getTranslationUrl($context["locale"]);
  700. // line 138
  701. yield " ";
  702. if (( !(null === (isset($context["translatedUrl"]) || array_key_exists("translatedUrl", $context) ? $context["translatedUrl"] : (function () { throw new RuntimeError('Variable "translatedUrl" does not exist.', 138, $this->source); })())) && ($context["locale"] != CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 138, $this->source); })()), "request", [], "any", false, false, false, 138), "locale", [], "any", false, false, false, 138)))) {
  703. // line 139
  704. yield " <a class=\"available-locale\" href=\"";
  705. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["translatedUrl"]) || array_key_exists("translatedUrl", $context) ? $context["translatedUrl"] : (function () { throw new RuntimeError('Variable "translatedUrl" does not exist.', 139, $this->source); })()), "html", null, true);
  706. yield "\">
  707. <img class=\"language-selector-flag\" src=\"";
  708. // line 140
  709. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("assets/images/flags/" . $context["locale"]) . ".png")), "html", null, true);
  710. yield "\" title=\"";
  711. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
  712. yield "\" />
  713. </a>
  714. ";
  715. }
  716. // line 143
  717. yield " ";
  718. }
  719. $_parent = $context['_parent'];
  720. unset($context['_seq'], $context['_key'], $context['locale'], $context['_parent']);
  721. $context = array_intersect_key($context, $_parent) + $_parent;
  722. // line 144
  723. yield " </li>
  724. ";
  725. }
  726. // line 146
  727. yield " </ul>
  728. </div>
  729. <a href=\"#menu\" class=\"header-mobile-button\">
  730. <span></span>
  731. <span></span>
  732. <span></span>
  733. </a>
  734. <div class=\"header-mobile-menu\">
  735. <div class=\"header-mobile-menu-inner\">
  736. <ul>
  737. <li>
  738. <a href=\"";
  739. // line 160
  740. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_shop");
  741. yield "\" id=\"header-order-button\" class=\"";
  742. yield ((((isset($context["itemCount"]) || array_key_exists("itemCount", $context) ? $context["itemCount"] : (function () { throw new RuntimeError('Variable "itemCount" does not exist.', 160, $this->source); })()) > 0)) ? ("has-items") : (""));
  743. yield "\">
  744. <span id=\"header-order-button-order\">";
  745. // line 161
  746. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order", [], "HelensBakery"), "html", null, true);
  747. yield "</span>
  748. <span id=\"header-order-button-continue\">";
  749. // line 162
  750. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("continue_order", [], "HelensBakery"), "html", null, true);
  751. yield "</span>
  752. </a>
  753. </li>
  754. </ul>
  755. ";
  756. // line 167
  757. $context['_parent'] = $context;
  758. $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getMenusAtLocation("header"));
  759. foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
  760. // line 168
  761. yield " ";
  762. yield $this->getTemplateForMacro("macro_menu", $context, 168, $this->getSourceContext())->macro_menu(...[$context["menu"], "header-menu"]);
  763. yield "
  764. ";
  765. }
  766. $_parent = $context['_parent'];
  767. unset($context['_seq'], $context['_key'], $context['menu'], $context['_parent']);
  768. $context = array_intersect_key($context, $_parent) + $_parent;
  769. // line 170
  770. yield "
  771. <ul>
  772. <li>
  773. ";
  774. // line 173
  775. if ((($tmp = 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.', 173, $this->source); })()), "user", [], "any", false, false, false, 173)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  776. // line 174
  777. yield " ";
  778. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCustomerView(), "getCanChangeOwnDetails", [], "method", false, false, false, 174)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  779. // line 175
  780. yield " <a href=\"";
  781. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_personal_details");
  782. yield "\">
  783. ";
  784. // line 176
  785. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my_account", [], "HelensBakery"), "html", null, true);
  786. yield "
  787. </a>
  788. ";
  789. } else {
  790. // line 179
  791. yield " <a href=\"";
  792. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_logout");
  793. yield "\">
  794. ";
  795. // line 180
  796. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("log_out", [], "HelensBakery"), "html", null, true);
  797. yield "
  798. </a>
  799. ";
  800. }
  801. // line 183
  802. yield " ";
  803. } else {
  804. // line 184
  805. yield " <a href=\"";
  806. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_login");
  807. yield "\">
  808. ";
  809. // line 185
  810. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("log_in", [], "HelensBakery"), "html", null, true);
  811. yield "
  812. </a>
  813. ";
  814. }
  815. // line 188
  816. yield " </li>
  817. ";
  818. // line 190
  819. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["availableLocales"]) || array_key_exists("availableLocales", $context) ? $context["availableLocales"] : (function () { throw new RuntimeError('Variable "availableLocales" does not exist.', 190, $this->source); })())) > 1)) {
  820. // line 191
  821. yield " <li>
  822. ";
  823. // line 192
  824. $context['_parent'] = $context;
  825. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["availableLocales"]) || array_key_exists("availableLocales", $context) ? $context["availableLocales"] : (function () { throw new RuntimeError('Variable "availableLocales" does not exist.', 192, $this->source); })()));
  826. foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
  827. // line 193
  828. yield " ";
  829. $context["translatedUrl"] = $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getTranslationUrl($context["locale"]);
  830. // line 194
  831. yield " ";
  832. if (( !(null === (isset($context["translatedUrl"]) || array_key_exists("translatedUrl", $context) ? $context["translatedUrl"] : (function () { throw new RuntimeError('Variable "translatedUrl" does not exist.', 194, $this->source); })())) && ($context["locale"] != CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 194, $this->source); })()), "request", [], "any", false, false, false, 194), "locale", [], "any", false, false, false, 194)))) {
  833. // line 195
  834. yield " <a class=\"available-locale\" href=\"";
  835. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["translatedUrl"]) || array_key_exists("translatedUrl", $context) ? $context["translatedUrl"] : (function () { throw new RuntimeError('Variable "translatedUrl" does not exist.', 195, $this->source); })()), "html", null, true);
  836. yield "\">
  837. <img class=\"language-selector-flag\" src=\"";
  838. // line 196
  839. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("assets/images/flags/" . $context["locale"]) . ".png")), "html", null, true);
  840. yield "\" title=\"";
  841. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
  842. yield "\" />
  843. <span>";
  844. // line 197
  845. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
  846. yield "</span>
  847. </a>
  848. ";
  849. }
  850. // line 200
  851. yield " ";
  852. }
  853. $_parent = $context['_parent'];
  854. unset($context['_seq'], $context['_key'], $context['locale'], $context['_parent']);
  855. $context = array_intersect_key($context, $_parent) + $_parent;
  856. // line 201
  857. yield " </li>
  858. ";
  859. }
  860. // line 203
  861. yield " </ul>
  862. </div>
  863. </div>
  864. </div>
  865. ";
  866. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  867. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  868. yield from [];
  869. }
  870. // line 214
  871. /**
  872. * @return iterable<null|scalar|\Stringable>
  873. */
  874. public function block_body(array $context, array $blocks = []): iterable
  875. {
  876. $macros = $this->macros;
  877. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  878. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  879. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  880. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  881. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  882. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  883. yield from [];
  884. }
  885. // line 328
  886. public function macro_menu($menu = null, $class = null, $itemClass = null, ...$varargs): string|Markup
  887. {
  888. $macros = $this->macros;
  889. $context = [
  890. "menu" => $menu,
  891. "class" => $class,
  892. "itemClass" => $itemClass,
  893. "varargs" => $varargs,
  894. ] + $this->env->getGlobals();
  895. $blocks = [];
  896. return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  897. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  898. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "menu"));
  899. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  900. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "menu"));
  901. // line 329
  902. yield "<ul class=\"menu ";
  903. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 329, $this->source); })()), "html", null, true);
  904. yield "\">
  905. ";
  906. // line 330
  907. $context['_parent'] = $context;
  908. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["menu"]) || array_key_exists("menu", $context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.', 330, $this->source); })()), "items", [], "any", false, false, false, 330));
  909. foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  910. // line 331
  911. yield " ";
  912. yield $this->getTemplateForMacro("macro_menuItem", $context, 331, $this->getSourceContext())->macro_menuItem(...[$context["item"], (isset($context["itemClass"]) || array_key_exists("itemClass", $context) ? $context["itemClass"] : (function () { throw new RuntimeError('Variable "itemClass" does not exist.', 331, $this->source); })())]);
  913. yield "
  914. ";
  915. }
  916. $_parent = $context['_parent'];
  917. unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  918. $context = array_intersect_key($context, $_parent) + $_parent;
  919. // line 333
  920. yield " </ul>";
  921. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  922. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  923. yield from [];
  924. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  925. }
  926. // line 336
  927. public function macro_menuItem($item = null, $class = null, ...$varargs): string|Markup
  928. {
  929. $macros = $this->macros;
  930. $context = [
  931. "item" => $item,
  932. "class" => $class,
  933. "varargs" => $varargs,
  934. ] + $this->env->getGlobals();
  935. $blocks = [];
  936. return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  937. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  938. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "menuItem"));
  939. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  940. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "menuItem"));
  941. // line 337
  942. $context["children"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  943. // line 338
  944. yield " ";
  945. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 338, $this->source); })()), "hasChildren", [], "method", false, false, false, 338)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  946. // line 339
  947. yield " <ul class=\"menu-item-children\">
  948. ";
  949. // line 340
  950. $context['_parent'] = $context;
  951. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 340, $this->source); })()), "getChildren", [], "method", false, false, false, 340));
  952. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  953. // line 341
  954. yield " ";
  955. yield $this->getTemplateForMacro("macro_menuItem", $context, 341, $this->getSourceContext())->macro_menuItem(...[$context["child"]]);
  956. yield "
  957. ";
  958. }
  959. $_parent = $context['_parent'];
  960. unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
  961. $context = array_intersect_key($context, $_parent) + $_parent;
  962. // line 343
  963. yield " </ul>
  964. ";
  965. }
  966. // line 345
  967. yield " ";
  968. yield from [];
  969. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  970. // line 346
  971. yield " <li class=\"menu-item";
  972. yield ((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 346, $this->source); })()), "request", [], "any", false, false, false, 346), "uri", [], "any", false, false, false, 346) == CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 346, $this->source); })()), "url", [], "any", false, false, false, 346)) || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 346, $this->source); })()), "request", [], "any", false, false, false, 346), "requestUri", [], "any", false, false, false, 346) == CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 346, $this->source); })()), "url", [], "any", false, false, false, 346)))) ? (" menu-item-current") : (((CoreExtension::inFilter("menu-item-current", (isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 346, $this->source); })()))) ? (" menu-item-current-child") : (""))));
  973. yield "\">
  974. ";
  975. // line 347
  976. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 347, $this->source); })()), "hasUrl", [], "any", false, false, false, 347)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  977. // line 348
  978. yield " <a ";
  979. yield (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 348, $this->source); })()), "getOpenInNewWindow", [], "method", false, false, false, 348)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" target=\"blank\"") : (""));
  980. yield " class=\"menu-item-text menu-item-link ";
  981. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 348, $this->source); })()), "html", null, true);
  982. yield "\" href=\"";
  983. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 348, $this->source); })()), "url", [], "any", false, false, false, 348), "html", null, true);
  984. yield "\">
  985. ";
  986. // line 349
  987. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 349, $this->source); })()), "text", [], "any", false, false, false, 349), "html", null, true);
  988. yield "
  989. </a>
  990. ";
  991. } else {
  992. // line 352
  993. yield " <span class=\"menu-item-text\">
  994. ";
  995. // line 353
  996. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 353, $this->source); })()), "text", [], "any", false, false, false, 353), "html", null, true);
  997. yield "
  998. </span>
  999. ";
  1000. }
  1001. // line 356
  1002. yield " ";
  1003. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "notification", [], "any", true, true, false, 356) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 356, $this->source); })()), "notification", [], "any", false, false, false, 356)))) {
  1004. // line 357
  1005. yield " <span class=\"menu-item-notification\">
  1006. ";
  1007. // line 358
  1008. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 358, $this->source); })()), "notification", [], "any", false, false, false, 358), "html", null, true);
  1009. yield "
  1010. </span>
  1011. ";
  1012. }
  1013. // line 361
  1014. yield " ";
  1015. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 361, $this->source); })()), "html", null, true);
  1016. yield "
  1017. </li>";
  1018. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1019. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1020. yield from [];
  1021. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  1022. }
  1023. /**
  1024. * @codeCoverageIgnore
  1025. */
  1026. public function getTemplateName(): string
  1027. {
  1028. return "base.html.twig";
  1029. }
  1030. /**
  1031. * @codeCoverageIgnore
  1032. */
  1033. public function isTraitable(): bool
  1034. {
  1035. return false;
  1036. }
  1037. /**
  1038. * @codeCoverageIgnore
  1039. */
  1040. public function getDebugInfo(): array
  1041. {
  1042. return array ( 1100 => 361, 1094 => 358, 1091 => 357, 1088 => 356, 1082 => 353, 1079 => 352, 1073 => 349, 1064 => 348, 1062 => 347, 1057 => 346, 1053 => 345, 1049 => 343, 1040 => 341, 1036 => 340, 1033 => 339, 1030 => 338, 1028 => 337, 1009 => 336, 997 => 333, 988 => 331, 984 => 330, 979 => 329, 959 => 328, 937 => 214, 920 => 203, 916 => 201, 910 => 200, 904 => 197, 898 => 196, 893 => 195, 890 => 194, 887 => 193, 883 => 192, 880 => 191, 878 => 190, 874 => 188, 868 => 185, 863 => 184, 860 => 183, 854 => 180, 849 => 179, 843 => 176, 838 => 175, 835 => 174, 833 => 173, 828 => 170, 819 => 168, 815 => 167, 807 => 162, 803 => 161, 797 => 160, 781 => 146, 777 => 144, 771 => 143, 763 => 140, 758 => 139, 755 => 138, 752 => 137, 748 => 136, 745 => 135, 743 => 134, 735 => 128, 729 => 125, 725 => 124, 721 => 123, 714 => 122, 710 => 120, 701 => 117, 696 => 116, 692 => 115, 689 => 114, 686 => 113, 684 => 112, 681 => 111, 672 => 107, 663 => 103, 658 => 101, 652 => 98, 648 => 97, 643 => 95, 639 => 94, 635 => 93, 631 => 92, 628 => 91, 625 => 90, 618 => 86, 613 => 85, 607 => 82, 602 => 81, 599 => 80, 597 => 79, 586 => 75, 581 => 74, 577 => 71, 568 => 69, 563 => 68, 560 => 66, 556 => 64, 550 => 63, 544 => 60, 538 => 59, 533 => 58, 530 => 57, 527 => 56, 523 => 55, 520 => 54, 517 => 53, 514 => 52, 510 => 49, 497 => 48, 475 => 43, 453 => 25, 430 => 9, 418 => 335, 413 => 325, 408 => 322, 406 => 321, 401 => 319, 397 => 318, 393 => 317, 389 => 316, 385 => 315, 380 => 314, 375 => 311, 372 => 310, 367 => 307, 361 => 305, 359 => 304, 355 => 303, 350 => 302, 348 => 301, 345 => 300, 343 => 299, 335 => 293, 326 => 291, 321 => 290, 310 => 281, 301 => 278, 293 => 271, 284 => 268, 277 => 267, 273 => 266, 268 => 263, 260 => 261, 255 => 259, 250 => 257, 245 => 256, 241 => 255, 238 => 254, 230 => 248, 226 => 247, 222 => 246, 218 => 245, 212 => 241, 206 => 237, 202 => 235, 196 => 232, 191 => 231, 188 => 230, 186 => 229, 180 => 226, 175 => 224, 170 => 222, 164 => 218, 160 => 215, 158 => 214, 155 => 213, 151 => 210, 149 => 48, 146 => 47, 142 => 44, 140 => 43, 127 => 33, 124 => 32, 118 => 28, 116 => 27, 114 => 25, 109 => 24, 101 => 18, 99 => 17, 95 => 16, 91 => 15, 87 => 14, 83 => 13, 79 => 12, 75 => 11, 70 => 9, 64 => 6, 60 => 4, 58 => 3, 55 => 2, 53 => 1,);
  1043. }
  1044. public function getSourceContext(): Source
  1045. {
  1046. return new Source("{% import '@BoldrCms/_macros/assets.twig' as assets_macros %}
  1047. {% set assets = assets is defined and assets is not empty ? boldr_cms_get_assets().addAll(assets) : boldr_cms_get_assets() %}
  1048. <!DOCTYPE html>
  1049. <html lang=\"{{ app.request.locale }}\">
  1050. <head>
  1051. <meta charset=\"UTF-8\">
  1052. <title>{% block title %}{{ boldr_cms_get_site_name() }}{% endblock %}</title>
  1053. <meta name=\"viewport\" content=\"width=device-width\" />
  1054. <link rel=\"stylesheet\" href=\"{{ asset('assets/css/boldrcms-theme-variables.css') }}\" />
  1055. <link rel=\"stylesheet\" href=\"{{ asset('bundles/boldrcms/boldrcms-calculated.css') }}\" />
  1056. <link rel=\"icon\" href=\"{{ asset('assets/images/logo.svg') }}\" />
  1057. {{ assets_macros.renderHeadContents(assets) }}
  1058. {{ assets_macros.renderCssFiles(assets) }}
  1059. {{ assets_macros.renderWebpackEncoreStyleEntries(assets) }}
  1060. {% if boldr_cms_get_cookie_state().analysis %}
  1061. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  1062. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  1063. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  1064. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  1065. })(window,document,'script','dataLayer','GTM-55B36VC');</script>
  1066. {% endif %}
  1067. <link rel=\"stylesheet\" href=\"{{ asset('assets/css/style.css') }}?v=1.0.2\" />
  1068. {% block head %}
  1069. {% endblock %}
  1070. {% if app.environment == 'dev' %}
  1071. <style>
  1072. body {box-shadow: inset 10px 0 0 red; }
  1073. </style>
  1074. {% endif %}
  1075. </head>
  1076. <body class=\"{{ app.request.attributes.get('_route') == 'shop_shop' ? 'boldr-shop-order-page' }}\">
  1077. <div id=\"wrap\">
  1078. <div id=\"overlay-container\">
  1079. <div id=\"overlay-loading\">
  1080. <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" style=\"margin: auto; display: block;\" width=\"100px\" height=\"100px\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\">
  1081. <circle cx=\"50\" cy=\"50\" fill=\"none\" stroke=\"#ffffff\" stroke-width=\"10\" r=\"35\" stroke-dasharray=\"164.93361431346415 56.97787143782138\">
  1082. <animateTransform attributeName=\"transform\" type=\"rotate\" repeatCount=\"indefinite\" dur=\"1s\" values=\"0 50 50;360 50 50\" keyTimes=\"0;1\"></animateTransform>
  1083. </circle>
  1084. </svg>
  1085. </div>
  1086. {% block overlays %}{% endblock %}
  1087. </div>
  1088. {# Header #}
  1089. <div class=\"header-wrapper\">
  1090. {% block header_wrapper_content %}
  1091. <div class=\"header-content\">
  1092. <div class=\"header-content-left\">
  1093. {# Header locale switcher #}
  1094. {% set availableLocales = boldr_cms_get_enabled_locales() %}
  1095. {% if availableLocales|length > 1 %}
  1096. <div class=\"header-language-selector\">
  1097. {% for locale in availableLocales %}
  1098. {% set translatedUrl = boldr_cms_get_translation_url(locale) %}
  1099. {% if translatedUrl is not null and locale != app.request.locale %}
  1100. <a href=\"{{ translatedUrl }}\" class=\"available-locale\">
  1101. <img class=\"language-selector-flag\" src=\"{{ asset('assets/images/flags/' ~ locale ~ '.png') }}\" title=\"{{ locale|locale_name(locale) }}\" />
  1102. <span>{{ locale|locale_name(locale) }}</span>
  1103. </a>
  1104. {% endif %}
  1105. {% endfor %}
  1106. </div>
  1107. {% endif %}
  1108. {# Header menu #}
  1109. {% for menu in boldr_cms_get_menus_at_location('header') %}
  1110. {{ _self.menu(menu, 'header-menu') }}
  1111. {% endfor %}
  1112. </div>
  1113. {# Header logo #}
  1114. <a class=\"header-logo\" href=\"{{ url('cms_home') }}\">
  1115. <img class=\"header-logo-image\" src=\"{{ asset('assets/images/logo.svg') }}\" alt=\"{{ boldr_cms_get_site_name() }}\" title=\"{{ boldr_cms_get_site_name() }}\">
  1116. </a>
  1117. <div class=\"header-content-right\">
  1118. {% if app.user %}
  1119. {% if boldr_shop_get_customer().getCanChangeOwnDetails() %}
  1120. <a class=\"header-user-link\" href=\"{{ url('shop_personal_details') }}\" id=\"header-user-button\">
  1121. {{ 'my_account'|trans({}, 'HelensBakery') }}
  1122. </a>
  1123. {% else %}
  1124. <a class=\"header-user-link\" href=\"{{ url('boldr_users_logout') }}\" id=\"header-user-button\">
  1125. {{ 'my_account'|trans({}, 'HelensBakery') }}
  1126. Log out
  1127. </a>
  1128. {% endif %}
  1129. {% else %}
  1130. <div class=\"header-login-wrapper\">
  1131. <a href=\"#\" id=\"header-login-button\">{{ 'log_in'|trans({}, 'HelensBakery') }}</a>
  1132. <form class=\"header-login-form\" method=\"post\" action=\"{{ url('boldr_users_login') }}\">
  1133. <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  1134. <span class=\"header-login-form-header\">{{ 'log_in'|trans({}, 'HelensBakery') }}</span>
  1135. <div class=\"header-login-form-error\"></div>
  1136. <input type=\"text\" id=\"header-login-username\" name=\"_username\" placeholder=\"{{ 'username'|trans({}, 'BoldrUsersBundle') }}\" />
  1137. <input type=\"password\" id=\"header-login-password\" name=\"_password\" placeholder=\"{{ 'password'|trans({}, 'BoldrUsersBundle') }}\" />
  1138. <div class=\"form-label-control header-login-remember-me\">
  1139. <input type=\"checkbox\" name=\"_remember_me\" id=\"header-login-remember\" />
  1140. <label for=\"header-login-remember\">{{ 'remember_me'|trans({}, 'BoldrUsersBundle') }}</label>
  1141. </diV>
  1142. <a href=\"{{ url('boldr_users_forgot_password') }}\" class=\"header-login-form-forgot\">{{ 'forgot_password'|trans({}, 'BoldrUsersBundle') }}</a>
  1143. <button class=\"header-login-form-submit boldr-button boldr-button-filled\" type=\"submit\">
  1144. Inloggen
  1145. </button>
  1146. <a href=\"{{ url('app_register') }}\" class=\"header-login-form-register\">{{ 'no_account_click_here'|trans({}, 'HelensBakery') }}</a>
  1147. </form>
  1148. </div>
  1149. {% endif %}
  1150. {% set itemCount = boldr_shop_get_cart().itemCount %}
  1151. {% if isShop|default(false) %}
  1152. <div class=\"order-window-cart-next-states only-finish\">
  1153. {% for nextState in cart.nextStates|filter(v => v.state == 'payment' or v.state == 'confirmed') %}
  1154. <a href=\"{{ nextState.url }}\" class=\"boldr-button boldr-button-highlight\">
  1155. {{ nextState.buttonText }}
  1156. </a>
  1157. {% endfor %}
  1158. </div>
  1159. {% else %}
  1160. <a href=\"{{ url('shop_shop') }}\" id=\"header-order-button\" class=\"boldr-button boldr-button-filled {{ itemCount > 0 ? 'has-items' }}\">
  1161. <span id=\"header-order-button-order\">{{ 'order'|trans({}, 'HelensBakery') }}</span>
  1162. <span id=\"header-order-button-continue\">{{ 'continue_order'|trans({}, 'HelensBakery') }}</span>
  1163. <span id=\"header-order-button-count\" class=\"boldr-button-notification-count\">{{ itemCount }}</span>
  1164. </a>
  1165. {% endif %}
  1166. </div>
  1167. </div>
  1168. <div class=\"header-mobile\">
  1169. <div class=\"header-mobile-language\">
  1170. <ul>
  1171. {% if availableLocales|length > 1 %}
  1172. <li>
  1173. {% for locale in availableLocales %}
  1174. {% set translatedUrl = boldr_cms_get_translation_url(locale) %}
  1175. {% if translatedUrl is not null and locale != app.request.locale %}
  1176. <a class=\"available-locale\" href=\"{{ translatedUrl }}\">
  1177. <img class=\"language-selector-flag\" src=\"{{ asset('assets/images/flags/' ~ locale ~ '.png') }}\" title=\"{{ locale|locale_name(locale) }}\" />
  1178. </a>
  1179. {% endif %}
  1180. {% endfor %}
  1181. </li>
  1182. {% endif %}
  1183. </ul>
  1184. </div>
  1185. <a href=\"#menu\" class=\"header-mobile-button\">
  1186. <span></span>
  1187. <span></span>
  1188. <span></span>
  1189. </a>
  1190. <div class=\"header-mobile-menu\">
  1191. <div class=\"header-mobile-menu-inner\">
  1192. <ul>
  1193. <li>
  1194. <a href=\"{{ url('shop_shop') }}\" id=\"header-order-button\" class=\"{{ itemCount > 0 ? 'has-items' }}\">
  1195. <span id=\"header-order-button-order\">{{ 'order'|trans({}, 'HelensBakery') }}</span>
  1196. <span id=\"header-order-button-continue\">{{ 'continue_order'|trans({}, 'HelensBakery') }}</span>
  1197. </a>
  1198. </li>
  1199. </ul>
  1200. {% for menu in boldr_cms_get_menus_at_location('header') %}
  1201. {{ _self.menu(menu, 'header-menu') }}
  1202. {% endfor %}
  1203. <ul>
  1204. <li>
  1205. {% if app.user %}
  1206. {% if boldr_shop_get_customer().getCanChangeOwnDetails() %}
  1207. <a href=\"{{ url('shop_personal_details') }}\">
  1208. {{ 'my_account'|trans({}, 'HelensBakery') }}
  1209. </a>
  1210. {% else %}
  1211. <a href=\"{{ url('boldr_users_logout') }}\">
  1212. {{ 'log_out'|trans({}, 'HelensBakery') }}
  1213. </a>
  1214. {% endif %}
  1215. {% else %}
  1216. <a href=\"{{ url('boldr_users_login') }}\">
  1217. {{ 'log_in'|trans({}, 'HelensBakery') }}
  1218. </a>
  1219. {% endif %}
  1220. </li>
  1221. {% if availableLocales|length > 1 %}
  1222. <li>
  1223. {% for locale in availableLocales %}
  1224. {% set translatedUrl = boldr_cms_get_translation_url(locale) %}
  1225. {% if translatedUrl is not null and locale != app.request.locale %}
  1226. <a class=\"available-locale\" href=\"{{ translatedUrl }}\">
  1227. <img class=\"language-selector-flag\" src=\"{{ asset('assets/images/flags/' ~ locale ~ '.png') }}\" title=\"{{ locale|locale_name(locale) }}\" />
  1228. <span>{{ locale|locale_name(locale) }}</span>
  1229. </a>
  1230. {% endif %}
  1231. {% endfor %}
  1232. </li>
  1233. {% endif %}
  1234. </ul>
  1235. </div>
  1236. </div>
  1237. </div>
  1238. {% endblock %}
  1239. </div>
  1240. {# Main content #}
  1241. <div class=\"main\">
  1242. {% block body %}{% endblock %}
  1243. </div>
  1244. {# Footer #}
  1245. <div class=\"footer-wrapper\">
  1246. <div class=\"footer-content\">
  1247. <div class=\"footer-top\">
  1248. <div class=\"footer-opening-hours\">
  1249. <h3>{{ 'opening_hours'|trans({}, 'HelensBakery') }}</h3>
  1250. {{ boldr_opening_hours(hb_get_opening_hours_set()) }}
  1251. <p class=\"footer-bereidingstijd\">
  1252. {{ 'warm_bread_15_min_before_close'|trans({}, 'HelensBakery') }}
  1253. </p>
  1254. {% set bestellijstPdf = boldr_site_options_get('bestellijst_pdf') %}
  1255. {% if bestellijstPdf %}
  1256. <a target=\"_blank\" class=\"bestellijst-button\" href=\"{{ boldr_cms_generate_link(boldr_site_options_get('bestellijst_pdf')) }}\">
  1257. {{ 'order_list'|trans({}, 'HelensBakery') }}
  1258. </a>
  1259. {% endif %}
  1260. </div>
  1261. <div class=\"footer-contact\">
  1262. <h3>{{ 'contact_details'|trans({}, 'HelensBakery') }}</h3>
  1263. <div class=\"footer-contact-lines\">
  1264. {# Address #}
  1265. <div class=\"footer-contact-line-group\">
  1266. <div class=\"boldr-contact-map-line\">
  1267. <i class=\"icon-pin\"></i>
  1268. <div class=\"boldr-contact-map-address\">
  1269. {{ boldr_site_options_get('contact_details_address') }}<br />
  1270. {{ boldr_site_options_get('contact_details_postal_code') }}
  1271. {{ boldr_site_options_get('contact_details_city') }}<br />
  1272. {{ 'zep'|trans({}, 'HelensBakery') }}
  1273. </div>
  1274. </div>
  1275. </div>
  1276. {# Contact options #}
  1277. <div class=\"footer-contact-line-group\">
  1278. {% for contactOption in boldr_site_options_get('contact_details_contact_methods') %}
  1279. <{{ (contactOption.url ? 'a href=\"' ~ contactOption.url ~ '\"' : 'span')|raw }} class=\"boldr-contact-map-line boldr-contact-map-contact-option\">
  1280. <i class=\"boldr-icon {{ contactOption.icon }}\"></i>
  1281. <span class=\"boldr-contact-map-contact-option-text\">
  1282. {{ contactOption.text }}
  1283. </span>
  1284. </{{ contactOption.url ? 'a' : 'span' }}>
  1285. {% endfor %}
  1286. </div>
  1287. <div class=\"footer-social-media\">
  1288. {% for socialMediaLink in boldr_site_options_get('social_media_links') %}
  1289. <a href=\"{{ socialMediaLink.url }}\" target=\"_blank\" title=\"{{ socialMediaLink.name }}\" class=\"boldr-contact-map-social-media-link\">
  1290. <i class=\"boldr-icon {{ socialMediaLink.icon }}\"></i>
  1291. </a>
  1292. {% endfor %}
  1293. </div>
  1294. </div>
  1295. </div>
  1296. </div>
  1297. <div class=\"footer-bottom\">
  1298. <div class=\"footer-content-left\">
  1299. {# Copyright #}
  1300. <span class=\"footer-copyright\">&copy; {{ 'now'|date('Y') }} - {{ boldr_cms_get_site_name() }}.</span>
  1301. <span class=\"footer-developer\">
  1302. {{ 'website_by'|trans({}, 'HelensBakery') }}
  1303. <a href=\"https://boldragency.nl\" target=\"_blank\" class=\"footer-developer-name\">
  1304. Boldr Digital Agency
  1305. </a>
  1306. </span>
  1307. </div>
  1308. <div class=\"footer-content-right\">
  1309. {# Footer menu #}
  1310. {% for menu in boldr_cms_get_menus_at_location('footer') %}
  1311. {{ _self.menu(menu, 'footer-menu') }}
  1312. {% endfor %}
  1313. </div>
  1314. </div>
  1315. </div>
  1316. </div>
  1317. </div>
  1318. {% if not isShop|default(false) and not isCheckout|default(false) %}
  1319. <div class=\"mobile-begin-order-bar\">
  1320. {% set itemCount = boldr_shop_get_cart().itemCount %}
  1321. <a href=\"{{ url('shop_shop') }}\" class=\"boldr-button boldr-button-filled\">
  1322. {{ (itemCount > 0 ? 'contiue_order' : 'start_order')|trans({}, 'HelensBakery') }}
  1323. {% if itemCount > 0 %}
  1324. <span class=\"boldr-button-notification-count\">{{ itemCount }}</span>
  1325. {% endif %}
  1326. </a>
  1327. </div>
  1328. {% endif %}
  1329. {{ boldr_cookies_render()|raw }}
  1330. {# Render new head contents and script contents that were added by functions in the body #}
  1331. {{ assets_macros.renderHeadContents(assets) }}
  1332. {{ assets_macros.renderCssFiles(assets) }}
  1333. {{ assets_macros.renderWebpackEncoreStyleEntries(assets) }}
  1334. {{ assets_macros.renderJsFiles(assets) }}
  1335. {{ assets_macros.renderWebpackEncoreScriptEntries(assets) }}
  1336. {{ assets_macros.renderBodyContents(assets) }}
  1337. {% if boldr_cms_get_cookie_state().analysis %}
  1338. <noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-KPHG9RG\"
  1339. height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
  1340. {% endif %}
  1341. </body>
  1342. </html>
  1343. {% macro menu(menu, class, itemClass) -%}
  1344. <ul class=\"menu {{ class }}\">
  1345. {% for item in menu.items %}
  1346. {{ _self.menuItem(item, itemClass) }}
  1347. {% endfor %}
  1348. </ul>
  1349. {%- endmacro %}
  1350. {% macro menuItem(item, class) -%}
  1351. {% set children %}
  1352. {% if item.hasChildren() %}
  1353. <ul class=\"menu-item-children\">
  1354. {% for child in item.getChildren() %}
  1355. {{ _self.menuItem(child) }}
  1356. {% endfor %}
  1357. </ul>
  1358. {% endif %}
  1359. {% endset %}
  1360. <li class=\"menu-item{{ app.request.uri == item.url or app.request.requestUri == item.url ? ' menu-item-current' : ('menu-item-current' in children ? ' menu-item-current-child') }}\">
  1361. {% if item.hasUrl %}
  1362. <a {{ item.getOpenInNewWindow() ? ' target=\"blank\"' : '' }} class=\"menu-item-text menu-item-link {{ class }}\" href=\"{{ item.url }}\">
  1363. {{ item.text }}
  1364. </a>
  1365. {% else %}
  1366. <span class=\"menu-item-text\">
  1367. {{ item.text }}
  1368. </span>
  1369. {% endif %}
  1370. {% if item.notification is defined and item.notification is not empty %}
  1371. <span class=\"menu-item-notification\">
  1372. {{ item.notification }}
  1373. </span>
  1374. {% endif %}
  1375. {{ children }}
  1376. </li>
  1377. {%- endmacro %}
  1378. ", "base.html.twig", "/home/boldrdev/sites/hb/app/templates/base.html.twig");
  1379. }
  1380. }