aboutsummaryrefslogtreecommitdiff
path: root/views/failsafe/page/shells/default.php
blob: 0ce63cc1db0dbe8183e8d6350d6225eef6f5c824 (plain)
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
<?php
/**
 * Elgg failsafe pageshell
 * Special viewtype for rendering exceptions. Includes minimal code so as not to
 * create a "Exception thrown without a stack frame in Unknown on line 0" error
 *
 * @package Elgg
 * @subpackage Core
 *
 * @uses $vars['title'] The page title
 * @uses $vars['body'] The main content of the page
 */

// we won't trust server configuration but specify utf-8
header('Content-type: text/html; charset=utf-8');

?>
<html>
	<head>
		<title><?php echo $vars['title']; ?></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<style type="text/css">

		body {
			text-align:left;
			margin:0;
			padding:0;
			background: #4690d6;
			font: 80%/1.5  "Lucida Grande", Verdana, sans-serif;
			color: #333333;
		}
		p {
			margin: 0px 0px 15px 0;
		}
		#wrapper {
			background:white;
			width:570px;
			margin:auto;
			padding:10px 40px;
			margin-bottom:40px;
			margin-top:20px;
			border-right: 1px solid #666666;
			border-bottom: 1px solid #666666;
		}
		.messages_exception {
			background:#FDFFC3;
			display:block;
			padding:10px;
		}
		</style>

	</head>
	<body>
	<div id="wrapper">
		<h1><?php echo $vars['title']; ?></h1>
		<?php echo $vars['body']; ?>
	</div>
	</body>
</html>