{# get root node if there is no document defined (for pages which are routed directly through static route) #}
{% if not document is defined or not document %}
{% set document = pimcore_document(28) %}
{% endif %}
{# --- Navigation --- #}
{# get the document which should be used to start in navigation | default home #}
{% set navStartNode = document.getProperty('navigationRoot') %}
{% if not navStartNode is instanceof('\\Pimcore\\Model\\Document\\Page') %}
{% set navStartNode = pimcore_document(28) %}
{% endif %}
{% set mainNavigation = pimcore_build_nav({
active: document,
root: navStartNode,
maxDepth: 2
}) %}
{# later you can render the navigation #}
{# --- Meta-Daten --- #}
{% do pimcore_head_title().set(document.getTitle()) %}
{% do pimcore_head_meta().appendName('description', document.getDescription()) %}
{# --- Stylesheets --- #}
{% do pimcore_head_link().appendStylesheet('/schloen/css/init.css', 'screen') %}
{% do pimcore_head_link().appendStylesheet('/schloen/css/grid.css', 'screen') %}
{% do pimcore_head_link().appendStylesheet('/schloen/css/style.css', 'screen') %}
{% do pimcore_head_link().appendStylesheet('/schloen/css/print.css', 'print') %}
{# --- JS --- #}
{% do pimcore_head_script().appendFile('/schloen/scripts/jquery-3.6.0.min.js') %}
{% do pimcore_head_script().appendFile('/schloen/scripts/jquery-migrate-3.4.0.min.js') %}
{% do pimcore_head_script().appendFile('/schloen/scripts/init.js') %}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8"/>
{{ pimcore_head_title() }}
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<![endif]-->
{{ pimcore_head_meta() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
{{ pimcore_head_link() }}
{{ pimcore_head_script() }}
<!--[if IE]>
<script src="/schloen/scripts/modernizr-2.6.2.min.js" type="text/javascript"></script>
<![endif]-->
{% block PAGE_CSS %} {% endblock %}
</head>
<body>
<noscript>
<div class="nojs">Bitte JavaScript aktivieren!</div>
</noscript>
<div class="burger"><span></span></div>
{{ block('header') }}
<nav class="desk hide-on-small sticker">
<div class="row header nav hide-on-small">
<div class="col-12">
{{ pimcore_render_nav(mainNavigation) }}
{# the menu() shortcut is not available in twig #}
{#{ pimcore_render_nav(mainNavigation, 'menu', 'renderMenu', {
maxDepth: 2,
ulClass: 'main'
}) }#}
</div>
</div>
</nav>
<nav class="mobile">
<ul class="main">
{# the menu() shortcut is not available in twig #}
{{ pimcore_render_nav(mainNavigation, 'menu', 'renderMenu', {
maxDepth: 2,
ulClass: 'main'
}) }}
</ul>
</nav>
{# This allows flash messages. For example after a form is submitted #}
{% for message in app.flashes('success') %}
<div class="alert alert-success">
{{ message }}
</div>
{% endfor %}
{% for message in app.flashes('error') %}
<div class="alert alert-error">
{{ message }}
</div>
{% endfor %}
<div>
{{ block('container1') }}
</body>
</html>