<?php get_header(); ?> <?php $et_full_post = 'on' == get_post_meta(get_the_ID(), '_et_full_post', true) ? true : false; $et_location_lat = get_post_meta(get_the_ID(), '_et_listing_lat', true); $et_location_lng = get_post_meta(get_the_ID(), '_et_listing_lng', true); $et_location_rating = '<div class="location-rating"></div>'; $et_rating = et_get_rating(); if (0 != $et_rating) { $et_location_rating = '<div class="location-rating"><span class="et-rating"><span style="' . sprintf('width: %dpx;', esc_attr($et_rating * 17)) . '"></span></span></div>'; } ?> <?php if ('' != $et_location_lat && '' != $et_location_lng) { ?> <div id="et-single-map"></div> <script type="text/javascript"> (function($){ var $et_single_map = $( '#et-single-map' ); $et_single_map.gmap3({ map:{ options:{ center : [<?php echo esc_html($et_location_lat); ?>
<div class="listing-image"> <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?> </div> <!-- .listing-image --> <div class="listing-text"> <h3><?php the_title(); ?> </h3> <p><?php echo wp_strip_all_tags(get_the_term_list(get_the_ID(), 'listing_type', '', ', ')); ?> </p> <?php if (($et_rating = et_get_rating()) && 0 != $et_rating) { ?> <span class="et-rating"><span style="<?php printf('width: %dpx;', esc_attr($et_rating * 17)); ?> "></span></span> <?php } ?> </div> <!-- .listing-text --> <a href="<?php the_permalink(); ?> " class="et-mobile-link"><?php esc_html_e('Read more', 'Explorable'); ?>