<!doctype html>{%- block layoutCommonAttribute -%}{%- endblock -%}{%- set isDocument = document is instanceof('\\Pimcore\\Model\\Document\\Page') -%}{%- do layout_html_attribute_add('html', 'lang', app.request.locale) -%}{%- do layout_html_attribute_add_class('html', 'no-js') -%}<html {% block htmlAttributes -%}{{ layout_html_attribute_render('html')|raw }}{%- endblock -%}> <head> {{- include('lef-career/partials/head/meta.html.twig') -}} {%- apply spaceless -%} {%- if isDocument and document.title is not empty -%} {%- do pimcore_head_title().set(document.title) -%} {%- else -%} {%- do pimcore_head_title().set('LEF Karriere') -%} {%- endif -%} {{- pimcore_head_title() -}} {%- endapply -%} {{- include('lef-career/partials/head/preloadLinks.html.twig') -}} {{- include('lef-career/partials/head/asynchronousFontLoading.html.twig') -}} <style> {{- aw_web_file_include('/css/career-critical.css')|raw -}} </style> {%- block head_inline_stylesheets -%} {{- pimcore_head_style() -}} {%- endblock -%} {%- block head_links -%} {{- pimcore_head_link() -}} {%- endblock -%} {%- apply spaceless -%} {%- if not document is defined or not document -%} {%- set document = pimcore_document(1) -%} {%- endif -%} {%- if document is instanceof('\\Pimcore\\Model\\Document\\Link') -%} {%- set document = document.getObject() -%} {%- endif -%} {%- if isDocument and document.description is not empty -%} {%- do pimcore_head_meta().setDescription(document.description) -%} {%- endif -%} {%- endapply -%} {{- include('lef-career/partials/head/asynchronousStylesheetLoading.html.twig') -}} {{- hreflang_init(document) -}} {{- canonical_init(document) -}} {%- block layout_head_meta_init -%} {%- endblock -%} {%- block layout_head_meta -%} {{- pimcore_head_meta() -}} {%- endblock -%} {{- include('lef-career/partials/head/jsFeatureDetection.html.twig') -}} {{- include('lef-career/partials/head/favicons.html.twig') -}} </head> {%- if editmode -%} {{- layout_html_attribute_add_class('body', 'editmode') -}} {%- endif -%} {%- if not editmode -%} {%- set navigation_root = document.getProperty('navigation_root') -%} {%- if navigation_root.id == document.id -%} {{- layout_html_attribute_add_class('body', 'home') -}} {%- endif -%} {%- endif -%} <body {% block bodyAttributes -%}{{ layout_html_attribute_render('body')|raw }}{%- endblock -%}> {{- include('lef-career/partials/svg-sprite.html.twig') -}} {{- include('lef-career/partials/header.html.twig') -}} <main id="main-content"> {{- block('content') -}} {%- if not editmode and navigation_root.id == document.id -%} {%- set footer_snippet = document.getProperty('footer_snippet') -%} {%- if footer_snippet -%} {{- pimcore_inc(footer_snippet) -}} {%- endif -%} {%- endif -%} </main> {%- if not editmode and navigation_root.id != document.id -%} {%- set footer_snippet = document.getProperty('footer_snippet') -%} {%- if footer_snippet -%} {{- pimcore_inc(footer_snippet) -}} {%- endif -%} {%- endif -%} {%- block scripts -%} {{ pimcore_head_script() }} {%- endblock -%} {%- if not editmode -%} <script id="accessible-toggle"> {{- aw_web_file_include('/lef-career/js/accessible-toggle.js')|raw -}} </script> {%- endif -%} {%- if not editmode and navigation_root.id == document.id -%} <script src="/vendor/headroom.js/dist/headroom.min.js"></script> <script id="header-toggle"> {{- aw_web_file_include('/lef-career/js/toggle-header-visibility.js')|raw -}} </script> {%- endif -%} </body></html>