<?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_e23929c0a946e7ed0bf9bcb36cfead363427340ea805a3d2c2f5b2ecc1a33e18 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'metatags' => [$this, 'block_metatags'],
'stylesheets' => [$this, 'block_stylesheets'],
'top' => [$this, 'block_top'],
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/layout.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/layout.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html lang=\"";
// line 2
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.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "locale", [], "any", false, false, false, 2), 0, 2), "html", null, true);
echo "\">
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
";
// line 7
$context["_title_no_tag"] = (( $this->hasBlock("title_no_tag", $context, $blocks)) ? ( $this->renderBlock("title_no_tag", $context, $blocks)) : (""));
// line 8
echo "
";
// line 9
if ( !twig_test_empty((isset($context["_title_no_tag"]) || array_key_exists("_title_no_tag", $context) ? $context["_title_no_tag"] : (function () { throw new RuntimeError('Variable "_title_no_tag" does not exist.', 9, $this->source); })()))) {
// line 10
echo " ";
echo (isset($context["_title_no_tag"]) || array_key_exists("_title_no_tag", $context) ? $context["_title_no_tag"] : (function () { throw new RuntimeError('Variable "_title_no_tag" does not exist.', 10, $this->source); })());
echo "
";
} else {
// line 12
echo " ";
$context["title"] = null;
// line 13
echo " ";
if ((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.', 13, $this->source); })()), "request", [], "any", false, false, false, 13), "attributes", [], "any", false, false, false, 13), "get", [0 => "_route"], "method", false, false, false, 13) == "bitbag_sylius_cms_plugin_shop_frequently_asked_question_index")) {
// line 14
echo " ";
$context["title"] = "faq";
// line 15
echo " ";
}
// line 16
echo " <title> ";
$this->displayBlock('title', $context, $blocks);
echo "</title>
";
}
// line 18
echo "
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
";
// line 20
$this->displayBlock('metatags', $context, $blocks);
// line 24
echo "
";
// line 25
$context["canonicalList"] = $this->extensions['App\Twig\Extensions\Canonical\CanonicalExtension']->getCanonicalLink(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.', 25, $this->source); })()), "request", [], "any", false, false, false, 25));
// line 26
echo " ";
if ( !(null === (isset($context["canonicalList"]) || array_key_exists("canonicalList", $context) ? $context["canonicalList"] : (function () { throw new RuntimeError('Variable "canonicalList" does not exist.', 26, $this->source); })()))) {
// line 27
echo " <link rel=\"canonical\" href=\"https://";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["canonicalList"]) || array_key_exists("canonicalList", $context) ? $context["canonicalList"] : (function () { throw new RuntimeError('Variable "canonicalList" does not exist.', 27, $this->source); })()), 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); })()), "localeCode", [], "any", false, false, false, 27), [], "array", false, false, false, 27), "html", null, true);
echo "\" />
";
}
// line 29
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["canonicalList"]) || array_key_exists("canonicalList", $context) ? $context["canonicalList"] : (function () { throw new RuntimeError('Variable "canonicalList" does not exist.', 29, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
// line 30
echo " ";
if ((twig_length_filter($this->env, (isset($context["canonicalList"]) || array_key_exists("canonicalList", $context) ? $context["canonicalList"] : (function () { throw new RuntimeError('Variable "canonicalList" does not exist.', 30, $this->source); })())) > 1)) {
// line 31
echo " <link rel=\"alternate\" href=\"https://";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" hreflang=\"";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" />
";
} else {
// line 33
echo " <link rel=\"alternate\" href=\"https://";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" hreflang=x-default />
";
}
// line 35
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 36
echo " <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
<link rel=\"stylesheet\" href=\"https://use.typekit.net/icm3oad.css\">
";
// line 38
$this->displayBlock('stylesheets', $context, $blocks);
// line 41
echo "
";
// line 42
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.head");
echo "
<!-- Smartsupp Live Chat script -->
<script type=\"text/javascript\" async>
var _smartsupp = _smartsupp || {};
_smartsupp.key = '2c8017a094c8272e5cafa90db2ff93c453d94864';
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
</script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u=\"//mat.kikas.fr/\";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
";
// line 70
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.', 70, $this->source); })()), "environment", [], "any", false, false, false, 70) == "prod")) {
// line 71
echo " <!-- HOTJAR -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:5129410,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<!-- END HOTJAR -->
";
}
// line 84
echo "</head>
<body class=\"body-";
// line 86
echo twig_escape_filter($this->env, 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.', 86, $this->source); })()), "request", [], "any", false, false, false, 86), "attributes", [], "any", false, false, false, 86), "get", [0 => "_route"], "method", false, false, false, 86), "html", null, true);
echo "\">
";
// line 87
$context["block_txt"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texteperso_header", twig_get_attribute($this->env, $this->source, 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.', 87, $this->source); })()), "channel", [], "any", false, false, false, 87), "code", [], "any", false, false, false, 87));
// line 88
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.before_body");
echo "
<main class=\"big-wrapper\">
<div class=\"menu-mob-overlay\"></div>
";
// line 91
$this->displayBlock('top', $context, $blocks);
// line 93
echo "
";
// line 94
$this->displayBlock('header', $context, $blocks);
// line 116
echo " <div class=\"phrase-admin text-center font-pro-bold\">
";
// line 117
if ((twig_get_attribute($this->env, $this->source, ($context["block_txt"] ?? null), "content", [], "any", true, true, false, 117) && twig_get_attribute($this->env, $this->source, (isset($context["block_txt"]) || array_key_exists("block_txt", $context) ? $context["block_txt"] : (function () { throw new RuntimeError('Variable "block_txt" does not exist.', 117, $this->source); })()), "enabled", [], "any", false, false, false, 117))) {
// line 118
echo " ";
echo twig_get_attribute($this->env, $this->source, (isset($context["block_txt"]) || array_key_exists("block_txt", $context) ? $context["block_txt"] : (function () { throw new RuntimeError('Variable "block_txt" does not exist.', 118, $this->source); })()), "content", [], "any", false, false, false, 118);
echo "
";
}
// line 120
echo " </div>
<section class=\"main-content page-content\">
";
// line 128
echo " <div class=\"container p-lg-0 my-0\">";
$this->loadTemplate("@SyliusShop/_flashes.html.twig", "@SyliusShop/layout.html.twig", 128)->display($context);
echo "</div>
";
// line 129
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.before_content");
echo "
";
// line 131
$this->displayBlock('content', $context, $blocks);
// line 133
echo "
";
// line 135
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.after_content");
echo "
</section>
";
// line 139
$this->displayBlock('footer', $context, $blocks);
// line 142
echo "
";
// line 143
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.after_body");
echo "
<div class=\"loading-overlay\" data-js-loading-overlay>
<div class=\"spinner-border\" role=\"status\">
<span class=\"sr-only\">Loading...</span>
</div>
</div>
</main>
<div class=\"goToTop transition-bgcolor\"><img src=\"";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/top_go.png"), "html", null, true);
echo "\" alt=\"\" /></div>
";
// line 154
$this->loadTemplate("@CHCookieConsent/cookie_consent_styling.html.twig", "@SyliusShop/layout.html.twig", 154)->display($context);
// line 155
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragmentStrategy("esi", $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ch_cookie_consent.show", ["locale" => 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.', 155, $this->source); })()), "localeCode", [], "any", false, false, false, 155)]));
echo "
";
// line 157
$this->displayBlock('javascripts', $context, $blocks);
// line 160
echo "
</body>
</html>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 16
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$this->loadTemplate("@DediSyliusSEOPlugin/Shop/Header/_title.html.twig", "@SyliusShop/layout.html.twig", 16)->display(twig_array_merge($context, ["resource" => (($context["product"]) ?? (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.', 16, $this->source); })()), "channel", [], "any", false, false, false, 16))), "title" => (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 16, $this->source); })())]));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 21
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.metatags", ["resource" => (($context["product"]) ?? (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.', 21, $this->source); })()), "channel", [], "any", false, false, false, 21)))]);
echo "
";
// line 22
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.rich_snippets");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 38
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 39
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.stylesheets");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 91
public function block_top($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "top"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "top"));
// line 92
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 94
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 95
echo "
<header class=\"header-body\">
<div class=\"header-sticky px-0\">
";
// line 98
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.header");
echo "
</div>
</header>
";
// line 102
echo " ";
$context["popups"] = $this->extensions['App\Twig\Extensions\Popup\PopupExtension']->getCurrentPagePopup(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), "get", [0 => "_route"], "method", false, false, false, 102), 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 => "_route_params"], "method", false, false, false, 102));
// line 103
echo " ";
$context["existPopup"] = false;
// line 104
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["popups"]) || array_key_exists("popups", $context) ? $context["popups"] : (function () { throw new RuntimeError('Variable "popups" does not exist.', 104, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["popup"]) {
// line 105
echo " ";
$context["existPopup"] = true;
// line 106
echo " ";
$this->loadTemplate("@SyliusShop/_popup.html.twig", "@SyliusShop/layout.html.twig", 106)->display(twig_array_merge($context, ["popup" => $context["popup"]]));
// line 107
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['popup'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 108
echo " ";
if ((isset($context["existPopup"]) || array_key_exists("existPopup", $context) ? $context["existPopup"] : (function () { throw new RuntimeError('Variable "existPopup" does not exist.', 108, $this->source); })())) {
// line 109
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("popup", null, "bootstrapTheme");
echo "
";
}
// line 111
echo " ";
// line 112
echo "
";
// line 113
$this->loadTemplate("@SyliusShop/Product/_popupAddToCart.html.twig", "@SyliusShop/layout.html.twig", 113)->display($context);
// line 114
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 131
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 132
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 139
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 140
echo " ";
$this->loadTemplate("@SyliusShop/_footer.html.twig", "@SyliusShop/layout.html.twig", 140)->display($context);
// line 141
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 157
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 158
echo " ";
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.javascripts");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SyliusShop/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 537 => 158, 527 => 157, 517 => 141, 514 => 140, 504 => 139, 494 => 132, 484 => 131, 473 => 114, 471 => 113, 468 => 112, 466 => 111, 460 => 109, 457 => 108, 443 => 107, 440 => 106, 437 => 105, 419 => 104, 416 => 103, 413 => 102, 407 => 98, 402 => 95, 392 => 94, 382 => 92, 372 => 91, 359 => 39, 349 => 38, 337 => 22, 332 => 21, 322 => 20, 303 => 16, 290 => 160, 288 => 157, 283 => 155, 281 => 154, 275 => 151, 264 => 143, 261 => 142, 259 => 139, 252 => 135, 248 => 133, 246 => 131, 241 => 129, 236 => 128, 232 => 120, 226 => 118, 224 => 117, 221 => 116, 219 => 94, 216 => 93, 214 => 91, 208 => 88, 206 => 87, 202 => 86, 198 => 84, 183 => 71, 181 => 70, 150 => 42, 147 => 41, 145 => 38, 141 => 36, 135 => 35, 129 => 33, 121 => 31, 118 => 30, 113 => 29, 107 => 27, 104 => 26, 102 => 25, 99 => 24, 97 => 20, 93 => 18, 87 => 16, 84 => 15, 81 => 14, 78 => 13, 75 => 12, 69 => 10, 67 => 9, 64 => 8, 62 => 7, 54 => 2, 51 => 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\">
{% set _title_no_tag = block('title_no_tag') ?? '' %}
{% if _title_no_tag is not empty %}
{{ _title_no_tag|raw }}
{% else %}
{% set title = null %}
{% if app.request.attributes.get('_route') == \"bitbag_sylius_cms_plugin_shop_frequently_asked_question_index\" %}
{% set title = 'faq' %}
{% endif %}
<title> {% block title %}{% include '@DediSyliusSEOPlugin/Shop/Header/_title.html.twig' with { 'resource': product ?? sylius.channel, 'title': title } %}{% endblock %}</title>
{% endif %}
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
{% block metatags %}
{{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? sylius.channel }) }}
{{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
{% endblock %}
{% set canonicalList = app_get_canonical_link(app.request) %}
{% if canonicalList is not null %}
<link rel=\"canonical\" href=\"https://{{ canonicalList[sylius.localeCode] }}\" />
{% endif %}
{% for key,value in canonicalList %}
{% if canonicalList|length > 1 %}
<link rel=\"alternate\" href=\"https://{{ value }}\" hreflang=\"{{ key }}\" />
{% else %}
<link rel=\"alternate\" href=\"https://{{ value }}\" hreflang=x-default />
{% endif %}
{% endfor %}
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
<link rel=\"stylesheet\" href=\"https://use.typekit.net/icm3oad.css\">
{% block stylesheets %}
{{ sylius_template_event('sylius.shop.layout.stylesheets') }}
{% endblock %}
{{ sylius_template_event('sylius.shop.layout.head') }}
<!-- Smartsupp Live Chat script -->
<script type=\"text/javascript\" async>
var _smartsupp = _smartsupp || {};
_smartsupp.key = '2c8017a094c8272e5cafa90db2ff93c453d94864';
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
</script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u=\"//mat.kikas.fr/\";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
{% if app.environment == \"prod\" %}
<!-- HOTJAR -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:5129410,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<!-- END HOTJAR -->
{% endif %}
</head>
<body class=\"body-{{app.request.attributes.get('_route')}}\">
{% set block_txt = app_get_blocks('texteperso_header', sylius.channel.code ) %}
{{ sylius_template_event('sylius.shop.layout.before_body') }}
<main class=\"big-wrapper\">
<div class=\"menu-mob-overlay\"></div>
{% block top %}
{% endblock %}
{% block header %}
<header class=\"header-body\">
<div class=\"header-sticky px-0\">
{{ sylius_template_event('sylius.shop.layout.header') }}
</div>
</header>
{# --- BEGIN POPUP ADMINISTRABLE --- #}
{% set popups = app_get_current_page_popup(app.request.get('_route'), app.request.attributes.get('_route_params')) %}
{% set existPopup = false %}
{% for popup in popups %}
{% set existPopup = true %}
{% include '@SyliusShop/_popup.html.twig' with { popup: popup } %}
{% endfor %}
{% if existPopup %}
{{ encore_entry_script_tags('popup', null, 'bootstrapTheme') }}
{% endif %}
{# --- END POPUP ADMINISTRABLE --- #}
{% include '@SyliusShop/Product/_popupAddToCart.html.twig' %}
{% endblock %}
<div class=\"phrase-admin text-center font-pro-bold\">
{% if block_txt.content is defined and block_txt.enabled %}
{{ block_txt.content|raw }}
{% endif %}
</div>
<section class=\"main-content page-content\">
{# <div class=\"fixed-devis\">#}
{# <a href=\"{{ path('sylius_shop_contact_request') }}\" class=\"transition-bgcolor\" title=\"{{'app.common.a_question'|trans}}\">#}
{# <strong class=\"bg-ico-fixed\">{{'app.common.a_question'|trans}}</strong>#}
{# <span class=\"color-pink-s d-block\">{{'app.common.we_are_online'|trans}}</span>#}
{# </a>#}
{# </div>#}
<div class=\"container p-lg-0 my-0\">{% include '@SyliusShop/_flashes.html.twig' %}</div>
{{ sylius_template_event('sylius.shop.layout.before_content') }}
{% block content %}
{% endblock %}
{{ sylius_template_event('sylius.shop.layout.after_content') }}
</section>
{% block footer %}
{% include '@SyliusShop/_footer.html.twig' %}
{% endblock %}
{{ sylius_template_event('sylius.shop.layout.after_body') }}
<div class=\"loading-overlay\" data-js-loading-overlay>
<div class=\"spinner-border\" role=\"status\">
<span class=\"sr-only\">Loading...</span>
</div>
</div>
</main>
<div class=\"goToTop transition-bgcolor\"><img src=\"{{ asset('images/top_go.png')}}\" alt=\"\" /></div>
{% include \"@CHCookieConsent/cookie_consent_styling.html.twig\" %}
{{ render_esi(path('ch_cookie_consent.show', { 'locale' : sylius.localeCode })) }}
{% block javascripts %}
{{ sylius_template_event('sylius.shop.layout.javascripts') }}
{% endblock %}
</body>
</html>
", "@SyliusShop/layout.html.twig", "/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/layout.html.twig");
}
}