summaryrefslogtreecommitdiff
path: root/modules/user/views/login.html.php
blob: bb670d51a4e05fa1459e69a5602a5dae0a92af37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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")->for_html_attr() ?>"
       id="gLoginLink"><?= t("Login") ?></a>
  </li>
  <? else: ?>
  <li class="first">
    <?= t('Logged in as %name', array('name' => html::mark_clean(
      '<a href="' . url::site("form/edit/users/{$user->id}") .
      '" title="' . t("Edit Your Profile")->for_html_attr() .
      '" id="gUserProfileLink" class="gDialogLink">' .
      html::clean($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>