qualcuno sa aiutarmi a far vedere il segnaposto personalizzato?
Codice PHP:
<?php if ($alb_map) {
if ( $item->lat && $item->lon && is_numeric( $item->lat ) && is_numeric( $item->lon ) ) {
echo "<tr>";
## select the language for the api key - in case of SEO and multiple languages and the url get the language at the front [eg. [url]www.goingreece.com/hotels/myhotel.html[/url] ---AND IN GREEK--- [url]www.goingreece.com/el/hotels/myhotel.html[/url]]
if ($mosConfig_lang== 'greek') {
echo "<script src=\"http://maps.google.com/maps?file=api&v=2&key=xxxxxxxxxxxxxxXXXXXXXXXXXxxxxxxxxxxxxxxxx2222222\" type=\"text/javascript\"></script>";
}
## the normal api key
else {
echo "<script src=\"http://maps.google.com/maps?file=api&v=2&key=xxxxxxxxxxxxxxXXXXXXXXXXXxxxxxxxxxxxxxxxx1111111\" type=\"text/javascript\"></script>";
}
?>
<script type="text/javascript">
//<![CDATA[
function initialize() {
if (GBrowserIsCompatible()) {
var center = new GLatLng(<?php echo $item->lat ?>, <?php echo $item->lon ?>);
var map = new GMap2(document.getElementById("map_canvas"));
map.addControl(new GMapTypeControl());
map.setCenter(center, 10); //change the number for the zoom
map.addControl(new GSmallMapControl());
icona = new GIcon();
icona.image = "components/com_alberghi/images/back.png";
icona.iconSize = new GSize(25, 34);
var marker = new GMarker(icona,{title:"<?php echo $item->title ?>"});
map.setMapType(G_NORMAL_MAP); // types of map are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_DEFAULT_MAP_TYPES
}
}
if(window.attachEvent) { window.attachEvent('onload', initialize); }
else if(window.addEventListener) { window.addEventListener('load', initialize, false); }
//]]>
</script>
<div id="map_canvas" style="width: 520px; height: 460px"></div>
</tr>
<?php
}
}
?>
VI PREGGOOOOO