{#
/**
 * Copyright © 2003-2024 The Galette Team
 *
 * This file is part of Galette (https://galette.eu).
 *
 * Galette is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Galette is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
 */
#}
{% set new_release = callstatic('\\Galette\\Core\\Galette', 'getNewRelease') %}
    <footer class="page-footer{% if login.getCompactMenu() %} extended"{% endif %}">
        <div class="ui center aligned basic padded segment footer-wrapper">
            <div class="row">
                <div class="ui horizontal bulleted link list">
                    <a href="https://galette.eu" class="item">
                        <i class="icon globe europe" aria-hidden="true"></i>
                        {{ _T("Website") }}
                    </a>
                    <a href="https://doc.galette.eu" class="item">
                        <i class="icon book" aria-hidden="true"></i>
                       {{ _T("Documentation") }}
                    </a>
                    <a href="https://framapiaf.org/@galette" class="item">
                        <i class="icon mastodon" aria-hidden="true"></i>
                        @galette
                    </a>
                </div>
            </div>
            <div class="row">
                <div class="ui horizontal bulleted link list">
                    <a id="copyright" href="https://galette.eu/" class="item{% if new_release.new %} tooltip" data-title="{{ _T("A new Galette release is available.") }}" data-content="{{ _T("You currently use Galette %1$s, and %2$s is available.")|replace({"%1$s": constant('GALETTE_DISPLAY_VERSION'), "%2$s": new_release.version}) }}"{% else %}"{% endif %}>
{% if new_release.new and login.isLogged() and (login.isAdmin() or login.isStaff()) %}
                        <div class="ui transition looping pulsating blue circular horizontal icon label">
                            <i class="arrow alternate circle up icon" aria-hidden="true"></i>
                            <span class="visually-hidden">{{ _T("A new Galette release is available.") }}</span>
                        </div>
{% else %}
                        <i class="icon cookie bite" aria-hidden="true"></i>
{% endif %}
                        Galette {{ constant('GALETTE_DISPLAY_VERSION') }}
                    </a>
{% if login.isLogged() and (login.isAdmin() or login.isStaff()) %}
                    <a id="sysinfos" href="{{ url_for('sysinfos') }}" class="item">
                        <i class="icon cogs" aria-hidden="true"></i>
                        {{ _T("System information") }}
                    </a>
{% endif %}
                </div>
{% if login.isLogged() and cur_route == 'dashboard' %}
                {# Comply with the Twemoji project's requirements about attribution #}
                <!--
                    Emojis used by Galette's core and its official plugins on the dashboard
                    are licensed under CC-BY 4.0 <https://creativecommons.org/licenses/by/4.0/>
                    by Twemoji <https://twemoji.twitter.com/>
                -->
{% endif %}
            </div>
{# Display footer line, if it does exists #}
{% if preferences.pref_footer != '' %}
            <div class="row">
                <div class="ui padded grid">
                    <div class="ui sixteen wide column">
                        {{ preferences.pref_footer|raw }}
                    </div>
                </div>
            </div>
{% endif %}
        </div>
    </footer>
