Elgg  Version 3.0
walled_garden.php
Go to the documentation of this file.
1 <?php
12 elgg_unregister_css('elgg');
13 elgg_load_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)]);
18 
19 $header = elgg_view('page/elements/walled_garden/header', $vars);
20 $footer = elgg_view('page/elements/walled_garden/footer', $vars);
21 
22 $body = <<<__BODY
23 <div class="elgg-page elgg-page-walled-garden">
24  <div class="elgg-page-walled-garden-background"></div>
25  <div class="elgg-page-messages">
26  $messages
27  </div>
28  <div class="elgg-inner">
29  <div class="elgg-page-header">
30  <div class="elgg-inner">
31  $header
32  </div>
33  </div>
34  <div class="elgg-page-body">
35  <div class="elgg-inner">
36  $content
37  </div>
38  </div>
39  <div class="elgg-page-footer">
40  <div class="elgg-inner">
41  $footer
42  </div>
43  </div>
44  </div>
45 </div>
46 __BODY;
47 
48 $body .= elgg_view('page/elements/foot');
49 
50 $head = elgg_view('page/elements/head', elgg_extract('head', $vars, []));
51 
53  'head' => $head,
54  'body' => $body,
55 ];
56 
57 echo elgg_view('page/elements/html', $params);
$content
$footer
elgg_unregister_css($name)
Unregister a CSS file.
Definition: elgglib.php:219
elgg_load_css($name)
Load a CSS file for this page.
Definition: elgglib.php:234
$params
elgg echo
Translates a string.
Definition: languages.js:43
$body
$header
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:1131
$vars['type']
Definition: save.php:11
$messages
$head
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246