ID, 'awa_product_options');
$label_new = isset($label) && !empty($label) ? $label[0]['awa_product_new'] : false;
$gallery = $product->get_gallery_image_ids();
$label = '';
if ( $product->is_on_sale() ) {
$label = apply_filters( 'woocommerce_sale_flash', '' . esc_html__( 'Sale', 'awa' ) . '', $post, $product );
}elseif(isset($label_new) && $label_new && !$product->is_on_sale()){
$label = ''. esc_html__( 'New', 'awa' ) . '';
} ?>
0 ) {
if ( count( $gallery ) > 0 ) { ?>
', $image_url, $image_url ), $post->ID );
} ?>
', $image_url, $image_url ), $post->ID );
} ?>
', $props['url'], get_the_post_thumbnail() ), $post->ID );
}
}
} else {
echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '

', wc_placeholder_img_src(), esc_html__( 'Placeholder', 'awa' ) ), $post->ID );
} ?>
is_on_sale() ) : ?>
' . esc_html__( 'Sale', 'awa' ) . '', $post, $product ); ?>