MDL-64505 theme_classic: Created the classic theme
[moodle.git] / theme / classic / templates / contentonly.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/contentonly
20     Classic 1 column 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
27     Example context (json):
28     {
29         "sitename": "Moodle",
30         "output": {
31             "doctype": "<!DOCTYPE html>",
32             "page_title": "Test page",
33             "favicon": "favicon.ico",
34             "main_content": "<h1>Headings make html validators happier</h1>"
35          },
36          "bodyattributes":""
37     }
38 }}
39 {{{ output.doctype }}}
40 <html {{{ output.htmlattributes }}}>
41 <head>
42     <title>{{{ output.page_title }}}</title>
43     <link rel="shortcut icon" href="{{{ output.favicon }}}" />
44     {{{ output.standard_head_html }}}
45     <meta name="viewport" content="width=device-width, initial-scale=1.0">
46 </head>
48 <body {{{ bodyattributes }}}>
50 <div id="page-wrapper">
52     {{{ output.standard_top_of_body_html }}}
54     <div id="page" class="container-fluid">
55         <div id="page-content" class="row">
56             <div id="region-main-box" class="col-xs-12">
57                 <section id="region-main" aria-label="{{#str}}content{{/str}}">
58                     {{{ output.course_content_header }}}
59                     {{{ output.main_content }}}
60                     {{{ output.activity_navigation }}}
61                     {{{ output.course_content_footer }}}
62                 </section>
63             </div>
64         </div>
65     </div>
66 </div>
67 {{{ output.standard_end_of_body_html }}}
68 </body>
69 </html>
70 {{#js}}
71 require(['theme_boost/loader']);
72 {{/js}}