1 |
efrain |
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/secure
|
|
|
19 |
|
|
|
20 |
Classic secure 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 |
* sidepreblocks - HTML for the pre blocks
|
|
|
27 |
* sidepostblocks - HTML for the post blocks
|
|
|
28 |
* haspreblocks - true if there are pre blocks on this page
|
|
|
29 |
* haspostblocks - true if there are post blocks on this page
|
|
|
30 |
* bodyattributes - attributes for the body tag as a string of html attributes
|
|
|
31 |
|
|
|
32 |
Example context (json):
|
|
|
33 |
{
|
|
|
34 |
"sitename": "Moodle",
|
|
|
35 |
"output": {
|
|
|
36 |
"doctype": "<!DOCTYPE html>",
|
|
|
37 |
"page_title": "Test page",
|
|
|
38 |
"favicon": "favicon.ico",
|
|
|
39 |
"main_content": "<h1>Headings make html validators happier</h1>"
|
|
|
40 |
},
|
|
|
41 |
"bodyattributes":"",
|
|
|
42 |
"sidepreblocks": "<h2>Pre blocks html goes here</h2>",
|
|
|
43 |
"sidepostblocks": "<h2>Post blocks html goes here</h2>",
|
|
|
44 |
"haspreblocks":true,
|
|
|
45 |
"haspostblocks":true,
|
|
|
46 |
"bodyattributes": ""
|
|
|
47 |
}
|
|
|
48 |
}}
|
|
|
49 |
{{> theme_boost/head }}
|
|
|
50 |
|
|
|
51 |
<body {{{ bodyattributes }}}>
|
|
|
52 |
|
|
|
53 |
<div id="page-wrapper">
|
|
|
54 |
|
|
|
55 |
{{{ output.standard_top_of_body_html }}}
|
|
|
56 |
|
|
|
57 |
{{>theme_classic/navbar-secure}}
|
|
|
58 |
|
|
|
59 |
<div id="page" class="container-fluid">
|
|
|
60 |
{{! Secured full header }}
|
|
|
61 |
|
|
|
62 |
<div id="page-header" class="row">
|
|
|
63 |
<div class="col-12 py-3">
|
|
|
64 |
<div class="page-context-header">
|
|
|
65 |
<div class="page-header-headings">
|
|
|
66 |
{{{ output.page_heading }}}
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
|
|
69 |
</div>
|
|
|
70 |
</div>
|
|
|
71 |
|
|
|
72 |
<div id="page-content" class="row {{#haspreblocks}} blocks-pre {{/haspreblocks}} {{#haspostblocks}} blocks-post {{/haspostblocks}}">
|
|
|
73 |
<div id="region-main-box" class="region-main">
|
|
|
74 |
<section id="region-main" aria-label="{{#str}}content{{/str}}">
|
|
|
75 |
<div class="card">
|
|
|
76 |
<div class="card-body">
|
|
|
77 |
{{{ output.course_content_header }}}
|
|
|
78 |
{{{ output.main_content }}}
|
|
|
79 |
{{{ output.course_content_footer }}}
|
|
|
80 |
</div>
|
|
|
81 |
</div>
|
|
|
82 |
</section>
|
|
|
83 |
</div>
|
|
|
84 |
<div class="columnleft {{#haspreblocks}} has-blocks {{/haspreblocks}}">
|
|
|
85 |
<section data-region="blocks-column" class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
|
|
|
86 |
{{{ sidepreblocks }}}
|
|
|
87 |
</section>
|
|
|
88 |
</div>
|
|
|
89 |
|
|
|
90 |
<div class="columnright {{#haspostblocks}} has-blocks {{/haspostblocks}}">
|
|
|
91 |
<section data-region="blocks-column" class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
|
|
|
92 |
{{{ sidepostblocks }}}
|
|
|
93 |
</section>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
</div>
|
|
|
97 |
<footer id="page-footer" class="py-3 bg-dark text-light">
|
|
|
98 |
<div class="container">
|
|
|
99 |
<div id="course-footer">{{{ output.course_footer }}}</div>
|
|
|
100 |
|
|
|
101 |
{{{ output.standard_end_of_body_html }}}
|
|
|
102 |
</div>
|
|
|
103 |
</footer>
|
|
|
104 |
</div>
|
|
|
105 |
|
|
|
106 |
</body>
|
|
|
107 |
</html>
|
|
|
108 |
{{#js}}
|
|
|
109 |
M.util.js_pending('theme_boost/loader');
|
|
|
110 |
require(['theme_boost/loader'], function() {
|
|
|
111 |
M.util.js_complete('theme_boost/loader');
|
|
|
112 |
});
|
|
|
113 |
{{/js}}
|