Elgg  Version 3.0
default.php
Go to the documentation of this file.
1 <?php
11 
12 $title = elgg_echo('install:title');
13 $title .= " : " . elgg_extract('title', $vars);
14 
15 $isElggAtRoot = Elgg\Application::elggDir()->getPath() === ElggDirectory\Local::projectRoot()->getPath();
16 $elggSubdir = $isElggAtRoot ? '' : 'vendor/elgg/elgg/';
17 
18 ?>
19 <!DOCTYPE html>
20 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
21  <head>
22  <title><?php echo $title; ?></title>
23  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
25  <link rel="icon" href="<?php echo elgg_get_site_url() . $elggSubdir; ?>views/default/graphics/favicon.ico" />
26  <script src="<?php echo elgg_get_site_url(); ?>vendor/bower-asset/jquery/dist/jquery.min.js"></script>
27  </head>
28  <body>
29  <div class="elgg-page">
30  <div class="elgg-page-body">
31  <div class="elgg-layout">
32  <div class="elgg-layout-columns">
33  <aside class="elgg-sidebar-alt" role="complementary">
34  <header class="elgg-page-header" role="banner">
35  <img src="<?= elgg_get_site_url() . $elggSubdir; ?>views/default/graphics/elgg_logo.png" alt="Elgg" />
36  </header>
37  <?php echo elgg_view('page/elements/sidebar', $vars); ?>
38  </aside>
39  <main class="elgg-body" role="main">
40  <h1><?php echo elgg_extract('title', $vars); ?></h1>
41  <?php echo elgg_view('page/elements/messages', ['object' => elgg_extract('sysmessages', $vars)]); ?>
42  <?php echo elgg_extract('body', $vars); ?>
43  </main>
44  </div>
45  </div>
46  </div>
47  <footer class="elgg-page-footer" role="contentinfo">
48  <ul class="elgg-menu elgg-menu-footer">
49  <li><a href="http://learn.elgg.org/en/stable/intro/install.html" target="_blank">Install instructions</a></li>
50  <li><a href="http://learn.elgg.org/en/stable/intro/install.html#troubleshooting" target="_blank">Install troubleshooting</a></li>
51  <li><a href="https://elgg.org/discussion/all" target="_blank">Elgg community forums</a></li>
52  </ul>
53  </footer>
54  </div>
55  <style>
56  <?= elgg_view('install.css') ?>
57  </style>
58  <script>
59  <?= elgg_view('install.js') ?>
60  </script>
61  </body>
62 </html>
$elggSubdir
Definition: default.php:16
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
Configuration exception.
$isElggAtRoot
Definition: default.php:15
elgg echo
Translates a string.
Definition: languages.js:43
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:27
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
$site name
$title
Definition: default.php:31
static elggDir()
Returns a directory that points to the root of Elgg, but not necessarily the install root...
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246