{#
Footer component. Implements the <footer> tag with logo, copyright information and global links.

Includes:
`Logo component`

#}

{# Specify path to logo SVG file, using optional asset_path variable.
#}
{% set logo_src = asset_path ~ 'svgs/logo--inverted.svg' %}
<footer data-testid="mds-footer" class="mds-footer mds-dark" role="contentinfo" data-elastic-exclude>
    <div class="mds-footer__wrapper mds-container">
        {# Include Logo component w/ mds namespace. #}
        <a class="mds-link" href="/" title="McGill University" rel="shortcut">
            {% include '@mds/logo/logo.twig' with {
                src: logo_src,
                logo_alt: 'McGill University logo',
                logo_modifiers: "mds-logo--sm"
              }
            %}
        </a>

        <div class="mds-footer__body mds-copy--muted">
            {% set year = 'now'|date('Y') %}

            {% block content %}
                {{ 'Copyright © '}} {{ year }} {{ 'McGill University. All rights reserved' }}
            {% endblock %}
        </div>

        {# Include navigation component with footer.nav data. #}       
        {% include '@mds/navigation/nav.twig' with {'nav': footer.nav} only %}
    </div>
</footer>
