Newer
Older
Kathrin Osswald
committed
{{!
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_campus/footer
Boost_campus footer layout template.
Context variables required for this template:
* footerblock3columns - true if the setting is set to 3 columns footer layout
* footerleftblocks - Code for the left footer region
* footermiddleblocks - Code for the middle footer region
* footerrightblocks - Code for the right footer region
Kathrin Osswald
committed
* bcbttbutton - true if the setting bcbttbutton is enabled.
Kathrin Osswald
committed
Example context (json):
{
"footerblock3columns":true,
"footerleftblocks": "<aside id='block-region-footer-left' class='block-region' data-blockregion='footer-left' data-droptarget='1'>This is the left footer region</aside>",
"footermiddleblocks": "<aside id='block-region-footer-middle' class='block-region' data-blockregion='footer-middle' data-droptarget='1'>This is the middle footer region</aside>",
Kathrin Osswald
committed
"footerrightblocks": "<aside id='block-region-footer-right' class='block-region' data-blockregion='footer-right' data-droptarget='1'>This is the right footer region</aside>",
"bcbttbutton": true
Kathrin Osswald
committed
}
}}
Kathrin Osswald
committed
{{! MODIFICATION:
* Add footer blocks.
Kathrin Osswald
committed
* Don't show Boost's core "Go to top" button if Boost Campus' "Back to top" button is enabled.
Kathrin Osswald
committed
}}
Kathrin Osswald
committed
{{^bcbttbutton}}
<div id="goto-top-link">
{{! go to top is sticky to footer so needs to be sibling }}
<a class="btn btn-light" role="button" href="#">
{{#pix}} i/up, core, {{#str}} totop, theme_boost {{/str}}{{/pix}}
</a>
</div>
{{/bcbttbutton}}
Kathrin Osswald
committed
<footer id="page-footer" class="py-3 bg-dark text-light">
Kathrin Osswald
committed
<div class="container-fluid">
<div class="row-fluid">
<div id="course-footer" class="col-12">
{{{ output.course_footer }}}
</div>
{{! If admin setting is set to one footer column. }}
{{#footerblock1columns }}
{{! Add blocks to the first footer column.}}
Kathrin Osswald
committed
<section data-region="footer-left" class="d-print-none col-12">
Kathrin Osswald
committed
{{{ footerleftblocks }}}
</section>
{{/footerblock1columns }}
{{! If admin setting is set to two footer columns. }}
{{#footerblock2columns }}
{{! The layout is 2 columns on large screens. For medium and small screens it is better to display just 1 column.}}
{{! Add blocks to the first footer column.}}
Kathrin Osswald
committed
<section data-region="footer-left" class="d-print-none col-12 col-lg-6">
Kathrin Osswald
committed
{{{ footerleftblocks }}}
</section>
{{! Add blocks to the third footer column.}}
Kathrin Osswald
committed
<section data-region="footer-right" class="d-print-none col-12 col-lg-6">
Kathrin Osswald
committed
{{{ footerrightblocks }}}
</section>
{{/footerblock2columns }}
{{! If admin setting is set to three footer columns. }}
{{#footerblock3columns }}
{{! The layout is 3 columns on large screens. For medium and small screens it is better to display just 1 column.}}
{{! Add blocks to the first footer column.}}
Kathrin Osswald
committed
<section data-region="footer-left" class="d-print-none col-12 col-lg-4">
Kathrin Osswald
committed
{{{ footerleftblocks }}}
</section>
{{! Add blocks to the second footer column.}}
Kathrin Osswald
committed
<section data-region="footer-middle" class="d-print-none col-12 col-lg-4">
Kathrin Osswald
committed
{{{ footermiddleblocks }}}
</section>
{{! Add blocks to the third footer column.}}
Kathrin Osswald
committed
<section data-region="footer-right" class="d-print-none col-12 col-lg-4">
Kathrin Osswald
committed
{{{ footerrightblocks }}}
</section>
{{/footerblock3columns }}
</div>
</div>
{{! Add standard Moodle footer behind the blocks area. }}
<div class="container-fluid">
<div class="row-fluid">
<div class="col-12">
Kathrin Osswald
committed
{{# output.page_doc_link }}
Kathrin Osswald
committed
<p class="helplink">{{{ output.page_doc_link }}}</p>
Kathrin Osswald
committed
{{/ output.page_doc_link }}
Kathrin Osswald
committed
{{{ output.login_info }}}
<div class="tool_usertours-resettourcontainer"></div>
Kathrin Osswald
committed
{{{ output.home_link }}}
<nav class="nav navbar-nav d-md-none" aria-label="{{#str}}custommenu, admin{{/str}}">
Kathrin Osswald
committed
{{# output.custom_menu_flat }}
<ul class="list-unstyled pt-3">
{{> theme_boost/custom_menu_footer }}
</ul>
{{/ output.custom_menu_flat }}
Kathrin Osswald
committed
</nav>
{{{ output.standard_footer_html }}}
{{{ output.standard_end_of_body_html }}}
Kathrin Osswald
committed
</div>
Kathrin Osswald
committed
</div>
</div>
</footer>