<?php
/**
 * Shop Box Style Four Template
 *
 * @package unbound
 */
?>

<!-- radiantthemes-shop-box style-four -->
<div <?php post_class( 'radiantthemes-shop-box matchHeight style-four' ); ?>>
    <div class="holder">
        <?php if ( $product->is_on_sale() ) { ?>
            <?php echo apply_filters( 'woocommerce_sale_flash', '<span class="onsale">' . esc_html__( 'Sale!', 'unbound' ) . '</span>', $post, $product ); ?>
        <?php } ?>
        <div class="pic">
            <img src="<?php echo get_parent_theme_file_uri( '/images/blank/Blank-Image-100x123.png' ); ?>" alt="<?php echo esc_attr__( 'Blank Image', 'unbound' ) ?>" width="100" height="123">
            <div class="product-image" style="background-image:url(<?php the_post_thumbnail_url('large');?>)"></div>
            <?php
            /**
    		 * Woocommerce Before Shop Loop Item Title hook.
    		 * woocommerce_before_shop_loop_item_title hook.
    		 *
    		 * @hooked woocommerce_show_product_loop_sale_flash - 10
    		 * @hooked woocommerce_template_loop_product_thumbnail - 10
    		 */
    		//do_action( 'woocommerce_before_shop_loop_item_title' );
    		?>
    		<div class="primary-info">
                <?php
    			/**
    			 * Woocommerce Before Shop Loop Item hook.
    			 * woocommerce_before_shop_loop_item hook.
    			 *
    			 * @hooked woocommerce_template_loop_product_link_open - 10
    			 */
    			do_action( 'woocommerce_before_shop_loop_item' );
    			?>
                <?php
    			/**
    			 * Woocommerce Shop Loop Item Title hook.
    			 * woocommerce_shop_loop_item_title hook.
    			 *
    			 * @hooked woocommerce_template_loop_product_title - 10
    			 */
    			do_action( 'woocommerce_shop_loop_item_title' );
    			?>
    			</a>
    			<ul class="product-category">
    			    <?php
        			$terms = get_the_terms( get_the_id(), 'product_cat' );
                    foreach ( $terms as $term ) {
                    $product_cat_name = $term->name;
                    $term_link = get_term_link( $term, 'product_cat' );
                    ?>
                    <li><a href="<?php echo esc_url( $term_link );?>"><?php echo esc_html( $product_cat_name );?></a></li>
                    <?php } ?>
    			</ul>
            </div>
    		<div class="action-buttons">
    	        <?php
    			/**
    			 * Woocommerce After Shop Loop Item hook.
    			 * woocommerce_after_shop_loop_item hook.
    			 *
    			 * @hooked woocommerce_template_loop_product_link_close - 5
    			 * @hooked woocommerce_template_loop_add_to_cart - 10
    			 */
    			do_action( 'woocommerce_after_shop_loop_item' );
    			?>
    		</div>
    		<div class="secondary-info">
    		    <?php
    			/**
    			 * Woocommerce After Shop Loop Item Title hook.
    			 * woocommerce_after_shop_loop_item_title hook.
    			 *
    			 * @hooked woocommerce_template_loop_rating - 5
    			 * @hooked woocommerce_template_loop_price - 10
    			 */
    			do_action( 'woocommerce_after_shop_loop_item_title' );
    			?>
    		</div>
		</div>
    </div>
</div>
<!-- radiantthemes-shop-box style-four -->
