manager->get_setting( 'theme_options[featured_slider_status]' )->value() ) { return true; } else { return false; } } endif; if ( ! function_exists( 'blog_express_is_featured_page_slider_active' ) ) : /** * Check if featured page slider is active. * * @since 1.0.0 * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. */ function blog_express_is_featured_page_slider_active( $control ) { if ( 'featured-page' === $control->manager->get_setting( 'theme_options[featured_slider_type]' )->value() && 'disabled' !== $control->manager->get_setting( 'theme_options[featured_slider_status]' )->value() ) { return true; } else { return false; } } endif; if ( ! function_exists( 'blog_express_is_featured_category_slider_active' ) ) : /** * Check if featured category slider is active. * * @since 1.0.0 * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. */ function blog_express_is_featured_category_slider_active( $control ) { if ( 'featured-category' === $control->manager->get_setting( 'theme_options[featured_slider_type]' )->value() && 'disabled' !== $control->manager->get_setting( 'theme_options[featured_slider_status]' )->value() ) { return true; } else { return false; } } endif; if ( ! function_exists( 'blog_express_is_featured_carousel_mode_active' ) ) : /** * Check if featured slider is active. * * @since 1.0.0 * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. */ function blog_express_is_featured_carousel_mode_active( $control ) { if ( $control->manager->get_setting( 'theme_options[featured_slider_enable_carousel]' )->value() ) { return true; } else { return false; } } endif;