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 {{#output.courseheadermenu}}rui--course-with-nav{{/output.courseheadermenu}} {{^output.courseheadermenu}}rui--course-witout-nav{{/output.courseheadermenu}}">
|
|
|
51 |
|
|
|
52 |
{{{ output.standard_top_of_body_html }}}
|
|
|
53 |
|
|
|
54 |
{{^hidecourseindexnav}}
|
|
|
55 |
{{#courseindex}}
|
|
|
56 |
{{< theme_universe/drawer }}
|
|
|
57 |
{{$id}}universe-drawers-courseindex{{/id}}
|
|
|
58 |
{{$drawerheadercontent}}
|
|
|
59 |
{{> theme_universe/courseindexdrawercontrols}}
|
|
|
60 |
{{/drawerheadercontent}}
|
|
|
61 |
{{$drawerclasses}}drawer drawer-left {{#courseindexopen}}show{{/courseindexopen}}{{/drawerclasses}}
|
|
|
62 |
{{$drawercontent}}
|
|
|
63 |
{{{ output.display_course_progress }}}
|
|
|
64 |
{{{courseindex}}}
|
|
|
65 |
{{/drawercontent}}
|
|
|
66 |
{{$drawerpreferencename}}drawer-open-index{{/drawerpreferencename}}
|
|
|
67 |
{{$drawerstate}}show-drawer-left{{/drawerstate}}
|
|
|
68 |
{{$tooltipplacement}}right{{/tooltipplacement}}
|
|
|
69 |
{{$closebuttontext}}{{#str}}closecourseindex, core{{/str}}{{/closebuttontext}}
|
|
|
70 |
{{/ theme_universe/drawer}}
|
|
|
71 |
{{/courseindex}}
|
|
|
72 |
{{/hidecourseindexnav}}
|
|
|
73 |
{{#hasblocks}}
|
|
|
74 |
{{< theme_universe/drawer }}
|
|
|
75 |
{{$id}}universe-drawers-blocks{{/id}}
|
|
|
76 |
{{$drawerclasses}}drawer drawer-right{{#blockdraweropen}} show{{/blockdraweropen}}{{/drawerclasses}}
|
|
|
77 |
{{$drawercontent}}
|
|
|
78 |
<section class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
|
|
|
79 |
{{{ addblockbutton }}}
|
|
|
80 |
{{{ sidepreblocks }}}
|
|
|
81 |
</section>
|
|
|
82 |
{{/drawercontent}}
|
|
|
83 |
{{$drawerpreferencename}}drawer-open-block{{/drawerpreferencename}}
|
|
|
84 |
{{$forceopen}}{{#forceblockdraweropen}}1{{/forceblockdraweropen}}{{/forceopen}}
|
|
|
85 |
{{$drawerstate}}show-drawer-right{{/drawerstate}}
|
|
|
86 |
{{$tooltipplacement}}left{{/tooltipplacement}}
|
|
|
87 |
{{$drawercloseonresize}}1{{/drawercloseonresize}}
|
|
|
88 |
{{$closebuttontext}}{{#str}}closeblockdrawer, core{{/str}}{{/closebuttontext}}
|
|
|
89 |
{{/ theme_universe/drawer}}
|
|
|
90 |
{{/hasblocks}}
|
|
|
91 |
|
|
|
92 |
{{> theme_universe/navbar }}
|
|
|
93 |
<div id="page" data-region="mainpage" data-usertour="scroller" class="drawers {{#topbarcustomhtml}}topbar--ext{{/topbarcustomhtml}} {{#courseindexopen}}show-drawer-left{{/courseindexopen}} {{#blockdraweropen}}show-hidden-drawer show-drawer-right{{/blockdraweropen}} drag-container">
|
|
|
94 |
|
|
|
95 |
<div id="topofscroll" class="main-inner">
|
|
|
96 |
<div id="page-content" class="page-content wrapper-fw">
|
|
|
97 |
|
|
|
98 |
<div class="drawer-toggles d-flex">
|
|
|
99 |
{{#courseindex}}
|
|
|
100 |
<div class="drawer-toggler drawer-left-toggle open-nav d-print-none">
|
|
|
101 |
<button
|
|
|
102 |
class="btn-drawer btn-drawer--left drawertoggle"
|
|
|
103 |
data-toggler="drawers"
|
|
|
104 |
data-action="toggle"
|
|
|
105 |
data-target="universe-drawers-courseindex"
|
|
|
106 |
data-toggle="tooltip"
|
|
|
107 |
data-placement="right"
|
|
|
108 |
title="{{#str}}opendrawerindex, core{{/str}}"
|
|
|
109 |
>
|
|
|
110 |
<span class="sr-only">{{#str}}opendrawerindex, core{{/str}}</span>
|
|
|
111 |
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 5.99519C2 5.44556 2.44556 5 2.99519 5H11.0048C11.5544 5 12 5.44556 12 5.99519C12 6.54482 11.5544 6.99039 11.0048 6.99039H2.99519C2.44556 6.99039 2 6.54482 2 5.99519Z" fill="currentColor" /><path d="M2 11.9998C2 11.4501 2.44556 11.0046 2.99519 11.0046H21.0048C21.5544 11.0046 22 11.4501 22 11.9998C22 12.5494 21.5544 12.9949 21.0048 12.9949H2.99519C2.44556 12.9949 2 12.5494 2 11.9998Z" fill="currentColor" /><path d="M2.99519 17.0096C2.44556 17.0096 2 17.4552 2 18.0048C2 18.5544 2.44556 19 2.99519 19H15.0048C15.5544 19 16 18.5544 16 18.0048C16 17.4552 15.5544 17.0096 15.0048 17.0096H2.99519Z" fill="currentColor" /></svg>
|
|
|
112 |
</button>
|
|
|
113 |
</div>
|
|
|
114 |
{{/courseindex}}
|
|
|
115 |
{{#hasblocks}}
|
|
|
116 |
<div id="sidepreopen-control" class="drawer-toggler drawer-right-toggle ml-auto d-print-none">
|
|
|
117 |
<button
|
|
|
118 |
class="btn border-0 icon-no-margin drawertoggle btn-close-drawer--right"
|
|
|
119 |
data-toggler="drawers"
|
|
|
120 |
data-action="toggle"
|
|
|
121 |
data-target="universe-drawers-blocks"
|
|
|
122 |
data-toggle="tooltip"
|
|
|
123 |
data-placement="right"
|
|
|
124 |
title="{{#str}}opendrawerblocks, core{{/str}}"
|
|
|
125 |
>
|
|
|
126 |
<span class="sr-only">{{#str}}opendrawerblocks, core{{/str}}</span>
|
|
|
127 |
<span class="dir-rtl-hide">
|
|
|
128 |
<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;">
|
|
|
129 |
<g transform="matrix(1,0,0,1,-2,0)">
|
|
|
130 |
<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;" />
|
|
|
131 |
</g>
|
|
|
132 |
<g transform="matrix(1,0,0,1,-2,0)">
|
|
|
133 |
<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;" />
|
|
|
134 |
</g>
|
|
|
135 |
</svg>
|
|
|
136 |
</span>
|
|
|
137 |
<span class="dir-ltr-hide">
|
|
|
138 |
<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;">
|
|
|
139 |
<g transform="matrix(1,0,0,1,-2,0)">
|
|
|
140 |
<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;" />
|
|
|
141 |
</g>
|
|
|
142 |
<g transform="matrix(1,0,0,1,-2,0)">
|
|
|
143 |
<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;" />
|
|
|
144 |
</g>
|
|
|
145 |
</svg>
|
|
|
146 |
</span>
|
|
|
147 |
</button>
|
|
|
148 |
</div>
|
|
|
149 |
{{/hasblocks}}
|
|
|
150 |
</div>
|
|
|
151 |
|
|
|
152 |
<div id="region-main-box" class="region-main-course-wrapper">
|
|
|
153 |
|
|
|
154 |
<section id="region-main" aria-label="{{#str}}content{{/str}}">
|
|
|
155 |
|
|
|
156 |
<div class="rui-blocks-wrapper wrapper--with-margin wrapper-xl">
|
|
|
157 |
|
|
|
158 |
<div class="wrapper-page-withblocks">
|
|
|
159 |
{{{ output.breadcrumbs }}}
|
|
|
160 |
|
|
|
161 |
{{{coursepageinformationbanners}}}
|
|
|
162 |
|
|
|
163 |
<div class="wrapper-header">
|
|
|
164 |
{{#secondarymoremenu}}
|
|
|
165 |
<div class="secondary-navigation d-print-none">
|
|
|
166 |
{{> core/moremenu}}
|
|
|
167 |
</div>
|
|
|
168 |
{{/secondarymoremenu}}
|
|
|
169 |
{{{ output.simple_header }}}
|
|
|
170 |
</div>
|
|
|
171 |
|
|
|
172 |
{{#hasregionmainsettingsmenu}}
|
|
|
173 |
<div class="region_main_settings_menu_proxy"></div>
|
|
|
174 |
{{/hasregionmainsettingsmenu}}
|
|
|
175 |
{{{ output.course_content_header }}}
|
|
|
176 |
{{#headercontent}}
|
|
|
177 |
{{> core/activity_header }}
|
|
|
178 |
{{/headercontent}}
|
|
|
179 |
{{#overflow}}
|
|
|
180 |
<div class="tertiary-navigation d-inline-flex flex-wrap w-100">
|
|
|
181 |
<div class="navitem">
|
|
|
182 |
{{> core/url_select}}
|
|
|
183 |
</div>
|
|
|
184 |
</div>
|
|
|
185 |
{{/overflow}}
|
|
|
186 |
|
|
|
187 |
<div class="wrapper-fw">
|
|
|
188 |
{{{ output.main_content }}}
|
|
|
189 |
</div>
|
|
|
190 |
|
|
|
191 |
</div>
|
|
|
192 |
|
|
|
193 |
{{{ output.activity_navigation }}}
|
|
|
194 |
{{{ output.course_content_footer }}}
|
|
|
195 |
</section>
|
|
|
196 |
</div>
|
|
|
197 |
</div>
|
|
|
198 |
{{> theme_universe/footer }}
|
|
|
199 |
</div>
|
|
|
200 |
</div>
|
|
|
201 |
|
|
|
202 |
{{{ output.standard_after_main_region_html }}}
|
|
|
203 |
|
|
|
204 |
</div>
|
|
|
205 |
|
|
|
206 |
</body>
|
|
|
207 |
</html>
|
|
|
208 |
{{#js}}
|
|
|
209 |
M.util.js_pending('theme_universe/loader');
|
|
|
210 |
require(['theme_universe/loader', 'theme_universe/drawer'], function(Loader, Drawer) {
|
|
|
211 |
Drawer.init();
|
|
|
212 |
M.util.js_complete('theme_universe/loader');
|
|
|
213 |
});
|
|
|
214 |
{{/js}}
|