Thank you, I think I fixed it but I am now getting a new error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /
home/purplepenguin/
cranihum.com/wp-content/themes/kava/functions.php
on line 67
this is line 67 </div>';
here's my code snippet from functions.php:
<?php
function wpmap() {
return '<script type="text/javascript" src="
http://maps.google.com/
maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(51.51440469156112,
-0.1354837417602539);
var myOptions = {
zoom: 16,
center: latlng,
navigationControl: true,
navigationControlOptions: {style:
google.maps.NavigationControlStyle.DEFAULT},
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: true
};
var map = new
google.maps.Map(document.getElementById("map_canvas"), myOptions);
var image = '/wp-content/themes/kava/images/pp_logo.png';
var myLatLng = new google.maps.LatLng(51.51440469156112,
-0.1354837417602539);
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title:"Pink Pigeon",
icon: image
});
}
window.onload = initialize;
</script>
<div id="mapsize">
<div id="map_canvas" style="width:100%; height:100%">
</div>
</div>';
}
add_shortcode('map', 'wpmap');
?>
I must have missed something...
Thanks
Will