{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_header %}
{% set currentCategory = page.header.navigation.active %}
{% set hideHeader = false %}
{% for k,v in currentCategory.customFields %}
{% if (k === "ew-hide-header") %}
{% set hideHeader = v %}
{% endif %}
{% endfor %}
{% if hideHeader === true %}
{# hide navigation #}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block base_navigation %}
<div class="nav-main">
{% set currentCategory = page.header.navigation.active %}
{% set hideHeader = false %}
{% for k,v in currentCategory.customFields %}
{% if (k === "ew-hide-header") %}
{% set hideHeader = v %}
{% endif %}
{% endfor %}
{% if hideHeader === true %}
{# hide navigation #}
{% else %}
{{ parent() }}
{% endif %}
</div>
{% endblock %}
{% block base_footer %}
{% set currentCategory = page.header.navigation.active %}
{% set minimalFooter = false %}
{% for k,v in currentCategory.customFields %}
{% if (k === "ew-minimal-footer") %}
{% set minimalFooter = v %}
{% endif %}
{% endfor %}
{% if minimalFooter === true %}
<footer class="footer-main">
{% block base_footer_inner %}
{% sw_include '@Storefront/storefront/layout/footer/footer.html.twig' %}
{% endblock %}
</footer>
{% else %}
{# Default block #}
{{ parent() }}
{# ThemeWare: "Slideout-Communities" zum Footer hinzufügen. #}
{# TODO: Add configuration #}
{% if twtSlideoutCommunitiesShow == 2 %}
{% sw_include '@Storefront/storefront/themeware/extensions/twt-slideout-communities.html.twig' ignore missing %}
{% endif %}
{# ThemeWare: "Floating-Widget" zum Footer hinzufügen. #}
{% if twtFloatingWidgetShow == 2 %}
{% sw_include '@Storefront/storefront/themeware/extensions/twt-floating-widget.html.twig' ignore missing with {
open: twtFloatingWidgetShowOpened,
animation: twtFloatingWidgetAnimation,
backdrop: twtFloatingWidgetBackdrop
} %}
{% endif %}
{% endif %}
{% endblock %}