aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/smarty3/photo_view.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-23 16:18:16 -0700
committerfriendica <info@friendica.com>2013-03-23 16:18:16 -0700
commit85d1300889de4ecbef022629228390ab90cdfc2a (patch)
treeaaafad8d8b94a72403d77b58246075416a0c1053 /view/tpl/smarty3/photo_view.tpl
parentab4058eb1ab977b5d4d572d609f86bc888c92c63 (diff)
parent0c5d7cbfaea2a39777f39e17303d4306caba3fa6 (diff)
downloadvolse-hubzilla-85d1300889de4ecbef022629228390ab90cdfc2a.tar.gz
volse-hubzilla-85d1300889de4ecbef022629228390ab90cdfc2a.tar.bz2
volse-hubzilla-85d1300889de4ecbef022629228390ab90cdfc2a.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'view/tpl/smarty3/photo_view.tpl')
-rw-r--r--view/tpl/smarty3/photo_view.tpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/view/tpl/smarty3/photo_view.tpl b/view/tpl/smarty3/photo_view.tpl
index 94f71bdd8..fe090409a 100644
--- a/view/tpl/smarty3/photo_view.tpl
+++ b/view/tpl/smarty3/photo_view.tpl
@@ -3,6 +3,12 @@
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
+<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>
@@ -16,7 +22,7 @@
</div>
{{if $prevlink}}<div id="photo-prev-link"><a href="{{$prevlink.0}}">{{$prevlink.1}}</a></div>{{/if}}
-<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>{{/if}}
<div id="photo-photo-end"></div>
<div id="photo-caption">{{$desc}}</div>