1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/themes/3nids/views/photo.html.php

60 lines
2.2 KiB
PHP
Raw Normal View History

2009-09-23 06:43:11 +00:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if (access::can("view_full", $theme->item())): ?>
<!-- Use javascript to show the full size as an overlay on the current page -->
<script type="text/javascript">
2009-09-23 06:43:11 +00:00
$(document).ready(function() {
2009-10-19 07:21:48 +00:00
$(".g-fullsize-link").click(function() {
2009-09-23 06:43:11 +00:00
$.gallery_show_full_size(<?= html::js_string($theme->item()->file_url()) ?>, "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>");
return false;
});
});
</script>
<? endif ?>
2009-10-19 07:21:48 +00:00
<div id="g-item">
2009-09-23 06:43:11 +00:00
<?= $theme->photo_top() ?>
2009-10-19 09:15:02 +00:00
<ul class="g-pager ui-helper-clearfix">
2009-09-23 06:43:11 +00:00
<li>
<? if ($previous_item): ?>
2009-10-19 07:21:48 +00:00
<a href="<?= $previous_item->url() ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a>
<? else: ?>
2009-10-19 07:21:48 +00:00
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-triangle-1-w"></span><?= t("previous") ?></a>
<? endif; ?>
</li>
2009-10-19 07:21:48 +00:00
<li class="g-info"><?= t("%position of %total", array("position" => $position, "total" => $sibling_count)) ?></li>
2009-11-10 07:32:15 +00:00
<li class="g-text-right">
2009-09-23 06:43:11 +00:00
<? if ($next_item): ?>
2009-10-19 07:21:48 +00:00
<a href="<?= $next_item->url() ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
<? else: ?>
2009-10-19 07:21:48 +00:00
<a class="g-button ui-icon-right ui-state-disabled ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
<? endif ?>
</li>
</ul>
2009-10-19 07:21:48 +00:00
<div id="g-photo">
2009-09-23 06:43:11 +00:00
<?= $theme->resize_top($item) ?>
<? if (access::can("view_full", $item)): ?>
2009-10-19 07:21:48 +00:00
<a href="<?= $item->file_url() ?>" class="g-fullsize-link" title="<?= t("View full size")->for_html_attr() ?>">
2009-09-23 06:43:11 +00:00
<? endif ?>
2009-10-19 07:21:48 +00:00
<?= $item->resize_img(array("id" => "g-photo-id-{$item->id}", "class" => "g-resize")) ?>
2009-09-23 06:43:11 +00:00
<? if (access::can("view_full", $item)): ?>
</a>
<? endif ?>
<?= $theme->resize_bottom($item) ?>
2009-10-19 07:21:48 +00:00
<?= $theme->context_menu($item, "#g-photo-id-{$item->id}") ?>
2009-09-23 06:43:11 +00:00
</div>
2009-10-19 07:21:48 +00:00
<div id="g-info">
2009-09-23 06:43:11 +00:00
<h1><?= html::purify($item->title) ?></h1>
<div><?= nl2br(html::purify($item->description)) ?></div>
</div>
2009-10-19 07:21:48 +00:00
<?= $theme->photo_bottom() ?>
2009-09-23 06:43:11 +00:00
</div>