manager->get_setting( 'business_center_theme_options[slider_enable]' )->value() ) return true; return false; } endif; if ( ! function_exists( 'business_center_is_slider_page_content_active' ) ) : /** * Check if slider content type page 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 business_center_is_slider_page_content_active( $control ) { if ( business_center_is_slider_active( $control ) && 'page' == $control->manager->get_setting( 'business_center_theme_options[slider_content_type]' )->value() ) return true; return false; } endif; if ( ! function_exists( 'business_center_is_testimonial_active' ) ) : /** * Check if testimonial 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 business_center_is_testimonial_active( $control ) { if ( 'static-frontpage' == $control->manager->get_setting( 'business_center_theme_options[testimonial_enable]' )->value() ) return true; return false; } endif; if ( ! function_exists( 'business_center_is_testimonial_content_active' ) ) : /** * Check if about content type page 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 business_center_is_testimonial_content_active( $control ) { if ( business_center_is_testimonial_active( $control ) && 'testimonial' == $control->manager->get_setting( 'business_center_theme_options[testimonial_content_type]' )->value() ) return true; return false; } endif; if ( ! function_exists( 'business_center_is_portfolio_active' ) ) : /** * Check if portfolio 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 business_center_is_portfolio_active( $control ) { if ( 'static-frontpage' == $control->manager->get_setting( 'business_center_theme_options[portfolio_enable]' )->value() ) return true; return false; } endif; if ( ! function_exists( 'business_center_is_portfolio_content_active' ) ) : /** * Check if about content type page 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 business_center_is_portfolio_category_active( $control ) { if ( business_center_is_portfolio_active( $control ) && 'portfolio-category' == $control->manager->get_setting( 'business_center_theme_options[portfolio_content_type]' )->value() ) return true; return false; } endif;