> Template for Property DETAILS Page * ---------------------------------------------------------------------------------------------------------------------- */ ?> '; print_r($property_vars); echo ''; // // // get the mlsid on property url (permalink) // if(count($property_vars) > 0) { // if($property_vars[0] > 0) { // $mlsid = $property_vars[0]; // } // // } // // // get the address on property url (permalink) // if(count($property_vars) > 1) { // if($property_vars[1] != "") { // $address = urldecode($property_vars[1]); // } // } // // } // // echo "
mlsid: $mlsid"; echo "
address: $address"; // // ----------------------------------------------------------------------------------------------- if(count($db_listings['details_listings']) > 0) { foreach($db_listings['details_listings'] as $db_details_listing) { $listing = unserialize(base64_decode($db_details_listing['full_property_details'])); } // is photos array nested or not if(array_key_exists("URL", $listing["Photos"]["Photo"])) { $photos = $listing["Photos"]; } else { $photos = $listing["Photos"]["Photo"]; } // exclude the no_image_available.jpg $photos_new = array(); if(count($photos) > 0) { foreach($photos as $photo) { if($photo["URL"]["value"] != $wp_plugin_aem_params['AEM_PLUGIN_URL']."/images/no_image_available.jpg") { $photos_new[] = $photo; } } } if(count($photos_new) > 0) { $photos = $photos_new; } #echo "
"; print_r($listing); echo "
"; } else { // set & parse the xml $xml_query_url = "property?mlsid=".$mlsid; $xml_url = $wp_plugin_aem_params['plugin_aem_option_xml_parser'].urlencode($xml_query_url.'&apikey='.$wp_plugin_aem_params['plugin_aem_option_api_key']); #echo '
'.$xml_url.''; // open the xml url if ($f = @fopen($xml_url, 'r')) { $xml = ''; while (!feof($f)) { $xml .= fgets($f, 4096); } fclose($f); $arr = xml2array($xml); //print_r($arr); if (sizeof($arr) == 1 && $arr["Listing"]){ if (array_key_exists("MLS", $arr["Listing"])) { $listing = $arr["Listing"]; } else { $listing = $arr["Listing"]; } } } // check listing exists/found if(count($listing) > 0) { if(count($arr["Listing"]["Photos"]["Photo"]) > 0) { // is photos array nested or not if(array_key_exists("URL", $arr["Listing"]["Photos"]["Photo"])) { $photos = $arr["Listing"]["Photos"]; } else { $photos = $arr["Listing"]["Photos"]["Photo"]; } } } } $_SERVER_HTTP_REFERER = $_SERVER['HTTP_REFERER']; ?>

« Return to Property Results

« Return to Search Results

0) { // check listing exists/found ?>

- $



Beds, Baths
Status:
MLS Listing#:
Sold Price: $
 

0 && $photos[0]["URL"]["value"] != $wp_plugin_aem_params['AEM_PLUGIN_URL']."/images/no_image_available.jpg") { ?>
 
1) { ?>

Photos

1) { ?>
" title="" alt="" id="main_img"/>
1) { ?>
" style="text-decoration:none;"> " title="" alt="" onclick='changeImage("");' />
 
 

Location

Loading Map...
" target="_blank" style="text-decoration:none; font-size:11px;">View Larger Map
 
 
This listing courtesy of ,
 
Property Not Found
AgentEasy Properties Plugin API Key is not set.