id/views/partials/header.php

22 lines
754 B
PHP
Raw Normal View History

2024-06-27 21:30:56 +00:00
<header>
<div>
<a href="/" id="sitetitle">
<span class="bc-1">Bye</span><span class="bc-2">Corps</span><span class="bc-3"> ID</span>
</a>
</div>
2024-07-01 21:15:51 +00:00
<div class="section">
<?php
if ($_SESSION['auth']) {
2024-07-03 13:20:39 +00:00
echo '<div class="item">' . get_string("header.hello", ['display_name' => get_user_display_name($_SESSION['id'])]) . '</div>';
2024-07-01 21:15:51 +00:00
echo '<div class="item"><a href="/auth/signout">'. get_string('auth.signout') .'</a></div>';
}
else {
echo '<a href="/auth/signup">' . get_string("auth.signup")
. '</a> <a href="/auth/login">'. get_string("auth.login") . '</a>';
}
?>
2024-06-27 21:30:56 +00:00
</div>
</header>