aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/photo_view.tpl
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-03-23 21:17:44 +0000
committerThomas Willingham <founder@kakste.com>2013-03-23 21:17:44 +0000
commit4b6bc77977eb64eb9f41126fdccec65008f37854 (patch)
tree9cb082da9171fe9f1a614398b231e8edeb0a8b56 /view/tpl/photo_view.tpl
parent2dafe2952d59bac37a2eeb104c8c49132a327785 (diff)
downloadvolse-hubzilla-4b6bc77977eb64eb9f41126fdccec65008f37854.tar.gz
volse-hubzilla-4b6bc77977eb64eb9f41126fdccec65008f37854.tar.bz2
volse-hubzilla-4b6bc77977eb64eb9f41126fdccec65008f37854.zip
Implement prettyPhoto (somewhat).
Diffstat (limited to 'view/tpl/photo_view.tpl')
-rw-r--r--view/tpl/photo_view.tpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl
index 732caf690..f724b419b 100644
--- a/view/tpl/photo_view.tpl
+++ b/view/tpl/photo_view.tpl
@@ -1,3 +1,9 @@
+<script type="text/javascript" charset="utf-8">
+ $(document).ready(function(){
+ $("a[rel^='prettyPhoto']").prettyPhoto();
+ });
+</script>
+
<div id="live-display"></div>
<h3><a href="$album.0">$album.1</a></h3>
@@ -11,7 +17,7 @@
</div>
{{ if $prevlink }}<div id="photo-prev-link"><a href="$prevlink.0">$prevlink.1</a></div>{{ endif }}
-<div id="photo-photo"><a href="$photo.href" title="$photo.title"><img src="$photo.src" /></a></div>
+<div id="photo-photo"><a href="$photo.href" title="$photo.title" rel="prettyPhoto"><img src="$photo.src" /></a></div>
{{ if $nextlink }}<div id="photo-next-link"><a href="$nextlink.0">$nextlink.1</a></div>{{ endif }}
<div id="photo-photo-end"></div>
<div id="photo-caption">$desc</div>