get_gallery_image_ids();
$attachment_count = count( $attachment_ids );
$columns = apply_filters( 'woocommerce_product_thumbnails_columns', 3 );
$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',
) );
?>
0 ) :
$large_thumbnail_size = apply_filters( 'single_product_large_thumbnail_size', 'shop_single' );
$small_thumbnail_size = apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' );
if ( VamtamTemplates::early_cube_load() ) {
wp_enqueue_script( 'cubeportfolio' );
}
wp_enqueue_style( 'cubeportfolio' );
$slider_options = array(
'layoutMode' => 'slider',
'drag' => true,
'auto' => false,
'autoTimeout' => 5000,
'autoPauseOnHover' => true,
'showNavigation' => true,
'showPagination' => false,
'rewindNav' => true,
'gridAdjustment' => 'responsive',
'mediaQueries' => array(
array(
'width' => 1,
'cols' => 1,
),
),
'gapHorizontal' => 0,
'gapVertical' => 0,
'caption' => '',
'displayType' => 'default',
'plugins' => array(
'slider' => array(
'pagination' => '#product-gallery-pager-' . intval( $post->ID ),
'paginationClass' => 'cbp-pagination-active',
),
),
);
if ( has_post_thumbnail() ) {
$main_image_id = get_post_thumbnail_id();
array_unshift( $attachment_ids, $main_image_id );
}
?>
'wp-post-image',
'title' => $image_title,
'data-caption' => get_post_field( 'post_excerpt', $aid ),
'data-src' => $full_size_image[0],
'data-large_image' => $full_size_image[0],
'data-large_image_width' => $full_size_image[1],
'data-large_image_height' => $full_size_image[2],
);
if ( has_post_thumbnail() ) {
$html = '
';
} else {
$html = '
';
$html .= sprintf( '

', esc_url( wc_placeholder_img_src() ), esc_html__( 'Awaiting product image', 'vamtam-consulting' ) );
$html .= '
';
}
echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', $html, get_post_thumbnail_id( $post->ID ) ); // xss ok
?>
';
$html .= sprintf( '

', esc_url( wc_placeholder_img_src() ), esc_html__( 'Awaiting product image', 'vamtam-consulting' ) );
$html .= '
';
echo $html;
endif;
?>
0 ) : ?>
', $image_class, $image_title, $image ), $attachment_id, $post->ID, $image_class ) );
$loop++;
}
}
?>