<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* base.html.twig */
class __TwigTemplate_e6abfcda4f92477360c02b3e2e858576 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'head' => [$this, 'block_head'],
'overlays' => [$this, 'block_overlays'],
'header_wrapper_content' => [$this, 'block_header_wrapper_content'],
'body' => [$this, 'block_body'],
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
// line 1
$macros["assets_macros"] = $this->macros["assets_macros"] = $this->loadTemplate("@BoldrCms/_macros/assets.twig", "base.html.twig", 1)->unwrap();
// line 2
yield "
";
// line 3
$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)));
// line 4
yield "
<!DOCTYPE html>
<html lang=\"";
// line 6
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);
yield "\">
<head>
<meta charset=\"UTF-8\">
<title>";
// line 9
yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
yield "</title>
<meta name=\"viewport\" content=\"width=device-width\" />
<link rel=\"stylesheet\" href=\"";
// line 11
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);
yield "\" />
<link rel=\"stylesheet\" href=\"";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/boldrcms/boldrcms-calculated.css"), "html", null, true);
yield "\" />
<link rel=\"icon\" href=\"";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.svg"), "html", null, true);
yield "\" />
";
// line 14
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); })())]);
yield "
";
// line 15
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); })())]);
yield "
";
// line 16
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); })())]);
yield "
";
// line 17
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getCookieState(), "analysis", [], "any", false, false, false, 17)) {
// line 18
yield " <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-55B36VC');</script>
";
}
// line 24
yield " <link rel=\"stylesheet\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.css"), "html", null, true);
yield "?v=1.0.2\" />
";
// line 25
yield from $this->unwrap()->yieldBlock('head', $context, $blocks);
// line 27
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")) {
// line 28
yield " <style>
body {box-shadow: inset 10px 0 0 red; }
</style>
";
}
// line 32
yield " </head>
<body class=\"";
// line 33
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") : (""));
yield "\">
<div id=\"wrap\">
<div id=\"overlay-container\">
<div id=\"overlay-loading\">
<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\">
<circle cx=\"50\" cy=\"50\" fill=\"none\" stroke=\"#ffffff\" stroke-width=\"10\" r=\"35\" stroke-dasharray=\"164.93361431346415 56.97787143782138\">
<animateTransform attributeName=\"transform\" type=\"rotate\" repeatCount=\"indefinite\" dur=\"1s\" values=\"0 50 50;360 50 50\" keyTimes=\"0;1\"></animateTransform>
</circle>
</svg>
</div>
";
// line 43
yield from $this->unwrap()->yieldBlock('overlays', $context, $blocks);
// line 44
yield " </div>
";
// line 47
yield " <div class=\"header-wrapper\">
";
// line 48
yield from $this->unwrap()->yieldBlock('header_wrapper_content', $context, $blocks);
// line 210
yield " </div>
";
// line 213
yield " <div class=\"main\">
";
// line 214
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
// line 215
yield " </div>
";
// line 218
yield " <div class=\"footer-wrapper\">
<div class=\"footer-content\">
<div class=\"footer-top\">
<div class=\"footer-opening-hours\">
<h3>";
// line 222
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("opening_hours", [], "HelensBakery"), "html", null, true);
yield "</h3>
";
// line 224
yield $this->extensions['Boldr\Cms\OpeningHoursBundle\TwigExtension']->renderOpeningHours($this->extensions['App\TwigExtension']->getOpeningHoursSet());
yield "
<p class=\"footer-bereidingstijd\">
";
// line 226
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);
yield "
</p>
";
// line 229
$context["bestellijstPdf"] = $this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "bestellijst_pdf");
// line 230
yield " ";
if ((isset($context["bestellijstPdf"]) || array_key_exists("bestellijstPdf", $context) ? $context["bestellijstPdf"] : (function () { throw new RuntimeError('Variable "bestellijstPdf" does not exist.', 230, $this->source); })())) {
// line 231
yield " <a target=\"_blank\" class=\"bestellijst-button\" href=\"";
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);
yield "\">
";
// line 232
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order_list", [], "HelensBakery"), "html", null, true);
yield "
</a>
";
}
// line 235
yield " </div>
<div class=\"footer-contact\">
<h3>";
// line 237
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contact_details", [], "HelensBakery"), "html", null, true);
yield "</h3>
<div class=\"footer-contact-lines\">
";
// line 241
yield " <div class=\"footer-contact-line-group\">
<div class=\"boldr-contact-map-line\">
<i class=\"icon-pin\"></i>
<div class=\"boldr-contact-map-address\">
";
// line 245
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "contact_details_address"), "html", null, true);
yield "<br />
";
// line 246
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "contact_details_postal_code"), "html", null, true);
yield "
";
// line 247
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "contact_details_city"), "html", null, true);
yield "<br />
";
// line 248
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("zep", [], "HelensBakery"), "html", null, true);
yield "
</div>
</div>
</div>
";
// line 254
yield " <div class=\"footer-contact-line-group\">
";
// line 255
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "contact_details_contact_methods"));
foreach ($context['_seq'] as $context["_key"] => $context["contactOption"]) {
// line 256
yield " <";
yield ((CoreExtension::getAttribute($this->env, $this->source, $context["contactOption"], "url", [], "any", false, false, false, 256)) ? ((("a href=\"" . CoreExtension::getAttribute($this->env, $this->source, $context["contactOption"], "url", [], "any", false, false, false, 256)) . "\"")) : ("span"));
yield " class=\"boldr-contact-map-line boldr-contact-map-contact-option\">
<i class=\"boldr-icon ";
// line 257
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);
yield "\"></i>
<span class=\"boldr-contact-map-contact-option-text\">
";
// line 259
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);
yield "
</span>
</";
// line 261
yield ((CoreExtension::getAttribute($this->env, $this->source, $context["contactOption"], "url", [], "any", false, false, false, 261)) ? ("a") : ("span"));
yield ">
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['contactOption'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 263
yield " </div>
<div class=\"footer-social-media\">
";
// line 266
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\SiteOptionsBundle\TwigExtension']->getSiteOption($context, "social_media_links"));
foreach ($context['_seq'] as $context["_key"] => $context["socialMediaLink"]) {
// line 267
yield " <a href=\"";
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);
yield "\" target=\"_blank\" title=\"";
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);
yield "\" class=\"boldr-contact-map-social-media-link\">
<i class=\"boldr-icon ";
// line 268
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);
yield "\"></i>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['socialMediaLink'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 271
yield " </div>
</div>
</div>
</div>
<div class=\"footer-bottom\">
<div class=\"footer-content-left\">
";
// line 278
yield " <span class=\"footer-copyright\">© ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y"), "html", null, true);
yield " - ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getSiteName(), "html", null, true);
yield ".</span>
<span class=\"footer-developer\">
";
// line 281
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("website_by", [], "HelensBakery"), "html", null, true);
yield "
<a href=\"https://boldragency.nl\" target=\"_blank\" class=\"footer-developer-name\">
Boldr Digital Agency
</a>
</span>
</div>
<div class=\"footer-content-right\">
";
// line 290
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getMenusAtLocation("footer"));
foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
// line 291
yield " ";
yield $this->getTemplateForMacro("macro_menu", $context, 291, $this->getSourceContext())->macro_menu(...[$context["menu"], "footer-menu"]);
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['menu'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 293
yield " </div>
</div>
</div>
</div>
</div>
";
// line 299
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)))) {
// line 300
yield " <div class=\"mobile-begin-order-bar\">
";
// line 301
$context["itemCount"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCartView(), "itemCount", [], "any", false, false, false, 301);
// line 302
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_shop");
yield "\" class=\"boldr-button boldr-button-filled\">
";
// line 303
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);
yield "
";
// line 304
if (((isset($context["itemCount"]) || array_key_exists("itemCount", $context) ? $context["itemCount"] : (function () { throw new RuntimeError('Variable "itemCount" does not exist.', 304, $this->source); })()) > 0)) {
// line 305
yield " <span class=\"boldr-button-notification-count\">";
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);
yield "</span>
";
}
// line 307
yield " </a>
</div>
";
}
// line 310
yield "
";
// line 311
yield $this->extensions['Boldr\Cms\CookiesBundle\TwigExtension']->render($this->env);
yield "
";
// line 314
yield " ";
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); })())]);
yield "
";
// line 315
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); })())]);
yield "
";
// line 316
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); })())]);
yield "
";
// line 317
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); })())]);
yield "
";
// line 318
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); })())]);
yield "
";
// line 319
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); })())]);
yield "
";
// line 321
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getCookieState(), "analysis", [], "any", false, false, false, 321)) {
// line 322
yield " <noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-KPHG9RG\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
";
}
// line 325
yield " </body>
</html>
";
// line 335
yield "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 9
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getSiteName(), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 25
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_head(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 43
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_overlays(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "overlays"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "overlays"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 48
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_wrapper_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_wrapper_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_wrapper_content"));
// line 49
yield " <div class=\"header-content\">
<div class=\"header-content-left\">
";
// line 52
yield " ";
$context["availableLocales"] = $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getEnabledLocales();
// line 53
yield " ";
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)) {
// line 54
yield " <div class=\"header-language-selector\">
";
// line 55
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
// line 56
yield " ";
$context["translatedUrl"] = $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getTranslationUrl($context["locale"]);
// line 57
yield " ";
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)))) {
// line 58
yield " <a href=\"";
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);
yield "\" class=\"available-locale\">
<img class=\"language-selector-flag\" src=\"";
// line 59
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);
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
yield "\" />
<span>";
// line 60
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
yield "</span>
</a>
";
}
// line 63
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['locale'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 64
yield " </div>
";
}
// line 66
yield "
";
// line 68
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getMenusAtLocation("header"));
foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
// line 69
yield " ";
yield $this->getTemplateForMacro("macro_menu", $context, 69, $this->getSourceContext())->macro_menu(...[$context["menu"], "header-menu"]);
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['menu'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
yield " </div>
";
// line 74
yield " <a class=\"header-logo\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cms_home");
yield "\">
<img class=\"header-logo-image\" src=\"";
// line 75
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/logo.svg"), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getSiteName(), "html", null, true);
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getSiteName(), "html", null, true);
yield "\">
</a>
<div class=\"header-content-right\">
";
// line 79
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.', 79, $this->source); })()), "user", [], "any", false, false, false, 79)) {
// line 80
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCustomerView(), "getCanChangeOwnDetails", [], "method", false, false, false, 80)) {
// line 81
yield " <a class=\"header-user-link\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_personal_details");
yield "\" id=\"header-user-button\">
";
// line 82
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my_account", [], "HelensBakery"), "html", null, true);
yield "
</a>
";
} else {
// line 85
yield " <a class=\"header-user-link\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_logout");
yield "\" id=\"header-user-button\">
";
// line 86
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my_account", [], "HelensBakery"), "html", null, true);
yield "
Log out
</a>
";
}
// line 90
yield " ";
} else {
// line 91
yield " <div class=\"header-login-wrapper\">
<a href=\"#\" id=\"header-login-button\">";
// line 92
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("log_in", [], "HelensBakery"), "html", null, true);
yield "</a>
<form class=\"header-login-form\" method=\"post\" action=\"";
// line 93
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_login");
yield "\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 94
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
yield "\">
<span class=\"header-login-form-header\">";
// line 95
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("log_in", [], "HelensBakery"), "html", null, true);
yield "</span>
<div class=\"header-login-form-error\"></div>
<input type=\"text\" id=\"header-login-username\" name=\"_username\" placeholder=\"";
// line 97
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("username", [], "BoldrUsersBundle"), "html", null, true);
yield "\" />
<input type=\"password\" id=\"header-login-password\" name=\"_password\" placeholder=\"";
// line 98
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password", [], "BoldrUsersBundle"), "html", null, true);
yield "\" />
<div class=\"form-label-control header-login-remember-me\">
<input type=\"checkbox\" name=\"_remember_me\" id=\"header-login-remember\" />
<label for=\"header-login-remember\">";
// line 101
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("remember_me", [], "BoldrUsersBundle"), "html", null, true);
yield "</label>
</diV>
<a href=\"";
// line 103
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_forgot_password");
yield "\" class=\"header-login-form-forgot\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forgot_password", [], "BoldrUsersBundle"), "html", null, true);
yield "</a>
<button class=\"header-login-form-submit boldr-button boldr-button-filled\" type=\"submit\">
Inloggen
</button>
<a href=\"";
// line 107
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_register");
yield "\" class=\"header-login-form-register\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no_account_click_here", [], "HelensBakery"), "html", null, true);
yield "</a>
</form>
</div>
";
}
// line 111
yield "
";
// line 112
$context["itemCount"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCartView(), "itemCount", [], "any", false, false, false, 112);
// line 113
yield " ";
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.', 113, $this->source); })()), false)) : (false))) {
// line 114
yield " <div class=\"order-window-cart-next-states only-finish\">
";
// line 115
$context['_parent'] = $context;
$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")); }));
foreach ($context['_seq'] as $context["_key"] => $context["nextState"]) {
// line 116
yield " <a href=\"";
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);
yield "\" class=\"boldr-button boldr-button-highlight\">
";
// line 117
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);
yield "
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['nextState'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 120
yield " </div>
";
} else {
// line 122
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_shop");
yield "\" id=\"header-order-button\" class=\"boldr-button boldr-button-filled ";
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") : (""));
yield "\">
<span id=\"header-order-button-order\">";
// line 123
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order", [], "HelensBakery"), "html", null, true);
yield "</span>
<span id=\"header-order-button-continue\">";
// line 124
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("continue_order", [], "HelensBakery"), "html", null, true);
yield "</span>
<span id=\"header-order-button-count\" class=\"boldr-button-notification-count\">";
// line 125
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);
yield "</span>
</a>
";
}
// line 128
yield " </div>
</div>
<div class=\"header-mobile\">
<div class=\"header-mobile-language\">
<ul>
";
// line 134
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)) {
// line 135
yield " <li>
";
// line 136
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
// line 137
yield " ";
$context["translatedUrl"] = $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getTranslationUrl($context["locale"]);
// line 138
yield " ";
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)))) {
// line 139
yield " <a class=\"available-locale\" href=\"";
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);
yield "\">
<img class=\"language-selector-flag\" src=\"";
// line 140
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);
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
yield "\" />
</a>
";
}
// line 143
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['locale'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 144
yield " </li>
";
}
// line 146
yield " </ul>
</div>
<a href=\"#menu\" class=\"header-mobile-button\">
<span></span>
<span></span>
<span></span>
</a>
<div class=\"header-mobile-menu\">
<div class=\"header-mobile-menu-inner\">
<ul>
<li>
<a href=\"";
// line 160
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_shop");
yield "\" id=\"header-order-button\" class=\"";
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") : (""));
yield "\">
<span id=\"header-order-button-order\">";
// line 161
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order", [], "HelensBakery"), "html", null, true);
yield "</span>
<span id=\"header-order-button-continue\">";
// line 162
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("continue_order", [], "HelensBakery"), "html", null, true);
yield "</span>
</a>
</li>
</ul>
";
// line 167
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getMenusAtLocation("header"));
foreach ($context['_seq'] as $context["_key"] => $context["menu"]) {
// line 168
yield " ";
yield $this->getTemplateForMacro("macro_menu", $context, 168, $this->getSourceContext())->macro_menu(...[$context["menu"], "header-menu"]);
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['menu'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 170
yield "
<ul>
<li>
";
// line 173
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.', 173, $this->source); })()), "user", [], "any", false, false, false, 173)) {
// line 174
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Boldr\Shop\ShopBundle\Twig\Extension']->createCustomerView(), "getCanChangeOwnDetails", [], "method", false, false, false, 174)) {
// line 175
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shop_personal_details");
yield "\">
";
// line 176
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("my_account", [], "HelensBakery"), "html", null, true);
yield "
</a>
";
} else {
// line 179
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_logout");
yield "\">
";
// line 180
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("log_out", [], "HelensBakery"), "html", null, true);
yield "
</a>
";
}
// line 183
yield " ";
} else {
// line 184
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("boldr_users_login");
yield "\">
";
// line 185
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("log_in", [], "HelensBakery"), "html", null, true);
yield "
</a>
";
}
// line 188
yield " </li>
";
// line 190
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)) {
// line 191
yield " <li>
";
// line 192
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
// line 193
yield " ";
$context["translatedUrl"] = $this->extensions['Boldr\Cms\CmsBundle\Twig\TwigExtension']->getTranslationUrl($context["locale"]);
// line 194
yield " ";
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)))) {
// line 195
yield " <a class=\"available-locale\" href=\"";
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);
yield "\">
<img class=\"language-selector-flag\" src=\"";
// line 196
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);
yield "\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
yield "\" />
<span>";
// line 197
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->getLocaleName($context["locale"], $context["locale"]), "html", null, true);
yield "</span>
</a>
";
}
// line 200
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['locale'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 201
yield " </li>
";
}
// line 203
yield " </ul>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 214
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 328
public function macro_menu($menu = null, $class = null, $itemClass = null, ...$varargs): string|Markup
{
$macros = $this->macros;
$context = [
"menu" => $menu,
"class" => $class,
"itemClass" => $itemClass,
"varargs" => $varargs,
] + $this->env->getGlobals();
$blocks = [];
return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "menu"));
// line 329
yield "<ul class=\"menu ";
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);
yield "\">
";
// line 330
$context['_parent'] = $context;
$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));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 331
yield " ";
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); })())]);
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 333
yield " </ul>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
}
// line 336
public function macro_menuItem($item = null, $class = null, ...$varargs): string|Markup
{
$macros = $this->macros;
$context = [
"item" => $item,
"class" => $class,
"varargs" => $varargs,
] + $this->env->getGlobals();
$blocks = [];
return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "menuItem"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "menuItem"));
// line 337
$context["children"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 338
yield " ";
if (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)) {
// line 339
yield " <ul class=\"menu-item-children\">
";
// line 340
$context['_parent'] = $context;
$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));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 341
yield " ";
yield $this->getTemplateForMacro("macro_menuItem", $context, 341, $this->getSourceContext())->macro_menuItem(...[$context["child"]]);
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['child'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 343
yield " </ul>
";
}
// line 345
yield " ";
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 346
yield " <li class=\"menu-item";
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") : (""))));
yield "\">
";
// line 347
if (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)) {
// line 348
yield " <a ";
yield ((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)) ? (" target=\"blank\"") : (""));
yield " class=\"menu-item-text menu-item-link ";
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);
yield "\" href=\"";
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);
yield "\">
";
// line 349
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);
yield "
</a>
";
} else {
// line 352
yield " <span class=\"menu-item-text\">
";
// line 353
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);
yield "
</span>
";
}
// line 356
yield " ";
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)))) {
// line 357
yield " <span class=\"menu-item-notification\">
";
// line 358
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);
yield "
</span>
";
}
// line 361
yield " ";
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);
yield "
</li>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% import '@BoldrCms/_macros/assets.twig' as assets_macros %}
{% set assets = assets is defined and assets is not empty ? boldr_cms_get_assets().addAll(assets) : boldr_cms_get_assets() %}
<!DOCTYPE html>
<html lang=\"{{ app.request.locale }}\">
<head>
<meta charset=\"UTF-8\">
<title>{% block title %}{{ boldr_cms_get_site_name() }}{% endblock %}</title>
<meta name=\"viewport\" content=\"width=device-width\" />
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/boldrcms-theme-variables.css') }}\" />
<link rel=\"stylesheet\" href=\"{{ asset('bundles/boldrcms/boldrcms-calculated.css') }}\" />
<link rel=\"icon\" href=\"{{ asset('assets/images/logo.svg') }}\" />
{{ assets_macros.renderHeadContents(assets) }}
{{ assets_macros.renderCssFiles(assets) }}
{{ assets_macros.renderWebpackEncoreStyleEntries(assets) }}
{% if boldr_cms_get_cookie_state().analysis %}
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-55B36VC');</script>
{% endif %}
<link rel=\"stylesheet\" href=\"{{ asset('assets/css/style.css') }}?v=1.0.2\" />
{% block head %}
{% endblock %}
{% if app.environment == 'dev' %}
<style>
body {box-shadow: inset 10px 0 0 red; }
</style>
{% endif %}
</head>
<body class=\"{{ app.request.attributes.get('_route') == 'shop_shop' ? 'boldr-shop-order-page' }}\">
<div id=\"wrap\">
<div id=\"overlay-container\">
<div id=\"overlay-loading\">
<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\">
<circle cx=\"50\" cy=\"50\" fill=\"none\" stroke=\"#ffffff\" stroke-width=\"10\" r=\"35\" stroke-dasharray=\"164.93361431346415 56.97787143782138\">
<animateTransform attributeName=\"transform\" type=\"rotate\" repeatCount=\"indefinite\" dur=\"1s\" values=\"0 50 50;360 50 50\" keyTimes=\"0;1\"></animateTransform>
</circle>
</svg>
</div>
{% block overlays %}{% endblock %}
</div>
{# Header #}
<div class=\"header-wrapper\">
{% block header_wrapper_content %}
<div class=\"header-content\">
<div class=\"header-content-left\">
{# Header locale switcher #}
{% set availableLocales = boldr_cms_get_enabled_locales() %}
{% if availableLocales|length > 1 %}
<div class=\"header-language-selector\">
{% for locale in availableLocales %}
{% set translatedUrl = boldr_cms_get_translation_url(locale) %}
{% if translatedUrl is not null and locale != app.request.locale %}
<a href=\"{{ translatedUrl }}\" class=\"available-locale\">
<img class=\"language-selector-flag\" src=\"{{ asset('assets/images/flags/' ~ locale ~ '.png') }}\" title=\"{{ locale|locale_name(locale) }}\" />
<span>{{ locale|locale_name(locale) }}</span>
</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
{# Header menu #}
{% for menu in boldr_cms_get_menus_at_location('header') %}
{{ _self.menu(menu, 'header-menu') }}
{% endfor %}
</div>
{# Header logo #}
<a class=\"header-logo\" href=\"{{ url('cms_home') }}\">
<img class=\"header-logo-image\" src=\"{{ asset('assets/images/logo.svg') }}\" alt=\"{{ boldr_cms_get_site_name() }}\" title=\"{{ boldr_cms_get_site_name() }}\">
</a>
<div class=\"header-content-right\">
{% if app.user %}
{% if boldr_shop_get_customer().getCanChangeOwnDetails() %}
<a class=\"header-user-link\" href=\"{{ url('shop_personal_details') }}\" id=\"header-user-button\">
{{ 'my_account'|trans({}, 'HelensBakery') }}
</a>
{% else %}
<a class=\"header-user-link\" href=\"{{ url('boldr_users_logout') }}\" id=\"header-user-button\">
{{ 'my_account'|trans({}, 'HelensBakery') }}
Log out
</a>
{% endif %}
{% else %}
<div class=\"header-login-wrapper\">
<a href=\"#\" id=\"header-login-button\">{{ 'log_in'|trans({}, 'HelensBakery') }}</a>
<form class=\"header-login-form\" method=\"post\" action=\"{{ url('boldr_users_login') }}\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
<span class=\"header-login-form-header\">{{ 'log_in'|trans({}, 'HelensBakery') }}</span>
<div class=\"header-login-form-error\"></div>
<input type=\"text\" id=\"header-login-username\" name=\"_username\" placeholder=\"{{ 'username'|trans({}, 'BoldrUsersBundle') }}\" />
<input type=\"password\" id=\"header-login-password\" name=\"_password\" placeholder=\"{{ 'password'|trans({}, 'BoldrUsersBundle') }}\" />
<div class=\"form-label-control header-login-remember-me\">
<input type=\"checkbox\" name=\"_remember_me\" id=\"header-login-remember\" />
<label for=\"header-login-remember\">{{ 'remember_me'|trans({}, 'BoldrUsersBundle') }}</label>
</diV>
<a href=\"{{ url('boldr_users_forgot_password') }}\" class=\"header-login-form-forgot\">{{ 'forgot_password'|trans({}, 'BoldrUsersBundle') }}</a>
<button class=\"header-login-form-submit boldr-button boldr-button-filled\" type=\"submit\">
Inloggen
</button>
<a href=\"{{ url('app_register') }}\" class=\"header-login-form-register\">{{ 'no_account_click_here'|trans({}, 'HelensBakery') }}</a>
</form>
</div>
{% endif %}
{% set itemCount = boldr_shop_get_cart().itemCount %}
{% if isShop|default(false) %}
<div class=\"order-window-cart-next-states only-finish\">
{% for nextState in cart.nextStates|filter(v => v.state == 'payment' or v.state == 'confirmed') %}
<a href=\"{{ nextState.url }}\" class=\"boldr-button boldr-button-highlight\">
{{ nextState.buttonText }}
</a>
{% endfor %}
</div>
{% else %}
<a href=\"{{ url('shop_shop') }}\" id=\"header-order-button\" class=\"boldr-button boldr-button-filled {{ itemCount > 0 ? 'has-items' }}\">
<span id=\"header-order-button-order\">{{ 'order'|trans({}, 'HelensBakery') }}</span>
<span id=\"header-order-button-continue\">{{ 'continue_order'|trans({}, 'HelensBakery') }}</span>
<span id=\"header-order-button-count\" class=\"boldr-button-notification-count\">{{ itemCount }}</span>
</a>
{% endif %}
</div>
</div>
<div class=\"header-mobile\">
<div class=\"header-mobile-language\">
<ul>
{% if availableLocales|length > 1 %}
<li>
{% for locale in availableLocales %}
{% set translatedUrl = boldr_cms_get_translation_url(locale) %}
{% if translatedUrl is not null and locale != app.request.locale %}
<a class=\"available-locale\" href=\"{{ translatedUrl }}\">
<img class=\"language-selector-flag\" src=\"{{ asset('assets/images/flags/' ~ locale ~ '.png') }}\" title=\"{{ locale|locale_name(locale) }}\" />
</a>
{% endif %}
{% endfor %}
</li>
{% endif %}
</ul>
</div>
<a href=\"#menu\" class=\"header-mobile-button\">
<span></span>
<span></span>
<span></span>
</a>
<div class=\"header-mobile-menu\">
<div class=\"header-mobile-menu-inner\">
<ul>
<li>
<a href=\"{{ url('shop_shop') }}\" id=\"header-order-button\" class=\"{{ itemCount > 0 ? 'has-items' }}\">
<span id=\"header-order-button-order\">{{ 'order'|trans({}, 'HelensBakery') }}</span>
<span id=\"header-order-button-continue\">{{ 'continue_order'|trans({}, 'HelensBakery') }}</span>
</a>
</li>
</ul>
{% for menu in boldr_cms_get_menus_at_location('header') %}
{{ _self.menu(menu, 'header-menu') }}
{% endfor %}
<ul>
<li>
{% if app.user %}
{% if boldr_shop_get_customer().getCanChangeOwnDetails() %}
<a href=\"{{ url('shop_personal_details') }}\">
{{ 'my_account'|trans({}, 'HelensBakery') }}
</a>
{% else %}
<a href=\"{{ url('boldr_users_logout') }}\">
{{ 'log_out'|trans({}, 'HelensBakery') }}
</a>
{% endif %}
{% else %}
<a href=\"{{ url('boldr_users_login') }}\">
{{ 'log_in'|trans({}, 'HelensBakery') }}
</a>
{% endif %}
</li>
{% if availableLocales|length > 1 %}
<li>
{% for locale in availableLocales %}
{% set translatedUrl = boldr_cms_get_translation_url(locale) %}
{% if translatedUrl is not null and locale != app.request.locale %}
<a class=\"available-locale\" href=\"{{ translatedUrl }}\">
<img class=\"language-selector-flag\" src=\"{{ asset('assets/images/flags/' ~ locale ~ '.png') }}\" title=\"{{ locale|locale_name(locale) }}\" />
<span>{{ locale|locale_name(locale) }}</span>
</a>
{% endif %}
{% endfor %}
</li>
{% endif %}
</ul>
</div>
</div>
</div>
{% endblock %}
</div>
{# Main content #}
<div class=\"main\">
{% block body %}{% endblock %}
</div>
{# Footer #}
<div class=\"footer-wrapper\">
<div class=\"footer-content\">
<div class=\"footer-top\">
<div class=\"footer-opening-hours\">
<h3>{{ 'opening_hours'|trans({}, 'HelensBakery') }}</h3>
{{ boldr_opening_hours(hb_get_opening_hours_set()) }}
<p class=\"footer-bereidingstijd\">
{{ 'warm_bread_15_min_before_close'|trans({}, 'HelensBakery') }}
</p>
{% set bestellijstPdf = boldr_site_options_get('bestellijst_pdf') %}
{% if bestellijstPdf %}
<a target=\"_blank\" class=\"bestellijst-button\" href=\"{{ boldr_cms_generate_link(boldr_site_options_get('bestellijst_pdf')) }}\">
{{ 'order_list'|trans({}, 'HelensBakery') }}
</a>
{% endif %}
</div>
<div class=\"footer-contact\">
<h3>{{ 'contact_details'|trans({}, 'HelensBakery') }}</h3>
<div class=\"footer-contact-lines\">
{# Address #}
<div class=\"footer-contact-line-group\">
<div class=\"boldr-contact-map-line\">
<i class=\"icon-pin\"></i>
<div class=\"boldr-contact-map-address\">
{{ boldr_site_options_get('contact_details_address') }}<br />
{{ boldr_site_options_get('contact_details_postal_code') }}
{{ boldr_site_options_get('contact_details_city') }}<br />
{{ 'zep'|trans({}, 'HelensBakery') }}
</div>
</div>
</div>
{# Contact options #}
<div class=\"footer-contact-line-group\">
{% for contactOption in boldr_site_options_get('contact_details_contact_methods') %}
<{{ (contactOption.url ? 'a href=\"' ~ contactOption.url ~ '\"' : 'span')|raw }} class=\"boldr-contact-map-line boldr-contact-map-contact-option\">
<i class=\"boldr-icon {{ contactOption.icon }}\"></i>
<span class=\"boldr-contact-map-contact-option-text\">
{{ contactOption.text }}
</span>
</{{ contactOption.url ? 'a' : 'span' }}>
{% endfor %}
</div>
<div class=\"footer-social-media\">
{% for socialMediaLink in boldr_site_options_get('social_media_links') %}
<a href=\"{{ socialMediaLink.url }}\" target=\"_blank\" title=\"{{ socialMediaLink.name }}\" class=\"boldr-contact-map-social-media-link\">
<i class=\"boldr-icon {{ socialMediaLink.icon }}\"></i>
</a>
{% endfor %}
</div>
</div>
</div>
</div>
<div class=\"footer-bottom\">
<div class=\"footer-content-left\">
{# Copyright #}
<span class=\"footer-copyright\">© {{ 'now'|date('Y') }} - {{ boldr_cms_get_site_name() }}.</span>
<span class=\"footer-developer\">
{{ 'website_by'|trans({}, 'HelensBakery') }}
<a href=\"https://boldragency.nl\" target=\"_blank\" class=\"footer-developer-name\">
Boldr Digital Agency
</a>
</span>
</div>
<div class=\"footer-content-right\">
{# Footer menu #}
{% for menu in boldr_cms_get_menus_at_location('footer') %}
{{ _self.menu(menu, 'footer-menu') }}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
{% if not isShop|default(false) and not isCheckout|default(false) %}
<div class=\"mobile-begin-order-bar\">
{% set itemCount = boldr_shop_get_cart().itemCount %}
<a href=\"{{ url('shop_shop') }}\" class=\"boldr-button boldr-button-filled\">
{{ (itemCount > 0 ? 'contiue_order' : 'start_order')|trans({}, 'HelensBakery') }}
{% if itemCount > 0 %}
<span class=\"boldr-button-notification-count\">{{ itemCount }}</span>
{% endif %}
</a>
</div>
{% endif %}
{{ boldr_cookies_render()|raw }}
{# Render new head contents and script contents that were added by functions in the body #}
{{ assets_macros.renderHeadContents(assets) }}
{{ assets_macros.renderCssFiles(assets) }}
{{ assets_macros.renderWebpackEncoreStyleEntries(assets) }}
{{ assets_macros.renderJsFiles(assets) }}
{{ assets_macros.renderWebpackEncoreScriptEntries(assets) }}
{{ assets_macros.renderBodyContents(assets) }}
{% if boldr_cms_get_cookie_state().analysis %}
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-KPHG9RG\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
{% endif %}
</body>
</html>
{% macro menu(menu, class, itemClass) -%}
<ul class=\"menu {{ class }}\">
{% for item in menu.items %}
{{ _self.menuItem(item, itemClass) }}
{% endfor %}
</ul>
{%- endmacro %}
{% macro menuItem(item, class) -%}
{% set children %}
{% if item.hasChildren() %}
<ul class=\"menu-item-children\">
{% for child in item.getChildren() %}
{{ _self.menuItem(child) }}
{% endfor %}
</ul>
{% endif %}
{% endset %}
<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') }}\">
{% if item.hasUrl %}
<a {{ item.getOpenInNewWindow() ? ' target=\"blank\"' : '' }} class=\"menu-item-text menu-item-link {{ class }}\" href=\"{{ item.url }}\">
{{ item.text }}
</a>
{% else %}
<span class=\"menu-item-text\">
{{ item.text }}
</span>
{% endif %}
{% if item.notification is defined and item.notification is not empty %}
<span class=\"menu-item-notification\">
{{ item.notification }}
</span>
{% endif %}
{{ children }}
</li>
{%- endmacro %}
", "base.html.twig", "/home/boldrdev/sites/hb/app/templates/base.html.twig");
}
}