{{!
    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.
    * fav - true if using Font Awesome 5.

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

        {{# output.page_doc_link }}
            <p class="helplink">{{{ output.page_doc_link }}}</p>
        {{/ output.page_doc_link }}

        {{{ 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}}
        {{{ output.standard_end_of_body_html }}}
    </div>
</footer>
<span class="footerantigravity{{#fav}} fav{{/fav}}">
    <button class="backtotop btn btn-primary" title="{{#str}}backtotop, theme_foundation{{/str}}"><span aria-hidden="true" class="fa fa-angle-up"></span></button>
    <button class="gotobottom btn btn-primary" title="{{#str}}gotobottom, theme_foundation{{/str}}"><span aria-hidden="true" class="fa fa-angle-down"></span></button>
</span>
{{#js}}
require(['theme_foundation/anti_gravity']);
{{/js}}