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.         {{ include('includes/darkpage.html.twig', with_context = false) }}
  34.         {{ block('content') }}
  35.         {% block newsletter %}
  36.             {% if document.getProperty('newsletterInfo') is pimcore_document_page_snippet %}
  37.                 {{ pimcore_inc(document.getProperty('newsletterInfo'), {
  38.                     'isPortal': document.getProperty('isPortal'),
  39.                     'classNames': document.getProperty('isPortal') ? '' : pimcore_placeholder('isShop') == 'true' ? 'container content-block--large' : pimcore_placeholder('newsletter-info-class').value|default('content-block--large' )
  40.                 }) }}
  41.             {% endif %}
  42.         {% endblock %}
  43.     </main>
  44.     {{ include('content/partials/info-bricks.html.twig', with_context = false) }}
  45.     {% block faq %}{% endblock %}
  46.     {% block overlay %}{% endblock %}
  47.     {% block jld_root %}{% endblock %}
  48.     {% block footer %}
  49.         {% if document.getProperty('footer') is pimcore_document_page_snippet %}
  50.             {{ pimcore_inc(document.getProperty('footer'), {
  51.                 'hideAdditionalBar': hideAdditionalBar|default
  52.             }) }}
  53.         {% endif %}
  54.     {% endblock %}
  55.     <div class="js-cursor cursor"></div>
  56.     {{ include('layout/partials/js.html.twig') }}
  57.     {{ include('layout/partials/debug-mode.html.twig') }}
  58.     {{ include('includes/overlays/dynamic-modal.html.twig', { 'size': 'lg', 'id': 'deletePersonModal' }) }}
  59.     {% if not editmode and document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  60.         {{ jld_document(document) }}
  61.     {% endif %}
  62.     {{ jsonLd()|raw }}
  63.     {% if document.getProperty('newProductPopup') is pimcore_document_page_snippet %}
  64.         {{ pimcore_inc(document.getProperty('newProductPopup')) }}
  65.     {% endif %}
  66. </body>
  67. </html>