added filters on zoom / flexslider / photoswipe enabling

This commit is contained in:
pixedelic 2017-05-09 08:44:20 +02:00
parent 58fa8542b6
commit 45d13ff1b2
1 changed files with 4 additions and 4 deletions

View File

@ -474,16 +474,16 @@ class WC_Frontend_Scripts {
'animationSpeed' => 500,
'animationLoop' => false, // Breaks photoswipe pagination if true.
) ),
'zoom_enabled' => get_theme_support( 'wc-product-gallery-zoom' ),
'photoswipe_enabled' => get_theme_support( 'wc-product-gallery-lightbox' ),
'photoswipe_options' => apply_filters( 'woocommerce_single_product_photoswipe_options', array(
'zoom_enabled' => apply_filters( 'woocommerce_single_product_zoom_enabled', get_theme_support( 'wc-product-gallery-zoom' ) ),
'photoswipe_enabled' => apply_filters( 'woocommerce_single_product_photoswipe_enabled', get_theme_support( 'wc-product-gallery-lightbox' ) ),
'photoswipe_options' => apply_filters( 'woocommerce_single_product_photoswipe_options', array(
'shareEl' => false,
'closeOnScroll' => false,
'history' => false,
'hideAnimationDuration' => 0,
'showAnimationDuration' => 0
) ),
'flexslider_enabled' => get_theme_support( 'wc-product-gallery-slider' ),
'flexslider_enabled' => apply_filters( 'woocommerce_single_product_flexslider_enabled', get_theme_support( 'wc-product-gallery-slider' ) ),
);
break;
case 'wc-checkout' :