Files
gallery3/modules/user/views/login.html.php
T

23 lines
810 B
PHP
Raw Normal View History

2009-01-01 00:23:29 +00:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul id="gLoginMenu">
<? if ($user->guest): ?>
2009-06-06 12:50:38 -07:00
<li class="first">
<a href="<?= url::site("login/ajax") ?>"
title="<?= t("Login to Gallery") ?>"
id="gLoginLink"><?= t("Login") ?></a>
</li>
<? else: ?>
2009-06-06 12:50:38 -07:00
<li class="first">
<?= t('Logged in as %name', array('name' => SafeString::of_safe_html(
'<a href="' . url::site("form/edit/users/{$user->id}") .
'" title="' . t("Edit Your Profile")->for_html_attr() .
2009-06-06 12:50:38 -07:00
'" id="gUserProfileLink" class="gDialogLink">' .
SafeString::of($user->display_name()) . '</a>'))) ?>
2009-06-06 12:50:38 -07:00
</li>
<li>
<a href="<?= url::site("logout?csrf=$csrf&amp;continue=" . urlencode(url::current(true))) ?>"
2009-06-06 12:50:38 -07:00
id="gLogoutLink"><?= t("Logout") ?></a>
</li>
<? endif ?>
</ul>