<?php
/**
 * Featured Widget Content View file.
 *
 * @package    CodexShaper_Framework
 * @author     CodexShaper <info@codexshaper.com>
 * @license    https://www.gnu.org/licenses/gpl-2.0.html
 * @link       https://codexshaper.com
 * @since      1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
?>
<div class="csmf-featured-image-wrapper">
	<?php if ( get_post_thumbnail_id( $post_id ) ) : ?>
		<?php echo get_the_post_thumbnail( $post_id, $image_size, array( 'loading' => 'lazy' ) ); ?>
	<?php elseif ( $fallback_size_image ) : ?>
		<?php echo wp_kses_post( $fallback_size_image ); ?>
	<?php endif; ?>
</div>
