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.     {% block header deferred %}
  7.         {% if hasGetParams(['community', 'page', 'category', 'keyword', 'q', 'nav-search', 'tourRegion', 'pimcore_preview']) %}
  8.             {% do elements_robots().setNoIndex(true) %}
  9.         {% endif %}
  10.         {% if hasGetParams(['pimcore_preview']) %}
  11.             {% do elements_robots().setNoFollow(true) %}
  12.         {% endif %}
  13.         {% if not editmode and document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  14.             {{ elements_head_title() }}
  15.             {{ elements_head_meta() }}
  16.             {{ elements_canonical() }}
  17.             {{ elements_hreflang([], false, false, 'de') }}
  18.             {{ elements_opengraph() }}
  19.         {% endif %}
  20.         {% include 'Layout/includes/head.html.twig' %}
  21.     {% endblock %}
  22.     {% include 'Layout/includes/js.html.twig' %}
  23.     {% if document.property('enquiry_type') and document.property('enquiry_type') == 'saving-request' %}
  24.         {# DEMI Tracking of enquiry form WF_790634  #}
  25.         <script>
  26.                 window.dataLayer = window.dataLayer || [];
  27.                 window.dataLayer.push({'event': 'individual-enquiry-form-sent'});
  28.         </script>
  29.     {% endif %}
  30.     {% if document.property('enquiry_type') and document.property('enquiry_type') == 'direct' %}
  31.         {# DEMI Tracking of enquiry form WF_790634  #}
  32.         <script>
  33.             window.dataLayer = window.dataLayer || [];
  34.             window.dataLayer.push({'event': 'enquiry-form-sent'});
  35.         </script>
  36.     {% endif %}
  37.     {% if app.session.flashBag.has('trackingData') %}
  38.         <script data-cookieconsent="ignore">
  39.             window.dataLayer = window.dataLayer || [];
  40.             {% for code in app.session.flashBag.get('trackingData') %}
  41.             window.dataLayer.push({{ code|json_encode|raw }});
  42.             {% endfor %}
  43.         </script>
  44.     {% endif %}
  45.     {{ include('Layout/includes/codeHead.html.twig') }}
  46. </head>
  47. {% if document.property('region').parentId == '324083' %}
  48.     {% set isSubRegion = true %}
  49. {% else %}
  50.     {% set isSubRegion = false %}
  51. {% endif %}
  52. <body class="{{ pimcore_image('hero').empty ? 'no-hero' : '' }} {{ isSubRegion ? '' : 'is-no-subregion' }}">
  53. <div class="skip-links">
  54.     <button data-href="#main-content" accesskey="1" class="js-skip-links skip-links__link sr-only sr-only-focusable" data-nosnippet><div class="bg-primary p-2">{{ "sr.skip-to.main-content"|trans }}</div></button>
  55.     <button data-href="#table-of-content" accesskey="2" class="js-skip-links skip-links__link sr-only sr-only-focusable" data-nosnippet><div class="bg-primary p-2">{{ "sr.skip-to.table-of-contents"|trans }}</div></button>
  56.     <button data-href="#main-nav" accesskey="3" class="js-skip-links skip-links__link sr-only sr-only-focusable" data-nosnippet><div class="bg-primary p-2">{{ "sr.skip-to.main-navigation"|trans }}</div></button>
  57. </div>
  58. {{ include('Layout/includes/table_of_content.html.twig') }}
  59. {# Content #}
  60. {% if not editmode %}
  61.     {% block navigation %}
  62.         {% if document.property('useConventionHeader') %}
  63.             {{ include('Convention/Includes/header.html.twig') }}
  64.         {% elseif document.property('usePressHeader') %}
  65.             {{ include('Press/Includes/pressHeader.html.twig') }}
  66.         {% elseif document.property('useCinestyriaHeader') %}
  67.             {{ include("Cinestyria/Includes/navbar.html.twig") }}
  68.         {% else %}
  69.             {{ include('Navigation/navbar.html.twig') }}
  70.         {% endif %}
  71.     {% endblock %}
  72. {% endif %}
  73. <main id="main-content" role="main" class="content-block {% block mainContainerStyling %}{% endblock %}">
  74.     {{ block('content') }}
  75.     {% if document.property('enableCookieList') %}
  76.         <div class="mt-5 pt-5 container container-sm">
  77.             <script id="CookieDeclaration" src="https://consent.cookiebot.com/1ade52b6-e8d9-4dc2-92e0-3c43c1fd8cd4/cd.js" type="text/javascript" async></script>
  78.         </div>
  79.     {% endif %}
  80.     {% if document.property('recommendations') is instanceof('\\Pimcore\\Model\\Document\\Snippet') %}
  81.         {{ pimcore_inc(document.property('recommendations')) }}
  82.     {% endif %}
  83. </main>
  84. {% if document.property('sharing') and document.property('sharing') is instanceof('\\Pimcore\\Model\\Document\\Snippet') %}
  85.     <aside class="content-block container text-center">
  86.         {{ pimcore_inc(document.property('sharing')) }}
  87.     </aside>
  88. {% endif %}
  89. {% if document.property('weatherSlide') is instanceof('\\Pimcore\\Model\\Document\\Snippet') and not pimcore_placeholder('disableWeatherSlide').value %}
  90.     <aside class="content-block">
  91.         {{ pimcore_inc(document.property('weatherSlide')) }}
  92.     </aside>
  93. {% endif %}
  94. {% block regionSlide deferred %}
  95.     {% if not document.property('hideRegionSlide') %}
  96.         <aside class="content-block">
  97.             {{ include('Includes/regionSlide.html.twig') }}
  98.         </aside>
  99.     {% endif %}
  100. {% endblock %}
  101. {% if document.property('hideRegionSlide') and not document.property('hideRegionSlideContentBlock') %}
  102.     <div class="content-block">
  103. {% endif %}
  104. {% if document.property('footer') is instanceof('\\Pimcore\\Model\\Document\\Snippet') %}
  105.     {{ pimcore_inc(document.property('footer'), {
  106.         smallerPadding: document.property('footer-smaller-padding'),
  107.     }) }}
  108. {% endif %}
  109. {% if not editmode and document.property('modal_center') is instanceof('\\Pimcore\\Model\\Document\\Snippet') %}
  110.     {{ pimcore_inc(document.property('modal_center')) }}
  111. {% endif %}
  112. {% if not editmode and document.property('modal_info') is instanceof('\\Pimcore\\Model\\Document\\Snippet') %}
  113.     {{ pimcore_inc(document.property('modal_info')) }}
  114. {% endif %}
  115. {% block usageGuidlines %}
  116. {% endblock %}
  117. {% if document.property('hideRegionSlide') and not document.property('hideRegionSlideContentBlock') %}
  118.     </div>
  119. {% endif %}
  120. {% block modal %}
  121. {% endblock %}
  122. {# JS Config ausgeben #}
  123. {% block layout_head_meta deferred %}
  124. {{ jsConfig() }}
  125. {% endblock %}
  126. {# INFO: different JS for different sitetypes must be embedded #}
  127.     {% block javascripts %}
  128.         {% if not app.request.get('onlyInlineCss') %}
  129.         {{ include('Layout/includes/encore.html.twig', {
  130.                 'staticDebugMode': staticDebugMode,
  131.                 'file': 'js/content'
  132.             }) }}
  133.         {% endif %}
  134.     {% endblock %}
  135. {# wenn parameter onlyInlineCss nicht gesetzt wurde #}
  136. {#{% if app.request.get('onlyInlineCss') is empty %}#}
  137. {#    {% block javascripts %}#}
  138. {#        {% spaceless %}#}
  139. {#            {% for file in encore_entry_js_files('js/script', staticDebugMode ? 'debug' : 'build' ) %}#}
  140. {#                <script src="{{ asset(file) }}" async></script>#}
  141. {#            {% endfor %}#}
  142. {#        {% endspaceless %}#}
  143. {#    {% endblock %}#}
  144. {#{% endif %}#}
  145. {# Debug Mode #}
  146. {{ include('Layout/includes/sab.html.twig') }}
  147. {% if elements_debug_mode() and app.request.get('liveCss') is empty %}
  148.     {% set message = elements_debug_message('/entrypoints.json') %}
  149.     {% if message is not empty %}
  150.         <script type="text/javascript">
  151.             (function () {
  152.                 var debugError = window.setInterval(function () {
  153.                     if (document.body) {
  154.                         clearInterval(debugError);
  155.                         var div = '<div id="warning-static-release">{{ message | raw }}</div>';
  156.                         document.body.insertAdjacentHTML('beforeend', div);
  157.                     }
  158.                 }, 100);
  159.             })();
  160.         </script>
  161.         <style type="text/css">
  162.             #warning-static-release{
  163.                 position: fixed;
  164.                 bottom: calc(10rem/16);
  165.                 right: calc(10rem/16);
  166.                 padding: calc(5rem/16) calc(20rem/16);
  167.                 background: #cd231c;
  168.                 color: #ffffff;
  169.                 z-index: 1000;
  170.                 border-radius: calc(4rem/16);
  171.                 opacity: .5;
  172.                 pointer-events: none;
  173.             }
  174.             #warning-static-release:hover{
  175.                 opacity: .1;
  176.             }
  177.             #warning-static-release div{
  178.                 text-align: right;
  179.                 font-size: calc(12rem/16);
  180.             }
  181.         </style>
  182.     {% endif %}
  183. {% endif %}
  184. <div class="custom-cursor js-custom-cursor"></div>
  185. {{ jsonLd()|raw }}
  186. {% if not editmode and document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  187.     {{ jld_document(document) }}
  188. {% endif %}
  189. </body>
  190. </html>