templates/layout.html.twig line 4

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.request.locale }}" {% if not editmode %}class="frontend"{% endif %}>
  3. <head>
  4.     {{ include('includes/layout/head.html.twig') }}
  5. </head>
  6. {% set bodyClasses = 'preload' %}
  7. {% if not document.getProperty('portal') %}
  8.     {% set bodyClasses = bodyClasses ~ ' subpage' %}
  9. {% endif %}
  10. {% set design = document.getProperty('design') %}
  11. {% if design is defined and design %}
  12.     {% if design is same as 'square' %}
  13.         {% set bodyClasses = bodyClasses ~ ' no-rounded-borders' %}
  14.     {% elseif design is same as 'playful' %}
  15.         {% set bodyClasses = bodyClasses ~ ' playful' %}
  16.     {% elseif design is same as 'playful2' %}
  17.         {% set bodyClasses = bodyClasses ~ ' playful2' %}
  18.     {% elseif design is same as 'playful3' %}
  19.         {% set bodyClasses = bodyClasses ~ ' playful3' %}
  20.     {% elseif design is same as 'stylish' %}
  21.         {% set bodyClasses = bodyClasses ~ ' stylish' %}
  22.     {% elseif design is same as 'stylish-dark' %}
  23.         {% set bodyClasses = bodyClasses ~ ' stylish stylish-dark' %}
  24.     {% elseif design is same as 'dark' %}
  25.         {% set bodyClasses = bodyClasses ~ ' dark' %}
  26.     {% endif %}
  27. {% endif %}
  28. {# Schatten in Header Bereich deaktivieren #}
  29. {% if document.getProperty('without-shadow') %}
  30.     {% set bodyClasses = bodyClasses ~ ' without-shadow' %}
  31. {% endif %}
  32. <body class="{{ bodyClasses }}">
  33. {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  34. {% if not document is defined or not document %}
  35.     {% set document = pimcore_document(1) %}
  36. {% endif %}
  37. {% if not editmode %}
  38.     {% if pimcore_website_config('modal-on-load') %}
  39.         <conecto-modal visible>
  40.             {{ render(controller('App\\Controller\\DefaultController::modalAction', {})) }}
  41.         </conecto-modal>
  42.     {% endif %}
  43. {% endif %}
  44. <div class="docking-trigger"></div>
  45. <div class="page-wrap">
  46.     {{ include('includes/layout/header/page-header.html.twig') }}
  47.     <main class="page-main" role="main">
  48.         {{ block('content') }}
  49.     </main>
  50. </div>
  51. {{ pimcore_inc(document.getProperty('footer')) }}
  52. {# output scripts added before #}
  53. {% block headscripts deferred %}
  54. {{ pimcore_head_script() }}
  55. {% endblock %}
  56. {% block inlinescripts deferred %}
  57.     {{ pimcore_inline_script() }}
  58. {% endblock %}
  59. {#<script type="module">
  60.     {{ conecto_inline_data('static/js/main.min.js')|raw }}
  61. </script>#}
  62. </body>
  63. </html>