summaryrefslogtreecommitdiff
path: root/modules/user/views/login.html.php
blob: d9a558b5561b7c0fe7f7feb2889649591cdc3efe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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">' .
                (empty($user->full_name) ? $user->name : $user->full_name) . '</a>')) ?></li>
  <li><a href="<?= url::site("logout?continue=" . url::current(true)) ?>"
      id="gLogoutLink"><?= t("Logout") ?></a></li>
  <? endif; ?>
</ul>