mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 09:43:54 -04:00
We now have two clear and separate login approaches: login/ajax login/html Choose the one that's appropriate. Totally simplified the maintenance page to be separate from the theme and dead simple, and use login/html approach there. Totally simplified the top level login (login_page.html.php) to just be a login page, not the rest of the chrome on the page and use the login/ajax approach there. Don't use access::required in albums and then catch the exception, instead use access::can and check the return code. Improve the text for maintenance mode.
16 lines
710 B
PHP
16 lines
710 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<ul id="gLoginMenu">
|
|
<? if ($user->guest): ?>
|
|
<li class="first"><a href="<?= url::site("login/ajax") ?>"
|
|
title="<?= t("Login to Gallery") ?>"
|
|
id="gLoginLink"><?= t("Login") ?></a></li>
|
|
<? else: ?>
|
|
<li class="first"><?= t("Logged in as %name", array("name" => $user->full_name)) ?></li>
|
|
<li><a href="<?= url::site("form/edit/users/{$user->id}") ?>"
|
|
title="<?= t("Edit Your Profile") ?>"
|
|
id="gUserProfileLink" class="gDialogLink"><?= t("Modify Profile") ?></a></li>
|
|
<li><a href="<?= url::site("logout?continue=" . url::current(true)) ?>"
|
|
id="gLogoutLink"><?= t("Logout") ?></a></li>
|
|
<? endif; ?>
|
|
</ul>
|