Files
gallery3/themes/default/views/header.html.php
Bharat Mediratta 3d9e5e439e Stay on the right page when we navigate up in the breadcrumb.
Introduce a "show" parameter which contains the id of the item that we
want to show when we go to the parent's page.
2009-01-03 20:14:06 +00:00

20 lines
575 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= $theme->site_status() ?>
<?= $theme->header_top() ?>
<img id="gLogo" alt="<?= _("Logo") ?>" src="<?= $theme->url("images/logo.png") ?>" />
<div id="gSiteMenu">
<?= $theme->site_menu() ?>
</div>
<?= $theme->header_bottom() ?>
<? if ($page_type != "tag"): ?>
<ul id="gBreadcrumbs">
<? foreach ($parents as $parent): ?>
<li><a href="<?= url::site("albums/{$parent->id}?show=$item->id") ?>"><?= $parent->title ?></a></li>
<? endforeach ?>
<li class="active"><?= $item->title ?></li>
</ul>
<? endif ?>