$property_id = get_post_meta(get_the_ID(), 'imic_property_site_id', true); $property_area_location = wp_get_object_terms(get_the_ID(), 'city-type'); $sl = ''; $total_area_location = count($property_area_location); $num = 1; foreach ($property_area_location as $sa) { $conc = $num != $total_area_location ? '->' : ''; $sl .= $sa->name . $conc; $num++; } // We get Longitude & Latitude By Property Address $property_longitude_and_latitude = get_post_meta(get_the_ID(), 'imic_lat_long', true); if (!empty($property_longitude_and_latitude)) { $property_longitude_and_latitude = explode(',', $property_longitude_and_latitude); } else { $property_longitude_and_latitude = getLongitudeLatitudeByAddress($property_address); } global $imic_options; $currency_symbol = imic_get_currency_symbol($imic_options['currency-select']); $src = wp_get_attachment_image_src(get_post_thumbnail_id(), '150-100-size'); if (!empty($src)) { $image_container = '<span class ="property_image_map">' . $src[0] . '</span>'; } else { $image_container = ''; } if (!empty($contract)) { $term = get_term($contract[0], 'property-contract-type'); $property_term_type = $term->name; } if ($design_type == 'listing') { ?>
<?php /* Contact Page Details =================================*/ $address = ''; $address_for_map = get_post_meta(get_the_ID(), 'imic_our_location_address', true); if (have_posts()) { while (have_posts()) { the_post(); the_content(); } } $property_longitude_and_latitude = get_post_meta(get_the_ID(), 'imic_contact_lat_long', true); if (!empty($property_longitude_and_latitude)) { $property_longitude_and_latitude = explode(',', $property_longitude_and_latitude); } else { $property_longitude_and_latitude = getLongitudeLatitudeByAddress($address_for_map); } echo '<div id="contact' . get_the_ID() . '" class ="property_container" style="display:none;"><span class ="property_address">' . $address_for_map . '</span><span class ="latitude">' . $property_longitude_and_latitude[0] . '</span><span class ="longitude">' . $property_longitude_and_latitude[1] . '</span><span class ="property_image_url">' . IMIC_THEME_PATH . '/images/map-marker.png</span></div>'; ?> </div> <?php if ($imic_options['switch_sharing'] == 1 && $imic_options['share_post_types']['2'] == '1') { imic_share_buttons(); } ?> </div> </div> </div> </div> </div> </div>