Proyectos de Subversion Moodle

Rev

| 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
    Context variables required for this template:
19
    * output - The core renderer for the page
20
    * hasfakeblocks - true if there are fake blocks on this page
21
    * fakeblocks - HTML for the fake blocks
22
 
23
    Example context (json):
24
    {
25
        "output": {
26
            "doctype": "<!DOCTYPE html>",
27
            "htmlattributes": "The attributes that should be added to the <html> tag",
28
            "page_title": "Test page",
29
            "favicon": "favicon.ico",
30
            "standard_head_html": "The standard tags that should be included in the <head> tag",
31
            "body_attributes": "The attributes to use within the body tag",
32
            "standard_top_of_body_html": "The standard tags that should be output just inside the start of the <body> tag",
33
            "main_content": "<h1>Headings make html validators happier</h1>",
34
            "standard_end_of_body_html": "The standard tags that should be output after everything else"
35
         },
36
         "hasfakeblocks": true,
37
         "fakeblocks": "<h2>Fake blocks html goes here</h2>"
38
    }
39
}}
40
{{{ output.doctype }}}
41
{{> theme_universe/head }}
42
 
43
<body {{{ output.body_attributes }}}>
44
{{> core/local/toast/wrapper}}
45
 
46
{{{ output.standard_top_of_body_html }}}
47
<div id="page" {{#hasfakeblocks}}class="has-fake-blocks"{{/hasfakeblocks}}>
48
    {{#hasfakeblocks}}
49
        <section class="embedded-blocks" aria-label="{{#str}}blocks{{/str}}">
50
            {{{ fakeblocks }}}
51
        </section>
52
    {{/hasfakeblocks}}
53
    <section class="embedded-main">
54
        {{#headercontent}}
55
            {{> core/activity_header }}
56
        {{/headercontent}}
57
        {{{ output.main_content }}}
58
    </section>
59
</div>
60
{{{ output.standard_end_of_body_html }}}
61
</body>
62
</html>
63
{{#js}}
64
M.util.js_pending('theme_universe/loader');
65
require(['theme_universe/loader'], function() {
66
  M.util.js_complete('theme_universe/loader');
67
});
68
{{/js}}