MDL-56582 boost: add some misisng template context
[moodle.git] / theme / boost / templates / columns1.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/columns1
19
20 Boost 1 column 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 * bodyattributes - attributes for the body tag as a string of html attributes
26 * regionmainsettingsmenu - HTML for the region main settings menu
27 * hasregionmainsettingsmenu - There is a region main settings menu on this page.
28
29 Example context (json):
30 {
31 "sitename": "Moodle",
867dc76f 32 "output": {"doctype": "<!DOCTYPE html>", "page_title": "Test page", "favicon": "favicon.ico"},
d8cfd611
DW
33 "bodyattributes":"",
34 "regionmainsettingsmenu": "",
35 "hasregionmainsettingsmenu": false
36 }
37}}
536f0460
DW
38{{{ output.doctype }}}
39<html {{{ output.htmlattributes }}}>
40<head>
41 <title>{{ output.page_title }}</title>
42 <link rel="shortcut icon" href="{{{ output.favicon }}}" />
43 {{{ output.standard_head_html }}}
44 <meta name="viewport" content="width=device-width, initial-scale=1.0">
45</head>
46
99061152 47<body {{{ bodyattributes }}}>
536f0460 48
2668487e 49<div id="page-wrapper">
536f0460 50
2668487e 51 {{{ output.standard_top_of_body_html }}}
b71c82ad 52
99061152 53 <div id="page" class="container-fluid">
2668487e 54 <div id="page-content" class="row">
0a58ec24 55 <div id="region-main-box" class="col-xs-12">
d8cfd611
DW
56 {{#hasregionmainsettingsmenu}}
57 <div id="region-main-settings-menu" class="has-blocks">
58 <div> {{{ regionmainsettingsmenu }}} </div>
59 </div>
60 {{/hasregionmainsettingsmenu}}
0a58ec24
DW
61 <section id="region-main">
62 <div class="card card-block">
d8cfd611
DW
63 {{#hasregionmainsettingsmenu}}
64 <div class="region_main_settings_menu_proxy"></div>
65 {{/hasregionmainsettingsmenu}}
99061152
DW
66 {{{ output.course_content_header }}}
67 {{{ output.main_content }}}
68 {{{ output.course_content_footer }}}
0a58ec24 69 </div>
99061152 70 </section>
1ecc3daf 71 </div>
536f0460
DW
72 </div>
73 </div>
126e1b24 74</div>
0a58ec24 75{{{ output.standard_end_of_body_html }}}
536f0460 76</body>
d2645a6a
DW
77</html>
78{{#js}}
2ede86d7 79require(['theme_boost/loader'], function() {});
d2645a6a 80{{/js}}