MDL-67154 theme_boost: fixing firefox printing
[moodle.git] / theme / boost / templates / columns2.mustache
CommitLineData
d8cfd611
DW
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/columns2
19
20 Admin time setting template.
21
22 Boost 2 column layout template.
23
24 Context variables required for this template:
25 * sitename - The name of the site
26 * output - The core renderer for the page
27 * bodyattributes - attributes for the body tag as a string of html attributes
28 * sidepreblocks - HTML for the blocks
29 * hasblocks - true if there are blocks on this page
30 * navdraweropen - true if the nav drawer should be open on page load
31 * regionmainsettingsmenu - HTML for the region main settings menu
32 * hasregionmainsettingsmenu - There is a region main settings menu on this page.
33
34 Example context (json):
35 {
36 "sitename": "Moodle",
310808b7
DP
37 "output": {
38 "doctype": "<!DOCTYPE html>",
39 "page_title": "Test page",
40 "favicon": "favicon.ico",
41 "main_content": "<h1>Headings make html validators happier</h1>"
42 },
d8cfd611 43 "bodyattributes":"",
310808b7 44 "sidepreblocks": "<h2>Blocks html goes here</h2>",
d8cfd611
DW
45 "hasblocks":true,
46 "navdraweropen":true,
47 "regionmainsettingsmenu": "",
48 "hasregionmainsettingsmenu": false
49 }
50}}
3ec69c2e 51{{> theme_boost/head }}
536f0460 52
99061152 53<body {{{ bodyattributes }}}>
224ea04e 54{{> core/local/toast/wrapper}}
536f0460 55
e06f9a83 56<div id="page-wrapper" class="d-print-block">
536f0460 57
2668487e 58 {{{ output.standard_top_of_body_html }}}
b71c82ad 59
bf45d7eb 60 {{> theme_boost/navbar }}
536f0460 61
e06f9a83 62 <div id="page" class="container-fluid d-print-block">
2668487e 63 {{{ output.full_header }}}
536f0460 64
e06f9a83 65 <div id="page-content" class="row pb-3 d-print-block">
3ec69c2e 66 <div id="region-main-box" class="col-12">
d8cfd611 67 {{#hasregionmainsettingsmenu}}
3ec69c2e 68 <div id="region-main-settings-menu" class="d-print-none {{#hasblocks}}has-blocks{{/hasblocks}}">
11774d90
DW
69 <div> {{{ output.region_main_settings_menu }}} </div>
70 </div>
a0bdffbd 71 {{/hasregionmainsettingsmenu}}
9df03b19 72 <section id="region-main" {{#hasblocks}}class="has-blocks mb-3"{{/hasblocks}} aria-label="{{#str}}content{{/str}}">
bf45d7eb
BB
73
74 {{#hasregionmainsettingsmenu}}
75 <div class="region_main_settings_menu_proxy"></div>
76 {{/hasregionmainsettingsmenu}}
77 {{{ output.course_content_header }}}
78 {{{ output.main_content }}}
79 {{{ output.activity_navigation }}}
80 {{{ output.course_content_footer }}}
81
99061152 82 </section>
a0bdffbd 83 {{#hasblocks}}
9df03b19 84 <section data-region="blocks-column" class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
a0bdffbd
DW
85 {{{ sidepreblocks }}}
86 </section>
87 {{/hasblocks}}
1ecc3daf 88 </div>
536f0460 89 </div>
2668487e 90 </div>
c75559cf 91 {{{ output.standard_after_main_region_html }}}
99061152 92 {{> theme_boost/nav-drawer }}
bf45d7eb 93 {{> theme_boost/footer }}
536f0460 94</div>
2668487e 95
536f0460 96</body>
d2645a6a
DW
97</html>
98{{#js}}
5034f0a1
AN
99M.util.js_pending('theme_boost/loader');
100require(['theme_boost/loader'], function() {
101 M.util.js_complete('theme_boost/loader');
102});
103M.util.js_pending('theme_boost/drawer');
310808b7
DP
104require(['theme_boost/drawer'], function(mod) {
105 mod.init();
5034f0a1 106 M.util.js_complete('theme_boost/drawer');
310808b7 107});
d2645a6a 108{{/js}}