<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @SyliusShop/layout.html.twig */
class __TwigTemplate_a1003f76744ccbf96401507bed784904 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'seo_title' => [$this, 'block_seo_title'],
'seo_metatags' => [$this, 'block_seo_metatags'],
'stylesheets' => [$this, 'block_stylesheets'],
'messages' => [$this, 'block_messages'],
'sidebar' => [$this, 'block_sidebar'],
'accountSidebar' => [$this, 'block_accountSidebar'],
'top' => [$this, 'block_top'],
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
'javascripts' => [$this, 'block_javascripts'],
'confirmationModal' => [$this, 'block_confirmationModal'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "@SyliusShop/layout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/layout.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html lang=\"";
// line 3
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3), 0, 2), "html", null, true);
echo "\">
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
";
// line 8
$this->displayBlock('seo_title', $context, $blocks);
// line 11
echo " <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/favicon/apple-touch-icon.png?v=1.0.0\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon/favicon-16x16.png?v=1.0.0\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon/favicon-32x32.png?v=1.0.0\">
<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon/favicon-96x96.png?v=1.0.0\">
<link rel=\"icon\" type=\"image/svg+xml\" href=\"/favicon/favicon.svg?v=1.0.0\">
<link rel=\"mask-icon\" href=\"/favicon/safari-pinned-tab.svg?v=1.0.0\" color=\"#5bbad5\">
<link rel=\"shortcut icon\" href=\"/favicon/favicon.ico?v=1.0.0\">
<meta name=\"theme-color\" content=\"#ffffff\">
<link href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap\" rel=\"stylesheet\">
";
// line 24
$this->loadTemplate("@SyliusShop/_links.html.twig", "@SyliusShop/layout.html.twig", 24)->display($context);
// line 25
echo " ";
$this->loadTemplate("@SyliusShop/_clarity.html.twig", "@SyliusShop/layout.html.twig", 25)->display($context);
// line 26
echo " ";
$this->displayBlock('seo_metatags', $context, $blocks);
// line 42
echo "
";
// line 44
$this->displayBlock('stylesheets', $context, $blocks);
// line 52
echo "
";
// line 53
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.head");
echo "
</head>
<body class=\"pushable\">
";
// line 57
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragmentStrategy("esi", $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ch_cookie_consent.show_if_cookie_consent_not_set", ["locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($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)]));
echo "
";
// line 58
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.before_body");
echo "
";
// line 60
$this->displayBlock('messages', $context, $blocks);
// line 63
echo "
";
// line 64
$this->displayBlock('sidebar', $context, $blocks);
// line 69
echo "
";
// line 70
$this->displayBlock('accountSidebar', $context, $blocks);
// line 77
echo "
<div class=\"pusher\" data-route=\"";
// line 78
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 78, $this->source); })()), "request", [], "any", false, false, false, 78), "get", [0 => "_route"], "method", false, false, false, 78), "html", null, true);
echo "\">
";
// line 79
$this->displayBlock('top', $context, $blocks);
// line 89
echo "
";
// line 90
$this->displayBlock('header', $context, $blocks);
// line 98
echo "
";
// line 100
echo " ";
$context["currentRoute"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 100, $this->source); })()), "request", [], "any", false, false, false, 100), "get", [0 => "_route"], "method", false, false, false, 100);
// line 101
echo " ";
$context["isHomepage"] = ((isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 101, $this->source); })()) == "sylius_shop_homepage");
// line 102
echo " ";
$context["isBot"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 102, $this->source); })()), "request", [], "any", false, false, false, 102), "attributes", [], "any", false, false, false, 102), "get", [0 => "is_bot", 1 => false], "method", false, false, false, 102);
// line 103
echo " ";
$context["hideFloatingSearch"] = ((((((twig_in_filter("/account/", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 104
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 104, $this->source); })()), "request", [], "any", false, false, false, 104), "pathInfo", [], "any", false, false, false, 104)) || (is_string($__internal_compile_0 = // line 105
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 105, $this->source); })())) && is_string($__internal_compile_1 = "bitbag_sylius_organization_plugin_shop_account_") && ('' === $__internal_compile_1 || 0 === strpos($__internal_compile_0, $__internal_compile_1)))) || (is_string($__internal_compile_2 = // line 106
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 106, $this->source); })())) && is_string($__internal_compile_3 = "sylius_shop_account_") && ('' === $__internal_compile_3 || 0 === strpos($__internal_compile_2, $__internal_compile_3)))) || (is_string($__internal_compile_4 = // line 107
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 107, $this->source); })())) && is_string($__internal_compile_5 = "sylius_shop_cart_") && ('' === $__internal_compile_5 || 0 === strpos($__internal_compile_4, $__internal_compile_5)))) || (is_string($__internal_compile_6 = // line 108
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 108, $this->source); })())) && is_string($__internal_compile_7 = "sylius_shop_checkout_") && ('' === $__internal_compile_7 || 0 === strpos($__internal_compile_6, $__internal_compile_7)))) || (is_string($__internal_compile_8 = // line 109
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 109, $this->source); })())) && is_string($__internal_compile_9 = "sylius_shop_order_") && ('' === $__internal_compile_9 || 0 === strpos($__internal_compile_8, $__internal_compile_9)))) || ( // line 110
(isset($context["currentRoute"]) || array_key_exists("currentRoute", $context) ? $context["currentRoute"] : (function () { throw new RuntimeError('Variable "currentRoute" does not exist.', 110, $this->source); })()) == "app_crfq_create"));
// line 111
echo "
";
// line 112
if ((isset($context["isHomepage"]) || array_key_exists("isHomepage", $context) ? $context["isHomepage"] : (function () { throw new RuntimeError('Variable "isHomepage" does not exist.', 112, $this->source); })())) {
// line 113
echo " ";
$this->loadTemplate("@SyliusShop/Homepage/introduction.html.twig", "@SyliusShop/layout.html.twig", 113)->display($context);
// line 114
echo " <div class=\"ui hidden divider\"></div>
";
}
// line 116
echo "
";
// line 117
if ( !$this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
// line 118
echo " <div class=\"ui hidden divider\"></div>
";
}
// line 120
echo "
<div class=\"ui container\">
";
// line 123
$this->loadTemplate("@SyliusShop/_flashes.html.twig", "@SyliusShop/layout.html.twig", 123)->display($context);
// line 124
echo "
";
// line 125
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.before_content");
echo "
";
// line 127
$this->displayBlock('content', $context, $blocks);
// line 129
echo "
";
// line 130
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.after_content");
echo "
</div>
";
// line 133
if ((( !(isset($context["isHomepage"]) || array_key_exists("isHomepage", $context) ? $context["isHomepage"] : (function () { throw new RuntimeError('Variable "isHomepage" does not exist.', 133, $this->source); })()) && !(isset($context["isBot"]) || array_key_exists("isBot", $context) ? $context["isBot"] : (function () { throw new RuntimeError('Variable "isBot" does not exist.', 133, $this->source); })())) && !(isset($context["hideFloatingSearch"]) || array_key_exists("hideFloatingSearch", $context) ? $context["hideFloatingSearch"] : (function () { throw new RuntimeError('Variable "hideFloatingSearch" does not exist.', 133, $this->source); })()))) {
// line 134
echo " ";
$this->loadTemplate("@SyliusShop/Homepage/_aiSearch.html.twig", "@SyliusShop/layout.html.twig", 134)->display(twig_array_merge($context, ["floating" => true]));
// line 135
echo " ";
}
// line 136
echo "
";
// line 137
$this->displayBlock('footer', $context, $blocks);
// line 140
echo "</div>
";
// line 142
$this->displayBlock('javascripts', $context, $blocks);
// line 191
echo "
";
// line 192
$this->displayBlock('confirmationModal', $context, $blocks);
// line 195
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.after_body");
echo "
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
public function block_seo_title($context, array $blocks = [])
{
$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", "seo_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo_title"));
// line 9
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.title", ["resource" => (($context["product"]) ?? ((($context["taxon"]) ?? ((($context["vendor"]) ?? ((($context["page"]) ?? (twig_get_attribute($this->env, $this->source, (isset($context["sylius"]) || array_key_exists("sylius", $context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.', 9, $this->source); })()), "channel", [], "any", false, false, false, 9)))))))))]);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 26
public function block_seo_metatags($context, array $blocks = [])
{
$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", "seo_metatags"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo_metatags"));
// line 27
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.metatags", ["resource" => (($context["product"]) ?? ((($context["taxon"]) ?? ((($context["vendor"]) ?? ((($context["page"]) ?? (twig_get_attribute($this->env, $this->source, (isset($context["sylius"]) || array_key_exists("sylius", $context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.', 27, $this->source); })()), "channel", [], "any", false, false, false, 27)))))))))]);
echo "
";
// line 28
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.rich_snippets");
echo "
";
// line 30
if ($this->extensions['BitBag\OpenMarketplace\Component\SEO\Extension\NoIndexExtension']->isNoIndexPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 30, $this->source); })()), "request", [], "any", false, false, false, 30), "pathinfo", [], "any", false, false, false, 30), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 30, $this->source); })()), "request", [], "any", false, false, false, 30), "query", [], "any", false, false, false, 30), "all", [], "any", false, false, false, 30))) {
// line 31
echo " <meta name=\"robots\" content=\"noindex, nofollow\">
";
}
// line 33
echo "
";
// line 34
$context["resourceToUse"] = ((array_key_exists("taxon", $context)) ? ((isset($context["taxon"]) || array_key_exists("taxon", $context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.', 34, $this->source); })())) : (((array_key_exists("vendor", $context)) ? ((isset($context["vendor"]) || array_key_exists("vendor", $context) ? $context["vendor"] : (function () { throw new RuntimeError('Variable "vendor" does not exist.', 34, $this->source); })())) : (((array_key_exists("page", $context)) ? ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 34, $this->source); })())) : (null))))));
// line 35
echo "
";
// line 36
if ( !(null === (isset($context["resourceToUse"]) || array_key_exists("resourceToUse", $context) ? $context["resourceToUse"] : (function () { throw new RuntimeError('Variable "resourceToUse" does not exist.', 36, $this->source); })()))) {
// line 37
echo " <script type=\"application/ld+json\">
";
// line 38
echo twig_replace_filter(json_encode($this->extensions['BitBag\OpenMarketplace\Component\SEO\Extension\SchemaMarkupExtension']->generateSchemaMarkup((isset($context["resourceToUse"]) || array_key_exists("resourceToUse", $context) ? $context["resourceToUse"] : (function () { throw new RuntimeError('Variable "resourceToUse" does not exist.', 38, $this->source); })())), twig_constant("JSON_PRETTY_PRINT")), ["\\/" => "/"]);
echo "
</script>
";
}
// line 41
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 44
public function block_stylesheets($context, array $blocks = [])
{
$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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 45
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.stylesheets");
echo "
<style>
.tw.flag {
visibility: hidden !important;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 60
public function block_messages($context, array $blocks = [])
{
$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", "messages"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "messages"));
// line 61
echo " <div class=\"hyf-messages\"></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 64
public function block_sidebar($context, array $blocks = [])
{
$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", "sidebar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
// line 65
echo " <div class=\"ui right wide sidebar vertical menu overlay mobile-sidebar\">
";
// line 66
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.sidebar");
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 70
public function block_accountSidebar($context, array $blocks = [])
{
$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", "accountSidebar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "accountSidebar"));
// line 71
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 71, $this->source); })()), "user", [], "any", false, false, false, 71) != null)) {
// line 72
echo " <div class=\"ui left wide sidebar vertical menu overlay mobile-account-sidebar\">
";
// line 73
$this->loadTemplate("Context/Vendor/Menu/_mobileMenu.html.twig", "@SyliusShop/layout.html.twig", 73)->display($context);
// line 74
echo " </div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 79
public function block_top($context, array $blocks = [])
{
$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", "top"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "top"));
// line 80
echo " <div id=\"menu\" class=\"top-menu bg-white\">
<div class=\"ui container\">
<div class=\"top-bar\">
";
// line 83
$this->loadTemplate("@SyliusShop/Layout/Header/_logo.html.twig", "@SyliusShop/layout.html.twig", 83)->display($context);
// line 84
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.topbar");
echo "
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 90
public function block_header($context, array $blocks = [])
{
$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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 91
echo " <div id=\"menu-categories\" class=\"bg-topaz-100\">
<div class=\"ui container\">
";
// line 93
$this->loadTemplate("@SyliusShop/Layout/Header/_menu.html.twig", "@SyliusShop/layout.html.twig", 93)->display($context);
// line 94
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 127
public function block_content($context, array $blocks = [])
{
$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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 128
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 137
public function block_footer($context, array $blocks = [])
{
$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", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 138
echo " ";
$this->loadTemplate("@SyliusShop/_footer.html.twig", "@SyliusShop/layout.html.twig", 138)->display($context);
// line 139
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 142
public function block_javascripts($context, array $blocks = [])
{
$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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 143
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.javascripts");
echo "
<script>
// Make compare variables globally available for webpack bundled scripts
window.addToCompareSuccessTitle = '";
// line 147
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.success"), "html", null, true);
echo "';
window.addToCompareSuccess = '";
// line 148
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product_compare.added"), "html", null, true);
echo "';
window.addToCompareErrorTitle = '";
// line 149
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.error"), "html", null, true);
echo "';
window.addToCompareError = '";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product_compare.fail"), "html", null, true);
echo "';
window.visitComparisonPage = '";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.visit_comparison_page"), "html", null, true);
echo "';
window.browseCompare = '";
// line 152
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.card.in_comparison"), "html", null, true);
echo "';
window.comparisonPageUrl = '";
// line 153
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_product_compare_show");
echo "';
window.addToCompareUrl = '";
// line 154
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_product_compare_add_to_compare", ["productId" => "{id}"]);
echo "';
window.checkSvgPath = '";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/shop/images/check.svg", "shop"), "html", null, true);
echo "';
// Wishlist global variables
window.addToListErrorTitle = '";
// line 158
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.error"), "html", null, true);
echo "';
window.addToListError = '";
// line 159
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.failed_to_add_to_list"), "html", null, true);
echo "';
window.inList = '";
// line 160
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.added_to_list"), "html", null, true);
echo "';
window.listPageUrl = '";
// line 161
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_wishlist_plugin_shop_locale_wishlist_list_products");
echo "';
// Password validation translations
window.translations = window.translations || {};
window.translations.passwordsMustMatch = \"";
// line 165
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.form.passwords_must_match"), "js"), "html", null, true);
echo "\";
window.translations.passwordStrength = {
enterPass: \"";
// line 167
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.form.password_strength.enter_pass"), "js"), "html", null, true);
echo "\",
shortPass: \"";
// line 168
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.form.password_strength.short_pass"), "js"), "html", null, true);
echo "\",
containsField: \"";
// line 169
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.form.password_strength.contains_field"), "js"), "html", null, true);
echo "\",
reallyInsecure: \"";
// line 170
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.form.password_strength.really_insecure"), "js"), "html", null, true);
echo "\",
weak: \"";
// line 171
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.form.password_strength.weak"), "js"), "html", null, true);
echo "\",
medium: \"";
// line 172
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.form.password_strength.medium"), "js"), "html", null, true);
echo "\",
strong: \"";
// line 173
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.form.password_strength.strong"), "js"), "html", null, true);
echo "\"
};
</script>
";
// line 178
echo " <script>
\$(document).ready(function () {
\$(\"[data-content],[data-html]\").each(function () {
var position = \$(this).attr(\"data-position\") || \"bottom center\";
var opts = {hoverable: true, position: position};
if (\$(this).hasClass('custom-tooltip')) {
opts.className = { popup: 'ui popup custom-tooltip-popup' };
}
\$(this).popup(opts);
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 192
public function block_confirmationModal($context, array $blocks = [])
{
$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", "confirmationModal"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "confirmationModal"));
// line 193
echo " ";
$this->loadTemplate("@SyliusUi/Modal/_confirmation.html.twig", "@SyliusShop/layout.html.twig", 193)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@SyliusShop/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 681 => 193, 671 => 192, 649 => 178, 642 => 173, 638 => 172, 634 => 171, 630 => 170, 626 => 169, 622 => 168, 618 => 167, 613 => 165, 606 => 161, 602 => 160, 598 => 159, 594 => 158, 588 => 155, 584 => 154, 580 => 153, 576 => 152, 572 => 151, 568 => 150, 564 => 149, 560 => 148, 556 => 147, 548 => 143, 538 => 142, 528 => 139, 525 => 138, 515 => 137, 505 => 128, 495 => 127, 482 => 94, 480 => 93, 476 => 91, 466 => 90, 450 => 84, 448 => 83, 443 => 80, 433 => 79, 421 => 74, 419 => 73, 416 => 72, 413 => 71, 403 => 70, 390 => 66, 387 => 65, 377 => 64, 366 => 61, 356 => 60, 338 => 45, 328 => 44, 318 => 41, 312 => 38, 309 => 37, 307 => 36, 304 => 35, 302 => 34, 299 => 33, 295 => 31, 293 => 30, 288 => 28, 283 => 27, 273 => 26, 260 => 9, 250 => 8, 236 => 195, 234 => 192, 231 => 191, 229 => 142, 225 => 140, 223 => 137, 220 => 136, 217 => 135, 214 => 134, 212 => 133, 206 => 130, 203 => 129, 201 => 127, 196 => 125, 193 => 124, 191 => 123, 186 => 120, 182 => 118, 180 => 117, 177 => 116, 173 => 114, 170 => 113, 168 => 112, 165 => 111, 163 => 110, 162 => 109, 161 => 108, 160 => 107, 159 => 106, 158 => 105, 157 => 104, 155 => 103, 152 => 102, 149 => 101, 146 => 100, 143 => 98, 141 => 90, 138 => 89, 136 => 79, 132 => 78, 129 => 77, 127 => 70, 124 => 69, 122 => 64, 119 => 63, 117 => 60, 112 => 58, 108 => 57, 101 => 53, 98 => 52, 96 => 44, 92 => 42, 89 => 26, 86 => 25, 84 => 24, 69 => 11, 67 => 8, 59 => 3, 55 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html lang=\"{{ app.request.locale|slice(0, 2) }}\">
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
{% block seo_title %}
{{ sylius_template_event('dedi_sylius_seo_plugin.title', { resource: product ?? taxon ?? vendor ?? page ?? sylius.channel }) }}
{% endblock %}
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/favicon/apple-touch-icon.png?v=1.0.0\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon/favicon-16x16.png?v=1.0.0\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon/favicon-32x32.png?v=1.0.0\">
<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon/favicon-96x96.png?v=1.0.0\">
<link rel=\"icon\" type=\"image/svg+xml\" href=\"/favicon/favicon.svg?v=1.0.0\">
<link rel=\"mask-icon\" href=\"/favicon/safari-pinned-tab.svg?v=1.0.0\" color=\"#5bbad5\">
<link rel=\"shortcut icon\" href=\"/favicon/favicon.ico?v=1.0.0\">
<meta name=\"theme-color\" content=\"#ffffff\">
<link href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap\" rel=\"stylesheet\">
{% include '@SyliusShop/_links.html.twig' %}
{% include '@SyliusShop/_clarity.html.twig' %}
{% block seo_metatags %}
{{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? taxon ?? vendor ?? page ?? sylius.channel }) }}
{{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
{% if is_noindex_path(app.request.pathinfo, app.request.query.all) %}
<meta name=\"robots\" content=\"noindex, nofollow\">
{% endif %}
{% set resourceToUse = taxon is defined ? taxon : (vendor is defined ? vendor : (page is defined ? page : null)) %}
{% if resourceToUse is not null %}
<script type=\"application/ld+json\">
{{ generate_schema_markup(resourceToUse) | json_encode(constant('JSON_PRETTY_PRINT')) | replace({'\\\\/':'/'}) | raw }}
</script>
{% endif %}
{% endblock %}
{% block stylesheets %}
{{ sylius_template_event('sylius.shop.layout.stylesheets') }}
<style>
.tw.flag {
visibility: hidden !important;
}
</style>
{% endblock %}
{{ sylius_template_event('sylius.shop.layout.head') }}
</head>
<body class=\"pushable\">
{{ render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale })) }}
{{ sylius_template_event('sylius.shop.layout.before_body') }}
{% block messages %}
<div class=\"hyf-messages\"></div>
{% endblock %}
{% block sidebar %}
<div class=\"ui right wide sidebar vertical menu overlay mobile-sidebar\">
{{ sylius_template_event('sylius.shop.layout.sidebar') }}
</div>
{% endblock %}
{% block accountSidebar %}
{% if app.user != null %}
<div class=\"ui left wide sidebar vertical menu overlay mobile-account-sidebar\">
{% include 'Context/Vendor/Menu/_mobileMenu.html.twig' %}
</div>
{% endif %}
{% endblock %}
<div class=\"pusher\" data-route=\"{{ app.request.get('_route') }}\">
{% block top %}
<div id=\"menu\" class=\"top-menu bg-white\">
<div class=\"ui container\">
<div class=\"top-bar\">
{% include \"@SyliusShop/Layout/Header/_logo.html.twig\" %}
{{ sylius_template_event('sylius.shop.layout.topbar') }}
</div>
</div>
</div>
{% endblock %}
{% block header %}
<div id=\"menu-categories\" class=\"bg-topaz-100\">
<div class=\"ui container\">
{% include '@SyliusShop/Layout/Header/_menu.html.twig' %}
</div>
</div>
{% endblock %}
{# AI Search Bar - static in introduction on homepage, floating on all other pages #}
{% set currentRoute = app.request.get('_route') %}
{% set isHomepage = currentRoute == 'sylius_shop_homepage' %}
{% set isBot = app.request.attributes.get('is_bot', false) %}
{% set hideFloatingSearch =
'/account/' in app.request.pathInfo or
currentRoute starts with 'bitbag_sylius_organization_plugin_shop_account_' or
currentRoute starts with 'sylius_shop_account_' or
currentRoute starts with 'sylius_shop_cart_' or
currentRoute starts with 'sylius_shop_checkout_' or
currentRoute starts with 'sylius_shop_order_' or
currentRoute == 'app_crfq_create' %}
{% if isHomepage %}
{% include '@SyliusShop/Homepage/introduction.html.twig' %}
<div class=\"ui hidden divider\"></div>
{% endif %}
{% if not is_mobile() %}
<div class=\"ui hidden divider\"></div>
{% endif %}
<div class=\"ui container\">
{% include '@SyliusShop/_flashes.html.twig' %}
{{ sylius_template_event('sylius.shop.layout.before_content') }}
{% block content %}
{% endblock %}
{{ sylius_template_event('sylius.shop.layout.after_content') }}
</div>
{% if not isHomepage and not isBot and not hideFloatingSearch %}
{% include '@SyliusShop/Homepage/_aiSearch.html.twig' with {'floating': true} %}
{% endif %}
{% block footer %}
{% include '@SyliusShop/_footer.html.twig' %}
{% endblock %}
</div>
{% block javascripts %}
{{ sylius_template_event('sylius.shop.layout.javascripts') }}
<script>
// Make compare variables globally available for webpack bundled scripts
window.addToCompareSuccessTitle = '{{ 'sylius.ui.success'|trans }}';
window.addToCompareSuccess = '{{ 'app.product_compare.added'|trans }}';
window.addToCompareErrorTitle = '{{ 'sylius.ui.error'|trans }}';
window.addToCompareError = '{{ 'app.product_compare.fail'|trans }}';
window.visitComparisonPage = '{{ 'app.ui.visit_comparison_page'|trans }}';
window.browseCompare = '{{ 'app.ui.product.card.in_comparison'|trans }}';
window.comparisonPageUrl = '{{ path('app_shop_product_compare_show') }}';
window.addToCompareUrl = '{{ path('app_shop_product_compare_add_to_compare', {'productId': '{id}'}) }}';
window.checkSvgPath = '{{ asset('build/shop/images/check.svg', 'shop') }}';
// Wishlist global variables
window.addToListErrorTitle = '{{ 'sylius.ui.error'|trans }}';
window.addToListError = '{{ 'app.ui.failed_to_add_to_list'|trans }}';
window.inList = '{{ 'sylius.ui.added_to_list'|trans }}';
window.listPageUrl = '{{ path('bitbag_sylius_wishlist_plugin_shop_locale_wishlist_list_products') }}';
// Password validation translations
window.translations = window.translations || {};
window.translations.passwordsMustMatch = \"{{ 'app.ui.form.passwords_must_match'|trans|e('js') }}\";
window.translations.passwordStrength = {
enterPass: \"{{ 'app.ui.form.password_strength.enter_pass'|trans|e('js') }}\",
shortPass: \"{{ 'app.ui.form.password_strength.short_pass'|trans|e('js') }}\",
containsField: \"{{ 'app.ui.form.password_strength.contains_field'|trans|e('js') }}\",
reallyInsecure: \"{{ 'app.ui.form.password_strength.really_insecure'|trans|e('js') }}\",
weak: \"{{ 'app.ui.form.password_strength.weak'|trans|e('js') }}\",
medium: \"{{ 'app.ui.form.password_strength.medium'|trans|e('js') }}\",
strong: \"{{ 'app.ui.form.password_strength.strong'|trans|e('js') }}\"
};
</script>
{# Initialize tooltips globally #}
<script>
\$(document).ready(function () {
\$(\"[data-content],[data-html]\").each(function () {
var position = \$(this).attr(\"data-position\") || \"bottom center\";
var opts = {hoverable: true, position: position};
if (\$(this).hasClass('custom-tooltip')) {
opts.className = { popup: 'ui popup custom-tooltip-popup' };
}
\$(this).popup(opts);
});
});
</script>
{% endblock %}
{% block confirmationModal %}
{% include '@SyliusUi/Modal/_confirmation.html.twig' %}
{% endblock %}
{{ sylius_template_event('sylius.shop.layout.after_body') }}
</body>
</html>
", "@SyliusShop/layout.html.twig", "/srv/open_marketplace/templates/bundles/SyliusShopBundle/layout.html.twig");
}
}