Elgg  Version master
default.php
Go to the documentation of this file.
1 <?php
11 // we won't trust server configuration but specify utf-8
12 elgg_set_http_header('Content-type: text/html; charset=utf-8');
13 
14 ?>
15 <!DOCTYPE html>
16 <html>
17  <head>
18  <title><?php echo elgg_extract('title', $vars); ?></title>
19  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
20 
21  <style>
22  body {
23  text-align:left;
24  margin:0;
25  padding:0;
26  background: #4690d6;
27  font: 80%/1.5 "Lucida Grande", Verdana, sans-serif;
28  color: #333333;
29  }
30  p {
31  margin: 0 0 15px 0;
32  }
33  #elgg-wrapper {
34  background:white;
35  width:570px;
36  margin:auto;
37  padding:10px 40px;
38  margin-bottom:40px;
39  margin-top:20px;
40  border-right: 1px solid #666666;
41  border-bottom: 1px solid #666666;
42  }
43  .elgg-messages-exception {
44  background:#FDFFC3;
45  display:block;
46  padding:10px;
47  }
48  </style>
49 
50  </head>
51  <body>
52  <div id="elgg-wrapper">
53  <h1><?php echo elgg_extract('title', $vars); ?></h1>
54  <?php echo elgg_extract('body', $vars); ?>
55  </div>
56  </body>
57 </html>
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:25
elgg_set_http_header(string $header, bool $replace=true)
Set a response HTTP header.
Definition: elgglib.php:26
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:256