> 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 '
Photos
1) { ?>Location