screen->is_product()) { return $classes; } $product_view_type = blocksy_get_product_view_type(); if ( $product_view_type === 'default-gallery' || $product_view_type === 'stacked-gallery' ) { if (blocksy_get_theme_mod('has_product_sticky_gallery', 'no') === 'yes') { $classes[] = 'sticky-gallery'; } if (blocksy_get_theme_mod('has_product_sticky_summary', 'no') === 'yes') { $classes[] = 'sticky-summary'; } } return $classes; } function blocksy_get_product_view_type() { /** * Filters the view type used for the main single product gallery layout. * * @since 2.0.1 * * @param string $view_type Product gallery view type. Default 'default-gallery'. */ return apply_filters( 'blocksy:woocommerce:product-single:view-type', 'default-gallery' ); }