manager->get_setting( 'theme_options[featured_slider_status]' )->value() ) { return true; } else { return false; } } endif; if ( ! function_exists( 'bizroot_is_featured_slider_active_non_demo' ) ) : /** * Check if featured slider is active and non demo. * * @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 bizroot_is_featured_slider_active_non_demo( $control ) { if ( 'disabled' !== $control->manager->get_setting( 'theme_options[featured_slider_status]' )->value() && 'demo-slider' !== $control->manager->get_setting( 'theme_options[featured_slider_type]' )->value() ) { return true; } else { return false; } } endif; if ( ! function_exists( 'bizroot_is_featured_slider_active_non_demo_non_image' ) ) : /** * Check if featured slider is active and non demo and also non image * * @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 bizroot_is_featured_slider_active_non_demo_non_image( $control ) { if ( 'disabled' !== $control->manager->get_setting( 'theme_options[featured_slider_status]' )->value() && 'demo-slider' !== $control->manager->get_setting( 'theme_options[featured_slider_type]' )->value() && 'featured-image' !== $control->manager->get_setting( 'theme_options[featured_slider_type]' )->value() ) { return true; } else { return false; } } endif; if ( ! function_exists( 'bizroot_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 bizroot_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( 'bizroot_is_footer_contact_active' ) ) : /** * Check if footer contact 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 bizroot_is_footer_contact_active( $control ) { if ( $control->manager->get_setting( 'theme_options[show_footer_contact]' )->value() ) { return true; } else { return false; } } endif; if ( ! function_exists( 'bizroot_is_footer_contact_and_background_image_active' ) ) : /** * Check if footer contact and background image 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 bizroot_is_footer_contact_and_background_image_active( $control ) { if ( $control->manager->get_setting( 'theme_options[show_footer_contact]' )->value() && $control->manager->get_setting( 'theme_options[enable_footer_contact_background_image]' )->value() ) { return true; } else { return false; } } endif; if ( ! function_exists( 'bizroot_is_image_in_archive_active' ) ) : /** * Check if image in archive is active. * * @since 1.0 * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. */ function bizroot_is_image_in_archive_active( $control ) { if ( 'disable' !== $control->manager->get_setting( 'theme_options[archive_image]' )->value() ) { return true; } else { return false; } } endif; if ( ! function_exists( 'bizroot_is_image_in_single_active' ) ) : /** * Check if image in single is active. * * @since 1.0 * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. */ function bizroot_is_image_in_single_active( $control ) { if ( 'disable' !== $control->manager->get_setting( 'theme_options[single_image]' )->value() ) { return true; } else { return false; } } endif;