element * @uses $vars['body'] The main content of the page * @uses $vars['sysmessages'] A 2d array of various message registers, passed from system_messages() */ // render content before head so that JavaScript and CSS can be loaded. See #4032 $notices_html = ''; $notices = elgg_get_admin_notices(); if ($notices) { foreach ($notices as $notice) { $notices_html .= elgg_view_entity($notice); } $notices_html = "
$notices_html
"; } $header = elgg_view('admin/header', $vars); $messages = elgg_view('page/elements/messages', array('object' => $vars['sysmessages'])); $messages .= $notices_html; $content = $vars["body"]; $footer = elgg_view('admin/footer', $vars); $body = <<<__BODY
$header
$messages
$content
__BODY; $body .= elgg_view('page/elements/foot'); $head = elgg_view('page/elements/head', $vars['head']); echo elgg_view("page/elements/html", array("head" => $head, "body" => $body));