Skip to content
Snippets Groups Projects
Select Git revision
  • f2ee435634ee72fef0d72a844df954d8eb6447e7
  • master default protected
  • hsh_v3.11
  • hsh_v3.10-r6
  • hsh_v3.10-r3
  • v3.9-r9
  • v3.10-r6
  • v3.9-r8
  • v3.10-r5
  • v3.9-r7
  • v3.10-r4
  • v3.9-r6
  • v3.10-r3
  • v3.9-r5
  • v3.10-r2
  • v3.9-r4
  • v3.10-r1
  • v3.9-r3
  • v3.9-r2
  • v3.9-r1
  • v3.8-r5
  • v3.8-r4
  • v3.8-r3
  • v3.8-r2
  • v3.8-r1
25 results

footer.mustache

Blame
  • user avatar
    Alexander Bias authored
    Adjusted occurrences of the .row-fluid grid class to .row after the BS4Alpha compatibility layer has been removed in theme Boost core.
    85dae14e
    History
    footer.mustache 5.40 KiB
    {{!
        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
        * bcbttbutton - true if the setting bcbttbutton is enabled.
    
        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>",
            "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
        }
    }}
    {{! MODIFICATION:
        * Add footer blocks.
        * Don't show Boost's core "Go to top" button if Boost Campus' "Back to top" button is enabled.
    }}
    {{^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}}
    <footer id="page-footer" class="py-3 bg-dark text-light">
        <div class="container-fluid">
            <div class="row">
                <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.}}
                    <section data-region="footer-left" class="d-print-none col-12">
                        {{{ 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.}}
                    <section data-region="footer-left" class="d-print-none col-12 col-lg-6">
                        {{{ footerleftblocks }}}