{# Template : Site Map #}

{% extends ('layouts/' ~ page_meta.layout) %}

{% block content %}

<div class="pageWrap siteMapOverallWrap">

    <div class="pageTitleWrap">

        {% include 'navigation/breadcrumbs.twig' %}

        {% include 'includes/elements/title_wrap.twig' %}

    </div> <!-- .pageTitleWrap -->

    <div class="contentPageWrap">

        {% include 'navigation/content_sidebar.twig' %}

        <div class="contentWrap">
            <div class="siteMapWrap">

                {% if site_map_data.cms_tree is not empty %}

                    <div class="siteMapColumn">

                        <h2>Pages</h2>

                        {% include 'navigation/sitemap_menu.twig' with {
                            'tree': site_map_data.cms_tree,
                            'first_container_class': 'siteMap',
                            'limit': 10
                        } %}

                    </div> <!-- .siteMapColumn -->

                {% endif %}

                {% if site_map_data.category_tree is not empty %}

                    <div class="siteMapColumn">
                        <h2>Categories</h2>

                        <ul>
                            {{ macro.list_tree(site_map_data.category_tree) }}
                        </ul>

                    </div> <!-- .siteMapColumn -->

                {% endif %}

                {% if site_map_data.brand_tree is not empty %}

                    <div class="siteMapColumn">

                        <h2>Brands</h2>

                        <ul>
                            {{ macro.list_tree(site_map_data.brand_tree) }}
                        </ul>

                    </div> <!-- .siteMapColumn -->

                {% endif %}

            </div>
        </div> <!-- .contentWrap -->

    </div> <!-- .contentPageWrap -->

</div>

{% endblock %}
