{% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}


{% block layout_footer_navigation_hotline_content %}
    <div id="collapseFooterHotline"
         class="footer-column-content collapse js-footer-column-content footer-contact"
         aria-labelledby="collapseFooterHotlineTitle">
        <div class="footer-column-content-inner">
            <p class="footer-contact-hotline">
                {{ 'footer.serviceHotline'|trans|sw_sanitize }}
            </p>
        </div>
        <div class="footer-contact-form">
            <a href="{{ seoUrl('frontend.landing.page', {'landingPageId': '8f40822b58b64c2e9a5acb8d124b38ea' }) }}">{{ 'footer.serviceContactLink'|trans }}</a><br/>
        </div>
    </div>
{% endblock %}


{% block layout_footer_navigation_information_content %}
    {% if root.category.translated.description != '' %}
        <p>{{ root.category.translated.description|raw }}</p>
    {% endif %}

    <div id="collapseFooter{{ loop.index }}"
         class="footer-column-content collapse js-footer-column-content"
         aria-labelledby="collapseFooterTitle{{ loop.index }}">
        <div class="footer-column-content-inner">
            {% block layout_footer_navigation_information_links %}
                <ul class="list-unstyled">
                    {% for treeItem in root.children %}
                        {% set category = treeItem.category %}
                        {% set name = category.translated.name %}

                        {% block layout_footer_navigation_information_link_item %}
                            <li class="footer-link-item">
                                {% block layout_footer_navigation_information_link %}
                                    {% if category.type == 'folder' %}
                                        <div>{{ name }}</div>
                                    {% else %}
                                        <a class="footer-link"
                                           href="{{ category_url(category) }}"
                                           {% if category_linknewtab(category) %}target="_blank"{% endif %}
                                           title="{{ name }}">
                                            {{ name }}
                                        </a>
                                    {% endif %}
                                {% endblock %}
                            </li>
                        {% endblock %}
                    {% endfor %}
                </ul>
            {% endblock %}
        </div>
    </div>
{% endblock %}


{% block layout_footer_copyright %}
    <div class="footer-copyright">
        {{ "footer.copyrightInfo"|trans({'%now%':"now"|date("Y")})|sw_sanitize }} · {{ "footer.copyrightInfo2"|trans|sw_sanitize }}
    </div>
{% endblock %}
