var/cache/dev/twig/d4/d485e0aca5ca825ba688938aabedf562.php line 397

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_1986396a7942447d95a30cbc7f5d17f2 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.             'seo_title' => [$this'block_seo_title'],
  25.             'seo_metatags' => [$this'block_seo_metatags'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'messages' => [$this'block_messages'],
  28.             'sidebar' => [$this'block_sidebar'],
  29.             'accountSidebar' => [$this'block_accountSidebar'],
  30.             'top' => [$this'block_top'],
  31.             'header' => [$this'block_header'],
  32.             'content' => [$this'block_content'],
  33.             'footer' => [$this'block_footer'],
  34.             'javascripts' => [$this'block_javascripts'],
  35.             'confirmationModal' => [$this'block_confirmationModal'],
  36.         ];
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = [])
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/layout.html.twig"));
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/layout.html.twig"));
  45.         // line 1
  46.         echo "<!DOCTYPE html>
  47. <html lang=\"";
  48.         // line 3
  49.         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.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "locale", [], "any"falsefalsefalse3), 02), "html"nulltrue);
  50.         echo "\">
  51. <head>
  52.     <meta charset=\"utf-8\">
  53.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  54.     ";
  55.         // line 8
  56.         $this->displayBlock('seo_title'$context$blocks);
  57.         // line 11
  58.         echo "    <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
  59.     <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
  60.     <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
  61.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/favicon/apple-touch-icon.png?v=1.0.0\">
  62.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon/favicon-16x16.png?v=1.0.0\">
  63.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon/favicon-32x32.png?v=1.0.0\">
  64.     <link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon/favicon-96x96.png?v=1.0.0\">
  65.     <link rel=\"icon\" type=\"image/svg+xml\" href=\"/favicon/favicon.svg?v=1.0.0\">
  66.     <link rel=\"mask-icon\" href=\"/favicon/safari-pinned-tab.svg?v=1.0.0\" color=\"#5bbad5\">
  67.     <link rel=\"manifest\" href=\"/favicon/site.webmanifest?v=1.0.0\">
  68.     <link rel=\"shortcut icon\" href=\"/favicon/favicon.ico?v=1.0.0\">
  69.     <meta name=\"theme-color\" content=\"#ffffff\">
  70.     <link href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap\" rel=\"stylesheet\">
  71.     <script>
  72.         window.addEventListener('load', function () {
  73.             setTimeout(function () {
  74.                 const expectedFavicon = '/favicon/favicon-32x32.png?v=1.0.0';
  75.                 const existingIcons = document.querySelectorAll('link[rel~=\"icon\"]');
  76.                 let faviconIsOk = false;
  77.                 existingIcons.forEach(link => {
  78.                     if (link.href.includes(expectedFavicon)) {
  79.                         faviconIsOk = true;
  80.                     }
  81.                 });
  82.                 if (!faviconIsOk) {
  83.                     const link = document.createElement('link');
  84.                     link.rel = 'icon';
  85.                     link.type = 'image/png';
  86.                     link.href = expectedFavicon;
  87.                     existingIcons.forEach(l => l.remove());
  88.                     document.head.appendChild(link);
  89.                 }
  90.             }, 800);
  91.         });
  92.     </script>
  93.     ";
  94.         // line 51
  95.         $this->loadTemplate("@SyliusShop/_links.html.twig""@SyliusShop/layout.html.twig"51)->display($context);
  96.         // line 52
  97.         echo "    ";
  98.         $this->loadTemplate("@SyliusShop/_clarity.html.twig""@SyliusShop/layout.html.twig"52)->display($context);
  99.         // line 53
  100.         echo "    ";
  101.         $this->displayBlock('seo_metatags'$context$blocks);
  102.         // line 65
  103.         echo "
  104.     ";
  105.         // line 67
  106.         $this->displayBlock('stylesheets'$context$blocks);
  107.         // line 75
  108.         echo "
  109.     ";
  110.         // line 76
  111.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.head");
  112.         echo "
  113. </head>
  114. <body class=\"pushable\">
  115. ";
  116.         // line 80
  117.         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->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.'80$this->source); })()), "request", [], "any"falsefalsefalse80), "locale", [], "any"falsefalsefalse80)]));
  118.         echo "
  119. ";
  120.         // line 81
  121.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.before_body");
  122.         echo "
  123. ";
  124.         // line 83
  125.         $this->displayBlock('messages'$context$blocks);
  126.         // line 86
  127.         echo "
  128. ";
  129.         // line 87
  130.         $this->displayBlock('sidebar'$context$blocks);
  131.         // line 92
  132.         echo "
  133. ";
  134.         // line 93
  135.         $this->displayBlock('accountSidebar'$context$blocks);
  136.         // line 100
  137.         echo "
  138. <div class=\"pusher\" data-route=\"";
  139.         // line 101
  140.         echo twig_escape_filter($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.'101$this->source); })()), "request", [], "any"falsefalsefalse101), "get", [=> "_route"], "method"falsefalsefalse101), "html"nulltrue);
  141.         echo "\">
  142.     ";
  143.         // line 102
  144.         $this->displayBlock('top'$context$blocks);
  145.         // line 112
  146.         echo "
  147.     ";
  148.         // line 113
  149.         $this->displayBlock('header'$context$blocks);
  150.         // line 121
  151.         echo "
  152.     <div class=\"ui container\">
  153.         ";
  154.         // line 124
  155.         $this->loadTemplate("@SyliusShop/_flashes.html.twig""@SyliusShop/layout.html.twig"124)->display($context);
  156.         // line 125
  157.         echo "
  158.         ";
  159.         // line 126
  160.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.before_content");
  161.         echo "
  162.         ";
  163.         // line 128
  164.         $this->displayBlock('content'$context$blocks);
  165.         // line 130
  166.         echo "
  167.         ";
  168.         // line 131
  169.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.after_content");
  170.         echo "
  171.     </div>
  172.     ";
  173.         // line 134
  174.         $this->displayBlock('footer'$context$blocks);
  175.         // line 137
  176.         echo "</div>
  177. ";
  178.         // line 139
  179.         $this->displayBlock('javascripts'$context$blocks);
  180.         // line 154
  181.         echo "
  182. ";
  183.         // line 155
  184.         $this->displayBlock('confirmationModal'$context$blocks);
  185.         // line 158
  186.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.after_body");
  187.         echo "
  188. </body>
  189. </html>
  190. ";
  191.         
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193.         
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  195.     }
  196.     // line 8
  197.     public function block_seo_title($context, array $blocks = [])
  198.     {
  199.         $macros $this->macros;
  200.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  201.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo_title"));
  202.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  203.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo_title"));
  204.         // line 9
  205.         echo "        ";
  206.         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"falsefalsefalse9)))))))))]);
  207.         echo "
  208.     ";
  209.         
  210.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  211.         
  212.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  213.     }
  214.     // line 53
  215.     public function block_seo_metatags($context, array $blocks = [])
  216.     {
  217.         $macros $this->macros;
  218.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo_metatags"));
  220.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  221.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo_metatags"));
  222.         // line 54
  223.         echo "        ";
  224.         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.'54$this->source); })()), "channel", [], "any"falsefalsefalse54)))))))))]);
  225.         echo "
  226.         ";
  227.         // line 55
  228.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.rich_snippets");
  229.         echo "
  230.         ";
  231.         // line 57
  232.         $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.'57$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.'57$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.'57$this->source); })())) : (null))))));
  233.         // line 58
  234.         echo "
  235.         ";
  236.         // line 59
  237.         if ( !(null === (isset($context["resourceToUse"]) || array_key_exists("resourceToUse"$context) ? $context["resourceToUse"] : (function () { throw new RuntimeError('Variable "resourceToUse" does not exist.'59$this->source); })()))) {
  238.             // line 60
  239.             echo "            <script type=\"application/ld+json\">
  240.               ";
  241.             // line 61
  242.             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.'61$this->source); })())), twig_constant("JSON_PRETTY_PRINT")), ["\\/" => "/"]);
  243.             echo "
  244.             </script>
  245.         ";
  246.         }
  247.         // line 64
  248.         echo "    ";
  249.         
  250.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  251.         
  252.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  253.     }
  254.     // line 67
  255.     public function block_stylesheets($context, array $blocks = [])
  256.     {
  257.         $macros $this->macros;
  258.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  259.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  260.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  261.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  262.         // line 68
  263.         echo "        ";
  264.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.stylesheets");
  265.         echo "
  266.         <style>
  267.             .tw.flag {
  268.                 visibility: hidden !important;
  269.             }
  270.         </style>
  271.     ";
  272.         
  273.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  274.         
  275.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  276.     }
  277.     // line 83
  278.     public function block_messages($context, array $blocks = [])
  279.     {
  280.         $macros $this->macros;
  281.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  282.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messages"));
  283.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  284.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""messages"));
  285.         // line 84
  286.         echo "    <div class=\"hyf-messages\"></div>
  287. ";
  288.         
  289.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  290.         
  291.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  292.     }
  293.     // line 87
  294.     public function block_sidebar($context, array $blocks = [])
  295.     {
  296.         $macros $this->macros;
  297.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  298.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  299.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  300.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  301.         // line 88
  302.         echo "    <div class=\"ui right wide sidebar vertical menu overlay mobile-sidebar\">
  303.         ";
  304.         // line 89
  305.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.sidebar");
  306.         echo "
  307.     </div>
  308. ";
  309.         
  310.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  311.         
  312.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  313.     }
  314.     // line 93
  315.     public function block_accountSidebar($context, array $blocks = [])
  316.     {
  317.         $macros $this->macros;
  318.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  319.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""accountSidebar"));
  320.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  321.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""accountSidebar"));
  322.         // line 94
  323.         echo "    ";
  324.         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.'94$this->source); })()), "user", [], "any"falsefalsefalse94) != null)) {
  325.             // line 95
  326.             echo "        <div class=\"ui left wide sidebar vertical menu overlay mobile-account-sidebar\">
  327.             ";
  328.             // line 96
  329.             $this->loadTemplate("Context/Vendor/Menu/_mobileMenu.html.twig""@SyliusShop/layout.html.twig"96)->display($context);
  330.             // line 97
  331.             echo "        </div>
  332.     ";
  333.         }
  334.         
  335.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  336.         
  337.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  338.     }
  339.     // line 102
  340.     public function block_top($context, array $blocks = [])
  341.     {
  342.         $macros $this->macros;
  343.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  344.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""top"));
  345.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  346.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""top"));
  347.         // line 103
  348.         echo "        <div id=\"menu\" class=\"top-menu bg-white\">
  349.             <div class=\"ui container\">
  350.                 <div class=\"top-bar\">
  351.                     ";
  352.         // line 106
  353.         $this->loadTemplate("@SyliusShop/Layout/Header/_logo.html.twig""@SyliusShop/layout.html.twig"106)->display($context);
  354.         // line 107
  355.         echo "                    ";
  356.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.topbar");
  357.         echo "
  358.                 </div>
  359.             </div>
  360.         </div>
  361.     ";
  362.         
  363.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  364.         
  365.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  366.     }
  367.     // line 113
  368.     public function block_header($context, array $blocks = [])
  369.     {
  370.         $macros $this->macros;
  371.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  372.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  373.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  374.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  375.         // line 114
  376.         echo "        <div id=\"menu-categories\" class=\"bg-topaz-100\">
  377.             <div class=\"ui container\">
  378.                 ";
  379.         // line 116
  380.         $this->loadTemplate("@SyliusShop/Layout/Header/_menu.html.twig""@SyliusShop/layout.html.twig"116)->display($context);
  381.         // line 117
  382.         echo "            </div>
  383.         </div>
  384.         <div class=\"ui hidden divider\"></div>
  385.     ";
  386.         
  387.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  388.         
  389.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  390.     }
  391.     // line 128
  392.     public function block_content($context, array $blocks = [])
  393.     {
  394.         $macros $this->macros;
  395.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  396.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  397.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  398.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  399.         // line 129
  400.         echo "        ";
  401.         
  402.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  403.         
  404.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  405.     }
  406.     // line 134
  407.     public function block_footer($context, array $blocks = [])
  408.     {
  409.         $macros $this->macros;
  410.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  411.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  412.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  413.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  414.         // line 135
  415.         echo "        ";
  416.         $this->loadTemplate("@SyliusShop/_footer.html.twig""@SyliusShop/layout.html.twig"135)->display($context);
  417.         // line 136
  418.         echo "    ";
  419.         
  420.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  421.         
  422.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  423.     }
  424.     // line 139
  425.     public function block_javascripts($context, array $blocks = [])
  426.     {
  427.         $macros $this->macros;
  428.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  429.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  430.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  431.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  432.         // line 140
  433.         echo "    ";
  434.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.javascripts");
  435.         echo "
  436.     <script>
  437.         const addToCompareSuccessTitle = '";
  438.         // line 143
  439.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.success"), "html"nulltrue);
  440.         echo "';
  441.         const addToCompareSuccess = '";
  442.         // line 144
  443.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product_compare.added"), "html"nulltrue);
  444.         echo "';
  445.         const addToCompareErrorTitle = '";
  446.         // line 145
  447.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.error"), "html"nulltrue);
  448.         echo "';
  449.         const addToCompareError = '";
  450.         // line 146
  451.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product_compare.fail"), "html"nulltrue);
  452.         echo "';
  453.         const visitComparisonPage = '";
  454.         // line 147
  455.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.visit_comparison_page"), "html"nulltrue);
  456.         echo "';
  457.         const browseCompare = '";
  458.         // line 148
  459.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.card.in_comparison"), "html"nulltrue);
  460.         echo "';
  461.         const comparisonPageUrl = '";
  462.         // line 150
  463.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_product_compare_show");
  464.         echo "';
  465.         const addToCompareUrl = '";
  466.         // line 151
  467.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_shop_product_compare_add_to_compare", ["productId" => "{id}"]);
  468.         echo "'
  469.     </script>
  470. ";
  471.         
  472.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  473.         
  474.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  475.     }
  476.     // line 155
  477.     public function block_confirmationModal($context, array $blocks = [])
  478.     {
  479.         $macros $this->macros;
  480.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  481.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""confirmationModal"));
  482.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  483.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""confirmationModal"));
  484.         // line 156
  485.         echo "    ";
  486.         $this->loadTemplate("@SyliusUi/Modal/_confirmation.html.twig""@SyliusShop/layout.html.twig"156)->display($context);
  487.         
  488.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  489.         
  490.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  491.     }
  492.     public function getTemplateName()
  493.     {
  494.         return "@SyliusShop/layout.html.twig";
  495.     }
  496.     public function isTraitable()
  497.     {
  498.         return false;
  499.     }
  500.     public function getDebugInfo()
  501.     {
  502.         return array (  571 => 156,  561 => 155,  548 => 151,  544 => 150,  539 => 148,  535 => 147,  531 => 146,  527 => 145,  523 => 144,  519 => 143,  512 => 140,  502 => 139,  492 => 136,  489 => 135,  479 => 134,  469 => 129,  459 => 128,  446 => 117,  444 => 116,  440 => 114,  430 => 113,  414 => 107,  412 => 106,  407 => 103,  397 => 102,  385 => 97,  383 => 96,  380 => 95,  377 => 94,  367 => 93,  354 => 89,  351 => 88,  341 => 87,  330 => 84,  320 => 83,  302 => 68,  292 => 67,  282 => 64,  276 => 61,  273 => 60,  271 => 59,  268 => 58,  266 => 57,  261 => 55,  256 => 54,  246 => 53,  233 => 9,  223 => 8,  209 => 158,  207 => 155,  204 => 154,  202 => 139,  198 => 137,  196 => 134,  190 => 131,  187 => 130,  185 => 128,  180 => 126,  177 => 125,  175 => 124,  170 => 121,  168 => 113,  165 => 112,  163 => 102,  159 => 101,  156 => 100,  154 => 93,  151 => 92,  149 => 87,  146 => 86,  144 => 83,  139 => 81,  135 => 80,  128 => 76,  125 => 75,  123 => 67,  119 => 65,  116 => 53,  113 => 52,  111 => 51,  69 => 11,  67 => 8,  59 => 3,  55 => 1,);
  503.     }
  504.     public function getSourceContext()
  505.     {
  506.         return new Source("<!DOCTYPE html>
  507. <html lang=\"{{ app.request.locale|slice(0, 2) }}\">
  508. <head>
  509.     <meta charset=\"utf-8\">
  510.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  511.     {% block seo_title %}
  512.         {{ sylius_template_event('dedi_sylius_seo_plugin.title', { resource: product ?? taxon ?? vendor ?? page ?? sylius.channel }) }}
  513.     {% endblock %}
  514.     <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
  515.     <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
  516.     <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
  517.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/favicon/apple-touch-icon.png?v=1.0.0\">
  518.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon/favicon-16x16.png?v=1.0.0\">
  519.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon/favicon-32x32.png?v=1.0.0\">
  520.     <link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon/favicon-96x96.png?v=1.0.0\">
  521.     <link rel=\"icon\" type=\"image/svg+xml\" href=\"/favicon/favicon.svg?v=1.0.0\">
  522.     <link rel=\"mask-icon\" href=\"/favicon/safari-pinned-tab.svg?v=1.0.0\" color=\"#5bbad5\">
  523.     <link rel=\"manifest\" href=\"/favicon/site.webmanifest?v=1.0.0\">
  524.     <link rel=\"shortcut icon\" href=\"/favicon/favicon.ico?v=1.0.0\">
  525.     <meta name=\"theme-color\" content=\"#ffffff\">
  526.     <link href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap\" rel=\"stylesheet\">
  527.     <script>
  528.         window.addEventListener('load', function () {
  529.             setTimeout(function () {
  530.                 const expectedFavicon = '/favicon/favicon-32x32.png?v=1.0.0';
  531.                 const existingIcons = document.querySelectorAll('link[rel~=\"icon\"]');
  532.                 let faviconIsOk = false;
  533.                 existingIcons.forEach(link => {
  534.                     if (link.href.includes(expectedFavicon)) {
  535.                         faviconIsOk = true;
  536.                     }
  537.                 });
  538.                 if (!faviconIsOk) {
  539.                     const link = document.createElement('link');
  540.                     link.rel = 'icon';
  541.                     link.type = 'image/png';
  542.                     link.href = expectedFavicon;
  543.                     existingIcons.forEach(l => l.remove());
  544.                     document.head.appendChild(link);
  545.                 }
  546.             }, 800);
  547.         });
  548.     </script>
  549.     {% include '@SyliusShop/_links.html.twig' %}
  550.     {% include '@SyliusShop/_clarity.html.twig' %}
  551.     {% block seo_metatags %}
  552.         {{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? taxon ?? vendor ?? page ?? sylius.channel }) }}
  553.         {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  554.         {% set resourceToUse = taxon is defined ? taxon : (vendor is defined ? vendor : (page is defined ? page : null)) %}
  555.         {% if resourceToUse is not null %}
  556.             <script type=\"application/ld+json\">
  557.               {{ generate_schema_markup(resourceToUse) | json_encode(constant('JSON_PRETTY_PRINT')) | replace({'\\\\/':'/'}) | raw }}
  558.             </script>
  559.         {% endif %}
  560.     {% endblock %}
  561.     {% block stylesheets %}
  562.         {{ sylius_template_event('sylius.shop.layout.stylesheets') }}
  563.         <style>
  564.             .tw.flag {
  565.                 visibility: hidden !important;
  566.             }
  567.         </style>
  568.     {% endblock %}
  569.     {{ sylius_template_event('sylius.shop.layout.head') }}
  570. </head>
  571. <body class=\"pushable\">
  572. {{ render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale })) }}
  573. {{ sylius_template_event('sylius.shop.layout.before_body') }}
  574. {% block messages %}
  575.     <div class=\"hyf-messages\"></div>
  576. {% endblock %}
  577. {% block sidebar %}
  578.     <div class=\"ui right wide sidebar vertical menu overlay mobile-sidebar\">
  579.         {{ sylius_template_event('sylius.shop.layout.sidebar') }}
  580.     </div>
  581. {% endblock %}
  582. {% block accountSidebar %}
  583.     {% if app.user != null %}
  584.         <div class=\"ui left wide sidebar vertical menu overlay mobile-account-sidebar\">
  585.             {% include 'Context/Vendor/Menu/_mobileMenu.html.twig' %}
  586.         </div>
  587.     {% endif %}
  588. {% endblock %}
  589. <div class=\"pusher\" data-route=\"{{ app.request.get('_route') }}\">
  590.     {% block top %}
  591.         <div id=\"menu\" class=\"top-menu bg-white\">
  592.             <div class=\"ui container\">
  593.                 <div class=\"top-bar\">
  594.                     {% include \"@SyliusShop/Layout/Header/_logo.html.twig\" %}
  595.                     {{ sylius_template_event('sylius.shop.layout.topbar') }}
  596.                 </div>
  597.             </div>
  598.         </div>
  599.     {% endblock %}
  600.     {% block header %}
  601.         <div id=\"menu-categories\" class=\"bg-topaz-100\">
  602.             <div class=\"ui container\">
  603.                 {% include '@SyliusShop/Layout/Header/_menu.html.twig' %}
  604.             </div>
  605.         </div>
  606.         <div class=\"ui hidden divider\"></div>
  607.     {% endblock %}
  608.     <div class=\"ui container\">
  609.         {% include '@SyliusShop/_flashes.html.twig' %}
  610.         {{ sylius_template_event('sylius.shop.layout.before_content') }}
  611.         {% block content %}
  612.         {% endblock %}
  613.         {{ sylius_template_event('sylius.shop.layout.after_content') }}
  614.     </div>
  615.     {% block footer %}
  616.         {% include '@SyliusShop/_footer.html.twig' %}
  617.     {% endblock %}
  618. </div>
  619. {% block javascripts %}
  620.     {{ sylius_template_event('sylius.shop.layout.javascripts') }}
  621.     <script>
  622.         const addToCompareSuccessTitle = '{{ 'sylius.ui.success'|trans }}';
  623.         const addToCompareSuccess = '{{ 'app.product_compare.added'|trans }}';
  624.         const addToCompareErrorTitle = '{{ 'sylius.ui.error'|trans }}';
  625.         const addToCompareError = '{{ 'app.product_compare.fail'|trans }}';
  626.         const visitComparisonPage = '{{ 'app.ui.visit_comparison_page'|trans }}';
  627.         const browseCompare = '{{ 'app.ui.product.card.in_comparison'|trans }}';
  628.         const comparisonPageUrl = '{{ path('app_shop_product_compare_show') }}';
  629.         const addToCompareUrl = '{{ url('app_shop_product_compare_add_to_compare', {'productId': '{id}'}) }}'
  630.     </script>
  631. {% endblock %}
  632. {% block confirmationModal %}
  633.     {% include '@SyliusUi/Modal/_confirmation.html.twig' %}
  634. {% endblock %}
  635. {{ sylius_template_event('sylius.shop.layout.after_body') }}
  636. </body>
  637. </html>
  638. ""@SyliusShop/layout.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/layout.html.twig");
  639.     }
  640. }