<?php /** * Displays the post entry image post format. * * @package Kapee Woocommerce theme */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } if ( !kapee_get_option('single-post-thumbnail', 1) ) return; // Get post image $image = kapee_get_post_image('large'); if(! empty( $image ) ){?> <div class="post-thumbnail"> <?php echo wp_kses_post($image);?> </div> <?php }else{ if( has_post_thumbnail() ){?> <div class="post-thumbnail"> <?php the_post_thumbnail('large');?> </div> <?php } }