use strict;
use warnings;
+use utf8;
use UCW::Gallery;
use UCW::Gallery::Web;
my $photo_url = $self->get('PhotoUrlPrefix') . $self->{gal}->photo_file_name($m, $photo_id);
print "<li><a id='$aid' href='$click_url' class=highslide onclick='return hs.expand(this, { src: \"$photo_url\" })'>";
print "<img src='$thumb' width=$tw height=$th alt='Photo'$tit></a>\n";
+ if ($self->get('GeoHack')) {
+ my ($lat, $lon) = ($m->{lat}, $m->{lon});
+ if (defined $lat && defined $lon) {
+ my $cap = "<a href='http://www.openstreetmap.org/?mlat=$lat&mlon=$lon#map=16/$lat/$lon'>Ukázat na mapě</a>";
+ print "<div class='highslide-caption'>$cap</div>\n";
+ }
+ }
}
sub run($$) {