118 lines
3.8 KiB
Text
118 lines
3.8 KiB
Text
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<meta name="viewport" content="width = 600" />
|
|
<title>$entry.name</title>
|
|
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
|
|
|
|
<script type="text/javascript" src="${assets}/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
|
|
<script type="text/javascript" src="${assets}/fancybox/jquery.easing-1.3.pack.js"></script>
|
|
<script type="text/javascript" src="${assets}/fancybox/jquery.mousewheel-3.0.2.pack.js"></script>
|
|
|
|
<link rel="stylesheet" href="${assets}/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
|
|
|
|
|
|
<style type="text/css">
|
|
body {
|
|
font-size: 11px;
|
|
font-family: "Lucida Grande", "Lucida Sans", Arial, sans-serif;
|
|
color: #6d6d6d;
|
|
background: #acc95f;
|
|
margin: 10px auto;
|
|
text-align: center;
|
|
}
|
|
h1 {
|
|
text-align: left;
|
|
}
|
|
h2 {
|
|
margin-left: 30px;
|
|
text-align: left;
|
|
clear: both;
|
|
}
|
|
a:link, a:visited {
|
|
text-decoration: none;
|
|
color: #4c4c4c;
|
|
font-weight: 700;
|
|
}
|
|
a:hover, a:focus {
|
|
text-decoration: underline;
|
|
color: #6a6a6a;
|
|
}
|
|
div.photo {
|
|
align: center;
|
|
height: 200px;
|
|
margin 8px;
|
|
}
|
|
div.grid {
|
|
float: left;
|
|
#set($divheight = $thmb + 60)
|
|
#set($divwidth = $thmb + 25)
|
|
height: ${divheight}px;
|
|
max-height: ${divheight}px;
|
|
max-width: ${divwidth}px;
|
|
overflow: hidden;
|
|
}
|
|
img.picture {
|
|
box-shadow: 5px 5px 5px #777;
|
|
-webkit-box-shadow: 5px 5px 5px #777;
|
|
-moz-box-shadow: 5px 5px 5px #777;
|
|
}
|
|
div.imgborder {
|
|
margin: 10px;
|
|
}
|
|
.nav {
|
|
border: 0 none;
|
|
padding: 0px;
|
|
vertical-align: middle;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
|
|
function formatTitle(title, currentArray, currentIndex, currentOpts) {
|
|
var captionElement = document.getElementById(title);
|
|
return captionElement.innerHTML;
|
|
}
|
|
|
|
$("a.ss").fancybox({
|
|
'titlePosition' : 'inside',
|
|
'transitionIn' : 'elastic',
|
|
'transitionOut' : 'elastic',
|
|
'easingIn' : 'easeInQuad',
|
|
'easingOut' : 'easeOutQuad',
|
|
'titleFormat' : formatTitle
|
|
});
|
|
})
|
|
</script>
|
|
</head>
|
|
<body>
|
|
#macro(navlink $entry)${base}$mapper.map(${entry.getPath()}).#if($entry.isFile())photo#{else}album#end#end
|
|
#macro(navbutton $entry $direction)#if($entry)<a href="#navlink($entry)"><img class="nav" width="26" height="32" src="${assets}/${direction}.png"/></a>#else<img class="nav" width="26" height="32" src="${assets}/${direction}-inactive.png"/>#end#end
|
|
<h1>#navbutton(${entry.prev()} "left")#navbutton(${entry.parent()} "up")#navbutton(${entry.next()} "right") $entry.name</h1>
|
|
<hr/>
|
|
|
|
#set($yr = "x")
|
|
#foreach($en in $entry.getContents())
|
|
#set($dim = $en.thumbnail.size.scaled($thmb))
|
|
#set($thpath = $mapper.map(${en.thumbnail.getPath()}))
|
|
#set($cdate = ${en.earliest})
|
|
#set($cyr = $mapper.year($cdate))
|
|
#if($cyr != $yr && !${entry.parent()})
|
|
#set($yr = $cyr)
|
|
<h2>$yr</h2>
|
|
#end
|
|
<div class="grid">
|
|
<span class="name">$en.name</span><br/>
|
|
#if($en.isFile())
|
|
<div class="imgborder"><a class="ss" href="${base}${thpath}?size=${full}" rel="album" title="${en.name}"><img class="picture" src="${base}${thpath}?size=${thmb}" border="0" width="${dim.width}" height="${dim.height}"/></a></div>
|
|
#else
|
|
<div class="imgborder"><a class="dir" href="#navlink($en)" title="$!en.caption"><img class="picture" src="${base}${thpath}?size=${thmb}" border="0" width="${dim.width}" height="${dim.height}"/></a></div>
|
|
#end
|
|
<p id="${en.name}" class="caption">$!en.caption</p>
|
|
</div>
|
|
#end
|
|
</body>
|
|
</html>
|