Elgg  Version 1.9
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 
38 <!--[if IE 7]>
39 <script>
40  var div = document.getElementById("elgg-maintenance-page-wrapper");
41  div.className = div.className + " ie7";
42 </script>
43 <![endif]-->
44 
45 __BODY;
46 
47 echo elgg_view("page/elements/html", array('head' => $head, 'body' => $body));
48 
elgg_get_site_entity($site_guid=0)
Get an ElggSite entity (default is current site)
Definition: sites.php:18
ui datepicker title
Definition: admin.php:592
elgg_normalize_url($url)
Definition: output.php:290
$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:1464
fieldset div
Definition: admin.php:462
$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:155
GNU GENERAL PUBLIC LICENSE June Free Software Franklin Fifth MA USA Everyone is permitted to copy and distribute verbatim copies of this license document
Definition: LICENSE.txt:4
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
elgg widget content
Definition: admin.php:1219
$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