Files
gallery3/themes/default/views/header.html.php
Bharat Mediratta ae7839ffaa Revise the user login code.
* Remove user registration link and popup from the theme; this
  shouldn't be done in a popup. Use ajaxform to simplify the way
  that we load the login popup.

* Create form.html.php, this is a template for Forge based forms.

* Move user validation rules into User_Model and let forms
  populate the rules into their forms as useful.

* Undo r18688's changes regarding the REST code.  We should never
  accept a null resource, this breaks the REST abstraction.

* Change login and user controllers to use Forge which lets us delete
  login.html.php and user.html.php since those now are generated by
  the theme-owned form template
2008-11-15 06:23:09 +00:00

45 lines
1.5 KiB
PHP

<? defined("SYSPATH") or die("No direct script access."); ?>
<img id="gLogo" alt="<?= _("Logo") ?>" src="<?= $theme->url("images/logo.png") ?>" />
<h1><?= $item->title_edit ?></h1>
<ul id="gLoginMenu">
<? if ($user): ?>
<a href="<?= url::site("user/update")?>"><?= _("Modify Profile") ?></a>
| <a href="<?= url::site("logout?continue=" . url::current(true)) ?>" id="gLogoutLink">
<?= _("Logout") ?>
</a>
<? else: ?>
<span id="gLoginLink">
<a href="javascript:show_login('<?= url::site("login") ?>')">
<?= _("Login") ?>
</a>
</span>
<span id="gLoginClose" class="gDisplayNone">
<?= _("Login") ?> | <a href="javascript:close_login()">X</a>
</span>
<div id="gLoginFormContainer"></div>
<? endif; ?>
</ul>
<ul id="gSiteMenu">
<li><a href="<?= url::base() ?>"><?= _("HOME") ?></a></li>
<li><a class="active" href="<?= url::site("album/1") ?>"><?= _("BROWSE") ?></a></li>
<li><a href="#"><?= _("UPLOAD") ?></a></li>
<li><a href="#"><?= _("MY GALLERY") ?></a></li>
<li><a href="#"><?= _("ADMIN") ?></a></li>
</ul>
<form id="gSearchForm" class="gInline">
<ul class="gNoLabels">
<li><input type="text" value="<?= _("Search Gallery ...") ?>"/></li>
<li><input type="submit" value="<?= _("search") ?>" /></li>
</ul>
</form>
<ul id="gBreadcrumbs">
<? foreach ($parents as $parent): ?>
<li><a href="<?= url::site("album/{$parent->id}") ?>"><?= $parent->title_edit ?></a></li>
<? endforeach ?>
<li class="active"><?= $item->title_edit ?></li>
</ul>