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.     {{ include('layout/partials/cookie-bar.html.twig') }}
  19. </head>
  20. <body>
  21.     {{ include('layout/partials/skip-links.html.twig') }}
  22.     {{ include('layout/partials/table-of-content.html.twig') }}
  23.     {% if not editmode %}
  24.         {% block header %}
  25.             {{ include('includes/header.html.twig') }}
  26.         {% endblock %}
  27.     {% endif %}
  28.     <main id="main-content" role="main" class="content-block js-content-visibility content-visibility--auto {{ pimcore_placeholder('main-tag-class') }}"
  29.         {% block main_data_attributes %}{% endblock %}
  30.     >
  31.         {{ include('includes/darkpage.html.twig', with_context = false) }}
  32.         {{ block('content') }}
  33.         {% block newsletter %}
  34.             {% if document.getProperty('newsletterInfo') is pimcore_document_page_snippet %}
  35.                 {{ pimcore_inc(document.getProperty('newsletterInfo'), {
  36.                     'isPortal': document.getProperty('isPortal'),
  37.                     'classNames': document.getProperty('isPortal') ? '' : pimcore_placeholder('isShop') == 'true' ? 'container content-block--large' : pimcore_placeholder('newsletter-info-class').value|default('content-block--large' )
  38.                 }) }}
  39.             {% endif %}
  40.         {% endblock %}
  41.     </main>
  42.     {% if document.property('brick_notification') %}
  43.         {{ include('content/partials/info-bricks.html.twig', with_context = false) }}
  44.         {{ include('includes/overlays/dynamic-modal.html.twig', { 'size': 'lg', 'id': 'infoModal' }) }}
  45.     {% endif %}
  46.     {% block faq %}{% endblock %}
  47.     {% block overlay %}{% endblock %}
  48.     {% block jld_root %}{% endblock %}
  49.     {% block footer %}
  50.         {% if document.getProperty('footer') is pimcore_document_page_snippet %}
  51.             {{ pimcore_inc(document.getProperty('footer'), {
  52.                 'hideAdditionalBar': hideAdditionalBar|default
  53.             }) }}
  54.         {% endif %}
  55.     {% endblock %}
  56.     <div class="js-cursor cursor"></div>
  57.     {{ include('layout/partials/js.html.twig') }}
  58.     {{ include('layout/partials/debug-mode.html.twig') }}
  59.     {{ include('includes/overlays/dynamic-modal.html.twig', { 'size': 'lg', 'id': 'deletePersonModal' }) }}
  60.     {% if not editmode and document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  61.         {{ jld_document(document) }}
  62.     {% endif %}
  63.     {{ jsonLd()|raw }}
  64. </body>
  65. </html>