get_gallery_attachment_ids(); $thumb_count = count($attachment_ids)+1; // Disable thumbnails if there is only one extra image. if($thumb_count == 1) return; $rtl = 'false'; if(is_rtl()) $rtl = 'true'; $thumb_cell_align = "left"; if ( $attachment_ids ) { $loop = 0; $columns = apply_filters( 'woocommerce_product_thumbnails_columns', 4 ); $gallery_class = array('product-thumbnails','thumbnails'); if($thumb_count <= 5){ $gallery_class[] = 'slider-no-arrows'; } $gallery_class[] = 'slider row row-small row-slider slider-nav-small small-columns-4'; ?>
ID, apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) ) ?>
$image_title, 'alt' => $image_title ) ); echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', sprintf( '
%s
', $image_class, $image_caption, $image ), $attachment_id, $post->ID, $image_class ); $loop++; } ?>