MDL-63102 core_block: Reduced spacing between blocks
[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 }}}>
536f0460 54
2668487e 55<div id="page-wrapper">
536f0460 56
2668487e 57 {{{ output.standard_top_of_body_html }}}
b71c82ad 58
bf45d7eb 59 {{> theme_boost/navbar }}
536f0460 60
99061152 61 <div id="page" class="container-fluid">
2668487e 62 {{{ output.full_header }}}
536f0460 63
bf45d7eb 64 <div id="page-content" class="row pb-3">
3ec69c2e 65 <div id="region-main-box" class="col-12">
d8cfd611 66 {{#hasregionmainsettingsmenu}}
3ec69c2e 67 <div id="region-main-settings-menu" class="d-print-none {{#hasblocks}}has-blocks{{/hasblocks}}">
11774d90
DW
68 <div> {{{ output.region_main_settings_menu }}} </div>
69 </div>
a0bdffbd 70 {{/hasregionmainsettingsmenu}}
970bb713 71 <section id="region-main" {{#hasblocks}}class="has-blocks mb-2"{{/hasblocks}}>
bf45d7eb
BB
72
73 {{#hasregionmainsettingsmenu}}
74 <div class="region_main_settings_menu_proxy"></div>
75 {{/hasregionmainsettingsmenu}}
76 {{{ output.course_content_header }}}
77 {{{ output.main_content }}}
78 {{{ output.activity_navigation }}}
79 {{{ output.course_content_footer }}}
80
99061152 81 </section>
a0bdffbd 82 {{#hasblocks}}
3560cf5f 83 <section data-region="blocks-column" class="d-print-none">
a0bdffbd
DW
84 {{{ sidepreblocks }}}
85 </section>
86 {{/hasblocks}}
1ecc3daf 87 </div>
536f0460 88 </div>
2668487e 89 </div>
99061152 90 {{> theme_boost/nav-drawer }}
bf45d7eb 91 {{> theme_boost/footer }}
536f0460 92</div>
2668487e 93
536f0460 94</body>
d2645a6a
DW
95</html>
96{{#js}}
310808b7
DP
97require(['theme_boost/loader']);
98require(['theme_boost/drawer'], function(mod) {
99 mod.init();
100});
d2645a6a 101{{/js}}