Elgg  Version 2.3
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 elgg_set_http_header('Content-type: text/html; charset=utf-8');
16 
17 // turn off browser caching
18 elgg_set_http_header('Pragma: public', TRUE);
19 elgg_set_http_header("Cache-Control: no-cache, must-revalidate", TRUE);
20 elgg_set_http_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/stable/intro/install.html" target="_blank">Install instructions</a></li>
57  <li><a href="http://learn.elgg.org/en/stable/intro/install.html#troubleshooting" target="_blank">Install troubleshooting</a></li>
58  <li><a href="https://elgg.org/discussion/all" target="_blank">Elgg community forums</a></li>
59  </ul>
60  </footer>
61  </div>
62  </body>
63 </html>
$elggSubdir
Definition: default.php:23
elgg_set_http_header($header, $replace=true)
Set a response HTTP header.
Definition: elgglib.php:114
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
clearfix elgg elgg elgg elgg page elgg page elgg elgg elgg elgg col alt
Definition: admin.css.php:127
a
Definition: admin.css.php:97
clearfix elgg elgg elgg elgg page elgg page elgg head
Definition: admin.css.php:127
html
Definition: admin.css.php:36
elgg main
Definition: admin.css.php:284
ul
Definition: admin.css.php:44
list style type
Definition: admin.css.php:808
ui datepicker title
Definition: admin.css.php:662
elgg menu user li
Definition: admin.css.php:211
Save menu items.
$isElggAtRoot
Definition: default.php:22
img
Definition: admin.css.php:40
fieldset div
Definition: admin.css.php:485
elgg echo
Translates a string.
Definition: languages.js:48
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
clearfix elgg elgg elgg elgg page header
Definition: admin.css.php:127
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition: default.php:24
h1
Definition: admin.css.php:85
$site name
$title
Definition: default.php:33
static elggDir()
Returns a directory that points to the root of Elgg, but not necessarily the install root...
elgg widget content
Definition: admin.css.php:1305
body
Definition: admin.css.php:36
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:5
clearfix elgg elgg elgg elgg page elgg page footer
Definition: admin.css.php:127