manager->get_setting( 'blite_theme_options[enable_slider]' )->value() ? true : false;; } endif; if ( ! function_exists( 'blite_hero_content_section_enable' ) ) : /** * Check if hero_content section enabled. * * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function blite_hero_content_section_enable( $control ) { return $control->manager->get_setting( 'blite_theme_options[enable_hero_content]' )->value() ? true : false;; } endif; if ( ! function_exists( 'blite_latest_blog_section_enable' ) ) : /** * Check if latest_blog section enabled. * * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function blite_latest_blog_section_enable( $control ) { return $control->manager->get_setting( 'blite_theme_options[enable_latest_blog]' )->value() ? true : false;; } endif; if ( ! function_exists( 'blite_blog_filter_category' ) ) : /** * Check if blog filter category enabled. * * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function blite_blog_filter_category( $control ) { return ( $control->manager->get_setting( 'blite_theme_options[enable_latest_blog]' )->value() && in_array( $control->manager->get_setting( 'blite_theme_options[filter_blog_posts]' )->value(), array( 'category', 'both' ) ) ); } endif;