File: /home/slfopp7cb1df/public_html/home/wp-content/themes/nanosoft/tmpl/post/content-featured.php
<?php
defined( 'ABSPATH' ) or die();
$post_permalink = get_permalink();
$post_target = '_self';
$post_image = nanosoft_get_image_resized( array(
'post_id' => get_the_ID(),
'size' => nanosoft_option( 'blog__archive__imagesize' ),
'crop' => nanosoft_option( 'blog__archive__imagesizeCrop' ) == 'crop'
) );
if ( get_post_format() == 'link' ) {
$post_permalink = get_post_meta( get_the_ID(), '_post_link', true );
$post_target = get_post_meta( get_the_ID(), '_post_link_target', true );
}
?>
<?php if ( has_post_thumbnail() ): ?>
<div class="post-image">
<a class="featured-image" href="<?php echo esc_url( $post_permalink ) ?>" target="<?php echo esc_attr( $post_target ) ?>">
<?php echo wp_kses_post( $post_image['thumbnail'] ); ?>
</a>
</div>
<?php endif ?>