forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plainpage.php
92 lines (89 loc) · 2.73 KB
/
plainpage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Moodle Generic plain page
*
* This is used for various pages, usually errors, early in the Moodle
* bootstrap. It can be safetly customized by editing this file directly
* but it MUST NOT contain any Moodle resources such as theme files generated
* by php, it can only contain references to static css and images, and as a
* precaution its recommended that everything is inlined rather than
* references. This is why this file is located here as it cannot be inside
* a Moodle theme.
*
* @package core
* @copyright 2020 Brendan Heywood <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
// phpcs:ignoreFile
?>
<!DOCTYPE html>
<html <?php echo $htmllang ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php echo $meta ?>
<title><?php echo $title ?></title>
<style>
<?php
// This is a very small modified subset of the bootstrap / boost css classes.
?>
body {
margin: 0;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
font-size: .9375rem;
font-weight: 400;
line-height: 1.5;
color: #343a40;
text-align: left;
background-color: #f2f2f2;
}
#page {
margin-top: 15px;
background: white;
max-width: 600px;
margin: 0 auto;
padding: 15px;
}
#region-main {
margin: 0 auto;
border: 1px solid rgba(0,0,0,.125);
padding: 1rem 1.25rem 1.25rem;
background-color: #fff;
}
h1 {
font-size: 2.34rem;
margin: 0 0 .5rem;
font-weight: 300;
line-height: 1.2;
}
.alert-danger {
color: #6e211e;
background-color: #f6d9d8;
border-color: #f3c9c8;
padding: .75rem 1.25rem;
}
</style>
</head>
<body>
<div id="page">
<div id="region-main">
<h1><?php echo $title ?></h1>
<?php echo $content ?>
<?php echo $footer ?>
</div>
</div>
</body>
</html>