var/cache/dev/twig/77/77d2698546f2fee52a8ac65f3bf83adc.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. /* layout/layout.html.twig */
  14. class __TwigTemplate_94faa73947f6e44664465fb021c7419e extends 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' => [$this'block_SEO'],
  25.             'layout_head_meta' => [$this'block_layout_head_meta'],
  26.             'head_stylesheets' => [$this'block_head_stylesheets'],
  27.             'PAGE_CSS' => [$this'block_PAGE_CSS'],
  28.             'CONTENT' => [$this'block_CONTENT'],
  29.             'PAGE_JS' => [$this'block_PAGE_JS'],
  30.         ];
  31.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  32.         $this->checkSecurity();
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/layout.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/layout.html.twig"));
  41.         // line 1
  42.         $context["containerId"] = ((array_key_exists("containerId"$context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["containerId"]) || array_key_exists("containerId"$context) ? $context["containerId"] : (function () { throw new RuntimeError('Variable "containerId" does not exist.'1$this->source); })()), 1$this->source), "GTM-XXXXXXX")) : ("GTM-XXXXXXX"));
  43.         // line 2
  44.         echo "<!doctype html>
  45. <html lang=\"";
  46.         // line 3
  47.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'3$this->source); })()), "request", [], "any"falsefalsetrue3), "locale", [], "any"falsefalsetrue3), 3$this->source), "html"nulltrue);
  48.         echo "\">
  49. <head>
  50.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.css\">
  51.     <script src=\"https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.umd.js\"></script>
  52.     <script type=\"module\" src=\"";
  53.         // line 7
  54.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/js/cookieconsent-config.js"), "html"nulltrue);
  55.         echo "\"></script>
  56.     <script src=\"/misc/json-translation-website?language=";
  57.         // line 8
  58.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'8$this->source); })()), "request", [], "any"falsefalsetrue8), "locale", [], "any"falsefalsetrue8), 8$this->source), "html"nulltrue);
  59.         echo "\" ></script>
  60.     ";
  61.         // line 9
  62.         echo twig_include($this->env$context"layout/head/links.html.twig");
  63.         echo "
  64.     ";
  65.         // line 11
  66.         if (( !array_key_exists("document"$context) ||  !(isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'11$this->source); })()))) {
  67.             // line 12
  68.             echo "        ";
  69.             $context["document"] = Pimcore\Model\Document::getById(1);
  70.             // line 13
  71.             echo "    ";
  72.         }
  73.         // line 14
  74.         echo "
  75.     ";
  76.         // line 15
  77.         if ($this->env->getTest('instanceof')->getCallable()((isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'15$this->source); })()), "\\Pimcore\\Model\\Document\\Link")) {
  78.             // line 16
  79.             echo "        ";
  80.             $context["document"] = twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'16$this->source); })()), "getObject", [], "method"falsefalsetrue16);
  81.             // line 17
  82.             echo "    ";
  83.         }
  84.         // line 18
  85.         echo "
  86.     ";
  87.         // line 19
  88.         $this->displayBlock('SEO'$context$blocks);
  89.         // line 27
  90.         echo "
  91.     ";
  92.         // line 28
  93.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "append", ["Bsn Marine Supply / Bsn Yachts"], "method"falsefalsetrue28);
  94.         // line 29
  95.         echo "    ";
  96.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "setSeparator", ["::"], "method"falsefalsetrue29);
  97.         // line 30
  98.         echo "
  99.     ";
  100.         // line 31
  101.         $this->displayBlock('layout_head_meta'$context$blocks);
  102.         // line 35
  103.         echo "
  104.     ";
  105.         // line 36
  106.         $this->displayBlock('head_stylesheets'$context$blocks);
  107.         // line 39
  108.         echo "
  109.     ";
  110.         // line 40
  111.         $context["is_authenticated"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY");
  112.         // line 41
  113.         echo "
  114.     ";
  115.         // line 42
  116.         $context["api_sage"] = 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.'42$this->source); })()), "session", [], "any"falsefalsetrue42), "get", ["_token"], "method"falsefalsetrue42);
  117.         // line 43
  118.         echo "
  119.     ";
  120.         // line 45
  121.         echo "    ";
  122.         $context["navStartNode"] = twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'45$this->source); })()), "getProperty", ["rootDocument"], "method"falsefalsetrue45);
  123.         // line 46
  124.         echo "
  125.     ";
  126.         // line 47
  127.         if ( !$this->env->getTest('instanceof')->getCallable()((isset($context["navStartNode"]) || array_key_exists("navStartNode"$context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.'47$this->source); })()), "\\Pimcore\\Model\\Document\\Page")) {
  128.             // line 48
  129.             echo "        ";
  130.             if (Pimcore\Model\Site::isSiteRequest()) {
  131.                 // line 49
  132.                 echo "            ";
  133.                 $context["site"] = Pimcore\Model\Site::getCurrentSite();
  134.                 // line 50
  135.                 echo "            ";
  136.                 $context["navStartNode"] = twig_get_attribute($this->env$this->source, (isset($context["site"]) || array_key_exists("site"$context) ? $context["site"] : (function () { throw new RuntimeError('Variable "site" does not exist.'50$this->source); })()), "getRootDocument", [], "method"falsefalsetrue50);
  137.                 // line 51
  138.                 echo "        ";
  139.             } else {
  140.                 // line 52
  141.                 echo "            ";
  142.                 $context["navStartNode"] = Pimcore\Model\Document::getById(6);
  143.                 // line 53
  144.                 echo "        ";
  145.             }
  146.             // line 54
  147.             echo "    ";
  148.         }
  149.         // line 55
  150.         echo "    ";
  151.         // line 56
  152.         echo "    ";
  153.         $context["currentRouteName"] = 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.'56$this->source); })()), "request", [], "any"falsefalsetrue56), "attributes", [], "any"falsefalsetrue56), "get", ["_route"], "method"falsefalsetrue56);
  154.         // line 57
  155.         echo "
  156.     ";
  157.         // line 58
  158.         if (( !(null === (isset($context["currentRouteName"]) || array_key_exists("currentRouteName"$context) ? $context["currentRouteName"] : (function () { throw new RuntimeError('Variable "currentRouteName" does not exist.'58$this->source); })())) && (is_string($__internal_compile_0 = (isset($context["currentRouteName"]) || array_key_exists("currentRouteName"$context) ? $context["currentRouteName"] : (function () { throw new RuntimeError('Variable "currentRouteName" does not exist.'58$this->source); })())) && is_string($__internal_compile_1 "new-password") && str_starts_with($__internal_compile_0$__internal_compile_1)))) {
  159.             // line 59
  160.             echo "        ";
  161.             $context["currentPath"] = "/new-password";
  162.             // line 60
  163.             echo "    ";
  164.         } elseif (( !(null === (isset($context["currentRouteName"]) || array_key_exists("currentRouteName"$context) ? $context["currentRouteName"] : (function () { throw new RuntimeError('Variable "currentRouteName" does not exist.'60$this->source); })())) && (is_string($__internal_compile_2 = (isset($context["currentRouteName"]) || array_key_exists("currentRouteName"$context) ? $context["currentRouteName"] : (function () { throw new RuntimeError('Variable "currentRouteName" does not exist.'60$this->source); })())) && is_string($__internal_compile_3 "new-user-password-setup") && str_starts_with($__internal_compile_2$__internal_compile_3)))) {
  165.             // line 61
  166.             echo "        ";
  167.             $context["currentPath"] = "/new-user-password-setup";
  168.             // line 62
  169.             echo "    ";
  170.         } elseif ( !(null === (isset($context["currentRouteName"]) || array_key_exists("currentRouteName"$context) ? $context["currentRouteName"] : (function () { throw new RuntimeError('Variable "currentRouteName" does not exist.'62$this->source); })()))) {
  171.             // line 63
  172.             echo "        ";
  173.             $context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($this->sandbox->ensureToStringAllowed((isset($context["currentRouteName"]) || array_key_exists("currentRouteName"$context) ? $context["currentRouteName"] : (function () { throw new RuntimeError('Variable "currentRouteName" does not exist.'63$this->source); })()), 63$this->source));
  174.             // line 64
  175.             echo "    ";
  176.         } else {
  177.             // line 65
  178.             echo "        ";
  179.             $context["currentPath"] = "/";
  180.             echo " ";
  181.             // line 66
  182.             echo "    ";
  183.         }
  184.         // line 67
  185.         echo "
  186.     ";
  187.         // line 68
  188.         if ((((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'68$this->source); })()) == "/") || ((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'68$this->source); })()) == "/en"))) {
  189.             // line 69
  190.             echo "        ";
  191.             $context["isRoot"] = true;
  192.             // line 70
  193.             echo "    ";
  194.         } else {
  195.             // line 71
  196.             echo "        ";
  197.             $context["isRoot"] = false;
  198.             // line 72
  199.             echo "    ";
  200.         }
  201.         // line 73
  202.         echo "
  203.     ";
  204.         // line 74
  205.         if (((((((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'74$this->source); })()) == "/") || ((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'74$this->source); })()) == "/es")) || ((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'74$this->source); })()) == "/en")) || ((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'74$this->source); })()) == "/es/empresa")) || ((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'74$this->source); })()) == "/en/about-us"))) {
  206.             // line 75
  207.             echo "        ";
  208.             $context["dropDown"] = true;
  209.             // line 76
  210.             echo "    ";
  211.         } else {
  212.             // line 77
  213.             echo "        ";
  214.             $context["dropDown"] = false;
  215.             // line 78
  216.             echo "    ";
  217.         }
  218.         // line 79
  219.         echo "
  220.     ";
  221.         // line 80
  222.         $context["mainNavigation"] = $this->env->getFunction('pimcore_build_nav')->getCallable()(["active" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'80$this->source); })()), "root" => (isset($context["navStartNode"]) || array_key_exists("navStartNode"$context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.'80$this->source); })())]);
  223.         // line 81
  224.         echo "
  225.     ";
  226.         // line 82
  227.         $context["menuRenderer"] = $this->env->getFunction('pimcore_nav_renderer')->getCallable()("menu");
  228.         // line 83
  229.         echo "    ";
  230.         // line 84
  231.         echo "    ";
  232.         $this->displayBlock('PAGE_CSS'$context$blocks);
  233.         // line 87
  234.         echo "
  235.     ";
  236.         // line 88
  237.         $context["device"] = Pimcore\Tool\DeviceDetector::getInstance("desktop");
  238.         // line 89
  239.         echo "
  240.     <!-- Google Tag Manager (blocked by CookieConsent) -->
  241.     <script type=\"text/plain\" data-category=\"analytics\"
  242.             data-cc-src=\"https://www.googletagmanager.com/gtm.js?id=";
  243.         // line 92
  244.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["containerId"]) || array_key_exists("containerId"$context) ? $context["containerId"] : (function () { throw new RuntimeError('Variable "containerId" does not exist.'92$this->source); })()), 92$this->source), "html"nulltrue);
  245.         echo "\">
  246.     </script>
  247.     <!-- End Google Tag Manager -->
  248. </head>
  249. <body class=\"template-index template-product index-demo18 product-layout1\">
  250. ";
  251.         // line 99
  252.         if ((isset($context["dropDown"]) || array_key_exists("dropDown"$context) ? $context["dropDown"] : (function () { throw new RuntimeError('Variable "dropDown" does not exist.'99$this->source); })())) {
  253.             // line 100
  254.             echo "    ";
  255.             // line 101
  256.             echo "    <script src=\"";
  257.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/js/navbar/navbar-dropdown.js"), "html"nulltrue);
  258.             echo "\"></script>
  259.     ";
  260.         }
  261.         // line 104
  262.         echo "<script src=\"";
  263.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/js/navbar/navbar-search.js"), "html"nulltrue);
  264.         echo "\"></script>
  265. <script src=\"";
  266.         // line 105
  267.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/js/navbar/navbar-categories.js"), "html"nulltrue);
  268.         echo "\"></script>
  269. ";
  270.         // line 107
  271.         echo twig_include($this->env$context"layout/includes/header.html.twig");
  272.         echo "
  273. ";
  274.         // line 110
  275.         echo "<div class=\"page-wrapper\">
  276.     ";
  277.         // line 112
  278.         echo "
  279.     ";
  280.         // line 114
  281.         echo "    ";
  282.         // line 115
  283.         echo "    ";
  284.         echo twig_include($this->env$context"layout/includes/navegation/mobile.html.twig");
  285.         echo "
  286.     ";
  287.         // line 117
  288.         echo "
  289.     ";
  290.         // line 119
  291.         echo "    <div id=\"page-content\">
  292.         ";
  293.         // line 120
  294.         $this->displayBlock('CONTENT'$context$blocks);
  295.         // line 122
  296.         echo "    </div>
  297.     ";
  298.         // line 124
  299.         echo "
  300.     ";
  301.         // line 126
  302.         echo "    ";
  303.         // line 127
  304.         echo "    ";
  305.         echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'127$this->source); })()), "getProperty", ["footer"], "method"falsefalsetrue127), 127$this->source));
  306.         echo "
  307.     ";
  308.         // line 129
  309.         echo "
  310.     ";
  311.         // line 131
  312.         echo "    <span id=\"site-scroll\" class=\"textbase\" title=\"SCROLL UP\">";
  313.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.scroll-up_translations"), "html"nulltrue);
  314.         echo " <i class=\"an an-long-arrow-alt-right\" aria-hidden=\"true\"></i></span>
  315.     ";
  316.         // line 133
  317.         echo "
  318.     ";
  319.         // line 135
  320.         echo "    ";
  321.         echo twig_include($this->env$context"layout/includes/minicart/minicart-drawer.html.twig");
  322.         echo "
  323.     ";
  324.         // line 137
  325.         echo "    <div class=\"modalOverly\"></div>
  326.     ";
  327.         // line 140
  328.         echo "    ";
  329.         echo twig_include($this->env$context"layout/includes/quickview-popup.html.twig");
  330.         echo "
  331.     ";
  332.         // line 142
  333.         echo "
  334.     ";
  335.         // line 144
  336.         echo "    ";
  337.         echo twig_include($this->env$context"layout/includes/add-to-cart-added-popup.html.twig");
  338.         echo "
  339.     ";
  340.         // line 146
  341.         echo "
  342.     ";
  343.         // line 147
  344.         echo twig_include($this->env$context"layout/javascriptCode/javascriptCode.html.twig");
  345.         echo ";
  346.     ";
  347.         // line 149
  348.         echo twig_include($this->env$context"layout/includes/global-translations.html.twig");
  349.         echo "
  350. </div>
  351. ";
  352.         // line 152
  353.         echo "
  354. ";
  355.         // line 153
  356.         $this->displayBlock('PAGE_JS'$context$blocks);
  357.         // line 156
  358.         echo "<button type=\"button\" data-cc=\"show-preferencesModal\" aria-label=\"";
  359.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modal_cookie_manage"), "html"nulltrue);
  360.         echo "\" class=\"cookie-manage-btn\">
  361.     <i class=\"fas fa-cookie-bite\"></i>
  362. </button>
  363. ";
  364.         // line 161
  365.         echo "<script
  366.     src=\"https://widgets.leadconnectorhq.com/loader.js\"
  367.     data-resources-url=\"https://widgets.leadconnectorhq.com/chat-widget/loader.js\"
  368.     data-widget-id=\"686b8ac381758bd50c3bfdff\">
  369. </script>
  370. </body>
  371. </html>";
  372.         
  373.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  374.         
  375.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  376.     }
  377.     // line 19
  378.     public function block_SEO($context, array $blocks = [])
  379.     {
  380.         $macros $this->macros;
  381.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  382.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""SEO"));
  383.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  384.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""SEO"));
  385.         // line 20
  386.         echo "        ";
  387.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'20$this->source); })()), "getTitle", [], "method"falsefalsetrue20))) {
  388.             // line 21
  389.             echo "            ";
  390.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'21$this->source); })()), "getTitle", [], "method"falsefalsetrue21)], "method"falsefalsetrue21);
  391.             // line 22
  392.             echo "        ";
  393.         }
  394.         // line 23
  395.         echo "        ";
  396.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'23$this->source); })()), "getDescription", [], "method"falsefalsetrue23))) {
  397.             // line 24
  398.             echo "            ";
  399.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'24$this->source); })()), "getDescription", [], "method"falsefalsetrue24)], "method"falsefalsetrue24);
  400.             // line 25
  401.             echo "        ";
  402.         }
  403.         // line 26
  404.         echo "    ";
  405.         
  406.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  407.         
  408.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  409.     }
  410.     // line 31
  411.     public function block_layout_head_meta($context, array $blocks = [])
  412.     {
  413.         $macros $this->macros;
  414.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  415.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta"));
  416.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  417.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta"));
  418.         // line 32
  419.         echo "        ";
  420.         echo $this->env->getFunction('pimcore_head_title')->getCallable()();
  421.         echo "
  422.         ";
  423.         // line 33
  424.         echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
  425.         echo "
  426.     ";
  427.         
  428.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  429.         
  430.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  431.     }
  432.     // line 36
  433.     public function block_head_stylesheets($context, array $blocks = [])
  434.     {
  435.         $macros $this->macros;
  436.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  437.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_stylesheets"));
  438.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  439.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_stylesheets"));
  440.         // line 37
  441.         echo "        ";
  442.         echo $this->env->getFunction('pimcore_head_link')->getCallable()();
  443.         echo "
  444.     ";
  445.         
  446.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  447.         
  448.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  449.     }
  450.     // line 84
  451.     public function block_PAGE_CSS($context, array $blocks = [])
  452.     {
  453.         $macros $this->macros;
  454.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  455.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_CSS"));
  456.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  457.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_CSS"));
  458.         // line 85
  459.         echo "
  460.     ";
  461.         
  462.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  463.         
  464.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  465.     }
  466.     // line 120
  467.     public function block_CONTENT($context, array $blocks = [])
  468.     {
  469.         $macros $this->macros;
  470.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  471.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""CONTENT"));
  472.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  473.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""CONTENT"));
  474.         // line 121
  475.         echo "        ";
  476.         
  477.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  478.         
  479.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  480.     }
  481.     // line 153
  482.     public function block_PAGE_JS($context, array $blocks = [])
  483.     {
  484.         $macros $this->macros;
  485.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  486.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_JS"));
  487.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  488.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_JS"));
  489.         // line 154
  490.         echo "
  491. ";
  492.         
  493.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  494.         
  495.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  496.     }
  497.     /**
  498.      * @codeCoverageIgnore
  499.      */
  500.     public function getTemplateName()
  501.     {
  502.         return "layout/layout.html.twig";
  503.     }
  504.     /**
  505.      * @codeCoverageIgnore
  506.      */
  507.     public function isTraitable()
  508.     {
  509.         return false;
  510.     }
  511.     /**
  512.      * @codeCoverageIgnore
  513.      */
  514.     public function getDebugInfo()
  515.     {
  516.         return array (  536 => 154,  526 => 153,  516 => 121,  506 => 120,  495 => 85,  485 => 84,  472 => 37,  462 => 36,  450 => 33,  445 => 32,  435 => 31,  425 => 26,  422 => 25,  419 => 24,  416 => 23,  413 => 22,  410 => 21,  407 => 20,  397 => 19,  380 => 161,  372 => 156,  370 => 153,  367 => 152,  362 => 149,  357 => 147,  354 => 146,  349 => 144,  346 => 142,  341 => 140,  337 => 137,  332 => 135,  329 => 133,  324 => 131,  321 => 129,  316 => 127,  314 => 126,  311 => 124,  308 => 122,  306 => 120,  303 => 119,  300 => 117,  295 => 115,  293 => 114,  290 => 112,  287 => 110,  283 => 107,  279 => 105,  274 => 104,  268 => 101,  266 => 100,  264 => 99,  254 => 92,  249 => 89,  247 => 88,  244 => 87,  241 => 84,  239 => 83,  237 => 82,  234 => 81,  232 => 80,  229 => 79,  226 => 78,  223 => 77,  220 => 76,  217 => 75,  215 => 74,  212 => 73,  209 => 72,  206 => 71,  203 => 70,  200 => 69,  198 => 68,  195 => 67,  192 => 66,  188 => 65,  185 => 64,  182 => 63,  179 => 62,  176 => 61,  173 => 60,  170 => 59,  168 => 58,  165 => 57,  162 => 56,  160 => 55,  157 => 54,  154 => 53,  151 => 52,  148 => 51,  145 => 50,  142 => 49,  139 => 48,  137 => 47,  134 => 46,  131 => 45,  128 => 43,  126 => 42,  123 => 41,  121 => 40,  118 => 39,  116 => 36,  113 => 35,  111 => 31,  108 => 30,  105 => 29,  103 => 28,  100 => 27,  98 => 19,  95 => 18,  92 => 17,  89 => 16,  87 => 15,  84 => 14,  81 => 13,  78 => 12,  76 => 11,  71 => 9,  67 => 8,  63 => 7,  56 => 3,  53 => 2,  51 => 1,);
  517.     }
  518.     public function getSourceContext()
  519.     {
  520.         return new Source("{% set containerId = containerId|default('GTM-XXXXXXX') %}
  521. <!doctype html>
  522. <html lang=\"{{ app.request.locale }}\">
  523. <head>
  524.     <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.css\">
  525.     <script src=\"https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.umd.js\"></script>
  526.     <script type=\"module\" src=\"{{ asset('/assets/js/cookieconsent-config.js') }}\"></script>
  527.     <script src=\"/misc/json-translation-website?language={{ app.request.locale }}\" ></script>
  528.     {{include('layout/head/links.html.twig')}}
  529.     {% if not document is defined or not document %}
  530.         {% set document = pimcore_document(1) %}
  531.     {% endif %}
  532.     {% if  document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link')%}
  533.         {% set document = document.getObject() %}
  534.     {% endif %}
  535.     {% block SEO %}
  536.         {% if document.getTitle() is not empty %}
  537.             {% do pimcore_head_title().set(document.getTitle()) %}
  538.         {% endif %}
  539.         {% if document.getDescription() is not empty %}
  540.             {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  541.         {% endif %}
  542.     {% endblock %}
  543.     {% do pimcore_head_title().append('Bsn Marine Supply / Bsn Yachts') %}
  544.     {% do pimcore_head_title().setSeparator('::') %}
  545.     {% block layout_head_meta %}
  546.         {{ pimcore_head_title() }}
  547.         {{ pimcore_head_meta() }}
  548.     {% endblock %}
  549.     {% block head_stylesheets %}
  550.         {{ pimcore_head_link() }}
  551.     {% endblock %}
  552.     {% set is_authenticated = is_granted('IS_AUTHENTICATED_FULLY') %}
  553.     {% set api_sage = app.session.get('_token') %}
  554.     {# document use to start in navigation | default home #}
  555.     {% set navStartNode = document.getProperty('rootDocument') %}
  556.     {% if not navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Page') %}
  557.         {% if pimcore_site_is_request() %}
  558.             {% set site = pimcore_site_current() %}
  559.             {% set navStartNode =  site.getRootDocument() %}
  560.         {% else %}
  561.             {% set navStartNode = pimcore_document(6) %}
  562.         {% endif %}
  563.     {% endif %}
  564.     {#    Get current path        #}
  565.     {% set currentRouteName = app.request.attributes.get('_route') %}
  566.     {% if currentRouteName is not null and currentRouteName starts with 'new-password' %}
  567.         {% set currentPath = '/new-password' %}
  568.     {% elseif currentRouteName is not null and currentRouteName starts with 'new-user-password-setup' %}
  569.         {% set currentPath = '/new-user-password-setup' %}
  570.     {% elseif currentRouteName is not null %}
  571.         {% set currentPath = path(currentRouteName) %}
  572.     {% else %}
  573.         {% set currentPath = '/' %} {# o cualquier valor predeterminado que desees usar en caso de que currentRouteName sea null #}
  574.     {% endif %}
  575.     {% if currentPath == '/' or currentPath == '/en'%}
  576.         {% set isRoot = true%}
  577.     {% else %}
  578.         {% set isRoot = false %}
  579.     {%  endif %}
  580.     {% if currentPath == '/' or currentPath == '/es' or currentPath == '/en' or currentPath == '/es/empresa' or currentPath == '/en/about-us' %}
  581.         {% set dropDown = true%}
  582.     {% else %}
  583.         {% set dropDown = false %}
  584.     {%  endif %}
  585.     {% set mainNavigation = pimcore_build_nav({active: document, root: navStartNode}) %}
  586.     {% set menuRenderer = pimcore_nav_renderer('menu') %}
  587.     {# end document use to start in navigation | default home #}
  588.     {% block PAGE_CSS %}
  589.     {% endblock %}
  590.     {% set device = pimcore_device('desktop') %}
  591.     <!-- Google Tag Manager (blocked by CookieConsent) -->
  592.     <script type=\"text/plain\" data-category=\"analytics\"
  593.             data-cc-src=\"https://www.googletagmanager.com/gtm.js?id={{ containerId }}\">
  594.     </script>
  595.     <!-- End Google Tag Manager -->
  596. </head>
  597. <body class=\"template-index template-product index-demo18 product-layout1\">
  598. {% if dropDown %}
  599.     {# NAVBAR-DROPDOWN #}
  600.     <script src=\"{{ asset('/assets/js/navbar/navbar-dropdown.js') }}\"></script>
  601.     {# End NAVBAR-DROPDOWN  #}
  602. {% endif %}
  603. <script src=\"{{ asset('/assets/js/navbar/navbar-search.js') }}\"></script>
  604. <script src=\"{{ asset('/assets/js/navbar/navbar-categories.js') }}\"></script>
  605. {# Header #}
  606. {{ include(\"layout/includes/header.html.twig\") }}
  607. {# End Header #}
  608. {# Page Wrapper #}
  609. <div class=\"page-wrapper\">
  610.     {# Header wrap #}
  611.     {# End Header wrap #}
  612.     {# Mobile Menu #}
  613.     {{ include(\"layout/includes/navegation/mobile.html.twig\") }}
  614.     {# End Mobile Menu #}
  615.     {# Page Wrapper #}
  616.     <div id=\"page-content\">
  617.         {% block CONTENT %}
  618.         {% endblock %}
  619.     </div>
  620.     {# End Body Container #}
  621.     {# Footer #}
  622.     {#                {{ pimcore_inc('/es/snippets/footer') }}#}
  623.     {{ pimcore_inc(document.getProperty('footer')) }}
  624.     {# End Footer #}
  625.     {# Scoll Top #}
  626.     <span id=\"site-scroll\" class=\"textbase\" title=\"SCROLL UP\">{{ \"layout.scroll-up_translations\" | trans }} <i class=\"an an-long-arrow-alt-right\" aria-hidden=\"true\"></i></span>
  627.     {# End Scoll Top #}
  628.     {# MiniCart Drawer #}
  629.     {{ include(\"layout/includes/minicart/minicart-drawer.html.twig\") }}
  630.     {# End MiniCart Drawer #}
  631.     <div class=\"modalOverly\"></div>
  632.     {# Quickview Popup #}
  633.     {{ include(\"layout/includes/quickview-popup.html.twig\") }}
  634.     {# End Quickview Popup #}
  635.     {# Addtocart Added Popup #}
  636.     {{ include(\"layout/includes/add-to-cart-added-popup.html.twig\") }}
  637.     {#  End Addtocart Added Popup #}
  638.     {{ include(\"layout/javascriptCode/javascriptCode.html.twig\")}};
  639.     {{ include('layout/includes/global-translations.html.twig') }}
  640. </div>
  641. {# End Page Wrapper #}
  642. {% block PAGE_JS %}
  643. {% endblock %}
  644. <button type=\"button\" data-cc=\"show-preferencesModal\" aria-label=\"{{ 'modal_cookie_manage'|trans }}\" class=\"cookie-manage-btn\">
  645.     <i class=\"fas fa-cookie-bite\"></i>
  646. </button>
  647. {# chatbot Script  #}
  648. <script
  649.     src=\"https://widgets.leadconnectorhq.com/loader.js\"
  650.     data-resources-url=\"https://widgets.leadconnectorhq.com/chat-widget/loader.js\"
  651.     data-widget-id=\"686b8ac381758bd50c3bfdff\">
  652. </script>
  653. </body>
  654. </html>""layout/layout.html.twig""/var/www/html/templates/layout/layout.html.twig");
  655.     }
  656.     
  657.     public function checkSecurity()
  658.     {
  659.         static $tags = array("set" => 1"if" => 11"block" => 19"do" => 28);
  660.         static $filters = array("default" => 1"escape" => 3"trans" => 131);
  661.         static $functions = array("asset" => 7"include" => 9"pimcore_document" => 12"pimcore_head_title" => 28"is_granted" => 40"pimcore_site_is_request" => 48"pimcore_site_current" => 49"path" => 63"pimcore_build_nav" => 80"pimcore_nav_renderer" => 82"pimcore_device" => 88"pimcore_inc" => 127"pimcore_head_meta" => 24"pimcore_head_link" => 37);
  662.         try {
  663.             $this->sandbox->checkSecurity(
  664.                 ['set''if''block''do'],
  665.                 ['default''escape''trans'],
  666.                 ['asset''include''pimcore_document''pimcore_head_title''is_granted''pimcore_site_is_request''pimcore_site_current''path''pimcore_build_nav''pimcore_nav_renderer''pimcore_device''pimcore_inc''pimcore_head_meta''pimcore_head_link']
  667.             );
  668.         } catch (SecurityError $e) {
  669.             $e->setSourceContext($this->source);
  670.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  671.                 $e->setTemplateLine($tags[$e->getTagName()]);
  672.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  673.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  674.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  675.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  676.             }
  677.             throw $e;
  678.         }
  679.     }
  680. }