get_image_id(); $full_size_image = wp_get_attachment_image_src( $post_thumbnail_id, 'full' ); $image_title = get_post_field( 'post_excerpt', $post_thumbnail_id ); if(!empty($image_title)) { $light_title = $image_title; } else { $light_title = get_the_title($post_thumbnail_id); } $wrapper_classes = apply_filters( 'woocommerce_single_product_image_gallery_classes', array( 'woocommerce-product-gallery', 'woocommerce-product-gallery--' . ( $product->get_image_id() ? 'with-images' : 'without-images' ), 'woocommerce-product-gallery--columns-' . absint( $columns ), 'images', 'kad-light-gallery', ) ); if ( version_compare( WC_VERSION, '3.0', '>' ) ) { if(isset($ascend['product_gallery_slider']) && 1 == $ascend['product_gallery_slider']) { $galleryslider = 'woo_product_slider_enabled'; $galslider = true; } else { $galleryslider = 'woo_product_slider_disabled'; $galslider = false; } if(isset($ascend['product_gallery_zoom']) && 1 == $ascend['product_gallery_zoom']) { $galleryzoom = 'woo_product_zoom_enabled'; $galzoom = true; } else { $galleryzoom= 'woo_product_zoom_disabled'; $galzoom = false; } } else { $galleryslider = 'woo_product_slider_disabled'; $galslider = false; $galleryzoom = 'woo_product_zoom_disabled'; $galzoom = false; } if(isset($ascend['product_simg_resize']) && 0 == $ascend['product_simg_resize']) { $presizeimage = 0; } else { $presizeimage = 1; if(isset($ascend['shop_img_ratio'])) { $img_ratio = $ascend['shop_img_ratio']; } else { $img_ratio = 'square'; } if(ascend_display_sidebar()) { $productimgwidth = 360; } else { $productimgwidth = 460; } $image_crop = true; if($img_ratio == 'portrait') { $tempproductimgheight = $productimgwidth * 1.35; $productimgheight = floor($tempproductimgheight); } else if($img_ratio == 'landscape') { $tempproductimgheight = $productimgwidth / 1.35; $productimgheight = floor($tempproductimgheight); } else if($img_ratio == 'widelandscape') { $tempproductimgheight = $productimgwidth / 2; $productimgheight = floor($tempproductimgheight); } else if($img_ratio == 'softcrop') { $productimgheight = null; $image_crop = false; } else { $productimgheight = $productimgwidth; } $productimgwidth = apply_filters('ascend_product_single_image_width', $productimgwidth); $productimgheight = apply_filters('ascend_product_single_image_height', $productimgheight); } ?>
'; } if(! $galslider) { echo '
'; } do_action( 'woocommerce_product_thumbnails' ); if(! $galslider) { echo '
'; } ?>