Files
gallery3/themes/default/views/photo.html.php
T
Bharat Mediratta fc56ebd434 Simplify the next/previous logic in the theme by passing in a null
next/prev sib if one didn't exist.  (that's what we were supposed to
be doing in the first place, anyway)
2008-12-31 07:22:35 +00:00

27 lines
704 B
PHP

<? defined("SYSPATH") or die("No direct script access."); ?>
<div id="gItemHeader">
<?= $theme->photo_top() ?>
<h1><?= $item->title ?></h1>
</div>
<div id="gItem">
<img id="gPhotoId-<?= $item->id ?>" alt="<?= $item->title ?>" src="<?= $item->resize_url() ?>"
width="<?= $item->resize_width ?>"
height="<?= $item->resize_height ?>" />
<div><?= $item->description ?></div>
<?= $theme->photo_bottom() ?>
</div>
<? if ($previous_item): ?>
<a href="<?= $previous_item->url() ?>"><?= _("previous") ?></a>
<? endif ?>
<?= sprintf(_("Viewing photo %d of %d"), $position, $sibling_count) ?>
<? if ($next_item): ?>
<a href="<?= $next_item->url() ?>"><?= _("next") ?></a>
<? endif ?>