MDL-62142 navigation: accessibility
[moodle.git] / theme / boost / templates / secure.mustache
CommitLineData
310808b7
DP
1{{!
2 This file is part of Moodle - http://moodle.org/
3
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.
8
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.
13
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/>.
16}}
17{{!
18 @template theme_boost/secure
19
20 Boost secure layout template.
21
22 Context variables required for this template:
23 * sitename - The name of the site
24 * output - The core renderer for the page
25
26 Example context (json):
27 {
28 "sitename": "Moodle",
29 "output": {
30 "doctype": "<!DOCTYPE html>",
31 "page_title": "Test page",
32 "favicon": "favicon.ico",
33 "main_content": "<h1>Headings make html validators happier</h1>"
34 }
35 }
36}}
3ec69c2e 37{{> theme_boost/head }}
536f0460 38
5d03ab36 39<body {{{ bodyattributes }}}>
536f0460 40
5d03ab36 41<div id="page-wrapper">
536f0460 42
5d03ab36 43 {{{ output.standard_top_of_body_html }}}
b71c82ad 44
3ec69c2e 45 {{>theme_boost/navbar-secure}}
536f0460 46
5d03ab36
DW
47 <div id="page" class="container-fluid">
48 {{! Secured full header }}
536f0460 49
5d03ab36 50 <div id="page-header" class="row">
3ec69c2e 51 <div class="col-12 py-3">
5d03ab36
DW
52 <div class="page-context-header">
53 <div class="page-header-headings">
54 {{{ output.page_heading }}}
55 </div>
56 </div>
57 </div>
58 </div>
536f0460 59
5d03ab36 60 <div id="page-content" class="row">
3ec69c2e 61 <div id="region-main-box" class="col-12">
9df03b19 62 <section id="region-main" {{#hasblocks}}class="has-blocks"{{/hasblocks}} aria-label="{{#str}}content{{/str}}">
bf45d7eb 63
5d03ab36 64 {{{ output.course_content_header }}}
536f0460 65 {{{ output.main_content }}}
5d03ab36 66 {{{ output.course_content_footer }}}
bf45d7eb 67
5d03ab36
DW
68 </section>
69 {{#hasblocks}}
9df03b19 70 <section data-region="blocks-column" aria-label="{{#str}}blocks{{/str}}">
5d03ab36 71 {{{ sidepreblocks }}}
536f0460 72 </section>
5d03ab36 73 {{/hasblocks}}
536f0460
DW
74 </div>
75 </div>
536f0460 76 </div>
bf45d7eb
BB
77 <footer id="page-footer" class="py-3 bg-dark text-light">
78 <div class="container">
79 <div id="course-footer">{{{ output.course_footer }}}</div>
80
81 {{{ output.standard_end_of_body_html }}}
82 </div>
83 </footer>
5d03ab36 84</div>
536f0460 85
536f0460 86
536f0460
DW
87</body>
88</html>
d2645a6a 89{{#js}}
310808b7 90require(['theme_boost/loader']);
d2645a6a 91{{/js}}