templates/layout/default.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. {{ include('includes/art.html.twig') }}
  3. <html lang="{{ app.request.locale }}">
  4. <head>
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta charset="UTF-8">
  7.     {{ include ('includes/fonts/font-preload.html.twig') }}
  8.     {% block header deferred %}
  9.         {% if not editmode and document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  10.             {% do elements_robots().checkNoIndexParams(['q', 'search', 'page', 'liveCss']) %}
  11.             {{ elements_head_title() }}
  12.             {{ elements_head_meta() }}
  13.             {{ elements_canonical() }}
  14.             {{ elements_hreflang([], false, false, 'en', false, []) }}
  15.             {{ elements_opengraph() }}
  16.         {% endif %}
  17.         {{ include('layout/includes/head.html.twig') }}
  18.     {% endblock %}
  19.     {{ include('layout/includes/js.html.twig') }}
  20.     {{ include('layout/includes/cookie-bar.html.twig') }}
  21. </head>
  22. <body>
  23.     <div class="skip-links" data-nosnippet>
  24.         <button data-href="#main-content" accesskey="1" class="js-skip-links skip-links__link visually-hidden-focusable"><div class="bg-primary p-2">{{ "sr.skip-to.main-content"|trans }}</div></button>
  25.         <button data-href="#table-of-content" accesskey="2" class="js-skip-links skip-links__link visually-hidden-focusable"><div class="bg-primary p-2">{{ "sr.skip-to.table-of-contents"|trans }}</div></button>
  26.         <button data-href="#main-nav" accesskey="3" class="js-skip-links skip-links__link visually-hidden-focusable"><div class="bg-primary p-2">{{ "sr.skip-to.main-navigation"|trans }}</div></button>
  27.     </div>
  28.     {{ include('layout/includes/table-of-content.html.twig') }}
  29.     {% if not editmode %}
  30.         {{ include('navigation/navigation.html.twig') }}
  31.     {% endif %}
  32.     {{ block('content') }}
  33.     {% if not editmode and document.getProperty('infobox') %}
  34.         {{ pimcore_inc(document.getProperty('infobox')) }}
  35.     {% endif %}
  36.     {% if document.property('footer') %}
  37.         {{ pimcore_inc(document.property('footer')) }}
  38.     {% endif %}
  39.     {% block layout_head_meta deferred %}
  40.         {{ jsConfig() }}
  41.     {% endblock %}
  42.     {% if app.request.get('onlyInlineCss') is empty %}
  43.         {% set file = pimcore_placeholder('jsFile').value|default('js/content') %}
  44.         {% apply spaceless %}
  45.             {% for file in encore_entry_js_files(file, elements_debug_mode() and app.request.get('liveCss') is empty ? 'debug' : 'build') %}
  46.                 <script data-cookieconsent="ignore" src="{{ asset(file) }}" async></script>
  47.             {% endfor %}
  48.         {% endapply %}
  49.     {% endif %}
  50.     {% if elements_debug_mode() and app.request.get('liveCss') is empty %}
  51.         {% set message = elements_debug_message('/entrypoints.json') %}
  52.         {% if message is not empty %}
  53.             <script type="text/javascript">
  54.                 (function () {
  55.                     var debugError = window.setInterval(function () {
  56.                         if (document.body) {
  57.                             clearInterval(debugError);
  58.                             var div = '<div id="warning-static-release">{{ message|raw }}</div>';
  59.                             document.body.insertAdjacentHTML('beforeend', div);
  60.                         }
  61.                     }, 100);
  62.                 })();
  63.             </script>
  64.             <style type="text/css">
  65.                 #warning-static-release{
  66.                     position: fixed;
  67.                     bottom: calc(10rem/16);
  68.                     right: calc(10rem/16);
  69.                     padding: calc(5rem/16) calc(20rem/16);
  70.                     background: #cd231c;
  71.                     color: #ffffff;
  72.                     z-index: 1000;
  73.                     border-radius: calc(4rem/16);
  74.                     opacity: .5;
  75.                     pointer-events: none;
  76.                 }
  77.                 #warning-static-release:hover{
  78.                     opacity: .1;
  79.                 }
  80.                 #warning-static-release div{
  81.                     text-align: right;
  82.                     font-size: calc(12rem/16);
  83.                 }
  84.             </style>
  85.         {% endif %}
  86.     {% endif %}
  87.     {{ jsonLd()|raw }}
  88.     {{ jld_document(document) }}
  89. </body>
  90. </html>