2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template theme_classic/columns
20 Admin time setting template.
22 Classic 1-3 column layout template.
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
31 Example context (json):
35 "doctype": "<!DOCTYPE html>",
36 "page_title": "Test page",
37 "favicon": "favicon.ico",
38 "main_content": "<h1>Headings make html validators happier</h1>"
41 "sidepreblocks": "<h2>Blocks html goes here</h2>",
42 "sidepostblocks": "<h2>Blocks html goes here</h2>",
47 {{> theme_boost/head }}
49 <body {{{ bodyattributes }}}>
51 <div id="page-wrapper">
53 {{{ output.standard_top_of_body_html }}}
55 {{>theme_classic/navbar}}
57 <div id="page" class="container-fluid">
58 {{{ output.full_header }}}
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 }}}
69 <div class="columnleft blockcolumn {{#haspreblocks}} has-blocks {{/haspreblocks}}">
70 <section data-region="blocks-column" class="hidden-print" aria-label="{{#str}}blocks{{/str}}">
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 }}}
82 {{{ output.standard_after_main_region_html }}}
83 {{> theme_boost/footer }}
89 M.util.js_pending('theme_boost/loader');
90 require(['theme_boost/loader'], function() {
91 M.util.js_complete('theme_boost/loader');