Elgg  Version 2.3
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 $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;
23 
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;
34 
35 echo elgg_view("page/elements/html", array('head' => $head, 'body' => $body));
36 
elgg_get_site_entity($site_guid=0)
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
$head
Definition: maintenance.php:17
$vars['entity']
$css
Definition: maintenance.php:16
$messages
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
$body
Maintenance mode layout.
Definition: maintenance.php:9
$site name
$title
Definition: maintenance.php:14
$content
Definition: maintenance.php:12
elgg widget content
Definition: admin.css.php:1305
$favicon
Definition: maintenance.php:15