Files
gallery3/modules/user/views/login.html.php
T
Andy Staudacher c01ac42c46 Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-29 12:48:40 -07:00

23 lines
810 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' => SafeString::of_safe_html(
'<a href="' . url::site("form/edit/users/{$user->id}") .
'" title="' . t("Edit Your Profile")->for_html_attr() .
'" id="gUserProfileLink" class="gDialogLink">' .
SafeString::of($user->display_name()) . '</a>'))) ?>
</li>
<li>
<a href="<?= url::site("logout?csrf=$csrf&amp;continue=" . urlencode(url::current(true))) ?>"
id="gLogoutLink"><?= t("Logout") ?></a>
</li>
<? endif ?>
</ul>