Elgg  Version 1.11
maintenance.php
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'];
13 
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;
27 
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;
38 
39 echo elgg_view("page/elements/html", array('head' => $head, 'body' => $body));
40 
elgg_get_site_entity($site_guid=0)
Get an entity (default is current site)
Definition: sites.php:18
ui datepicker title
Definition: admin.php:616
elgg_normalize_url($url)
Definition: output.php:311
$head
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
$css
Definition: maintenance.php:17
$messages
Maintenance mode page shell.
Definition: maintenance.php:11
$html5shiv
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
$body
Maintenance mode layout.
Definition: maintenance.php:9
$site name
elgg widget content
Definition: admin.php:1245
$title
Definition: maintenance.php:14
$content
Definition: maintenance.php:12
The Sprites are copyright © GentleFace http
$favicon
Definition: maintenance.php:16
if(file_exists($welcome)) $vars
Definition: upgrade.php:93