diff options
author | friendica <info@friendica.com> | 2013-03-23 16:17:55 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-03-23 16:17:55 -0700 |
commit | 0c5d7cbfaea2a39777f39e17303d4306caba3fa6 (patch) | |
tree | 07cec020f82c39ff7bad35d4330e549cefd132e7 /view/tpl | |
parent | d9b51c6db54b21a7d0ded256acc4cf45a22b6f5f (diff) | |
parent | 43af9b14295006ac7004406000690bd39b4de35e (diff) | |
download | volse-hubzilla-0c5d7cbfaea2a39777f39e17303d4306caba3fa6.tar.gz volse-hubzilla-0c5d7cbfaea2a39777f39e17303d4306caba3fa6.tar.bz2 volse-hubzilla-0c5d7cbfaea2a39777f39e17303d4306caba3fa6.zip |
Merge pull request #42 from beardy-unixer/master
Use prettyPhoto for photo albums
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/photo_view.tpl | 8 | ||||
-rw-r--r-- | view/tpl/smarty3/photo_view.tpl | 8 |
2 files changed, 14 insertions, 2 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> 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> |