add column data attr to the single product image gallery wrapper

This commit is contained in:
Maximus80 2017-01-23 12:36:31 +01:00
parent afc3d3a26a
commit be3a77be32
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ $thumbnail_post = get_post( $post_thumbnail_id );
$image_title = $thumbnail_post->post_content;
$placeholder = has_post_thumbnail() ? 'with-images' : 'without-images';
?>
<div class="<?php echo apply_filters( 'woocommerce_single_product_image_gallery_classes', 'woocommerce-product-gallery woocommerce-product-gallery--' . $placeholder . ' woocommerce-product-gallery--columns-' . sanitize_html_class( $columns ) . ' columns-' . sanitize_html_class( $columns ) . ' images' ); ?>">
<div class="<?php echo apply_filters( 'woocommerce_single_product_image_gallery_classes', 'woocommerce-product-gallery woocommerce-product-gallery--' . $placeholder . ' woocommerce-product-gallery--columns-' . sanitize_html_class( $columns ) . ' columns-' . sanitize_html_class( $columns ) . ' images' ); ?>" data-columns="<?php echo sanitize_html_class( $columns ); ?>">
<figure class="woocommerce-product-gallery__wrapper">
<?php
$attributes = array(