Mini Shell
{{!
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_learnr/footer
LearnR page footer template.
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"
},
"imprintlinkpositionfooter": true,
"imprintlink": "https://localhost/theme/learnr/pages/imprint.php",
"imprinttitle": "Imprint",
"contactlinkpositionfooter": true,
"contactlink": "https://localhost/theme/learnr/pages/contact.php",
"contacttitle": "Contact",
"helplinkpositionfooter": true,
"helplink": "https://localhost/theme/learnr/pages/help.php",
"helplinktitle": "Help",
"maintenancelinkpositionfooter": true,
"maintenancelink": "https://localhost/theme/learnr/pages/maintenance.php",
"maintenancetitle": "Maintenance"
}
}}
{{!
This template is based on theme_boost/footer
Modifications compared to this template:
* Added the possibility to show the imprint page link.
* Added the possibility to show the contact page link.
* Added the possibility to show the help page link.
* Added the possibility to show the maintenance page link.
}}
<footer id="page-footer" class="footer-popover bg-white">
<div data-region="footer-container-popover">
<button class="btn btn-icon bg-secondary icon-no-margin btn-footer-popover" data-action="footer-popover" aria-label="{{#str}}showfooter, theme_boost{{/str}}">
{{#pix}}e/question, core{{/pix}}
</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 class="footer-support-link">{{{ output.page_doc_link }}}</div>
{{/ output.page_doc_link }}
{{# output.services_support_link }}
<div class="footer-support-link">{{{ output.services_support_link }}}</div>
{{/ output.services_support_link }}
{{# output.supportemail }}
<div class="footer-support-link">{{{ output.supportemail }}}</div>
{{/ output.supportemail }}
{{# imprintlinkpositionfooter }}
<div class="footer-support-link theme_learnr_footer_imprintlink">
<a href="{{ imprintlink }}"><i class="icon fa fa-building-o fa-fw " aria-hidden="true"></i>{{ imprintpagetitle }}</a>
</div>
{{/ imprintlinkpositionfooter }}
{{# contactlinkpositionfooter }}
<div class="footer-support-link theme_learnr_footer_contactlink">
<a href="{{ contactlink }}"><i class="icon fa fa-address-card fa-fw " aria-hidden="true"></i>{{ contactpagetitle }}</a>
</div>
{{/ contactlinkpositionfooter }}
{{# helplinkpositionfooter }}
<div class="footer-support-link theme_learnr_footer_helplink">
<a href="{{ helplink }}"><i class="icon fa fa-question-circle-o fa-fw " aria-hidden="true"></i>{{ helppagetitle }}</a>
</div>
{{/ helplinkpositionfooter }}
{{# maintenancelinkpositionfooter }}
<div class="footer-support-link theme_learnr_footer_maintenancelink">
<a href="{{ maintenancelink }}"><i class="icon fa fa-wrench fa-fw " aria-hidden="true"></i>{{ maintenancepagetitle }}</a>
</div>
{{/ maintenancelinkpositionfooter }}
</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="footer-content-debugging footer-dark bg-dark text-light">
<div class="container-fluid footer-dark-inner">
{{{ output.debug_footer_html }}}
</div>
</div>
</footer>
{{#js}}
require(['theme_boost/footer-popover'], function(FooterPopover) {
FooterPopover.init();
});
{{/js}}
Zerion Mini Shell 1.0