MDL-67154 theme_boost: fixing firefox printing
[moodle.git] / theme / boost / templates / columns2.mustache
1 {{!
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/>.
16 }}
17 {{!
18     @template theme_boost/columns2
20     Admin time setting template.
22     Boost 2 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
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.
34     Example context (json):
35     {
36         "sitename": "Moodle",
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          },
43         "bodyattributes":"",
44         "sidepreblocks": "<h2>Blocks html goes here</h2>",
45         "hasblocks":true,
46         "navdraweropen":true,
47         "regionmainsettingsmenu": "",
48         "hasregionmainsettingsmenu": false
49     }
50 }}
51 {{> theme_boost/head }}
53 <body {{{ bodyattributes }}}>
54 {{> core/local/toast/wrapper}}
56 <div id="page-wrapper" class="d-print-block">
58     {{{ output.standard_top_of_body_html }}}
60     {{> theme_boost/navbar }}
62     <div id="page" class="container-fluid d-print-block">
63         {{{ output.full_header }}}
65         <div id="page-content" class="row pb-3 d-print-block">
66             <div id="region-main-box" class="col-12">
67                 {{#hasregionmainsettingsmenu}}
68                 <div id="region-main-settings-menu" class="d-print-none {{#hasblocks}}has-blocks{{/hasblocks}}">
69                     <div> {{{ output.region_main_settings_menu }}} </div>
70                 </div>
71                 {{/hasregionmainsettingsmenu}}
72                 <section id="region-main" {{#hasblocks}}class="has-blocks mb-3"{{/hasblocks}} aria-label="{{#str}}content{{/str}}">
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 }}}
82                 </section>
83                 {{#hasblocks}}
84                 <section data-region="blocks-column" class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
85                     {{{ sidepreblocks }}}
86                 </section>
87                 {{/hasblocks}}
88             </div>
89         </div>
90     </div>
91     {{{ output.standard_after_main_region_html }}}
92     {{> theme_boost/nav-drawer }}
93     {{> theme_boost/footer }}
94 </div>
96 </body>
97 </html>
98 {{#js}}
99 M.util.js_pending('theme_boost/loader');
100 require(['theme_boost/loader'], function() {
101   M.util.js_complete('theme_boost/loader');
102 });
103 M.util.js_pending('theme_boost/drawer');
104 require(['theme_boost/drawer'], function(mod) {
105     mod.init();
106   M.util.js_complete('theme_boost/drawer');
107 });
108 {{/js}}