Add footer with current version
- Move stats links from header to footer
This commit is contained in:
parent
c0a56882bc
commit
9f80a14565
|
@ -27,6 +27,7 @@ abstract class BaseRoute
|
||||||
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
public function __invoke(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args): \Slim\Http\Response
|
||||||
{
|
{
|
||||||
$defaults = [
|
$defaults = [
|
||||||
|
'version' => file_get_contents(__DIR__ . '/../../../../VERSION'),
|
||||||
'languages' => $this->container->settings['i18n']['locales'],
|
'languages' => $this->container->settings['i18n']['locales'],
|
||||||
'lang' => $request->getAttribute('locale'),
|
'lang' => $request->getAttribute('locale'),
|
||||||
'baseUrl' => $request->getUri()->getBaseUrl(),
|
'baseUrl' => $request->getUri()->getBaseUrl(),
|
||||||
|
|
|
@ -58,8 +58,6 @@
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="servers"><i class="fa fa-hotel"></i> <?php echo $this->__('Public servers')?></a>
|
<a class="nav-link" href="servers"><i class="fa fa-hotel"></i> <?php echo $this->__('Public servers')?></a>
|
||||||
</li><li class="nav-item">
|
|
||||||
<a class="nav-link" href="stats"><i class="fa fa-clipboard-list"></i> <?php echo $this->__('Stats')?></a>
|
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
|
@ -85,6 +83,22 @@
|
||||||
<div class="container pt-3">
|
<div class="container pt-3">
|
||||||
<?php echo $content ?>
|
<?php echo $content ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
|
<div class="container">
|
||||||
|
<ul class="navbar-nav">
|
||||||
|
<li class="nav-item">
|
||||||
|
<span class="nav-link disabled"><?php echo $this->__('Friendica Directory version %s', $version)?></span>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="https://github.com/friendica/friendica-directory"><?php echo $this->__('Source Code on GitHub')?> <i class="fa fa-external-link-alt"></i></a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="stats"><i class="fa fa-clipboard-list"></i> <?php echo $this->__('Stats')?></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
<script type="text/javascript" src="assets/vendor/bootstrap.native/dist/bootstrap-native-v4.min.js"></script>
|
<script type="text/javascript" src="assets/vendor/bootstrap.native/dist/bootstrap-native-v4.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue