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_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
 
1441 ariadna 62
        <header id="page-header" class="row">
1 efrain 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>
1441 ariadna 70
        </header>
1 efrain 71
 
1441 ariadna 72
        <div id="page-content" class="d-flex {{#haspreblocks}} blocks-pre {{/haspreblocks}} {{#haspostblocks}} blocks-post {{/haspostblocks}}">
1 efrain 73
            <div id="region-main-box" class="region-main">
1441 ariadna 74
                <div id="region-main">
1 efrain 75
                    <div class="card">
76
                        <div class="card-body">
77
                            {{{ output.course_content_header }}}
1441 ariadna 78
                            {{#headercontent}}
79
                                {{> core/activity_header }}
80
                            {{/headercontent}}
1 efrain 81
                            {{{ output.main_content }}}
82
                            {{{ output.course_content_footer }}}
83
                        </div>
84
                    </div>
1441 ariadna 85
                </div>
1 efrain 86
            </div>
87
            <div class="columnleft {{#haspreblocks}} has-blocks {{/haspreblocks}}">
1441 ariadna 88
                <div data-region="blocks-column" class="d-print-none">
1 efrain 89
                    {{{ sidepreblocks }}}
1441 ariadna 90
                </div>
1 efrain 91
            </div>
92
 
93
            <div class="columnright {{#haspostblocks}} has-blocks {{/haspostblocks}}">
1441 ariadna 94
                <div data-region="blocks-column" class="d-print-none">
1 efrain 95
                    {{{ sidepostblocks }}}
1441 ariadna 96
                </div>
1 efrain 97
            </div>
98
        </div>
99
    </div>
100
    <footer id="page-footer" class="py-3 bg-dark text-light">
101
        <div class="container">
102
            <div id="course-footer">{{{ output.course_footer }}}</div>
103
 
104
            {{{ output.standard_end_of_body_html }}}
105
        </div>
106
    </footer>
107
</div>
108
 
109
</body>
110
</html>
111
{{#js}}
112
M.util.js_pending('theme_boost/loader');
113
require(['theme_boost/loader'], function() {
114
    M.util.js_complete('theme_boost/loader');
115
});
116
{{/js}}