Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
default.php
Go to the documentation of this file.
1 <?php
10 
11 $title = elgg_echo('install:title');
12 $title .= " : {$vars['title']}";
13 
14 // we won't trust server configuration but specify utf-8
15 header('Content-type: text/html; charset=utf-8');
16 
17 // turn off browser caching
18 header('Pragma: public', TRUE);
19 header("Cache-Control: no-cache, must-revalidate", TRUE);
20 header('Expires: Fri, 05 Feb 1982 00:00:00 -0500', TRUE);
21 
22 $isElggAtRoot = Elgg\Application::elggDir()->getPath() === Directory\Local::root()->getPath();
23 $elggSubdir = $isElggAtRoot ? '' : 'vendor/elgg/elgg/';
24 
25 ?>
26 <!DOCTYPE html>
27 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
28  <head>
29  <title><?php echo $title; ?></title>
30  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
31  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
32  <link rel="icon" href="<?php echo elgg_get_site_url() . $elggSubdir; ?>_graphics/favicon.ico" />
33  <link rel="stylesheet" href="<?php echo elgg_get_site_url() . $elggSubdir; ?>install/css/install.css" type="text/css" />
34  <script src="<?php echo elgg_get_site_url(); ?>vendor/bower-asset/jquery/dist/jquery.min.js"></script>
35  <script src="<?php echo elgg_get_site_url() . $elggSubdir; ?>install/js/install.js"></script>
36  </head>
37  <body>
38  <div class="elgg-page">
39  <header class="elgg-page-header" role="banner">
40  <img src="<?= elgg_get_site_url() . $elggSubdir; ?>_graphics/elgg_logo.png" alt="Elgg" />
41  </header>
42  <div class="elgg-page-body">
43  <div class="elgg-layout">
44  <aside class="elgg-sidebar" role="complementary">
45  <?php echo elgg_view('page/elements/sidebar', $vars); ?>
46  </aside>
47  <main class="elgg-body" role="main">
48  <h1><?php echo $vars['title']; ?></h1>
49  <?php echo elgg_view('page/elements/messages', array('object' => $vars['sysmessages'])); ?>
50  <?php echo $vars['body']; ?>
51  </main>
52  </div>
53  </div>
54  <footer class="elgg-page-footer" role="contentinfo">
55  <ul>
56  <li><a href="http://learn.elgg.org/en/2.x/intro/install.html" target="_blank">Install instructions</a></li>
57  <li><a href="http://learn.elgg.org/en/2.x/intro/install.html#troubleshooting" target="_blank">Install troubleshooting</a></li>
58  <li><a href="http://community.elgg.org/discussion/all" target="_blank">Elgg community forums</a></li>
59  </ul>
60  </footer>
61  </div>
62  </body>
63 </html>
A simple directory abstraction.
Definition: Directory.php:13
$elggSubdir
Definition: default.php:23
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
body
Definition: admin.css.php:36
$site name
html
Definition: admin.css.php:36
ui autocomplete a
Definition: forms.css.php:258
ul
Definition: admin.css.php:44
elgg widget content
$isElggAtRoot
Definition: default.php:22
elgg river comments li
elgg module widget elgg head
img
Definition: admin.css.php:40
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:24
$title
Definition: default.php:33
static elggDir()
Returns a directory that points to the root of Elgg, but not necessarily the install root...