Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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_boost/secure
19
 
20
    Boost 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
 
26
      Example context (json):
27
    {
28
        "sitename": "Moodle",
29
        "output": {
30
            "doctype": "<!DOCTYPE html>",
31
            "page_title": "Test page",
32
            "favicon": "favicon.ico",
33
            "main_content": "<h1>Headings make html validators happier</h1>"
34
         }
35
    }
36
}}
37
{{> theme_boost/head }}
38
 
39
<body {{{ bodyattributes }}}>
40
{{> core/local/toast/wrapper}}
41
 
42
<div id="page-wrapper">
43
 
44
    {{{ output.standard_top_of_body_html }}}
45
 
46
    {{>theme_boost/navbar-secure}}
47
 
48
    <div id="page" class="container-fluid">
49
        {{! Secured full header }}
50
 
1441 ariadna 51
        <header id="page-header" class="row">
1 efrain 52
            <div class="col-12 py-3">
53
                <div class="page-context-header">
54
                    <div class="page-header-headings">
55
                        {{{ output.page_heading }}}
56
                    </div>
57
                </div>
58
            </div>
1441 ariadna 59
        </header>
1 efrain 60
 
61
        <div id="page-content" class="row">
62
            <div id="region-main-box" class="col-12">
1441 ariadna 63
                <div id="region-main" {{#hasblocks}}class="has-blocks"{{/hasblocks}}>
1 efrain 64
 
65
                    {{{ output.course_content_header }}}
1441 ariadna 66
                    {{#headercontent}}
67
                        {{> core/activity_header }}
68
                    {{/headercontent}}
1 efrain 69
                    {{{ output.main_content }}}
70
                    {{{ output.course_content_footer }}}
71
 
1441 ariadna 72
                </div>
1 efrain 73
                {{#hasblocks}}
1441 ariadna 74
                <div data-region="blocks-column">
1 efrain 75
                    {{{ sidepreblocks }}}
1441 ariadna 76
                </div>
1 efrain 77
                {{/hasblocks}}
78
            </div>
79
        </div>
80
    </div>
81
    <footer id="page-footer" class="py-3">
82
        <div class="container">
83
            <div id="course-footer">{{{ output.course_footer }}}</div>
84
            {{{ output.standard_end_of_body_html }}}
85
        </div>
86
    </footer>
87
</div>
88
 
89
 
90
</body>
91
</html>
92
{{#js}}
93
M.util.js_pending('theme_boost/loader');
94
require(['theme_boost/loader'], function() {
95
    M.util.js_complete('theme_boost/loader');
96
});
97
{{/js}}