Give prettyphoto it's own template to make themeing it less annoying.

This commit is contained in:
Thomas Willingham 2013-07-14 02:36:59 +01:00
parent e83df684c0
commit ba5803bebc
3 changed files with 8 additions and 21 deletions

View file

@ -1,14 +1,4 @@
{{* {{include file="prettyphoto.tpl"}}
* 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>
<div class="photo-album-image-wrapper" id="photo-album-image-wrapper-{{$id}}"> <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}}"> <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}}" /> <img src="{{$imgsrc}}" alt="{{$imgalt}}" title="{{$phototitle}}" class="photo-album-photo lframe resize{{$twist}}" id="photo-album-photo-{{$id}}" />

View file

@ -1,13 +1,4 @@
{{* {{include file="prettyphoto.tpl"}}
* 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>
<div id="live-display"></div> <div id="live-display"></div>
<h3><a href="{{$album.0}}">{{$album.1}}</a></h3> <h3><a href="{{$album.0}}">{{$album.1}}</a></h3>

6
view/tpl/prettyphoto.tpl Normal file
View file

@ -0,0 +1,6 @@
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>