Elgg  Version 1.11
Go to the documentation of this file.
1 <?php
10 // render content before head so that JavaScript and CSS can be loaded. See #4032
11 $messages = elgg_view('page/elements/messages', array('object' => $vars['sysmessages']));
12 $content = $vars['body'];
15 $html5shiv = elgg_normalize_url('vendors/html5shiv.js');
16 $favicon = elgg_view('page/elements/shortcut_icon', $vars);
17 $css = elgg_get_simplecache_url('css', 'css/maintenance');
18 $head = <<<__HEAD
19  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
20  <title>$title</title>
21  $favicon
22  <!--[if lt IE 9]>
23  <script src="$html5shiv"></script>
24  <![endif]-->
25  <link href="$css" rel="stylesheet">
26 __HEAD;
28 $body = <<<__BODY
29 <div class="elgg-page elgg-page-maintenance" id="elgg-maintenance-page-wrapper">
30  <div class="elgg-page-messages">
31  $messages
32  </div>
33  <div class="elgg-body-maintenance">
34  $content
35  </div>
36 </div>
37 __BODY;
39 echo elgg_view("page/elements/html", array('head' => $head, 'body' => $body));
Get an entity (default is current site)
Definition: sites.php:18
ui datepicker title
Definition: admin.php:616
Definition: output.php:311
Definition: maintenance.php:18
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1246
fieldset div
Definition: admin.php:470
Definition: maintenance.php:17
Maintenance mode page shell.
Definition: maintenance.php:11
Definition: maintenance.php:15
elgg_get_simplecache_url($type, $view)
Definition: cache.php:117
elgg echo
Translates a string.
Definition: languages.js:43
if($links) endif
Definition: full.php:230
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
Maintenance mode layout.
Definition: maintenance.php:9
$site name
elgg widget content
Definition: admin.php:1245
Definition: maintenance.php:14
Definition: maintenance.php:12
The Sprites are copyright © GentleFace http
Definition: maintenance.php:16
if(file_exists($welcome)) $vars
Definition: upgrade.php:93