{% extends "Layout/default.html.twig" %}
{% block mainContainerStyling %}
{% if pimcore_checkbox('activateNavigation').checked %}
js-affix__container js-smoothscroll
{% endif %}
{% endblock %}
{% block content %}
{% embed 'Includes/editmode-settings.html.twig' %}
{% block additionalInfo %}
<div>
<label>
{{ pimcore_checkbox('activateNavigation', {
reload: true
}) }} Activate Anchor Navigation
</label>
</div>
{% endblock %}
{% endembed %}
{{ include('Content/includes/hero.html.twig') }}
{% if not editmode and pimcore_checkbox('activateNavigation').checked %}
{{ include('Includes/anchor-nav.html.twig') }}
{% endif %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-splitted-editable.html.twig') }}
{{ include('Includes/areablock.html.twig', {
params: {
globalParams: {
anchorNav: pimcore_checkbox('activateNavigation').checked
}
},
}) }}
{% endblock %}
{% block javascripts %}
{% if document.property('is_press_content_page') and not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/press'
}) }}
{% else %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/content'
}) }}
{% endif %}
{% endblock %}