-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
27 lines (27 loc) · 1.07 KB
/
footer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<footer class="footer">
<div class="footer-left">
© <?= $date->year; ?> <a href="<?= eat($url); ?>">
<?= $site->title; ?>
<!-- You have to maintain this back link to support me, or make a proper donation to remove it. -->
</a> · <?= i('Powered by %s', ['<a href="https://mecha-cms.com" target="_blank">Mecha ' . VERSION . '</a>']); ?>
</div>
<div class="footer-right">
<?php if ($route = trim($state->x->user->route ?? "", '/')): ?>
<?php if (!empty($state->x->user->guard->route)): ?>
<span class="a" title="<?= eat(i('Log-in link has been disabled by the author.')); ?>">
<?= i('Log In'); ?>
</span>
<?php else: ?>
<?php if ($site->has('user')): ?>
<a href="<?= eat($url . '/' . $route . '/' . $user->name . '?exit=' . $user->token); ?>">
<?= i('Log Out'); ?>
</a>
<?php else: ?>
<a href="<?= eat($url . '/' . $route); ?>">
<?= i('Log In'); ?>
</a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
</footer>