{{!
    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_boost/footer

    Page footer.

    Example context (json):
    {
        "output": {
            "page_doc_link": "Help and documentation",
            "supportemail": "<a href=\"#\">Contact site support</a>",
            "has_popover_links": true,
            "services_support": "Services and support",
            "login_info": "You are logged in as cute kitten",
            "moodle_release": "90210"
        }
    }
}}

<footer id="page-footer" class="row mt10 pb50">
  <div class="col-lg-12">
    <div class="copyright-widget text-center d-lg-flex justify-content-lg-center">
      <p class="color-black2">{{{ cocoon_copyright }}}</p>
      <div data-region="footer-container-popover" class="d-lg-inline-flex">
        <button class=" icon-no-margin btn-footer-popover d-lg-inline-flex" data-action="footer-popover" aria-label="{{#str}}showfooter, theme_boost{{/str}}">
          <i class="la la-support"></i>
        </button>
      </div>
      <div class="footer-content-popover container" data-region="footer-content-popover">
        {{# output.has_popover_links }}
          <div class="footer-section p-3 border-bottom">
            {{# output.page_doc_link }}
              <div>{{{ output.page_doc_link }}}</div>
              {{/ output.page_doc_link }}

              {{# output.services_support_link }}
                <div>{{{ output.services_support_link }}}</div>
                {{/ output.services_support_link }}

                {{# output.supportemail }}
                  <div>{{{ output.supportemail }}}</div>
                  {{/ output.supportemail }}
          </div>
          {{/ output.has_popover_links }}
          <div class="footer-section p-3 border-bottom">
            <div class="logininfo">
              {{{ output.login_info }}}
            </div>
            <div class="tool_usertours-resettourcontainer">
            </div>

            {{{ output.standard_footer_html }}}
            {{{ output.standard_end_of_body_html }}}
          </div>
          <div class="footer-section p-3">
            <div>{{#str}}poweredbymoodle, core{{/str}}</div>
            {{#output.moodle_release}}
              <div>
                {{#str}}version, core{{/str}} {{{ output.moodle_release }}}
              </div>
            {{/output.moodle_release}}
          </div>
      </div>
      <div class="tool_usertours-resettourcontainer"></div>
    </div>

    <div class="footer-content-debugging mt-3 text-lg-center">
      {{{ output.debug_footer_html }}}
    </div>
  </div>
</footer>
{{{custom_js_dashboard}}}
{{#js}}
  require(['theme_boost/footer-popover'], function(FooterPopover) {
  FooterPopover.init();
  });
{{/js}}
