var/cache/dev/twig/cf/cf2eef2ef6d16d2e0679d622e62c3749269f0a02e88728a57a4c8f016b237d58.php line 41

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/layout.html.twig */
  14. class __TwigTemplate_e23929c0a946e7ed0bf9bcb36cfead363427340ea805a3d2c2f5b2ecc1a33e18 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'metatags' => [$this'block_metatags'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'top' => [$this'block_top'],
  28.             'header' => [$this'block_header'],
  29.             'content' => [$this'block_content'],
  30.             'footer' => [$this'block_footer'],
  31.             'javascripts' => [$this'block_javascripts'],
  32.         ];
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/layout.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/layout.html.twig"));
  41.         // line 1
  42.         echo "<!DOCTYPE html>
  43. <html lang=\"";
  44.         // line 2
  45.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse2), "locale", [], "any"falsefalsefalse2), 02), "html"nulltrue);
  46.         echo "\">
  47. <head>
  48.     <meta charset=\"utf-8\">
  49.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  50.     ";
  51.         // line 7
  52.         $context["_title_no_tag"] = ((        $this->hasBlock("title_no_tag"$context$blocks)) ? (        $this->renderBlock("title_no_tag"$context$blocks)) : (""));
  53.         // line 8
  54.         echo "
  55.     ";
  56.         // line 9
  57.         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); })()))) {
  58.             // line 10
  59.             echo "        ";
  60.             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); })());
  61.             echo "
  62.     ";
  63.         } else {
  64.             // line 12
  65.             echo "        ";
  66.             $context["title"] = null;
  67.             // line 13
  68.             echo "            ";
  69.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse13), "attributes", [], "any"falsefalsefalse13), "get", [=> "_route"], "method"falsefalsefalse13) == "bitbag_sylius_cms_plugin_shop_frequently_asked_question_index")) {
  70.                 // line 14
  71.                 echo "                ";
  72.                 $context["title"] = "faq";
  73.                 // line 15
  74.                 echo "            ";
  75.             }
  76.             // line 16
  77.             echo "        <title> ";
  78.             $this->displayBlock('title'$context$blocks);
  79.             echo "</title>
  80.     ";
  81.         }
  82.         // line 18
  83.         echo "
  84.     <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
  85.     ";
  86.         // line 20
  87.         $this->displayBlock('metatags'$context$blocks);
  88.         // line 24
  89.         echo "
  90.     ";
  91.         // line 25
  92.         $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"falsefalsefalse25));
  93.         // line 26
  94.         echo "    ";
  95.         if ( !(null === (isset($context["canonicalList"]) || array_key_exists("canonicalList"$context) ? $context["canonicalList"] : (function () { throw new RuntimeError('Variable "canonicalList" does not exist.'26$this->source); })()))) {
  96.             // line 27
  97.             echo "        <link rel=\"canonical\" href=\"https://";
  98.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse27), [], "array"falsefalsefalse27), "html"nulltrue);
  99.             echo "\" />
  100.     ";
  101.         }
  102.         // line 29
  103.         echo "    ";
  104.         $context['_parent'] = $context;
  105.         $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); })()));
  106.         foreach ($context['_seq'] as $context["key"] => $context["value"]) {
  107.             // line 30
  108.             echo "        ";
  109.             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)) {
  110.                 // line 31
  111.                 echo "            <link rel=\"alternate\" href=\"https://";
  112.                 echo twig_escape_filter($this->env$context["value"], "html"nulltrue);
  113.                 echo "\" hreflang=\"";
  114.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  115.                 echo "\" />
  116.         ";
  117.             } else {
  118.                 // line 33
  119.                 echo "            <link rel=\"alternate\" href=\"https://";
  120.                 echo twig_escape_filter($this->env$context["value"], "html"nulltrue);
  121.                 echo "\" hreflang=x-default />
  122.         ";
  123.             }
  124.             // line 35
  125.             echo "    ";
  126.         }
  127.         $_parent $context['_parent'];
  128.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
  129.         $context array_intersect_key($context$_parent) + $_parent;
  130.         // line 36
  131.         echo "    <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
  132.     <link rel=\"stylesheet\" href=\"https://use.typekit.net/icm3oad.css\">
  133.     ";
  134.         // line 38
  135.         $this->displayBlock('stylesheets'$context$blocks);
  136.         // line 41
  137.         echo "
  138.     ";
  139.         // line 42
  140.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.head");
  141.         echo "
  142.     <!-- Smartsupp Live Chat script -->
  143.     <script type=\"text/javascript\" async>
  144.         var _smartsupp = _smartsupp || {};
  145.         _smartsupp.key = '2c8017a094c8272e5cafa90db2ff93c453d94864';
  146.         window.smartsupp||(function(d) {
  147.             var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  148.             s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  149.             c.type='text/javascript';c.charset='utf-8';c.async=true;
  150.             c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
  151.         })(document);
  152.     </script>
  153.     <!-- Matomo -->
  154.     <script>
  155.         var _paq = window._paq = window._paq || [];
  156.         /* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
  157.         _paq.push(['trackPageView']);
  158.         _paq.push(['enableLinkTracking']);
  159.         (function() {
  160.             var u=\"//mat.kikas.fr/\";
  161.             _paq.push(['setTrackerUrl', u+'matomo.php']);
  162.             _paq.push(['setSiteId', '2']);
  163.             var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  164.             g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  165.         })();
  166.     </script>
  167.     <!-- End Matomo Code -->
  168.     ";
  169.         // line 70
  170.         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"falsefalsefalse70) == "prod")) {
  171.             // line 71
  172.             echo "    <!-- HOTJAR -->
  173.     <script>
  174.         (function(h,o,t,j,a,r){
  175.             h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
  176.             h._hjSettings={hjid:5129410,hjsv:6};
  177.             a=o.getElementsByTagName('head')[0];
  178.             r=o.createElement('script');r.async=1;
  179.             r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
  180.             a.appendChild(r);
  181.         })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
  182.     </script>
  183.     <!-- END HOTJAR -->
  184.     ";
  185.         }
  186.         // line 84
  187.         echo "</head>
  188. <body class=\"body-";
  189.         // line 86
  190.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse86), "attributes", [], "any"falsefalsefalse86), "get", [=> "_route"], "method"falsefalsefalse86), "html"nulltrue);
  191.         echo "\">
  192. ";
  193.         // line 87
  194.         $context["block_txt"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texteperso_header"twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse87), "code", [], "any"falsefalsefalse87));
  195.         // line 88
  196.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.before_body");
  197.         echo "
  198. <main class=\"big-wrapper\">
  199.     <div class=\"menu-mob-overlay\"></div>
  200.     ";
  201.         // line 91
  202.         $this->displayBlock('top'$context$blocks);
  203.         // line 93
  204.         echo "
  205.     ";
  206.         // line 94
  207.         $this->displayBlock('header'$context$blocks);
  208.         // line 116
  209.         echo "    <div class=\"phrase-admin text-center font-pro-bold\">
  210.         ";
  211.         // line 117
  212.         if ((twig_get_attribute($this->env$this->source, ($context["block_txt"] ?? null), "content", [], "any"truetruefalse117) && 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"falsefalsefalse117))) {
  213.             // line 118
  214.             echo "            ";
  215.             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"falsefalsefalse118);
  216.             echo "
  217.         ";
  218.         }
  219.         // line 120
  220.         echo "    </div>
  221.     <section class=\"main-content page-content\">
  222. ";
  223.         // line 128
  224.         echo "        <div class=\"container p-lg-0 my-0\">";
  225.         $this->loadTemplate("@SyliusShop/_flashes.html.twig""@SyliusShop/layout.html.twig"128)->display($context);
  226.         echo "</div>
  227.         ";
  228.         // line 129
  229.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.before_content");
  230.         echo "
  231.         ";
  232.         // line 131
  233.         $this->displayBlock('content'$context$blocks);
  234.         // line 133
  235.         echo "
  236.         ";
  237.         // line 135
  238.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.after_content");
  239.         echo "
  240.     </section>
  241.     ";
  242.         // line 139
  243.         $this->displayBlock('footer'$context$blocks);
  244.         // line 142
  245.         echo "
  246.     ";
  247.         // line 143
  248.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.after_body");
  249.         echo "
  250.     <div class=\"loading-overlay\" data-js-loading-overlay>
  251.         <div class=\"spinner-border\" role=\"status\">
  252.             <span class=\"sr-only\">Loading...</span>
  253.         </div>
  254.     </div>
  255. </main>
  256. <div class=\"goToTop transition-bgcolor\"><img src=\"";
  257.         // line 151
  258.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/top_go.png"), "html"nulltrue);
  259.         echo "\" alt=\"\" /></div>
  260. ";
  261.         // line 154
  262.         $this->loadTemplate("@CHCookieConsent/cookie_consent_styling.html.twig""@SyliusShop/layout.html.twig"154)->display($context);
  263.         // line 155
  264.         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"falsefalsefalse155)]));
  265.         echo "
  266. ";
  267.         // line 157
  268.         $this->displayBlock('javascripts'$context$blocks);
  269.         // line 160
  270.         echo "
  271. </body>
  272. </html>
  273. ";
  274.         
  275.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  276.         
  277.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  278.     }
  279.     // line 16
  280.     public function block_title($context, array $blocks = [])
  281.     {
  282.         $macros $this->macros;
  283.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  284.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  285.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  286.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  287.         $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"falsefalsefalse16))), "title" => (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'16$this->source); })())]));
  288.         
  289.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  290.         
  291.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  292.     }
  293.     // line 20
  294.     public function block_metatags($context, array $blocks = [])
  295.     {
  296.         $macros $this->macros;
  297.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  298.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  299.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  300.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  301.         // line 21
  302.         echo "        ";
  303.         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"falsefalsefalse21)))]);
  304.         echo "
  305.         ";
  306.         // line 22
  307.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.rich_snippets");
  308.         echo "
  309.     ";
  310.         
  311.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  312.         
  313.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  314.     }
  315.     // line 38
  316.     public function block_stylesheets($context, array $blocks = [])
  317.     {
  318.         $macros $this->macros;
  319.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  320.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  321.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  322.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  323.         // line 39
  324.         echo "        ";
  325.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.stylesheets");
  326.         echo "
  327.     ";
  328.         
  329.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  330.         
  331.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  332.     }
  333.     // line 91
  334.     public function block_top($context, array $blocks = [])
  335.     {
  336.         $macros $this->macros;
  337.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  338.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""top"));
  339.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  340.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""top"));
  341.         // line 92
  342.         echo "    ";
  343.         
  344.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  345.         
  346.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  347.     }
  348.     // line 94
  349.     public function block_header($context, array $blocks = [])
  350.     {
  351.         $macros $this->macros;
  352.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  353.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  354.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  355.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  356.         // line 95
  357.         echo "
  358.         <header class=\"header-body\">
  359.             <div class=\"header-sticky  px-0\">
  360.                 ";
  361.         // line 98
  362.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.header");
  363.         echo "
  364.             </div>
  365.         </header>
  366.         ";
  367.         // line 102
  368.         echo "        ";
  369.         $context["popups"] = $this->extensions['App\Twig\Extensions\Popup\PopupExtension']->getCurrentPagePopup(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse102), "get", [=> "_route"], "method"falsefalsefalse102), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse102), "attributes", [], "any"falsefalsefalse102), "get", [=> "_route_params"], "method"falsefalsefalse102));
  370.         // line 103
  371.         echo "        ";
  372.         $context["existPopup"] = false;
  373.         // line 104
  374.         echo "        ";
  375.         $context['_parent'] = $context;
  376.         $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); })()));
  377.         $context['loop'] = [
  378.           'parent' => $context['_parent'],
  379.           'index0' => 0,
  380.           'index'  => 1,
  381.           'first'  => true,
  382.         ];
  383.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  384.             $length count($context['_seq']);
  385.             $context['loop']['revindex0'] = $length 1;
  386.             $context['loop']['revindex'] = $length;
  387.             $context['loop']['length'] = $length;
  388.             $context['loop']['last'] = === $length;
  389.         }
  390.         foreach ($context['_seq'] as $context["_key"] => $context["popup"]) {
  391.             // line 105
  392.             echo "            ";
  393.             $context["existPopup"] = true;
  394.             // line 106
  395.             echo "            ";
  396.             $this->loadTemplate("@SyliusShop/_popup.html.twig""@SyliusShop/layout.html.twig"106)->display(twig_array_merge($context, ["popup" => $context["popup"]]));
  397.             // line 107
  398.             echo "        ";
  399.             ++$context['loop']['index0'];
  400.             ++$context['loop']['index'];
  401.             $context['loop']['first'] = false;
  402.             if (isset($context['loop']['length'])) {
  403.                 --$context['loop']['revindex0'];
  404.                 --$context['loop']['revindex'];
  405.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  406.             }
  407.         }
  408.         $_parent $context['_parent'];
  409.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['popup'], $context['_parent'], $context['loop']);
  410.         $context array_intersect_key($context$_parent) + $_parent;
  411.         // line 108
  412.         echo "        ";
  413.         if ((isset($context["existPopup"]) || array_key_exists("existPopup"$context) ? $context["existPopup"] : (function () { throw new RuntimeError('Variable "existPopup" does not exist.'108$this->source); })())) {
  414.             // line 109
  415.             echo "            ";
  416.             echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("popup"null"bootstrapTheme");
  417.             echo "
  418.         ";
  419.         }
  420.         // line 111
  421.         echo "        ";
  422.         // line 112
  423.         echo "
  424.         ";
  425.         // line 113
  426.         $this->loadTemplate("@SyliusShop/Product/_popupAddToCart.html.twig""@SyliusShop/layout.html.twig"113)->display($context);
  427.         // line 114
  428.         echo "
  429.     ";
  430.         
  431.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  432.         
  433.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  434.     }
  435.     // line 131
  436.     public function block_content($context, array $blocks = [])
  437.     {
  438.         $macros $this->macros;
  439.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  440.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  441.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  442.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  443.         // line 132
  444.         echo "        ";
  445.         
  446.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  447.         
  448.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  449.     }
  450.     // line 139
  451.     public function block_footer($context, array $blocks = [])
  452.     {
  453.         $macros $this->macros;
  454.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  455.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  456.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  457.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  458.         // line 140
  459.         echo "        ";
  460.         $this->loadTemplate("@SyliusShop/_footer.html.twig""@SyliusShop/layout.html.twig"140)->display($context);
  461.         // line 141
  462.         echo "    ";
  463.         
  464.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  465.         
  466.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  467.     }
  468.     // line 157
  469.     public function block_javascripts($context, array $blocks = [])
  470.     {
  471.         $macros $this->macros;
  472.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  473.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  474.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  475.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  476.         // line 158
  477.         echo "    ";
  478.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.javascripts");
  479.         echo "
  480. ";
  481.         
  482.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  483.         
  484.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  485.     }
  486.     public function getTemplateName()
  487.     {
  488.         return "@SyliusShop/layout.html.twig";
  489.     }
  490.     public function isTraitable()
  491.     {
  492.         return false;
  493.     }
  494.     public function getDebugInfo()
  495.     {
  496.         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,);
  497.     }
  498.     public function getSourceContext()
  499.     {
  500.         return new Source("<!DOCTYPE html>
  501. <html lang=\"{{ app.request.locale|slice(0, 2) }}\">
  502. <head>
  503.     <meta charset=\"utf-8\">
  504.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  505.     {% set _title_no_tag = block('title_no_tag') ?? '' %}
  506.     {% if _title_no_tag is not empty %}
  507.         {{ _title_no_tag|raw }}
  508.     {% else %}
  509.         {% set title = null %}
  510.             {% if app.request.attributes.get('_route') == \"bitbag_sylius_cms_plugin_shop_frequently_asked_question_index\" %}
  511.                 {% set title = 'faq' %}
  512.             {% endif %}
  513.         <title> {% block title %}{% include '@DediSyliusSEOPlugin/Shop/Header/_title.html.twig' with { 'resource': product ?? sylius.channel, 'title': title } %}{% endblock %}</title>
  514.     {% endif %}
  515.     <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
  516.     {% block metatags %}
  517.         {{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? sylius.channel }) }}
  518.         {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  519.     {% endblock %}
  520.     {% set canonicalList = app_get_canonical_link(app.request) %}
  521.     {% if canonicalList is not null %}
  522.         <link rel=\"canonical\" href=\"https://{{ canonicalList[sylius.localeCode] }}\" />
  523.     {% endif %}
  524.     {% for key,value in canonicalList %}
  525.         {% if canonicalList|length > 1 %}
  526.             <link rel=\"alternate\" href=\"https://{{ value }}\" hreflang=\"{{ key }}\" />
  527.         {% else %}
  528.             <link rel=\"alternate\" href=\"https://{{ value }}\" hreflang=x-default />
  529.         {% endif %}
  530.     {% endfor %}
  531.     <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
  532.     <link rel=\"stylesheet\" href=\"https://use.typekit.net/icm3oad.css\">
  533.     {% block stylesheets %}
  534.         {{ sylius_template_event('sylius.shop.layout.stylesheets') }}
  535.     {% endblock %}
  536.     {{ sylius_template_event('sylius.shop.layout.head') }}
  537.     <!-- Smartsupp Live Chat script -->
  538.     <script type=\"text/javascript\" async>
  539.         var _smartsupp = _smartsupp || {};
  540.         _smartsupp.key = '2c8017a094c8272e5cafa90db2ff93c453d94864';
  541.         window.smartsupp||(function(d) {
  542.             var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  543.             s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  544.             c.type='text/javascript';c.charset='utf-8';c.async=true;
  545.             c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
  546.         })(document);
  547.     </script>
  548.     <!-- Matomo -->
  549.     <script>
  550.         var _paq = window._paq = window._paq || [];
  551.         /* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
  552.         _paq.push(['trackPageView']);
  553.         _paq.push(['enableLinkTracking']);
  554.         (function() {
  555.             var u=\"//mat.kikas.fr/\";
  556.             _paq.push(['setTrackerUrl', u+'matomo.php']);
  557.             _paq.push(['setSiteId', '2']);
  558.             var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  559.             g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  560.         })();
  561.     </script>
  562.     <!-- End Matomo Code -->
  563.     {% if app.environment == \"prod\" %}
  564.     <!-- HOTJAR -->
  565.     <script>
  566.         (function(h,o,t,j,a,r){
  567.             h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
  568.             h._hjSettings={hjid:5129410,hjsv:6};
  569.             a=o.getElementsByTagName('head')[0];
  570.             r=o.createElement('script');r.async=1;
  571.             r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
  572.             a.appendChild(r);
  573.         })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
  574.     </script>
  575.     <!-- END HOTJAR -->
  576.     {% endif %}
  577. </head>
  578. <body class=\"body-{{app.request.attributes.get('_route')}}\">
  579. {% set block_txt = app_get_blocks('texteperso_header', sylius.channel.code )  %}
  580. {{ sylius_template_event('sylius.shop.layout.before_body') }}
  581. <main class=\"big-wrapper\">
  582.     <div class=\"menu-mob-overlay\"></div>
  583.     {% block top %}
  584.     {% endblock %}
  585.     {% block header %}
  586.         <header class=\"header-body\">
  587.             <div class=\"header-sticky  px-0\">
  588.                 {{ sylius_template_event('sylius.shop.layout.header') }}
  589.             </div>
  590.         </header>
  591.         {#  --- BEGIN POPUP ADMINISTRABLE ---  #}
  592.         {% set popups = app_get_current_page_popup(app.request.get('_route'), app.request.attributes.get('_route_params')) %}
  593.         {% set existPopup = false %}
  594.         {% for popup in popups %}
  595.             {% set existPopup = true %}
  596.             {% include '@SyliusShop/_popup.html.twig' with { popup: popup } %}
  597.         {% endfor %}
  598.         {% if existPopup %}
  599.             {{ encore_entry_script_tags('popup', null, 'bootstrapTheme') }}
  600.         {% endif %}
  601.         {#  --- END POPUP ADMINISTRABLE  ---  #}
  602.         {% include '@SyliusShop/Product/_popupAddToCart.html.twig'  %}
  603.     {% endblock %}
  604.     <div class=\"phrase-admin text-center font-pro-bold\">
  605.         {%  if block_txt.content is defined and block_txt.enabled %}
  606.             {{ block_txt.content|raw }}
  607.         {%  endif  %}
  608.     </div>
  609.     <section class=\"main-content page-content\">
  610. {#        <div class=\"fixed-devis\">#}
  611. {#            <a href=\"{{ path('sylius_shop_contact_request') }}\" class=\"transition-bgcolor\" title=\"{{'app.common.a_question'|trans}}\">#}
  612. {#                <strong class=\"bg-ico-fixed\">{{'app.common.a_question'|trans}}</strong>#}
  613. {#                <span class=\"color-pink-s d-block\">{{'app.common.we_are_online'|trans}}</span>#}
  614. {#            </a>#}
  615. {#        </div>#}
  616.         <div class=\"container p-lg-0 my-0\">{% include '@SyliusShop/_flashes.html.twig' %}</div>
  617.         {{ sylius_template_event('sylius.shop.layout.before_content') }}
  618.         {% block content %}
  619.         {% endblock %}
  620.         {{ sylius_template_event('sylius.shop.layout.after_content') }}
  621.     </section>
  622.     {% block footer %}
  623.         {% include '@SyliusShop/_footer.html.twig' %}
  624.     {% endblock %}
  625.     {{ sylius_template_event('sylius.shop.layout.after_body') }}
  626.     <div class=\"loading-overlay\" data-js-loading-overlay>
  627.         <div class=\"spinner-border\" role=\"status\">
  628.             <span class=\"sr-only\">Loading...</span>
  629.         </div>
  630.     </div>
  631. </main>
  632. <div class=\"goToTop transition-bgcolor\"><img src=\"{{ asset('images/top_go.png')}}\" alt=\"\" /></div>
  633. {% include \"@CHCookieConsent/cookie_consent_styling.html.twig\" %}
  634. {{ render_esi(path('ch_cookie_consent.show', { 'locale' : sylius.localeCode })) }}
  635. {% block javascripts %}
  636.     {{ sylius_template_event('sylius.shop.layout.javascripts') }}
  637. {% endblock %}
  638. </body>
  639. </html>
  640. ""@SyliusShop/layout.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/layout.html.twig");
  641.     }
  642. }