Elgg  Version 1.11
admin.php
Go to the documentation of this file.
1 <?php
13 // render content before head so that JavaScript and CSS can be loaded. See #4032
14 
17 if ($notices) {
18  foreach ($notices as $notice) {
19  $notices_html .= elgg_view_entity($notice);
20  }
21 
22  $notices_html = "<div class=\"elgg-admin-notices\">$notices_html</div>";
23 }
24 
25 $header = elgg_view('admin/header', $vars);
26 
27 $messages = elgg_view('page/elements/messages', array('object' => $vars['sysmessages']));
29 
30 $content = $vars["body"];
31 
32 $footer = elgg_view('admin/footer', $vars);
33 
34 $body = <<<__BODY
35 <div class="elgg-page elgg-page-admin">
36  <div class="elgg-inner">
37  <div class="elgg-page-header">
38  <div class="elgg-inner clearfix">
39  $header
40  </div>
41  </div>
42  <div class="elgg-page-messages">
43  $messages
44  </div>
45  <div class="elgg-page-body">
46  <div class="elgg-inner">
47  $content
48  </div>
49  </div>
50  <div class="elgg-page-footer">
51  <div class="elgg-inner">
52  $footer
53  </div>
54  </div>
55  </div>
56 </div>
57 __BODY;
58 
59 $body .= elgg_view('page/elements/foot');
60 
61 $head = elgg_view('page/elements/head', $vars['head']);
62 
63 echo elgg_view("page/elements/html", array("head" => $head, "body" => $body));
$messages
Definition: admin.php:27
$body
Definition: admin.php:34
$head
Definition: admin.php:61
elgg_get_admin_notices($limit=10)
Get admin notices.
Definition: admin.php:106
$notices
Definition: admin.php:16
$vars['type']
Install create admin account page.
Definition: admin.php:8
fieldset div
Definition: admin.php:470
elgg echo
Translates a string.
Definition: languages.js:43
$footer
Definition: admin.php:32
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
if($notices) $header
Definition: admin.php:25
$content
Definition: admin.php:30
elgg_view_entity(\ElggEntity $entity, $vars=array(), $bypass=false, $debug=false)
Returns a string of a rendered entity.
Definition: views.php:793
$notices_html
Definition: admin.php:15