Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12842 from jdalsem/various-stuff
redis and installer changes
- Loading branch information
Showing
12 changed files
with
144 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,11 @@ | ||
<?php | ||
/** | ||
* Elgg install pageshell | ||
* | ||
* @uses $vars['title'] The page title | ||
* @uses $vars['body'] The main content of the page | ||
* @uses $vars['sysmessages'] Array of system status messages | ||
*/ | ||
|
||
use Elgg\Filesystem\Directory as ElggDirectory; | ||
$params = [ | ||
'head' => elgg_view('page/elements/head', $vars), | ||
'body' => elgg_view('page/elements/body', $vars), | ||
]; | ||
|
||
$title = elgg_echo('install:title'); | ||
$title .= " : " . elgg_extract('title', $vars); | ||
|
||
$isElggAtRoot = Elgg\Application::elggDir()->getPath() === ElggDirectory\Local::projectRoot()->getPath(); | ||
$elggSubdir = $isElggAtRoot ? '' : 'vendor/elgg/elgg/'; | ||
|
||
?> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<title><?php echo $title; ?></title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | ||
<link rel="icon" href="<?php echo elgg_get_site_url() . $elggSubdir; ?>views/default/graphics/favicon.ico" /> | ||
<script src="<?php echo elgg_get_site_url(); ?>vendor/bower-asset/jquery/dist/jquery.min.js"></script> | ||
</head> | ||
<body> | ||
<div class="elgg-page"> | ||
<div class="elgg-page-body"> | ||
<div class="elgg-layout"> | ||
<div class="elgg-layout-columns"> | ||
<aside class="elgg-sidebar-alt" role="complementary"> | ||
<header class="elgg-page-header" role="banner"> | ||
<img src="<?= elgg_get_site_url() . $elggSubdir; ?>views/default/graphics/elgg_logo.png" alt="Elgg" /> | ||
</header> | ||
<?php echo elgg_view('page/elements/sidebar', $vars); ?> | ||
</aside> | ||
<main class="elgg-body" role="main"> | ||
<h1><?php echo elgg_extract('title', $vars); ?></h1> | ||
<?php echo elgg_view('page/elements/messages', ['object' => elgg_extract('sysmessages', $vars)]); ?> | ||
<?php echo elgg_extract('body', $vars); ?> | ||
</main> | ||
</div> | ||
</div> | ||
</div> | ||
<footer class="elgg-page-footer" role="contentinfo"> | ||
<ul class="elgg-menu elgg-menu-footer"> | ||
<li><a href="http://learn.elgg.org/en/stable/intro/install.html" target="_blank">Install instructions</a></li> | ||
<li><a href="http://learn.elgg.org/en/stable/intro/install.html#troubleshooting" target="_blank">Install troubleshooting</a></li> | ||
<li><a href="https://elgg.org/discussion/all" target="_blank">Elgg community forums</a></li> | ||
</ul> | ||
</footer> | ||
</div> | ||
<style> | ||
<?= elgg_view('install.css') ?> | ||
</style> | ||
<script> | ||
<?= elgg_view('install.js') ?> | ||
</script> | ||
</body> | ||
</html> | ||
echo elgg_view('page/elements/html', $params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php | ||
/** | ||
* Elgg install body | ||
* | ||
* @uses $vars['body'] The main content of the page | ||
* @uses $vars['sysmessages'] Array of system status messages | ||
*/ | ||
|
||
use Elgg\Filesystem\Directory as ElggDirectory; | ||
|
||
$isElggAtRoot = Elgg\Application::elggDir()->getPath() === ElggDirectory\Local::projectRoot()->getPath(); | ||
$elggSubdir = $isElggAtRoot ? '' : 'vendor/elgg/elgg/'; | ||
|
||
$footer_menu_items = elgg_format_element('li', [], elgg_view('output/url', [ | ||
'text' => elgg_echo('install:footer:instructions'), | ||
'href' => 'http://learn.elgg.org/en/stable/intro/install.html', | ||
'target' => '_blank', | ||
])); | ||
$footer_menu_items .= elgg_format_element('li', [], elgg_view('output/url', [ | ||
'text' => elgg_echo('install:footer:troubleshooting'), | ||
'href' => 'http://learn.elgg.org/en/stable/intro/install.html#troubleshooting', | ||
'target' => '_blank', | ||
])); | ||
$footer_menu_items .= elgg_format_element('li', [], elgg_view('output/url', [ | ||
'text' => elgg_echo('install:footer:community'), | ||
'href' => 'https://elgg.org/discussion/all', | ||
'target' => '_blank', | ||
])); | ||
|
||
$footer_menu = elgg_format_element('ul', ['class' => 'elgg-menu elgg-menu-footer'], $footer_menu_items); | ||
|
||
?> | ||
|
||
<div class="elgg-page"> | ||
<div class="elgg-page-body"> | ||
<div class="elgg-layout"> | ||
<div class="elgg-layout-columns"> | ||
<aside class="elgg-sidebar-alt" role="complementary"> | ||
<header class="elgg-page-header" role="banner"> | ||
<img src="<?= elgg_get_site_url() . $elggSubdir; ?>views/default/graphics/elgg_logo.png" alt="Elgg" /> | ||
</header> | ||
<?php echo elgg_view('page/elements/sidebar', $vars); ?> | ||
</aside> | ||
<main class="elgg-body" role="main"> | ||
<h1><?php echo elgg_extract('title', $vars); ?></h1> | ||
<?php echo elgg_view('page/elements/messages', ['object' => elgg_extract('sysmessages', $vars)]); ?> | ||
<?php echo elgg_extract('body', $vars); ?> | ||
</main> | ||
</div> | ||
</div> | ||
</div> | ||
<footer class="elgg-page-footer" role="contentinfo"> | ||
<?php echo $footer_menu; ?> | ||
</footer> | ||
</div> | ||
<style> | ||
<?= elgg_view('install.css') ?> | ||
</style> | ||
<script> | ||
<?= elgg_view('install.js') ?> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Elgg install head | ||
* | ||
* @uses $vars['title'] The page title | ||
*/ | ||
|
||
use Elgg\Filesystem\Directory as ElggDirectory; | ||
|
||
$isElggAtRoot = Elgg\Application::elggDir()->getPath() === ElggDirectory\Local::projectRoot()->getPath(); | ||
$elggSubdir = $isElggAtRoot ? '' : 'vendor/elgg/elgg/'; | ||
|
||
$title = elgg_echo('install:title'); | ||
$title .= " : " . elgg_extract('title', $vars); | ||
|
||
?> | ||
|
||
<title><?php echo $title; ?></title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> | ||
<link rel="icon" href="<?php echo elgg_get_site_url() . $elggSubdir; ?>views/default/graphics/favicon.ico" /> | ||
<script src="<?php echo elgg_get_site_url(); ?>vendor/bower-asset/jquery/dist/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters