MDL-64505 theme_classic: Created the classic theme
[moodle.git] / theme / classic / templates / secure.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_classic/secure
20     Classic secure layout template.
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
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 }}
51 <body {{{ bodyattributes }}}>
53 <div id="page-wrapper">
55     {{{ output.standard_top_of_body_html }}}
57     {{>theme_classic/navbar-secure}}
59     <div id="page" class="container-fluid">
60         {{! Secured full header }}
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>
72         <div id="page-content" class="row {{#haspreblocks}} blocks-pre {{/haspreblocks}} {{#haspostblocks}} blocks-post {{/haspostblocks}}">
73             <div id="region-main-box" class="region-main col-12">
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 class="columnleft {{#haspreblocks}} has-blocks {{/haspreblocks}}">
84                     <section data-region="blocks-column" class="hidden-print" aria-label="{{#str}}blocks{{/str}}">
85                         {{{ sidepreblocks }}}
86                     </section>
87                 </div>
89                 <div class="columnright {{#haspostblocks}} has-blocks {{/haspostblocks}}">
90                     <section data-region="blocks-column" class="hidden-print" aria-label="{{#str}}blocks{{/str}}">
91                         {{{ sidepostblocks }}}
92                     </section>
93                 </div>
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>
101             {{{ output.standard_end_of_body_html }}}
102         </div>
103     </footer>
104 </div>
106 </body>
107 </html>
108 {{#js}}
109 require(['theme_boost/loader']);
110 {{/js}}