2009-01-01 00:23:29 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-06-16 17:17:39 -07:00
|
|
|
|
|
|
|
|
<? if (access::can("view_full", $theme->item())): ?>
|
2009-06-16 18:05:23 -07:00
|
|
|
<!-- Use javascript to show the full size as an overlay on the current page -->
|
2009-06-16 17:57:24 -07:00
|
|
|
<script>
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
$(".gFullSizeLink").click(function() {
|
|
|
|
|
show_full_size("<?= $theme->item()->file_url() ?>", "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>");
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2009-06-16 17:17:39 -07:00
|
|
|
<? endif ?>
|
|
|
|
|
|
2009-01-01 22:56:57 +00:00
|
|
|
<div id="gItem">
|
2008-12-13 23:02:16 +00:00
|
|
|
<?= $theme->photo_top() ?>
|
2009-01-08 17:13:06 +00:00
|
|
|
|
2009-05-30 23:04:55 -06:00
|
|
|
<ul class="gPager">
|
2009-02-22 02:09:48 +00:00
|
|
|
<li>
|
|
|
|
|
<? if ($previous_item): ?>
|
|
|
|
|
<a href="<?= $previous_item->url() ?>" class="gButtonLink ui-icon-left ui-state-default ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a>
|
2009-02-22 08:20:08 +00:00
|
|
|
<? else: ?>
|
|
|
|
|
<a class="gButtonLink ui-icon-left ui-state-disabled ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a>
|
2009-02-22 02:09:48 +00:00
|
|
|
<? endif; ?>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="gInfo"><?= t("%position of %total", array("position" => $position, "total" => $sibling_count)) ?></li>
|
2009-02-23 04:37:16 +00:00
|
|
|
<li class="txtright">
|
2009-02-22 02:09:48 +00:00
|
|
|
<? if ($next_item): ?>
|
|
|
|
|
<a href="<?= $next_item->url() ?>" class="gButtonLink ui-icon-right ui-state-default ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
|
2009-02-22 08:20:08 +00:00
|
|
|
<? else: ?>
|
|
|
|
|
<a class="gButtonLink ui-icon-right ui-state-disabled ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
|
2009-02-22 02:09:48 +00:00
|
|
|
<? endif ?>
|
|
|
|
|
</li>
|
2009-01-01 22:56:57 +00:00
|
|
|
</ul>
|
2008-11-21 20:13:28 +00:00
|
|
|
|
2009-03-31 05:14:40 +00:00
|
|
|
<div id="gPhoto">
|
|
|
|
|
<?= $theme->resize_top($item) ?>
|
2009-05-10 20:02:40 +00:00
|
|
|
<? if (access::can("view_full", $item)): ?>
|
2009-06-16 17:57:24 -07:00
|
|
|
<a href="<?= $item->file_url() ?>" class="gFullSizeLink" title="<?= t("View full size") ?>">
|
2009-05-10 20:02:40 +00:00
|
|
|
<? endif ?>
|
2009-06-02 12:08:47 -07:00
|
|
|
<?= $item->resize_img(array("id" => "gPhotoId-{$item->id}", "class" => "gResize")) ?>
|
2009-05-10 20:02:40 +00:00
|
|
|
<? if (access::can("view_full", $item)): ?>
|
|
|
|
|
</a>
|
|
|
|
|
<? endif ?>
|
2009-03-31 05:14:40 +00:00
|
|
|
<?= $theme->resize_bottom($item) ?>
|
|
|
|
|
</div>
|
2009-01-01 22:56:57 +00:00
|
|
|
|
|
|
|
|
<div id="gInfo">
|
2009-07-03 21:44:10 -07:00
|
|
|
<h1><?= p::purify($item->title) ?></h1>
|
2009-07-04 08:17:12 -07:00
|
|
|
<div><?= nl2br(p::purify($item->description)) ?></div>
|
2009-01-01 22:56:57 +00:00
|
|
|
</div>
|
2008-11-11 20:54:12 +00:00
|
|
|
|
2009-06-05 00:48:18 -07:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
var ADD_A_COMMENT = "<?= t("Add a comment") ?>";
|
|
|
|
|
</script>
|
2008-11-22 21:46:34 +00:00
|
|
|
<?= $theme->photo_bottom() ?>
|
2008-11-06 07:20:06 +00:00
|
|
|
</div>
|