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/columns2
19
 
20
    Admin time setting template.
21
 
22
    Boost 2 column layout template.
23
 
24
    Context variables required for this template:
25
    * sitename - The name of the site
26
    * output - The core renderer for the page
27
    * bodyattributes - attributes for the body tag as a string of html attributes
28
    * sidepreblocks - HTML for the blocks
29
    * hasblocks - true if there are blocks on this page
30
    * navdraweropen - true if the nav drawer should be open on page load
31
    * regionmainsettingsmenu - HTML for the region main settings menu
32
    * hasregionmainsettingsmenu - There is a region main settings menu on this page.
33
 
34
    Example context (json):
35
    {
36
        "sitename": "Moodle",
37
        "output": {
38
            "doctype": "<!DOCTYPE html>",
39
            "page_title": "Test page",
40
            "favicon": "favicon.ico",
41
            "main_content": "<h1>Headings make html validators happier</h1>"
42
         },
43
        "bodyattributes":"",
44
        "sidepreblocks": "<h2>Blocks html goes here</h2>",
45
        "hasblocks":true,
46
        "navdraweropen":true,
47
        "regionmainsettingsmenu": "",
48
        "hasregionmainsettingsmenu": false
49
    }
50
}}
51
{{> theme_boost/head }}
52
 
53
<body {{{ bodyattributes }}}>
54
{{> core/local/toast/wrapper}}
55
 
56
<div id="page-wrapper" class="d-print-block">
57
 
58
    {{{ output.standard_top_of_body_html }}}
59
 
60
    {{> theme_boost/navbar }}
61
 
62
    <div id="page" class="container-fluid d-print-block">
63
        {{{ output.full_header }}}
64
            {{#secondarymoremenu}}
65
                <div class="secondary-navigation">
66
                    {{> core/moremenu}}
67
                </div>
68
            {{/secondarymoremenu}}
69
        <div id="page-content" class="row pb-3 d-print-block">
70
            <div id="region-main-box" class="col-12">
71
                {{#hasregionmainsettingsmenu}}
72
                <div id="region-main-settings-menu" class="d-print-none {{#hasblocks}}has-blocks{{/hasblocks}}">
73
                    <div> {{{ regionmainsettingsmenu }}} </div>
74
                </div>
75
                {{/hasregionmainsettingsmenu}}
76
                <section id="region-main" {{#hasblocks}}class="has-blocks mb-3"{{/hasblocks}} aria-label="{{#str}}content{{/str}}">
77
 
78
                    {{#hasregionmainsettingsmenu}}
79
                        <div class="region_main_settings_menu_proxy"></div>
80
                    {{/hasregionmainsettingsmenu}}
81
                    {{{ output.course_content_header }}}
82
                    {{#headercontent}}
83
                        {{> core/activity_header }}
84
                    {{/headercontent}}
85
                    {{#overflow}}
86
                        {{> core/url_select}}
87
                    {{/overflow}}
88
                    {{{ output.main_content }}}
89
                    {{{ output.activity_navigation }}}
90
                    {{{ output.course_content_footer }}}
91
 
92
                </section>
93
                {{#hasblocks}}
94
                <section data-region="blocks-column" class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
95
                    {{{ addblockbutton }}}
96
                    {{{ sidepreblocks }}}
97
                </section>
98
                {{/hasblocks}}
99
            </div>
100
        </div>
101
    </div>
102
    {{{ output.standard_after_main_region_html }}}
103
    {{> theme_boost/footer }}
104
</div>
105
 
106
</body>
107
</html>
108
{{#js}}
109
M.util.js_pending('theme_boost/loader');
110
require(['theme_boost/loader', 'theme_boost/drawer'], function(Loader, Drawer) {
111
    Drawer.init();
112
    M.util.js_complete('theme_boost/loader');
113
});
114
{{/js}}