added filters on zoom / flexslider / photoswipe enabling
This commit is contained in:
parent
58fa8542b6
commit
45d13ff1b2
|
@ -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' :
|
||||
|
|
Loading…
Reference in New Issue