annotate templates.martin/thumbnail.html @ 6:3021deef1599

Encoding related fixes * chomp encoding string * reformat else (seems someone hacked it in) * debug print encoding * do not use :utf8 binmode ("re-encode") on written file if the input is _already_ UTF-8
author Peter Gervai <grin@grin.hu>
date Thu, 16 Oct 2008 00:02:14 +0200
parents a84c32f131df
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
3 <head>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
4 <meta http-equiv="content-type" content="text/html;charset=<TMPL_VAR NAME=ENCODING>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
5 <meta name="GENERATOR" content="BINS <TMPL_VAR NAME=BINS_VERSION> (http://bins.sautret.org/)">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
6 <title><TMPL_VAR NAME=ALBUM_TITLE></title>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
7
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
8 <TMPL_IF NAME=CUSTOM_CSS>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
9 <link rel="stylesheet" href="<TMPL_VAR NAME=STATIC_PATH>/<TMPL_VAR NAME=CUSTOM_CSS>" type="text/css">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
10 <TMPL_ELSE>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
11 <link rel="stylesheet" href="<TMPL_VAR NAME=STATIC_PATH>/martin.css" type="text/css">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
12 </TMPL_IF>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
13
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
14 <!-- TMPL_IF NAME=NEXT_THUMB_PAGE -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
15 <link
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
16 rel="next"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
17 href="<TMPL_VAR NAME=NEXT_THUMB_PAGE>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
18 title="<TMPL_VAR NAME=STRING_NEXT>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
19 <link
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
20 rel="last"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
21 href="<TMPL_VAR NAME=LAST_PAGE>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
22 title="<TMPL_VAR NAME=STRING_LAST>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
23 <!-- /TMPL_IF -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
24 <!-- TMPL_IF NAME=PREV_THUMB_PAGE -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
25 <link
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
26 rel="prev"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
27 href="<TMPL_VAR NAME=PREV_THUMB_PAGE>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
28 title="<TMPL_VAR NAME=STRING_PREV>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
29 <link
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
30 rel="first"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
31 href="<TMPL_VAR NAME=FIRST_PAGE>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
32 title="<TMPL_VAR NAME=STRING_FIRST>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
33 <!-- /TMPL_IF -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
34 <!-- TMPL_IF NAME=UP_LINK -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
35 <link
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
36 rel="up"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
37 href="<TMPL_VAR NAME=UP_LINK>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
38 title="<TMPL_VAR NAME=UP_TITLE>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
39 <link
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
40 rel="Start"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
41 href="<TMPL_VAR NAME=STATIC_PATH>/.."
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
42 title="<TMPL_VAR NAME=STRING_HOME>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
43 <!-- /TMPL_IF -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
44 <link
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
45 rel="Index"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
46 href="<TMPL_VAR NAME=TREE_LINK>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
47 title="<TMPL_VAR NAME=TREE_TITLE>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
48
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
49 <TMPL_IF NAME="PRELOAD_IMAGES">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
50 <!-- preload thumnails of the next page to speed up the album browsing -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
51 <script type="text/javascript" language="javascript">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
52 <!-- hide from non JavaScript Browsers
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
53 function PreloadNextImages() {
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
54 <TMPL_LOOP NAME=PRELOAD_IMAGES>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
55 img<TMPL_VAR NAME=PRELOAD_IMAGE_NB> =
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
56 new Image(<TMPL_VAR NAME=PRELOAD_IMAGE_WIDTH>,
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
57 <TMPL_VAR NAME=PRELOAD_IMAGE_HEIGHT>);
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
58 img<TMPL_VAR NAME=PRELOAD_IMAGE_NB>.src =
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
59 "<TMPL_VAR NAME=PRELOAD_IMAGE_NAME>";
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
60 </TMPL_LOOP>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
61 }
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
62 // End hiding -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
63 </script>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
64 </TMPL_IF>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
65 </head>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
66
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
67 <TMPL_VAR NAME=BINS_ID>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
68
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
69 <body
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
70 <TMPL_IF NAME="BG_IMAGE"> background="<TMPL_VAR NAME="BG_IMAGE">" </TMPL_IF>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
71 <TMPL_IF NAME=PRELOAD_IMAGES> onload="PreloadNextImages()" </TMPL_IF>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
72 >
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
73
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
74 <div class="path"> <TMPL_INCLUDE NAME="path.html"> </div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
75 <div class="albumdesc"> <TMPL_VAR NAME=ALBUM_DESC> </div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
76 <div class="numinfo"> <TMPL_VAR NAME=NUM_INFO> </div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
77 <div class="navbar"> <TMPL_INCLUDE NAME="navbar.html"> </div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
78
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
79 <div class="album">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
80 <div class="thumbnavrow"><TMPL_INCLUDE NAME="thumbnavrow.html"> </div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
81 <div class="images" >
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
82
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
83 <TMPL_LOOP NAME=THUMBS_TABLE>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
84 <div class="card">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
85
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
86 <!-- title -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
87 <TMPL_IF NAME=THUMB_TITLE>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
88 <h3 class="imgname"> <TMPL_VAR NAME=THUMB_TITLE> </h3>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
89 </TMPL_IF>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
90
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
91 <!-- image -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
92 <span class="slid" id="id<TMPL_VAR NAME=THUMB_ID>"><table><tr><td>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
93
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
94 <TMPL_IF NAME=THUMB_DEFAULT_SIZE>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
95 <a href="<TMPL_VAR NAME=THUMB_DEFAULT_SIZE>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
96 </TMPL_IF>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
97 <img src="<TMPL_VAR NAME=THUMB_LINK>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
98 width="<TMPL_VAR NAME=THUMB_WIDTH>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
99 height="<TMPL_VAR NAME=THUMB_HEIGHT>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
100 alt="<TMPL_VAR NAME=THUMB_ALT>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
101 title="<TMPL_VAR NAME=THUMB_LINK_TITLE>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
102 <TMPL_IF NAME=THUMB_DEFAULT_SIZE></a></TMPL_IF>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
103
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
104 </td></tr></table></span>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
105
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
106 <!-- sizer -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
107 <div class="thumbs">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
108 <TMPL_LOOP NAME=THUMB_SIZES>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
109 <TMPL_IF NAME=SIZE_DFLT>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
110 <span id="dflt<TMPL_VAR NAME=THUMB_ID>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
111 </TMPL_IF>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
112 <a href="<TMPL_VAR NAME=SIZE_LINK>" title="<TMPL_VAR NAME=SIZE_TITLE>">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
113 <img src="<TMPL_VAR NAME=STATIC_PATH>/<TMPL_VAR NAME=SIZE_FILE>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
114 alt="<TMPL_VAR NAME=SIZE_TITLE>"
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
115 title="<TMPL_VAR NAME=SIZE_TITLE>"></a>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
116 <TMPL_IF NAME=SIZE_DFLT>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
117 </span>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
118 </TMPL_IF>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
119 </TMPL_LOOP>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
120 </div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
121
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
122 </div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
123 </TMPL_LOOP>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
124 </div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
125 <!-- End of Thumbnails Table -->
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
126
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
127 <div class="thumbnavrow"><TMPL_INCLUDE NAME="thumbnavrow.html"></div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
128 </div>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
129
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
130 <TMPL_INCLUDE NAME="xlink.html">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
131 <TMPL_INCLUDE NAME="footer.html">
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
132
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
133 </body>
a84c32f131df Import vendor version
Peter Gervai <grin@grin.hu>
parents:
diff changeset
134 </html>