diff options
author | Thomas Willingham <founder@kakste.com> | 2013-07-14 02:36:59 +0100 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-07-14 02:36:59 +0100 |
commit | ba5803bebc144f46fe1a9d29b08e3b6ac71aaecc (patch) | |
tree | 6e6e233727121757a62218c6af43559daaa6a676 /view | |
parent | e83df684c02d534e81244e958413ac5c67b24e54 (diff) | |
download | volse-hubzilla-ba5803bebc144f46fe1a9d29b08e3b6ac71aaecc.tar.gz volse-hubzilla-ba5803bebc144f46fe1a9d29b08e3b6ac71aaecc.tar.bz2 volse-hubzilla-ba5803bebc144f46fe1a9d29b08e3b6ac71aaecc.zip |
Give prettyphoto it's own template to make themeing it less annoying.
Diffstat (limited to 'view')
-rwxr-xr-x | view/tpl/photo_album.tpl | 12 | ||||
-rwxr-xr-x | view/tpl/photo_view.tpl | 11 | ||||
-rw-r--r-- | view/tpl/prettyphoto.tpl | 6 |
3 files changed, 8 insertions, 21 deletions
diff --git a/view/tpl/photo_album.tpl b/view/tpl/photo_album.tpl index 33ab84df7..d2016e41c 100755 --- a/view/tpl/photo_album.tpl +++ b/view/tpl/photo_album.tpl @@ -1,14 +1,4 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} -<script type="text/javascript" charset="utf-8"> - $(document).ready(function(){ - $("a[rel^='prettyPhoto']").prettyPhoto(); - }); -</script> - +{{include file="prettyphoto.tpl"}} <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}}" rel="{{$rel}}"> <img src="{{$imgsrc}}" alt="{{$imgalt}}" title="{{$phototitle}}" class="photo-album-photo lframe resize{{$twist}}" id="photo-album-photo-{{$id}}" /> diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl index fce6f6fa8..f825dcba6 100755 --- a/view/tpl/photo_view.tpl +++ b/view/tpl/photo_view.tpl @@ -1,13 +1,4 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} -<script type="text/javascript" charset="utf-8"> - $(document).ready(function(){ - $("a[rel^='prettyPhoto']").prettyPhoto(); - }); -</script> +{{include file="prettyphoto.tpl"}} <div id="live-display"></div> <h3><a href="{{$album.0}}">{{$album.1}}</a></h3> diff --git a/view/tpl/prettyphoto.tpl b/view/tpl/prettyphoto.tpl new file mode 100644 index 000000000..6d047e620 --- /dev/null +++ b/view/tpl/prettyphoto.tpl @@ -0,0 +1,6 @@ +<script type="text/javascript" charset="utf-8"> + $(document).ready(function(){ + $("a[rel^='prettyPhoto']").prettyPhoto(); + }); +</script> + |