Add footer with current version

- Move stats links from header to footer
stable
Hypolite Petovan 4 years ago
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
{
$defaults = [
'version' => file_get_contents(__DIR__ . '/../../../../VERSION'),
'languages' => $this->container->settings['i18n']['locales'],
'lang' => $request->getAttribute('locale'),
'baseUrl' => $request->getUri()->getBaseUrl(),

@ -58,8 +58,6 @@
</li>
<li class="nav-item">
<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 class="nav-item">
<div class="dropdown">
@ -85,6 +83,22 @@
<div class="container pt-3">
<?php echo $content ?>
</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>
</body>
</html>

Loading…
Cancel
Save