{{!
    This file is part of Moodle - http://moodle.org/

    Moodle 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.

    Moodle 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 Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template theme_foundation/partials/footer

    Page footer.

    Context variables required for this template:
    * output - The core renderer for the page.
    * navbarbottom - true if navbar is at the bottom of the page.
    * fa - true if using Font Awesome 4.
    * fav - true if using Font Awesome 5.
    * favi - true if using Font Awesome 6.

    Example context (json):
    {
        "output": "",
        "navbarbottom": false,
        "fa": false,
        "fav": true,
        "favi": false
    }
}}
<footer id="page-footer" class="pt-3 {{^navbarbottom}}pb-3{{/navbarbottom}}{{#navbarbottom}}pb-6{{/navbarbottom}} bg-dark fg-dark">
    <div class="container">
        {{#brandsenabled}}
        <div class="row">
            <div class="col-7">
        {{/brandsenabled}}
        <div id="course-footer">{{{ output.course_footer }}}</div>

        {{#pagedoclink }}
            <p class="helplink">{{{ pagedoclink }}}</p>
        {{/pagedoclink }}

        {{{ output.login_info }}}
        <div class="tool_usertours-resettourcontainer"></div>
        {{{ output.home_link }}}
        <nav class="nav navbar-nav d-md-none">
            {{# output.custom_menu_flat }}
                <ul class="list-unstyled pt-3">
                    {{> theme_boost/custom_menu_footer }}
                </ul>
            {{/ output.custom_menu_flat }}
        </nav>
        {{{ output.standard_footer_html }}}
        {{#brandsenabled}}
            </div>
            <div class="col-5">
            {{> partials/brands}}
            </div>
        </div>
        {{/brandsenabled}}
        {{#debugfooterhtml }}
        <div class="footer-content-debugging py-sm-3">
            {{{ debugfooterhtml }}}
        </div>
        {{/debugfooterhtml }}
        {{{ output.standard_end_of_body_html }}}
    </div>
</footer>
<span class="footerantigravity{{#fav}} fav{{/fav}}{{#favi}} favi{{/favi}}">
    <button class="backtotop btn btn-primary" title="{{#str}}backtotop, theme_foundation{{/str}}"><span aria-hidden="true" class="fa-solid fa-angle-up"></span></button>
    <button class="gotobottom btn btn-primary" title="{{#str}}gotobottom, theme_foundation{{/str}}"><span aria-hidden="true" class="fa-solid fa-angle-down"></span></button>
</span>
{{#js}}
require(['theme_foundation/anti_gravity'], function (AntiGravity) {
    AntiGravity.init();
});
{{/js}}