X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=items.php;h=c36318379964d0790564a47587ccf7b4416ef27a;hp=2ce7c41bac98dcdb213c9cf14a421f7b1f4b38d2;hb=080f837e8fbca48c55f4549df13b9c4772db3613;hpb=4acc8da49e3d4083fd9906388dd8fe0212bb9f42
diff --git a/items.php b/items.php
index 2ce7c41..c363183 100644
--- a/items.php
+++ b/items.php
@@ -23,7 +23,10 @@ function main ($features) {
$title = htmlspecialchars ($feature->title, ENT_QUOTES);
$description = htmlspecialchars ($feature->description, ENT_QUOTES);
$imgurl = ($feature->imgpath ?
- full_url_from_imgpath ($feature->imgpath)
+ image_url_from_imgpath ($feature->imgpath)
+ : "");
+ $thumburl = ($feature->imgpath ?
+ thumb_url_from_imgpath ($feature->imgpath)
: "");
$lon = $feature->lon;
$lat = $feature->lat;
@@ -32,7 +35,7 @@ function main ($features) {
$title;
if ($imgurl) {
- $imgurlHTML = sprintf ('
', $alt, $imgurl);
+ $imgurlHTML = sprintf ('
', $imgurl, $alt, $thumburl);
} else {
$imgurlHTML = "";
}