2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template theme_boost/footer
22 Example context (json):
25 "page_doc_link": "Help and documentation",
26 "supportemail": "<a href=\"#\">Contact site support</a>",
27 "has_popover_links": true,
28 "services_support": "Services and support",
29 "login_info": "You are logged in as cute kitten",
30 "moodle_release": "90210",
31 "has_communication_links": true,
32 "communication_url": "https://element:8081/#/room/#yourroom:synapse",
33 "communication_link": "<a href=\"#\">Communication room</a>"
38 <footer id="page-footer" class="footer-popover bg-white">
39 <div data-region="footer-container-popover">
40 {{#output.has_communication_links}}
41 <button onclick="window.open('{{output.communication_url}}', '_blank')" class="btn btn-icon bg-primary text-white icon-no-margin btn-footer-communication" aria-label="{{#str}}communicationroomlink, course{{/str}}">
42 {{#pix}}t/messages-o, core{{/pix}}
44 {{/output.has_communication_links}}
45 <button class="btn btn-icon bg-secondary icon-no-margin btn-footer-popover" data-action="footer-popover" aria-label="{{#str}}showfooter, theme_boost{{/str}}">
46 {{#pix}}e/question, core{{/pix}}
49 <div class="footer-content-popover container" data-region="footer-content-popover">
50 {{#output.has_communication_links}}
51 <div class="footer-section p-3 border-bottom footer-link-communication">
52 <div class="footer-support-link">{{{ output.communication_link }}}</div>
54 {{/output.has_communication_links}}
55 {{# output.has_popover_links }}
56 <div class="footer-section p-3 border-bottom">
57 {{# output.page_doc_link }}
58 <div class="footer-support-link">{{{ output.page_doc_link }}}</div>
59 {{/ output.page_doc_link }}
61 {{# output.services_support_link }}
62 <div class="footer-support-link">{{{ output.services_support_link }}}</div>
63 {{/ output.services_support_link }}
65 {{# output.supportemail }}
66 <div class="footer-support-link">{{{ output.supportemail }}}</div>
67 {{/ output.supportemail }}
69 {{/ output.has_popover_links }}
70 <div class="footer-section p-3 border-bottom">
71 <div class="logininfo">
72 {{{ output.login_info }}}
74 <div class="tool_usertours-resettourcontainer">
77 {{{ output.standard_footer_html }}}
78 {{{ output.standard_end_of_body_html }}}
80 <div class="footer-section p-3">
81 <div>{{#str}}poweredbymoodle, core{{/str}}</div>
82 {{#output.moodle_release}}
84 {{#str}}version, core{{/str}} {{{ output.moodle_release }}}
86 {{/output.moodle_release}}
90 <div class="footer-content-debugging footer-dark bg-dark text-light">
91 <div class="container-fluid footer-dark-inner">
92 {{{ output.debug_footer_html }}}
97 require(['theme_boost/footer-popover'], function(FooterPopover) {