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
    * sitename - The name of the site
20
    * output - The core renderer for the page
21
    * bodyattributes - attributes for the body tag as a string of html attributes
22
    * sidepreblocks - HTML for the blocks
23
    * hasblocks - true if there are blocks on this page
24
    * navdraweropen - true if the nav drawer should be open on page load
25
    * regionmainsettingsmenu - HTML for the region main settings menu
26
    * hasregionmainsettingsmenu - There is a region main settings menu on this page.
27
 
28
    Example context (json):
29
    {
30
        "sitename": "Moodle",
31
        "output": {
32
            "doctype": "<!DOCTYPE html>",
33
            "page_title": "Test page",
34
            "favicon": "favicon.ico",
35
            "main_content": "<h1>Headings make html validators happier</h1>"
36
         },
37
        "bodyattributes":"",
38
        "sidepreblocks": "<h2>Blocks html goes here</h2>",
39
        "hasblocks":true,
40
        "navdraweropen":true,
41
        "regionmainsettingsmenu": "",
42
        "hasregionmainsettingsmenu": false
43
    }
44
}}
45
{{> theme_universe/head }}
46
 
47
<body {{{ bodyattributes }}}>
48
    {{> core/local/toast/wrapper}}
49
 
50
    <div id="page-wrapper" class="d-print-block">
51
 
52
        {{{ output.standard_top_of_body_html }}}
53
        {{> theme_universe/hasblocks-tmpl }}
54
 
55
        {{> theme_universe/navbar }}
56
        <div id="page" data-region="mainpage" data-usertour="scroller" class="container-fluid drawers px-0 {{#topbarcustomhtml}}topbar--ext{{/topbarcustomhtml}} {{#blockdraweropen}}show-hidden-drawer show-drawer-right{{/blockdraweropen}} drag-container">
57
 
58
            <div id="topofscroll" class="main-inner">
59
                <div id="page-content" class="page-content wrapper-fw">
60
 
61
                    <div id="region-main-box" class="region-main-wrapper--fp wrapper-fw">
62
                        <section id="region-main" class="region-main-content {{#hasblocks}}has-blocks{{/hasblocks}}" aria-label="{{#str}}content{{/str}}">
63
                            <div {{#hasblocks}}class="blocks-wrapper d-inline-flex justify-content-between w-100" {{/hasblocks}}>
64
                                <div class="{{#hasblocks}}wrapper-blocks{{/hasblocks}}">
65
 
66
 
67
                                        {{#secondarymoremenu}}
68
                                            <div class="secondary-navigation d-print-none">
69
                                                {{> core/moremenu}}
70
                                            </div>
71
                                        {{/secondarymoremenu}}
72
 
73
                                        <div class="wrapper-xl">
74
                                        {{#headeractions}}
75
                                            <div class="header-actions-container ml-1" data-region="header-actions-container">
76
                                                <div class="header-action">{{{.}}}</div>
77
                                            </div>
78
                                        {{/headeractions}}
79
                                        {{{pageheadingbutton}}}
80
 
81
                                        {{#hasregionmainsettingsmenu}}
82
                                            <div class="region_main_settings_menu_proxy"></div>
83
                                        {{/hasregionmainsettingsmenu}}
84
                                        {{{ output.course_content_header }}}
85
                                        {{#headercontent}}
86
                                            {{> core/activity_header }}
87
                                        {{/headercontent}}
88
                                        {{#overflow}}
89
                                            <div class="tertiary-navigation d-inline-flex flex-wrap w-100">
90
                                                <div class="navitem">
91
                                                    {{> core/url_select}}
92
                                                </div>
93
                                            </div>
94
                                        {{/overflow}}
95
 
96
                                    </div>
97
                                    {{{ruiscb}}}
98
 
99
                                </div>
100
                            </div>
101
                        </section>
102
                    </div>
103
                </div>
104
            </div>
105
            {{> theme_universe/footer }}
106
        </div>
107
 
108
        {{{ output.standard_after_main_region_html }}}
109
 
110
    </div>
111
 
112
</body>
113
 
114
</html>
115
{{#js}}
116
    M.util.js_pending('theme_universe/loader');
117
    require(['theme_universe/loader', 'theme_universe/drawer'], function(Loader, Drawer) {
118
    Drawer.init();
119
    M.util.js_complete('theme_universe/loader');
120
    });
121
{{/js}}