mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-10 17:11:41 -04:00
next/prev sib if one didn't exist. (that's what we were supposed to be doing in the first place, anyway)
27 lines
704 B
PHP
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 ?>
|
|
|
|
|