<?php
/**
 * JetWooBuilder Categories Grid widget loop item thumbnail template.
 *
 * This template can be overridden by copying it to yourtheme/jet-woo-builder/widgets/global/categories-grid/item-thumn.php.
 */

$thumbnail = jet_woo_builder_template_functions()->get_category_thumbnail( $category->term_id, $this->get_attr( 'thumb_size' ) );

if ( ! $thumbnail ) {
	return;
}
?>

<div class="jet-woo-category-thumbnail">
	<a href="<?php echo esc_url( get_category_link( $category->term_id ) ); ?>" <?php echo esc_attr( $target_attr ); ?> rel="bookmark">
		<?php echo wp_kses_post( $thumbnail ); ?>
	</a>
	<div class="jet-woo-category-img-overlay"></div>
	<div class="jet-woo-category-img-overlay__hover"></div>
</div>