Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (66 sloc) 3.116 kb
7a22e23 Laszlo Molnar - Initial upload, starting with v3.0.0
authored
1 <ja:include page="page-header.inc" />
2
3 <%-- Iterate through folders and images --%>
4
5 <%-- Folders --%>
d72911b Laszlo Molnar - Turtle 3.0.3, refer to Readme.txt for change log
authored
6 <ja:if test="<%= folderCount != void && folderCount > 0 && (showFolders == void || showFolders) %>"><div class="folders">
7a22e23 Laszlo Molnar - Initial upload, starting with v3.0.0
authored
7 <ul class="clearfix"><% i = 0; %><ja:fileiterator dirs>
8 <% updateLocal();
9 out.print("<li" + ((i % cols == 0)?" style=\"clear:left;\"" : "") + ">");
10 out.print("<aside><a href=\"" + _link + "\"><img src=\"" + ((iconPath == void)? thumbPath : (resPath + "/folder.png")) +
11 "\"" + attr("alt", cleanup(_title)) + attr("width", thumbWidth) + attr("height", thumbHeight) + data("modified", _modifiedDays) + " /></a></aside>");
12 out.print("<div class=\"data\"><h4><a href=\"" + _link + "\">" + stripLinebreak(_title) + "</a></h4>");
13 if ( showFolderDescription && !isEmpty(_caption) )
d72911b Laszlo Molnar - Turtle 3.0.3, refer to Readme.txt for change log
authored
14 out.print("<p>" + _caption + "</p>");
7a22e23 Laszlo Molnar - Initial upload, starting with v3.0.0
authored
15 if ( showFolderImageCount && _fileCount > 0 )
16 out.print("<p class=\"info\">" + _fileCount + " " + ((_fileCount > 1)? "$text.images" : "$text.image") + "</p>");
17 out.print("</div></li>");
18 i++;
19 %></ja:fileiterator>
20 </ul>
21 </div></ja:if>
22
23 <%-- Images, videos and other files --%>
24 <ja:if test="${thumbCount}" not value="0"><div class="thumbs<ja:if test="${folderCount}" not value="0"> addtop</ja:if>">
25 <ul class="clearfix"><% i = 0; %><ja:fileiterator nodirs>
26 <% updateLocal();
27 if ( !(_audio && useAlbumAudioAsBackground) ) {
28 out.print("<li" + ((i % thumbCols == 0)?" style=\"clear:left;\"" : "") + ">");
29 out.print("<a href=\"" + _imagePath + "\"");
30 if ( captionPlacement.equals("tooltip") )
31 out.print(attr("title", cleanup(_thumbCaption)));
32 out.print("><img src=\"" + _thumbPath + "\"");
33 out.print(data("caption", cleanup(_caption)));
34 out.print(data("modified", _modifiedDays));
35 out.print(data("size", _fileSize));
36 if ( !isEmpty( _link ) ) {
37 out.print(data("link", _link));
38 if ( _original )
39 out.print(data("isoriginal", "true"));
40 }
41 if ( _video ) {
42 out.print(data("isvideo", "true"));
43 out.print(data("width", _videoWidth));
44 out.print(data("height", _videoHeight));
45 }
46 else if ( _audio )
47 out.print(data("isaudio", "true"));
48 else if ( _other )
49 out.print(data("isother", "true"));
50 else {
51 out.print(data("width", imageWidth));
52 out.print(data("height", imageHeight));
53 out.print(data("meta", stripQuot(_meta)));
54 }
55 if (showMap && _location != void && !isEmpty(_location)) {
56 out.print(data("map", stripQuot(_location)));
57 out.print(data("mapid", locationCount - 1));
58 }
59 out.print(data("shop", stripQuot(_shop)));
60 out.print(" alt=\"" + stripQuot(_title) + "\" /></a>");
61 if ( captionPlacement.equals("below") )
62 out.print("<p>" + _thumbCaption + "</p>");
63 out.println("</li>");
64 }
65 i++;
66 %></ja:fileiterator>
67 </ul>
68 </div></ja:if>
69
70 <ja:include page="page-footer.inc" />
Something went wrong with that request. Please try again.