Hi All,
Just wondering if there's a way to display the featured image instead of Google Map, just like other posts and pages.
Thanks in advance!!
Regards,
A.
<?php if (get_theme_mod('photo_contact_enable_map', 1) == 1) : ?>
<div class="gk-map-contact entry-header">
<div class="gk-map static" data-latitude="<?php echo get_theme_mod('photo_contact_latitude','-34.397'); ?>" data-longitude="<?php echo get_theme_mod('photo_contact_longitude', '150.644'); ?>" data-ui="<?php if(get_theme_mod('photo_contact_enable_ui', 1) == 1) { echo 'yes'; } else { echo 'no'; } ?>" data-zoom="<?php echo get_theme_mod('photo_contact_map_zoom','8'); ?>"></div>
</div>
<?php endif; ?>
<?php $thumb_full = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');
$image_url = $thumb_full[0]; ?>
<header class="entry-header<?php if ( '' == get_the_post_thumbnail()) : ?> no-image<?php endif; ?>" <?php if ( has_post_thumbnail()) : ?> style="background-image: url('<?php echo $image_url ?>');"<?php endif; ?>>
<?php if ( has_post_thumbnail() && !post_password_required() ) : ?>
<?php do_action('photo_before_post_image'); ?>
<div class="entry-thumbnail">
<?php echo gk_post_thumbnail_caption(); ?>
</div>
<?php do_action('photo_after_post_image'); ?>
<?php endif; ?>
<?php if(is_sticky()) : ?>
<sup><i class="gk-icon-star"></i></sup>
<?php endif; ?>
</header>