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 core/sticky_footer
20 Displays a page sticky footer element.
22 Sticky footer behaviour depends on the theme. The default template is
25 Classes required for JS:
28 Data attributes optional for JS:
29 * data-disable Number|String - If the sticky footer should be disabled by default
31 Context variables required for this template:
32 * disable Boolean - if the sticky footer should be loaded hidden
34 Example context (json):
36 "stickycontent" : "<a href=\"#\">Moodle</a>",
39 "attribute" : "data-example",
40 "value" : "stickyfooter"
43 "stickyclasses" : "extraclasses"
48 class="{{$ stickyclasses }}{{stickyclasses}}{{/ stickyclasses }}"
50 {{#disable}} data-disable="true" {{/disable}}
53 {{attribute}}="{{value}}"
61 require(['core/sticky-footer'], function(footer) {