{% set header_menu_has_items = true %}
{% from "@A4bTheme/Menu/Macros/navbar.html.twig" import menu_item %}
{% if menu_navbar is not defined %}
{% set menu_navbar = a4btheme_navbar_menu(app.request) %}
{% endif %}
{% if menu_navbar is not defined or menu_navbar is null or menu_navbar|length == 0 %}
{% set header_menu_has_items = false %}
{% endif %}
{% if a4b_theme.options.theme.header_menu and header_menu_has_items %}
{% else %}
{% endif %}
{% block aside %}
{% block aside_items %}
{% from "@A4bTheme/Menu/Macros/sidebar.html.twig" import menu_item %}
{% if menu_sidebar is not defined %}
{% set menu_sidebar = a4btheme_sidebar_menu(app.request) %}
{% endif %}
{% if menu_sidebar is defined and menu_sidebar is not null %}
{% for item in menu_sidebar %}
{{ menu_item(item) }}
{% endfor %}
{% endif %}
{% endblock %}
{% endblock %}
{% if a4b_theme.options.theme.header_menu %}
{% block header_menu %}
{% block navbar_items %}
{% from "@A4bTheme/Menu/Macros/navbar.html.twig" import menu_item %}
{% if menu_navbar is not defined %}
{% set menu_navbar = a4btheme_navbar_menu(app.request) %}
{% endif %}
{% if menu_navbar is defined and menu_navbar is not null %}
{% for item in menu_navbar %}
{{ menu_item(item) }}
{% endfor %}
{% endif %}
{% endblock %}
{% endblock %}
{% endif %}
{% block topbar %}
{% if a4b_theme.options.theme.search %}
{% block search %}
{% endblock %}
{% endif %}
{% if a4b_theme.options.theme.notifications %}
{% block notifications %}
{% include '@A4bTheme/Widget/notifications.html.twig' %}
{% endblock %}
{% endif %}
{% if a4b_theme.options.theme.quick_actions %}
{% block quick_actions %}
{% include '@A4bTheme/Widget/quick_actions.html.twig' %}
{% endblock %}
{% endif %}
{% if a4b_theme.options.theme.cart %}
{% block cart %}
{% block breadcrumb %}
{% if active is not defined %}
{% set active = a4btheme_breadcrumbs(app.request) %}
{% endif %}
{% if active is defined and active is not null %}
{% if active %}