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_monocolor/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
    {{#hasblocks}}
54
        {{< theme_monocolor/drawer }}
55
            {{$id}}monocolor-drawers-blocks{{/id}}
56
            {{$drawerclasses}}drawer drawer-right{{#blockdraweropen}} show{{/blockdraweropen}}{{/drawerclasses}}
57
            {{$drawercontent}}
58
                <section class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
59
                    {{{ addblockbutton }}}
60
                    {{{ sidepreblocks }}}
61
                </section>
62
            {{/drawercontent}}
63
            {{$drawerpreferencename}}drawer-open-block{{/drawerpreferencename}}
64
            {{$forceopen}}{{#forceblockdraweropen}}1{{/forceblockdraweropen}}{{/forceopen}}
65
            {{$drawerstate}}show-drawer-right{{/drawerstate}}
66
            {{$tooltipplacement}}left{{/tooltipplacement}}
67
            {{$drawercloseonresize}}1{{/drawercloseonresize}}
68
            {{$closebuttontext}}{{#str}}closeblockdrawer, core{{/str}}{{/closebuttontext}}
69
        {{/ theme_monocolor/drawer}}
70
    {{/hasblocks}}
71
 
72
 
73
    {{> theme_monocolor/navbar }}
74
    <div id="page" data-region="mainpage" data-usertour="scroller" class="drawers {{#topbarcustomhtml}}topbar--ext{{/topbarcustomhtml}} {{#blockdraweropen}}show-hidden-drawer show-drawer-right{{/blockdraweropen}} drag-container">
75
 
76
        <div id="topofscroll" class="main-inner">
77
 
78
            <div class="drawer-toggles d-flex">
79
                {{#hasblocks}}
80
                    <div id="sidepreopen-control" class="drawer-toggler drawer-right-toggle ml-auto d-print-none">
81
                        <button
82
                            class="btn border-0 icon-no-margin drawertoggle btn-close-drawer--right"
83
                            data-toggler="drawers"
84
                            data-action="toggle"
85
                            data-target="monocolor-drawers-blocks"
86
                            data-toggle="tooltip"
87
                            data-placement="right"
88
                            title="{{#str}}opendrawerblocks, core{{/str}}"
89
                        >
90
                            <span class="sr-only">{{#str}}opendrawerblocks, core{{/str}}</span>
91
                            <span class="dir-rtl-hide">
92
                                <svg width="20" height="20" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;">
93
                                    <g transform="matrix(1,0,0,1,-2,0)">
94
                                        <path d="M18.333,15L18.333,5C18.333,3.629 17.205,2.5 15.833,2.5L14.167,2.5C12.795,2.5 11.667,3.629 11.667,5L11.667,15C11.667,16.371 12.795,17.5 14.167,17.5L15.833,17.5C17.205,17.5 18.333,16.371 18.333,15Z" style="fill:none;fill-rule:nonzero;stroke:currentColor;stroke-width:1.67px;" />
95
                                    </g>
96
                                    <g transform="matrix(1,0,0,1,-2,0)">
97
                                        <path d="M11.667,10L5,10M5,10L7.5,7.5M5,10L7.5,12.5" style="fill:none;fill-rule:nonzero;stroke:currentColor;stroke-width:1.25px;stroke-linecap:round;stroke-linejoin:round;" />
98
                                    </g>
99
                                </svg>
100
                            </span>
101
                            <span class="dir-ltr-hide">
102
                                <svg width="20" height="20" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;">
103
                                    <g transform="matrix(1,0,0,1,-2,0)">
104
                                        <path d="M18.333,15L18.333,5C18.333,3.629 17.205,2.5 15.833,2.5L14.167,2.5C12.795,2.5 11.667,3.629 11.667,5L11.667,15C11.667,16.371 12.795,17.5 14.167,17.5L15.833,17.5C17.205,17.5 18.333,16.371 18.333,15Z" style="fill:none;fill-rule:nonzero;stroke:currentColor;stroke-width:1.67px;" />
105
                                    </g>
106
                                    <g transform="matrix(1,0,0,1,-2,0)">
107
                                        <path d="M11.667,10L5,10M5,10L7.5,7.5M5,10L7.5,12.5" style="fill:none;fill-rule:nonzero;stroke:currentColor;stroke-width:1.25px;stroke-linecap:round;stroke-linejoin:round;" />
108
                                    </g>
109
                                </svg>
110
                            </span>
111
                        </button>
112
                    </div>
113
                {{/hasblocks}}
114
            </div>
115
 
116
            <div id="page-content" class="page-content wrapper-fw">
117
 
118
                <div id="region-main-box" class="region-main-wrapper">
119
                    <section id="region-main" class="region-main-content" aria-label="{{#str}}content{{/str}}">
120
                        <div class="rui-blocks-wrapper wrapper--with-margin wrapper-xl">
121
                            <div class="wrapper-fw">
122
                                {{{coursepageinformationbanners}}}
123
                                <div class="wrapper-header">
124
                                    {{{ output.simple_header }}}
125
 
126
                                    {{#headeractions}}
127
                                    <div class="header-actions-container ml-1" data-region="header-actions-container">
128
                                        <div class="header-action">{{{.}}}</div>
129
                                    </div>
130
                                    {{/headeractions}}
131
                                    {{{pageheadingbutton}}}
132
                                </div>
133
 
134
                                {{#hasregionmainsettingsmenu}}
135
                                    <div class="region_main_settings_menu_proxy"></div>
136
                                {{/hasregionmainsettingsmenu}}
137
                                {{{ output.course_content_header }}}
138
                                {{#headercontent}}
139
                                    {{> core/activity_header }}
140
                                {{/headercontent}}
141
                                {{#overflow}}
142
                                    <div class="tertiary-navigation d-inline-flex flex-wrap w-100">
143
                                        <div class="navitem">
144
                                            {{> core/url_select}}
145
                                        </div>
146
                                    </div>
147
                                {{/overflow}}
148
 
149
                                <div class="rui-dashboard-top">
150
 
151
                                    {{#hasdtopblocks}}
152
                                    <div id="blocks-dashboardtopblock" class="col-12 px-0">
153
                                    {{{ dtopblocks }}}
154
                                    </div>
155
                                    {{/hasdtopblocks}}
156
 
157
                                    {{{ dashboardblock1 }}}
158
 
159
                                    <div class="rui-dashboard-main mb-4">{{{ output.main_content }}}</div>
160
 
161
                                    {{{ dashboardblock2 }}}
162
 
163
                                    {{#hasdbottomblocks}}
164
                                    <div class="rui-dashboard-bottom mt-4 mb-4">
165
                                        <div data-region="blocks-dashboardbottomblock" class="col-12 p-0">
166
                                        {{{ dbottomblocks }}}
167
                                        </div>
168
                                    </div>
169
                                    {{/hasdbottomblocks}}
170
 
171
                                </div>
172
 
173
                            </div>
174
                        </div>
175
                    </section>
176
                </div>
177
            </div>
178
        </div>
179
    {{> theme_monocolor/footer }}
180
    </div>
181
 
182
    {{{ output.standard_after_main_region_html }}}
183
 
184
</div>
185
 
186
</body>
187
</html>
188
{{#js}}
189
M.util.js_pending('theme_monocolor/loader');
190
require(['theme_monocolor/loader', 'theme_monocolor/drawer'], function(Loader, Drawer) {
191
    Drawer.init();
192
    M.util.js_complete('theme_monocolor/loader');
193
});
194
{{/js}}