Mercurial > hg > mgallery
annotate mgallery.php @ 13:951752fb1c21
Add translation of relative URLs in header text blocks.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 21 Aug 2015 16:46:26 +0300 |
parents | 79987aa7ee9a |
children | 3f7bc4202df3 |
rev | line source |
---|---|
0 | 1 <?php |
2 // | |
3 // Yet Another Image Gallery | |
4 // (C) Copyright 2015 Tecnic Software productions (TNSP) | |
5 // | |
6 require "msitegen.inc.php"; | |
7 require "mgallery.inc.php"; | |
8 | |
9 | |
10 // | |
11 // Various utility functions | |
12 // | |
13 function mgGetImageURL() | |
14 { | |
15 global $galImageURL, $galPath; | |
5
1bf73b49fc91
Beautify the generated URLs by removing occurences of duplicate forward
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
16 return str_replace("//", "/", $galImageURL.$galPath."/".implode("", func_get_args())); |
0 | 17 } |
18 | |
19 | |
20 function mgGetURL($path, $image, $entities = TRUE) | |
21 { | |
22 global $galBaseURL, $galCleanURLS; | |
23 $amp = $entities ? "&" : "&"; | |
24 | |
25 if ($galCleanURLS) | |
26 { | |
5
1bf73b49fc91
Beautify the generated URLs by removing occurences of duplicate forward
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
27 $url = $galBaseURL.$path."/".($image !== FALSE ? $image : ""); |
0 | 28 } |
29 else | |
30 { | |
5
1bf73b49fc91
Beautify the generated URLs by removing occurences of duplicate forward
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
31 $url = |
0 | 32 $galBaseURL.mgGetSetting("mgallery_php")."?path=". |
33 $path.($image !== FALSE ? $amp."image=".$image : ""); | |
34 } | |
5
1bf73b49fc91
Beautify the generated URLs by removing occurences of duplicate forward
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
35 |
1bf73b49fc91
Beautify the generated URLs by removing occurences of duplicate forward
Matti Hamalainen <ccr@tnsp.org>
parents:
4
diff
changeset
|
36 return str_replace("//", "/", $url); |
0 | 37 } |
38 | |
39 | |
40 function mgGetNaviActive(&$galIndex, $index, $delta, &$res, &$url, $entities) | |
41 { | |
42 global $galPath; | |
43 $res = $index + $delta; | |
44 if ($res >= 0 && $res <= sizeof($galIndex) - 1) | |
45 { | |
46 $url = mgGetURL($galPath, $galIndex[$res], $entities); | |
47 return TRUE; | |
48 } | |
49 else | |
50 return FALSE; | |
51 } | |
52 | |
53 | |
54 function mgGetNaviControlImage(&$galIndex, $index, $class, $url) | |
55 { | |
56 global $galTNPath; | |
57 | |
58 $img = "<div class=\"imageCtrl ".$class."\">"; | |
59 | |
60 if ($url !== FALSE) | |
61 { | |
62 $img .= | |
63 "<a href=\"".$url."\"><img src=\"". | |
64 mgGetImageURL($galTNPath, $galIndex[$index]). | |
65 "\" alt=\"".$galIndex[$index]."\" /></a>"; | |
66 } | |
67 | |
68 return $img."</div>\n"; | |
69 } | |
70 | |
71 | |
72 function mgGetNaviControlImageBox(&$galIndex, $index, $class, $delta) | |
73 { | |
74 if (!mgGetNaviActive($galIndex, $index, $delta, $res, $url, TRUE)) | |
75 $url = FALSE; | |
76 | |
77 return mgGetNaviControlImage($galIndex, $res, $class, $url); | |
78 } | |
79 | |
80 | |
7
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
81 function mgGetControlText($id, $active, $url, $naviFlags) |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
82 { |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
83 if ($naviFlags & GNAV_TEXT) |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
84 { |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
85 $str = chentities(mgGetSetting("navi_ctrl_".$id)); |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
86 return |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
87 "<span class=\"naviControl ".$id."\">[". |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
88 ($active ? "<a href=\"".$url."\">".$str."</a>" : $str). |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
89 "]</span>"; |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
90 } |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
91 else |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
92 return ""; |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
93 } |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
94 |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
95 |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
96 function mgGetControl($id, &$galIndex, $index, $delta, $naviFlags) |
0 | 97 { |
98 $active = mgGetNaviActive($galIndex, $index, $delta, $res, $url, TRUE); | |
99 if ($active && ($naviFlags & GNAV_IMG)) | |
7
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
100 $img = mgGetNaviControlImage($galIndex, $res, $id, $url); |
0 | 101 else |
102 $img = ""; | |
103 | |
7
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
104 $text = mgGetControlText($id, $active, $url, $naviFlags); |
0 | 105 |
106 if ($delta < 0) | |
7
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
107 return $img.$text; |
0 | 108 else |
7
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
109 return $text.$img; |
0 | 110 } |
111 | |
112 | |
113 function mgGetNaviControls(&$galIndex, $index, $naviFlags) | |
114 { | |
115 global $galPath; | |
116 | |
117 return | |
118 "<div class=\"naviControls\">". | |
7
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
119 mgGetControl("prev", $galIndex, $index, -1, $naviFlags). |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
120 mgGetControlText("up", TRUE, mgGetURL($galPath, FALSE), $naviFlags). |
dec931d9e860
Implement configurable navigation controls.
Matti Hamalainen <ccr@tnsp.org>
parents:
5
diff
changeset
|
121 mgGetControl("next", $galIndex, $index, 1, $naviFlags). |
0 | 122 "</div>\n"; |
123 } | |
124 | |
125 | |
126 function mgPrintTable($class, &$galEntries, &$galIndex, $start, $limit) | |
127 { | |
128 global $galAlbumIcon, $galPath, $galTNPath; | |
129 | |
130 $galCount = count($galIndex); | |
131 if ($start >= $galCount) | |
132 return $start; | |
133 | |
134 $end = ($limit === FALSE) ? $galCount : $start + $limit; | |
135 if ($end > $galCount) $end = $galCount; | |
136 | |
137 $rowLimit = mgGetSetting("album_row_limit"); | |
138 $n = 0; | |
139 | |
140 echo "<table class=\"".$class."\">\n"; | |
141 for ($index = $start; $index < $end; $index++) | |
142 { | |
143 $filename = &$galIndex[$index]; | |
144 $data = &$galEntries[$filename]; | |
145 | |
146 if ($n == 0) echo " <tr>\n"; | |
147 | |
148 echo | |
149 " <td id=\"cd".$data["base"]."\">\n"; | |
150 | |
151 if ($data["type"] == 0) | |
152 { | |
153 echo | |
154 "<div class=\"imageBox\"><a href=\"".mgGetURL($galPath, $filename)."\">". | |
155 "<img src=\"".mgGetImageURL($galTNPath, $filename)."\" alt=\"". | |
156 chentities($filename)."\"></a>". | |
157 "</div>". | |
158 mgGetArr($data, "caption", "<div class=\"imageCaption\">%1</div>", "", "chentities"); | |
159 /* | |
160 if ($mode == "") | |
161 { | |
162 echo | |
163 " <select class=\"dropdown\" id=\"dd".$data["base"]."\" name=\"dd".$data["base"]. | |
164 "\" onchange=\"galPhotoDataChanged('".$data["base"]."');\">\n"; | |
165 | |
166 foreach ($picChoices as $name => $value) | |
167 { | |
168 echo " <option value=\"$value\"".($value == $data["id"] ? " selected=\"selected\"" : "").">".chentities($name)."</option>\n"; | |
169 } | |
170 echo | |
171 " </select>\n"; | |
172 } | |
173 */ | |
174 } | |
175 else | |
176 { | |
177 echo | |
178 " <a href=\"".mgGetURL(mgCleanPath(TRUE, $galPath, $data["base"]), FALSE)."\">". | |
179 "<img class=\"albumIcon\" src=\"".$galAlbumIcon."\" alt=\"".chentities($data["caption"])."\" />\n". | |
180 "<div class=\"albumTitle\">".chentities($data["caption"])."</div></a>\n"; | |
181 } | |
182 | |
183 echo | |
184 " </td>\n"; | |
185 | |
186 if (++$n >= $rowLimit) | |
187 { | |
188 echo " </tr>\n"; | |
189 $n = 0; | |
190 } | |
191 } | |
192 if ($n > 0) | |
193 { | |
194 while ($n++ < $rowLimit) | |
195 echo " <td></td>\n"; | |
196 echo " </tr>\n"; | |
197 } | |
198 echo "</table>\n"; | |
199 return $index; | |
200 } | |
201 | |
202 | |
203 function mgTimeStr($str) | |
204 { | |
205 $tmp = date_create_from_format("Y:m:d H:i:s", $str); | |
206 return date_format($tmp, "d M Y (H:i)"); | |
207 } | |
208 | |
209 | |
210 function mgPrintPageInfoFooter() | |
211 { | |
212 if (($str = mgGetSetting("page_info")) !== FALSE) | |
213 echo "<div class=\"pageInfoFooter\">".$str."</div>"; | |
214 } | |
215 | |
216 | |
217 function mgPrintBreadCrumbs($galData) | |
218 { | |
219 $res = array(); | |
220 if ($galData["caption"]) | |
4
014e1d6991a3
Oops, fix the last breadcrumb.
Matti Hamalainen <ccr@tnsp.org>
parents:
3
diff
changeset
|
221 $res[] = "<a class=\"naviBreadCrumbCurr\" href=\"".mgGetURL($galData["path"], FALSE)."\">".chentities($galData["caption"])."</a>"; |
0 | 222 |
223 $tmp = $galData; | |
224 while (isset($tmp["parent"])) | |
225 { | |
226 $pdata = $tmp["parent"]; | |
3
c85f630a4198
Improve bread crumb navigation by making the current album a link as well.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
227 $res[] = "<a class=\"naviBreadCrumbItem\" href=\"".mgGetURL($pdata["path"], FALSE)."\">".chentities($pdata["caption"])."</a>"; |
0 | 228 $tmp = $tmp["parent"]; |
229 } | |
230 | |
231 if (count($res) > 1) | |
232 { | |
233 echo | |
234 "<div class=\"naviBreadCrumbs\">". | |
235 implode("<span class=\"naviBreadCrumbSep\"></span>", array_reverse($res)). | |
236 "</div>\n"; | |
237 } | |
238 } | |
239 | |
240 | |
241 // | |
242 // Get gallery settings | |
243 // | |
244 mgReadSettings(); | |
245 | |
246 $pageCSS = mgGetSetting("css"); | |
247 $pageCSSSelect = mgGetSetting("css_select"); | |
248 $galBasePath = mgGetSetting("base_path"); | |
249 $galBaseURL = mgGetSetting("base_url"); | |
250 $galImageURL = mgGetSetting("image_url", mgGetSetting("base_url")); | |
251 | |
252 $galAlbumIcon = mgGetSetting("album_icon"); | |
253 $galCleanURLS = mgGetSetting("clean_urls"); | |
254 $galTNPath = mgGetSetting("tn_path"); | |
255 $galMedSuffix = mgGetSetting("med_suffix"); | |
256 $galTitlePrefix = mgGetSetting("title_prefix"); | |
257 $galTitleSep = mgGetSetting("title_sep"); | |
258 | |
259 $galMode = stGetRequestItem("mode", "view", TRUE); | |
260 $galPath = stGetRequestItem("path", ".", TRUE); | |
261 $galPageIndex = intval(stGetRequestItem("index", 0, TRUE)); | |
262 $galImage = stGetRequestItem("image", FALSE, TRUE); | |
263 | |
264 if (is_string($galImage)) | |
265 $galImage = basename($galImage); | |
266 | |
267 | |
268 // | |
269 // Attempt to read the data cache file | |
270 // | |
271 $filename = mgGetPath(mgCleanPath(TRUE, $galBasePath, $galPath), "cache_file"); | |
272 $filename2 = mgGetPath(mgCleanPath(FALSE, $galBasePath, $galPath), "cache_file"); | |
273 if ($filename == $filename2 && file_exists($filename) && ($fp = @fopen($filename, "rb")) !== FALSE) | |
274 { | |
275 if (flock($fp, LOCK_SH)) | |
276 { | |
277 require($filename); | |
278 flock($fp, LOCK_UN); | |
279 } | |
280 fclose($fp); | |
281 } | |
282 | |
283 | |
284 // If no data available, show an error page | |
285 if (!isset($galData) || !isset($galEntries) || | |
286 !isset($galAlbumsIndex) || !isset($galImagesIndex)) | |
287 { | |
288 cmPrintPageHeader(mgGetVal(array("title_prefix", "title_sep"), "%1%2")."ERROR!"); | |
289 | |
290 echo | |
291 "<h1>Gallery error</h1>\n". | |
292 "<p>Gallery path <b>".chentities($galPath)."</b> does not exist or is invalid.</p>\n"; | |
293 | |
12
79987aa7ee9a
Change some debugging (commented out).
Matti Hamalainen <ccr@tnsp.org>
parents:
7
diff
changeset
|
294 //echo "<p>filename=: '".$filename."', X: galData=".intval(isset($galData)).", galEntries=".intval(isset($galEntries))."\n"; |
0 | 295 |
296 mgPrintPageInfoFooter(); | |
297 cmPrintPageFooter(TRUE); | |
298 exit; | |
299 } | |
300 | |
301 | |
302 // | |
303 // Print page header, etc. | |
304 // | |
305 if (($index = array_search($galImage, $galImagesIndex)) !== FALSE) | |
306 { | |
307 // | |
308 // Single image mode | |
309 // | |
310 $naviFlags = mgGetSetting("image_navigation"); | |
311 $data = $galEntries[$galImage]; | |
312 | |
313 $pageTitle = $galTitlePrefix.$galTitleSep.$galData["caption"]." - ".$galImage; | |
314 cmPrintPageHeader($pageTitle); | |
315 echo "<h1>".chentities($pageTitle)."</h1>\n"; | |
316 | |
317 if ($naviFlags & GNAV_BREADCRUMBS) | |
318 mgPrintBreadCrumbs($galData); | |
319 | |
320 if ($naviFlags & GNAV_TOP) | |
321 echo mgGetNaviControls($galImagesIndex, $index, $naviFlags); | |
322 | |
323 echo | |
324 "<div class=\"imageCBox\">\n". | |
325 mgGetNaviControlImageBox($galImagesIndex, $index, "prev", -1). | |
326 "<div class=\"imageBox\">\n". | |
327 "<a target=\"_blank\" href=\"".$galImageURL.$galPath."/".$galImage."\">". | |
328 "<img src=\"".mgGetImageURL($galTNPath, $data["base"].$galMedSuffix.$data["ext"])."\" alt=\"". | |
329 chentities($data["base"].$galMedSuffix.$data["ext"])."\"></a>\n". | |
330 "</div>\n". | |
331 mgGetNaviControlImageBox($galImagesIndex, $index, "next", 1). | |
332 "</div>\n". | |
333 "<div class=\"imageCaption\">".mgGetArr($data, "caption", "%1", "")."</div>\n"; | |
334 | |
335 $list = array( | |
336 mgGetArr($data, array("width", "height"), "<span class=\"infoDimensions\"><b>%1</b> x <b>%2</b> px</span>", NULL), | |
337 mgGetArr($data, "model", "<span class=\"infoModel\"><b>%1</b></span>", NULL), | |
338 mgGetArr($data, "fnumber", "<span class=\"infoFNumber\"><b>f/%1</b></span>", NULL), | |
339 mgGetArr($data, "exposure", "<span class=\"infoExposure\"><b>%1</b> sec</span>", NULL, NULL), | |
340 mgGetArr($data, "iso", "<span class=\"infoISO\">ISO <b>%1</b></span>", NULL), | |
341 ); | |
342 | |
343 echo | |
344 "<div class=\"infoBox\">\n". | |
345 mgGetArr($data, "datetime", "<span class=\"infoDateTime\">%1</span>", "", "mgTimeStr"). | |
346 implode(", ", array_filter($list, function($a) { return $a !== NULL; })). | |
347 "</div>\n"; | |
348 | |
349 if ($naviFlags & GNAV_BOTTOM) | |
350 echo mgGetNaviControls($galImagesIndex, $index, $naviFlags); | |
351 | |
352 // Javascript navigation | |
353 if ($naviFlags & GNAV_JAVASCRIPT) | |
354 { | |
355 $prevActive = mgGetNaviActive($galImagesIndex, $index, -1, $res, $prevURL, FALSE); | |
356 $nextActive = mgGetNaviActive($galImagesIndex, $index, 1, $res, $nextURL, FALSE); | |
357 echo | |
358 "<script type=\"text/javascript\">\n". | |
359 "var mgalPrevURL = \"".($prevActive ? $prevURL : "")."\";\n". | |
360 "var mgalNextURL = \"".($nextActive ? $nextURL : "")."\";\n". | |
361 "\n"; | |
362 ?> | |
363 function mgalNavigateTo(url) | |
364 { | |
365 if (url != "") | |
366 window.location = url; | |
367 } | |
368 | |
369 | |
370 function mgalProcessKeyPress(ev) | |
371 { | |
372 ev = ev || window.event; | |
373 var key = ev.keyCode ? ev.keyCode : ev.which; | |
374 switch (key) | |
375 { | |
376 case 37: | |
377 case 65: | |
378 // left | |
379 mgalNavigateTo(mgalPrevURL); | |
380 break; | |
381 | |
382 case 39: | |
383 case 68: | |
384 // right | |
385 mgalNavigateTo(mgalNextURL); | |
386 break; | |
387 } | |
388 } | |
389 | |
390 document.onkeypress = mgalProcessKeyPress; | |
391 <? | |
392 echo | |
393 "</script>\n"; | |
394 } | |
395 } | |
396 else | |
397 { | |
398 // | |
399 // Gallery mode | |
400 // | |
401 // - needs sub-modes / handling of order shit | |
402 // - Javascript stuff for picture data updates | |
403 // | |
404 $pageTitle = $galTitlePrefix.mgGetArr($galData, "caption", " - %1", "", "chentities"); | |
405 cmPrintPageHeader($pageTitle); | |
406 echo "<h1>".$pageTitle."</h1>\n"; | |
407 | |
408 $naviFlags = mgGetSetting("album_navigation"); | |
409 if ($naviFlags & GNAV_BREADCRUMBS) | |
410 mgPrintBreadCrumbs($galData); | |
411 | |
412 if (isset($galData["header"]) && strlen($galData["header"]) > 0) | |
13
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
413 { |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
414 // Translate relative URLs in header, if needed |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
415 $baseURL = mgGetSetting("image_url"); |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
416 |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
417 $headerText = preg_replace_callback( |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
418 "@href\s*=\s*\"([^\"]+)\"@i", |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
419 function ($matches) use($galPath, $baseURL) |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
420 { |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
421 $mstmp = $matches[1]; |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
422 if (preg_match("@^[a-z]+://@i", $mstmp) === 0) |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
423 { |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
424 if ($mstmp[0] != "/") |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
425 $mstmp = $baseURL."/".$galPath."/".$mstmp; |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
426 } |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
427 return "href=\"".str_replace("//", "/", $mstmp)."\""; |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
428 }, |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
429 $galData["header"]); |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
430 |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
431 echo "<div class=\"albumHeaderText\">".$headerText."</div>\n"; |
951752fb1c21
Add translation of relative URLs in header text blocks.
Matti Hamalainen <ccr@tnsp.org>
parents:
12
diff
changeset
|
432 } |
0 | 433 |
434 mgPrintTable("albumTable", $galEntries, $galAlbumsIndex, 0, FALSE); | |
435 mgPrintTable("imageTable", $galEntries, $galImagesIndex, 0, FALSE); | |
436 } | |
437 | |
438 mgPrintPageInfoFooter(); | |
439 cmPrintPageFooter(TRUE); | |
440 ?> |