mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 09:43:54 -04:00
uses the full name if there is one, or falls back to the name if that's all we have.
23 lines
743 B
PHP
23 lines
743 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' =>
|
|
'<a href="' . url::site("form/edit/users/{$user->id}") .
|
|
'" title="' . t("Edit Your Profile") .
|
|
'" id="gUserProfileLink" class="gDialogLink">' .
|
|
p::clean($user->display_name()) . '</a>')) ?>
|
|
</li>
|
|
<li>
|
|
<a href="<?= url::site("logout?csrf=$csrf&continue=" . url::current(true)) ?>"
|
|
id="gLogoutLink"><?= t("Logout") ?></a>
|
|
</li>
|
|
<? endif ?>
|
|
</ul>
|