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