diff options
author | Thomas Willingham <founder@kakste.com> | 2013-03-29 20:36:39 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-03-29 20:36:39 +0000 |
commit | 8741bb20e8314bd324722d81c83802a5e4d02385 (patch) | |
tree | 0509752a99361e30c19c20bc054f3d7416884569 /view/tpl | |
parent | fbb4dc69c6789a04f8464afba4ea625feb880731 (diff) | |
download | volse-hubzilla-8741bb20e8314bd324722d81c83802a5e4d02385.tar.gz volse-hubzilla-8741bb20e8314bd324722d81c83802a5e4d02385.tar.bz2 volse-hubzilla-8741bb20e8314bd324722d81c83802a5e4d02385.zip |
Make prettyPhoto a feature, add slideshow for albums.
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/photo_album.tpl | 8 | ||||
-rw-r--r-- | view/tpl/smarty3/page_display.tpl | 2 | ||||
-rw-r--r-- | view/tpl/smarty3/photo_album.tpl | 8 |
3 files changed, 15 insertions, 3 deletions
diff --git a/view/tpl/photo_album.tpl b/view/tpl/photo_album.tpl index cc3dcfb9c..53392e709 100644 --- a/view/tpl/photo_album.tpl +++ b/view/tpl/photo_album.tpl @@ -1,5 +1,11 @@ +<script type="text/javascript" charset="utf-8"> + $(document).ready(function(){ + $("a[rel^='prettyPhoto']").prettyPhoto(); + }); +</script> + <div class="photo-album-image-wrapper" id="photo-album-image-wrapper-$id"> - <a href="$photolink" class="photo-album-photo-link" id="photo-album-photo-link-$id" title="$phototitle"> + <a href="$photolink" class="photo-album-photo-link" id="photo-album-photo-link-$id" title="$phototitle" rel="$rel"> <img src="$imgsrc" alt="$imgalt" title="$phototitle" class="photo-album-photo lframe resize$twist" id="photo-album-photo-$id" /> <p class='caption'>$desc</p> </a> diff --git a/view/tpl/smarty3/page_display.tpl b/view/tpl/smarty3/page_display.tpl index e61a86fc9..0f02086f2 100644 --- a/view/tpl/smarty3/page_display.tpl +++ b/view/tpl/smarty3/page_display.tpl @@ -8,5 +8,5 @@ <div class="page-author"><a class=="page-author-link" href="{{$auth_url}}">{{$author}}</a></div> <div class="page-date">{{$date}}</div> - <div class="page-body">{{$body}}</div> + <div class="page-body">body</div> </div> diff --git a/view/tpl/smarty3/photo_album.tpl b/view/tpl/smarty3/photo_album.tpl index 56ee6b61c..33ab84df7 100644 --- a/view/tpl/smarty3/photo_album.tpl +++ b/view/tpl/smarty3/photo_album.tpl @@ -3,8 +3,14 @@ * 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 class="photo-album-image-wrapper" id="photo-album-image-wrapper-{{$id}}"> - <a href="{{$photolink}}" class="photo-album-photo-link" id="photo-album-photo-link-{{$id}}" title="{{$phototitle}}"> + <a href="{{$photolink}}" class="photo-album-photo-link" id="photo-album-photo-link-{{$id}}" title="{{$phototitle}}" rel="{{$rel}}"> <img src="{{$imgsrc}}" alt="{{$imgalt}}" title="{{$phototitle}}" class="photo-album-photo lframe resize{{$twist}}" id="photo-album-photo-{{$id}}" /> <p class='caption'>{{$desc}}</p> </a> |