<?php if (has_post_thumbnail()) { ?> <div id="property-featured-image" class="clearfix only-for-print"> <?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_url($image_id); echo '<a href="' . $image_url . '" class="' . get_lightbox_plugin_class() . '" ' . generate_gallery_attribute() . '>'; echo '<img src="' . $image_url . '" alt="' . get_the_title() . '" />'; echo '</a>'; ?> </div> <?php } } elseif (has_post_thumbnail()) { ?> <div id="property-featured-image" class="clearfix"> <?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_url($image_id); echo '<a href="' . $image_url . '" class="' . get_lightbox_plugin_class() . '" ' . generate_gallery_attribute() . '>'; echo '<img src="' . $image_url . '" alt="' . get_the_title() . '" />'; echo '</a>'; ?> </div> <?php }
?> > <?php $image_id = get_post_thumbnail_id(); $full_image_url = wp_get_attachment_url($image_id); global $gallery_image_size; $featured_image = wp_get_attachment_image_src($image_id, $gallery_image_size); ?> <figure> <div class="media_container"> <a class="<?php echo get_lightbox_plugin_class(); ?> zoom" <?php echo generate_gallery_attribute(); ?> href="<?php echo $full_image_url; ?> " title="<?php the_title(); ?> "></a> <a class="link" href="<?php the_permalink(); ?> "></a> </div> <?php echo '<img class="img-border" src="' . $featured_image[0] . '" alt="' . get_the_title() . '">';