Elgg  Version 6.1
body.php
Go to the documentation of this file.
1 <?php
10 
12 $elggSubdir = $isElggAtRoot ? '' : 'vendor/elgg/elgg/';
13 
15  'text' => elgg_echo('install:footer:instructions'),
16  'href' => 'http://learn.elgg.org/en/stable/intro/install.html',
17  'target' => '_blank',
18 ]));
19 $footer_menu_items .= elgg_format_element('li', [], elgg_view('output/url', [
20  'text' => elgg_echo('install:footer:troubleshooting'),
21  'href' => 'http://learn.elgg.org/en/stable/intro/install.html#troubleshooting',
22  'target' => '_blank',
23 ]));
24 $footer_menu_items .= elgg_format_element('li', [], elgg_view('output/url', [
25  'text' => elgg_echo('install:footer:community'),
26  'href' => 'https://elgg.org/discussion/all',
27  'target' => '_blank',
28 ]));
29 
30 $footer_menu = elgg_format_element('ul', ['class' => 'elgg-menu elgg-menu-footer'], $footer_menu_items);
31 
32 ?>
33 <div class="elgg-page">
34  <div class="elgg-page-body">
35  <div class="elgg-layout">
36  <aside class="elgg-sidebar-alt">
37  <header class="elgg-page-header">
38  <?php
39  echo elgg_format_element('img', [
40  'src' => elgg_get_site_url() . $elggSubdir . 'views/default/graphics/elgg_logo.png',
41  'alt' => 'Elgg',
42  ]);
43  ?>
44  </header>
45  <?php echo elgg_view('page/elements/sidebar', $vars); ?>
46  </aside>
47  <main class="elgg-body">
48  <?php
49  echo elgg_format_element('h1', [], (string) elgg_extract('title', $vars));
50  echo elgg_view('page/elements/messages', ['object' => elgg_extract('sysmessages', $vars)]);
51  echo elgg_extract('body', $vars);
52  ?>
53  </main>
54  </div>
55  </div>
56  <footer class="elgg-page-footer">
57  <?php echo $footer_menu; ?>
58  </footer>
59 </div>
60 <?php
61 
62 echo elgg_format_element('style', [], elgg_view('install.css'));
63 echo elgg_format_element('script', [], elgg_view('install.js'));
elgg
Definition: install.js:27
$isElggAtRoot
Definition: body.php:11
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$elggSubdir
Definition: body.php:12
$footer_menu_items
Definition: body.php:14
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:256
string project
Definition: conf.py:49
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$footer_menu
Definition: body.php:30
elgg_get_site_url()
Get the URL for the current (or specified) site, ending with "/".
$vars
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145