templates/layout/layout.html.twig line 107

Open in your IDE?
  1. {% set containerId = containerId|default('GTM-XXXXXXX') %}
  2. <!doctype html>
  3. <html lang="{{ app.request.locale }}">
  4. <head>
  5.     <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.css">
  6.     <script src="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.umd.js"></script>
  7.     <script type="module" src="{{ asset('/assets/js/cookieconsent-config.js') }}"></script>
  8.     <script src="/misc/json-translation-website?language={{ app.request.locale }}" ></script>
  9.     {{include('layout/head/links.html.twig')}}
  10.     {% if not document is defined or not document %}
  11.         {% set document = pimcore_document(1) %}
  12.     {% endif %}
  13.     {% if  document is instanceof('\\Pimcore\\Model\\Document\\Link')%}
  14.         {% set document = document.getObject() %}
  15.     {% endif %}
  16.     {% block SEO %}
  17.         {% if document.getTitle() is not empty %}
  18.             {% do pimcore_head_title().set(document.getTitle()) %}
  19.         {% endif %}
  20.         {% if document.getDescription() is not empty %}
  21.             {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  22.         {% endif %}
  23.     {% endblock %}
  24.     {% do pimcore_head_title().append('Bsn Marine Supply / Bsn Yachts') %}
  25.     {% do pimcore_head_title().setSeparator('::') %}
  26.     {% block layout_head_meta %}
  27.         {{ pimcore_head_title() }}
  28.         {{ pimcore_head_meta() }}
  29.     {% endblock %}
  30.     {% block head_stylesheets %}
  31.         {{ pimcore_head_link() }}
  32.     {% endblock %}
  33.     {% set is_authenticated = is_granted('IS_AUTHENTICATED_FULLY') %}
  34.     {% set api_sage = app.session.get('_token') %}
  35.     {# document use to start in navigation | default home #}
  36.     {% set navStartNode = document.getProperty('rootDocument') %}
  37.     {% if not navStartNode is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  38.         {% if pimcore_site_is_request() %}
  39.             {% set site = pimcore_site_current() %}
  40.             {% set navStartNode =  site.getRootDocument() %}
  41.         {% else %}
  42.             {% set navStartNode = pimcore_document(6) %}
  43.         {% endif %}
  44.     {% endif %}
  45.     {#    Get current path        #}
  46.     {% set currentRouteName = app.request.attributes.get('_route') %}
  47.     {% if currentRouteName is not null and currentRouteName starts with 'new-password' %}
  48.         {% set currentPath = '/new-password' %}
  49.     {% elseif currentRouteName is not null and currentRouteName starts with 'new-user-password-setup' %}
  50.         {% set currentPath = '/new-user-password-setup' %}
  51.     {% elseif currentRouteName is not null %}
  52.         {% set currentPath = path(currentRouteName) %}
  53.     {% else %}
  54.         {% set currentPath = '/' %} {# o cualquier valor predeterminado que desees usar en caso de que currentRouteName sea null #}
  55.     {% endif %}
  56.     {% if currentPath == '/' or currentPath == '/en'%}
  57.         {% set isRoot = true%}
  58.     {% else %}
  59.         {% set isRoot = false %}
  60.     {%  endif %}
  61.     {% if currentPath == '/' or currentPath == '/es' or currentPath == '/en' or currentPath == '/es/empresa' or currentPath == '/en/about-us' %}
  62.         {% set dropDown = true%}
  63.     {% else %}
  64.         {% set dropDown = false %}
  65.     {%  endif %}
  66.     {% set mainNavigation = pimcore_build_nav({active: document, root: navStartNode}) %}
  67.     {% set menuRenderer = pimcore_nav_renderer('menu') %}
  68.     {# end document use to start in navigation | default home #}
  69.     {% block PAGE_CSS %}
  70.     {% endblock %}
  71.     {% set device = pimcore_device('desktop') %}
  72.     <!-- Google Tag Manager (blocked by CookieConsent) -->
  73.     <script type="text/plain" data-category="analytics"
  74.             data-cc-src="https://www.googletagmanager.com/gtm.js?id={{ containerId }}">
  75.     </script>
  76.     <!-- End Google Tag Manager -->
  77. </head>
  78. <body class="template-index template-product index-demo18 product-layout1">
  79. {% if dropDown %}
  80.     {# NAVBAR-DROPDOWN #}
  81.     <script src="{{ asset('/assets/js/navbar/navbar-dropdown.js') }}"></script>
  82.     {# End NAVBAR-DROPDOWN  #}
  83. {% endif %}
  84. <script src="{{ asset('/assets/js/navbar/navbar-search.js') }}"></script>
  85. <script src="{{ asset('/assets/js/navbar/navbar-categories.js') }}"></script>
  86. {# Header #}
  87. {{ include("layout/includes/header.html.twig") }}
  88. {# End Header #}
  89. {# Page Wrapper #}
  90. <div class="page-wrapper">
  91.     {# Header wrap #}
  92.     {# End Header wrap #}
  93.     {# Mobile Menu #}
  94.     {{ include("layout/includes/navegation/mobile.html.twig") }}
  95.     {# End Mobile Menu #}
  96.     {# Page Wrapper #}
  97.     <div id="page-content">
  98.         {% block CONTENT %}
  99.         {% endblock %}
  100.     </div>
  101.     {# End Body Container #}
  102.     {# Footer #}
  103.     {#                {{ pimcore_inc('/es/snippets/footer') }}#}
  104.     {{ pimcore_inc(document.getProperty('footer')) }}
  105.     {# End Footer #}
  106.     {# Scoll Top #}
  107.     <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>
  108.     {# End Scoll Top #}
  109.     {# MiniCart Drawer #}
  110.     {{ include("layout/includes/minicart/minicart-drawer.html.twig") }}
  111.     {# End MiniCart Drawer #}
  112.     <div class="modalOverly"></div>
  113.     {# Quickview Popup #}
  114.     {{ include("layout/includes/quickview-popup.html.twig") }}
  115.     {# End Quickview Popup #}
  116.     {# Addtocart Added Popup #}
  117.     {{ include("layout/includes/add-to-cart-added-popup.html.twig") }}
  118.     {#  End Addtocart Added Popup #}
  119.     {{ include("layout/javascriptCode/javascriptCode.html.twig")}};
  120.     {{ include('layout/includes/global-translations.html.twig') }}
  121. </div>
  122. {# End Page Wrapper #}
  123. {% block PAGE_JS %}
  124. {% endblock %}
  125. <button type="button" data-cc="show-preferencesModal" aria-label="{{ 'modal_cookie_manage'|trans }}" class="cookie-manage-btn">
  126.     <i class="fas fa-cookie-bite"></i>
  127. </button>
  128. {# chatbot Script  #}
  129. <script
  130.     src="https://widgets.leadconnectorhq.com/loader.js"
  131.     data-resources-url="https://widgets.leadconnectorhq.com/chat-widget/loader.js"
  132.     data-widget-id="686b8ac381758bd50c3bfdff">
  133. </script>
  134. </body>
  135. </html>