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 core/content/export/external_page
|
|
|
19 |
|
|
|
20 |
Renders content in a basic HTML wrapper designed for viewing offline.
|
|
|
21 |
This template is not for use within moodle.
|
|
|
22 |
|
|
|
23 |
Classes required for JS:
|
|
|
24 |
* none
|
|
|
25 |
|
|
|
26 |
Data attributes required for JS:
|
|
|
27 |
* none
|
|
|
28 |
|
|
|
29 |
Context variables required for this template:
|
|
|
30 |
* global
|
|
|
31 |
|
|
|
32 |
Example context (json):
|
|
|
33 |
{
|
|
|
34 |
"global": {
|
|
|
35 |
"righttoleft": 0,
|
|
|
36 |
"language": "en",
|
|
|
37 |
"sitename": "Kevin's Emporium of fine course material",
|
|
|
38 |
"siteurl": "https://kevin.example.com",
|
|
|
39 |
"pathtotop": "./",
|
|
|
40 |
"contentexportfooter": "This file is part of the content downloaded from <a href='https://example.com'>Kevin's Emporium of fine course material</a> by Jennifer Collins on Tuesday, 24th February 2021, 12:21 am.",
|
|
|
41 |
"contentexportsummary": "This file is part of the content downloaded from <a href='https://example.com/course/view.php?id=4'>Kevin's Emporium of fine course material</a> on Tuesday, 24th February 2021, 12:21 am.",
|
|
|
42 |
"coursename": "Marketing 101",
|
|
|
43 |
"courseshortname": "MKT101",
|
|
|
44 |
"courselink": "https://example.com/course/view.php?id=4",
|
|
|
45 |
"exportdate": "Tuesday, 24th February 2021, 12:21 am",
|
|
|
46 |
"maxfilesize": "40MB"
|
|
|
47 |
}
|
|
|
48 |
}
|
|
|
49 |
}}
|
|
|
50 |
<!DOCTYPE html>
|
|
|
51 |
<html lang="{{global.language}}"{{#global.righttoleft}} dir="rtl"{{/global.righttoleft}}>
|
|
|
52 |
<head>
|
|
|
53 |
<meta charset="UTF-8">
|
|
|
54 |
<title>{{{global.sitename}}} - {{{global.coursename}}}</title>
|
|
|
55 |
<link rel="stylesheet" type="text/css" href="{{global.pathtotop}}/shared/moodle.css" />
|
|
|
56 |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
57 |
</head>
|
|
|
58 |
<body>
|
|
|
59 |
<div class="d-flex flex-column h-100">
|
|
|
60 |
<nav class="navbar navbar-light bg-white border-bottom">
|
|
|
61 |
<div class="container-fluid p-0">
|
|
|
62 |
<a class="navbar-brand" href="{{{global.siteurl}}}" title="{{{global.sitename}}}">
|
|
|
63 |
{{{global.sitename}}}
|
|
|
64 |
</a>
|
|
|
65 |
</div>
|
|
|
66 |
</nav>
|
|
|
67 |
<main class="container-fluid mt-2 flex-grow-1 flex-shrink-1">
|
|
|
68 |
<div>
|
|
|
69 |
<h1><a href="{{global.pathtotop}}index.html">{{{global.coursename}}}</a></h1>
|
|
|
70 |
<p>{{global.courseshortname}}</p>
|
|
|
71 |
{{$pagecontent}}{{/pagecontent}}
|
|
|
72 |
</div>
|
|
|
73 |
</main>
|
|
|
74 |
<footer id="page-footer" class="py-3">
|
|
|
75 |
<div class="container">
|
|
|
76 |
<div>{{{global.contentexportfooter}}}</div>
|
|
|
77 |
</div>
|
|
|
78 |
</footer>
|
|
|
79 |
</div>
|
|
|
80 |
</body>
|
|
|
81 |
</html>
|