global $post_meta_data;
$city = houzez_taxonomy_simple('property_city');
$city_url = "http://krieta.com/city/".$city;
$google_map_address = get_post_meta( get_the_ID(), 'fave_property_map_address', true );
$google_map_address_url = "http://maps.google.com/?q=".$google_map_address;
if( !empty($city) ) {
?>
<div id="city" class="detail-city detail-block target-block">
<div class="detail-title">
<h2 class="title-left"><?php esc_html_e( 'About', 'houzez' ); ?> <strong> <a target="_blank" href="https://wordpress.stackexchange.com/questions/275607/<?php echo esc_url($city_url); ?>"><?php esc_html_e($city ); ?></a></strong> <?php esc_html_e( 'City', 'houzez' ); ?></h2>
<?php if( !empty($google_map_address) ) { ?>
<div class="title-right">
<a target="_blank" href="<?php echo esc_url($google_map_address_url); ?>"><?php esc_html_e( 'Open on Google Maps', 'houzez' ); ?> <i class="fa fa-map-marker"></i></a>
</div>
<?php } ?>
</div>
<div>
<?php
$terms = get_the_terms( $post->ID , 'property_city' );
foreach ( $terms as $term ) {
$term_link = get_term_link( $term, 'property_city' );
$name = $term->name;
if( is_wp_error( $term_link ) )
continue;
echo term_description( $term, 'property_city' );
}
?>
</div>
<div>
<ul class="list-four-col">
<?php
if( !empty( $city ) ) {
echo '<strong>'.esc_html__('Property in', 'houzez').' '.esc_attr( $city ).' :</strong>';
}
if( !empty( $city ) ) {
echo '<li><a href="' . esc_url( $term_link ) . '">' .esc_html__($term->count).' '.esc_html__('Properties Listed', 'houzez'). '</a></li>';
}
?>
</ul>
</div>
<div><?php echo do_shortcode( '[awesome-weather location=".esc_attr( $city ), IN" forecast_days="5" hide_attribution="1" show_icons="1" text_color="#fff" use_user_location="0" background="http://images.all-free-download.com/images/graphicthumb/crystal_water_drops_with_blurred_background_art_545094.jpg" units="C" locale="en"]' ); ?></div>
<?php } ?>
</div>