summaryrefslogtreecommitdiff
path: root/themes/default/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-17 08:17:39 +0800
committer <unostar@danalan.info>2009-06-17 13:51:20 +0800
commit8af66822e203c8546a293f9c31a3836fb89c97df (patch)
tree69ea5e637fc4c30558063f00e317e3779c75b2cc /themes/default/views
parentb48c4300d40224228fb145ade15d431feab660a6 (diff)
Move all the fullsize code into the theme to make it less confusing.
Partial fix for ticket #427. Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'themes/default/views')
-rw-r--r--themes/default/views/photo.html.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index cc4cc750..0fbaa3e0 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -1,4 +1,17 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
+
+<? if (access::can("view_full", $theme->item())): ?>
+<script type="text/javascript">
+ var fullsize_detail = {
+ close: "<?= url::file("modules/gallery/images/ico-close.png") ?>",
+ url: "<?= $theme->item()->file_url() ?>",
+ width: "<?= $theme->item()->width ?>",
+ height: "<?= $theme->item()->height ?>"
+ };
+</script>
+<script src="<?= url::file("themes/default/js/fullsize.js") ?>" type="text/javascript"></script>
+<? endif ?>
+
<div id="gItem">
<?= $theme->photo_top() ?>