Fix: kontakt

This commit is contained in:
2026-05-18 09:49:49 +02:00
parent a294675c16
commit d7c5ac64e7
4 changed files with 50 additions and 42 deletions

View File

@@ -4,6 +4,27 @@
<?php endif;?>
<div class="text"><?php echo $page->content ?></div>
<div id="gmap-frame">
<div id="gmap">mapa</div>
<?php
$map_lat = isset($map_marker['lat']) ? $map_marker['lat'] : $map_center['lat'];
$map_lon = isset($map_marker['lon']) ? $map_marker['lon'] : $map_center['lon'];
$map_zoom = isset($map_center['zoom']) ? $map_center['zoom'] : 14;
$map_query = $map_lat.','.$map_lon;
$map_src = 'https://maps.google.com/maps?'.http_build_query(array(
'q' => $map_query,
'll' => $map_query,
'z' => $map_zoom,
'output' => 'embed',
));
?>
<iframe
id="gmap"
src="<?php echo html::specialchars($map_src) ?>"
title="Centrum Copy - mapa dojazdu"
width="500"
height="400"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0"></iframe>
</div>
</div>