Fix: kontakt
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user