Elgg  Version 2.3
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 $favicon = elgg_view('page/elements/shortcut_icon', $vars);
16 $css = elgg_get_simplecache_url('maintenance.css');
17 $head = <<<__HEAD
18  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
19  <title>$title</title>
20  $favicon
21  <link href="$css" rel="stylesheet">
22 __HEAD;
24 $body = <<<__BODY
25 <div class="elgg-page elgg-page-maintenance" id="elgg-maintenance-page-wrapper">
26  <div class="elgg-page-messages">
27  $messages
28  </div>
29  <div class="elgg-body-maintenance">
30  $content
31  </div>
32 </div>
33 __BODY;
35 echo elgg_view("page/elements/html", array('head' => $head, 'body' => $body));
Get an entity (default is current site)
Definition: sites.php:18
elgg_get_simplecache_url($view, $subview= '')
Get the URL for the cached view.
Definition: cache.php:136
Definition: maintenance.php:17
Definition: maintenance.php:16
Maintenance mode page shell.
Definition: maintenance.php:11
ui datepicker title
Definition: admin.css.php:662
fieldset div
Definition: admin.css.php:485
elgg echo
Translates a string.
Definition: languages.js:48
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1375
Maintenance mode layout.
Definition: maintenance.php:9
$site name
Definition: maintenance.php:14
Definition: maintenance.php:12
elgg widget content
Definition: admin.css.php:1305
Definition: maintenance.php:15