ID ); $full_size_image = wp_get_attachment_image_src( $post_thumbnail_id, 'full' ); $thumbnail_post = get_post( $post_thumbnail_id ); $image_title = $thumbnail_post->post_content; $placeholder = has_post_thumbnail() ? 'with-images' : 'without-images'; $wrapper_classes = apply_filters( 'woocommerce_single_product_image_gallery_classes', array( 'woocommerce-product-gallery', 'woocommerce-product-gallery--' . $placeholder, 'woocommerce-product-gallery--columns-' . absint( $columns ), 'images', ) ); $slider_classes = array('product-gallery-slider','slider','slider-nav-small','mb-0'); $rtl = 'false'; if(is_rtl()) $rtl = 'true'; // Image Zoom if(get_theme_mod('product_zoom', 0)){ $slider_classes[] = 'has-image-zoom'; } ?>
get_gallery_image_ids(); $thumb_count = count($attachment_ids)+1; $rtl = 'false'; if(is_rtl()) $rtl = 'true'; $thumb_cell_align = "left"; if ( $attachment_ids ) { $loop = 0; $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'; ?>
$image_title, 'alt' => $image_title ) ); echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', sprintf( '', $image_class, $image_caption, $image ), $attachment_id, $post->ID, $image_class ); $loop++; } ?>