templates/layout/default.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.request.locale }}">
  3. <head>
  4.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  5.     <meta charset="UTF-8">
  6.     {{ include('layout/partials/font-preload.html.twig') }}
  7.     {% block head deferred %}
  8.         {% if not editmode and document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  9.             {{ elements_robots().checkNoIndexParams(document.getProperty('noindex_params')|split(',')|merge(['page', 'ajax']))|raw }}            {{ elements_head_title() }}
  10.             {{ elements_head_meta() }}
  11.             {{ elements_canonical() }}
  12.             {{ elements_hreflang() }}
  13.             {{ elements_opengraph() }}
  14.         {% endif %}
  15.         {{ include('layout/partials/head.html.twig') }}
  16.     {% endblock %}
  17.     {{ include('layout/partials/js-config.html.twig',{
  18.         isTourOperator: document.getProperty('isTourOperator')
  19.     }) }}
  20.     {{ include('layout/partials/cookie-bar.html.twig') }}
  21. </head>
  22. <body>
  23.     {{ include('layout/partials/skip-links.html.twig') }}
  24.     {{ include('layout/partials/table-of-content.html.twig') }}
  25.     {% if not editmode %}
  26.         {% block header %}
  27.             {{ include('includes/header.html.twig') }}
  28.         {% endblock %}
  29.     {% endif %}
  30.     <main id="main-content" role="main" class="content-block js-content-visibility content-visibility--auto {{ pimcore_placeholder('main-tag-class') }}"
  31.         {% block main_data_attributes %}{% endblock %}
  32.     >
  33.         {% set showWarning = document.getProperty('showWarning') %}
  34.         {{ include('includes/darkpage.html.twig', with_context = false) }}
  35.         {{ block('content') }}
  36.         {% if showWarning %}
  37.             {{ include('b2b/includes/warnings.html.twig') }}
  38.         {% endif %}
  39.         {% block newsletter %}
  40.             {% if document.getProperty('newsletterInfo') is pimcore_document_page_snippet %}
  41.                 {{ pimcore_inc(document.getProperty('newsletterInfo'), {
  42.                     'isPortal': document.getProperty('isPortal'),
  43.                     'classNames': document.getProperty('isPortal') ? '' : pimcore_placeholder('isShop') == 'true' ? 'container content-block--large' : pimcore_placeholder('newsletter-info-class').value|default('content-block--large' )
  44.                 }) }}
  45.             {% endif %}
  46.         {% endblock %}
  47.     </main>
  48.     {{ include('content/partials/info-bricks.html.twig', with_context = false) }}
  49.     {% block faq %}{% endblock %}
  50.     {% block overlay %}{% endblock %}
  51.     {% block jld_root %}{% endblock %}
  52.     {% block footer %}
  53.         {% if document.getProperty('footer') is pimcore_document_page_snippet %}
  54.             {{ pimcore_inc(document.getProperty('footer'), {
  55.                 'hideAdditionalBar': hideAdditionalBar|default
  56.             }) }}
  57.         {% endif %}
  58.     {% endblock %}
  59.     <div class="js-cursor cursor"></div>
  60.     {{ include('layout/partials/js.html.twig') }}
  61.     {{ include('layout/partials/debug-mode.html.twig') }}
  62.     {{ include('includes/overlays/dynamic-modal.html.twig', { 'size': 'lg', 'id': 'deletePersonModal' }) }}
  63.     {% if not editmode and document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  64.         {{ jld_document(document) }}
  65.     {% endif %}
  66.     {{ jsonLd()|raw }}
  67.     {% if document.getProperty('newProductPopup') is pimcore_document_page_snippet %}
  68.         {{ pimcore_inc(document.getProperty('newProductPopup')) }}
  69.     {% endif %}
  70. </body>
  71. </html>