MDL-66723 theme_classic: Remove regionmainsettings variables
[moodle.git] / theme / classic / templates / columns.mustache
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_classic/columns
19
20 Admin time setting template.
21
22 Classic 1-3 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
31 Example context (json):
32 {
33 "sitename": "Moodle",
34 "output": {
35 "doctype": "<!DOCTYPE html>",
36 "page_title": "Test page",
37 "favicon": "favicon.ico",
38 "main_content": "<h1>Headings make html validators happier</h1>"
39 },
40 "bodyattributes":"",
41 "sidepreblocks": "<h2>Blocks html goes here</h2>",
42 "sidepostblocks": "<h2>Blocks html goes here</h2>",
43 "haspreblocks":true,
44 "haspostblocks":true
45 }
46 }}
47 {{> theme_boost/head }}
48
49 <body {{{ bodyattributes }}}>
50
51 <div id="page-wrapper">
52
53 {{{ output.standard_top_of_body_html }}}
54
55 {{>theme_classic/navbar}}
56
57 <div id="page" class="container-fluid">
58 {{{ output.full_header }}}
59
60 <div id="page-content" class="row {{#haspreblocks}} blocks-pre {{/haspreblocks}} {{#haspostblocks}} blocks-post {{/haspostblocks}}">
61 <div id="region-main-box" class="region-main">
62 <section id="region-main" class="region-main-content" aria-label="{{#str}}content{{/str}}">
63 {{{ output.course_content_header }}}
64 {{{ output.main_content }}}
65 {{{ output.activity_navigation }}}
66 {{{ output.course_content_footer }}}
67 </section>
68 </div>
69 <div class="columnleft blockcolumn {{#haspreblocks}} has-blocks {{/haspreblocks}}">
70 <section data-region="blocks-column" class="hidden-print" aria-label="{{#str}}blocks{{/str}}">
71 {{{ sidepreblocks }}}
72 </section>
73 </div>
74
75 <div class="columnright blockcolumn {{#haspostblocks}} has-blocks {{/haspostblocks}}">
76 <section data-region="blocks-column" class="hidden-print" aria-label="{{#str}}blocks{{/str}}">
77 {{{ sidepostblocks }}}
78 </section>
79 </div>
80 </div>
81 </div>
82 {{{ output.standard_after_main_region_html }}}
83 {{> theme_boost/footer }}
84 </div>
85
86 </body>
87 </html>
88 {{#js}}
89 M.util.js_pending('theme_boost/loader');
90 require(['theme_boost/loader'], function() {
91 M.util.js_complete('theme_boost/loader');
92 });
93 {{/js}}