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