<?php // VARIABLES $address = getMetaAddress(); $listingType = getMetaData('et_er_type'); $paymentType = getMetaData('et_er_adtype'); $secondaryTitle = $listingType . ' for ' . $paymentType; $rentAmount = getMetaData('et_er_rent_price'); $saleAmount = getMetaData('et_er_price'); $paymentAmount = $paymentType == 'Rent' ? $rentAmount : $saleAmount; $paymentFrequency = getMetaData('et_er_rent_tenure'); $property_imgs_ids = get_property_images_ids(); ?> <div class="banner-container cf"> <div class="column"> <div class='title'> <?php the_title(); ?> </div> <div> <?php echo $address; ?> </div> </div> <div class="column">
<div id="map_canvas" style="width:430px; height:276px;"></div> <script type="text/javascript" src="http://maps.google.com/maps/api/js"></script> <script type="text/javascript"> var geocoder; var map; var address ='<?php echo getMetaAddress(); ?> '; function initialize() { geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 17, center: latlng, mapTypeControl: true, scrollwheel: false, navigationControl: false, mapTypeControl: false, scaleControl: false, draggable: false, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); if (geocoder) { geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { if (status != google.maps.GeocoderStatus.ZERO_RESULTS) { map.setCenter(results[0].geometry.location);