Elgg  Version master
walled_garden.php
Go to the documentation of this file.
1 <?php
12 elgg_unregister_external_file('css', 'elgg');
13 elgg_load_external_file('css', 'elgg.walled_garden');
14 
15 // render content before head so that JavaScript and CSS can be loaded. See #4032
16 $messages = elgg_view('page/elements/messages', ['object' => elgg_extract('sysmessages', $vars)]);
17 $header = elgg_view('page/elements/walled_garden/header', $vars);
18 $footer = elgg_view('page/elements/walled_garden/footer', $vars);
19 
20 $body = elgg_view('page/elements/walled_garden/body', [
21  'messages' => $messages,
22  'header' => $header,
23  'content' => elgg_extract('body', $vars),
24  'footer' => $footer,
25 ]);
26 $body .= elgg_view('page/elements/foot');
27 
28 $head = elgg_view('page/elements/head', elgg_extract('head', $vars, []));
29 
30 echo elgg_view('page/elements/html', [
31  'head' => $head,
32  'body' => $body,
33 ]);
$footer
elgg_unregister_external_file(string $type, string $name)
Unregister an external file.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:177
$body
elgg_load_external_file(string $type, string $name)
Load an external resource for use on this page.
$header
$vars
Definition: theme.php:5
$messages
$head