get_image_id(); $attachment_ids = $product->get_gallery_image_ids(); if ( $post_thumbnail_id ) { $html = apply_filters( 'woocommerce_single_product_image_thumbnail_html', alpha_wc_get_gallery_image_html( $post_thumbnail_id, true, true ), $post_thumbnail_id ); } else { $html = ''; } if ( $attachment_ids && $post_thumbnail_id ) { foreach ( $attachment_ids as $attachment_id ) { $html .= apply_filters( 'woocommerce_single_product_image_thumbnail_html', alpha_wc_get_gallery_image_html( $attachment_id, true ), $attachment_id ); } } $html = '
' . $html . '
'; echo alpha_escaped( $html ); } } } /** * wc_show_sp_sticky_thumbs_thumbnails * * Render single product sticky thumbnails. * * @since 1.0 */ if ( ! function_exists( 'alpha_wc_show_sp_sticky_thumbs_thumbnails' ) ) { function alpha_wc_show_sp_sticky_thumbs_thumbnails() { if ( 'sticky-thumbs' == alpha_get_single_product_layout() ) { wp_enqueue_script( 'alpha-sticky-lib' ); ?>