'; if ( '' != get_the_post_thumbnail() ) : $productClass = ''; $html .= '
'; $html .= get_the_post_thumbnail($post->ID, 'product'); $html .= '
'; endif; $html .= '
'; $html .= '

' . esc_html(get_the_title()) . '

'; if ( sheeba_lite_postmeta( '_sale_price' ) ) : $html .= ''.esc_html__( 'Sale!', 'sheeba-lite').''; endif; $html .= $product->get_rating_html(); $product_ID = new WC_Product( get_the_ID() ); if ( $price_html = $product_ID->get_price_html() ) : $html .= ''.$price_html.''; endif; $html .= apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '%s', esc_url( $product->add_to_cart_url() ), esc_attr( $product->id ), esc_attr( $product->get_sku() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', esc_attr( $product->product_type ), esc_html( $product->add_to_cart_text() ) ), $product ); $html .= '
'; $html .= ''; echo $html; } add_action( 'sheeba_lite_product_format', 'sheeba_lite_product_format_function' ); } ?>