version, $version, ">=" ) ) { $attachment_ids = $product->get_gallery_image_ids(); }else{ $attachment_ids = $product->get_gallery_attachment_ids(); } $attachment_count = count( $attachment_ids); $gallery = $attachment_count > 0 ? '[product-gallery]' : ''; $image_link = wp_get_attachment_url( get_post_thumbnail_id() ); $props = wc_get_product_attachment_props( get_post_thumbnail_id(), $post ); $image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ), array( 'title' => $props['title'], 'alt' => $props['alt'], ) ); $fullimage = get_the_post_thumbnail( $post->ID, 'full', array( 'title' => $props['title'], 'alt' => $props['alt'], ) ); // wpgis FOR SLIDER vertical-img-right $html = '
'; $html .= sprintf( '
%s%s
', $fullimage, $image, $image_link ); foreach( $attachment_ids as $attachment_id ) { $imgfull_src = wp_get_attachment_image_src( $attachment_id,'full'); $image_src = wp_get_attachment_image_src( $attachment_id,'shop_single'); $html .= '
'; } $html .= '
'; echo apply_filters( 'woocommerce_single_product_image_html', $html, $post->ID ); } else { echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '%s', wc_placeholder_img_src(), __( 'Placeholder', 'woocommerce' ) ), $post->ID ); } do_action( 'woocommerce_product_thumbnails' ); ?>