manager->get_setting( 'academic_theme_options[loader_enable]' )->value(); } /** * Check if breadcrumb is enabled. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_is_breadcrumb_enable( $control ) { return $control->manager->get_setting( 'academic_theme_options[breadcrumb_enable]' )->value(); } /** * Check if pagination is enabled. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_is_pagination_enable( $control ) { return $control->manager->get_setting( 'academic_theme_options[pagination_enable]' )->value(); } /** * Check if slider is enabled. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_is_slider_active( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[slider_enable]' )->value() ) return true; return false; } /** * Check if slider call to action is enable. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_slider_call_to_action( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[slider_enable]' )->value() && true == $control->manager->get_setting( 'academic_theme_options[slider_call_to_action]' )->value() ) return true; return false; } /** * Check if about is enabled. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_is_about_active( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[about_section_enable]' )->value() ) return true; return false; } /** * Check if category blog one is enable. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_category_blog_one_active( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[category_blog_one_enable]' )->value() ) return true; return false; } /** * Check if category blog one type is multiple category. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_category_blog_one_multiple_category( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[category_blog_one_enable]' )->value() && 'multiple-category' == $control->manager->get_setting( 'academic_theme_options[category_blog_one_type]' )->value() ) return true; return false; } /** * Check if category blog two is enable. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_category_blog_two_active( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[category_blog_two_enable]' )->value() ) return true; return false; } /** * Check if category blog two type is multiple category. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_category_blog_two_multiple_category( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[category_blog_two_enable]' )->value() && 'multiple-category' == $control->manager->get_setting( 'academic_theme_options[category_blog_two_type]' )->value() ) return true; return false; } /** * Check if category blog three is enable. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_category_blog_three_active( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[category_blog_three_enable]' )->value() ) return true; return false; } /** * Check if category blog three type is sub category. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_category_blog_three_sub_category( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[category_blog_three_enable]' )->value() && 'sub-category' == $control->manager->get_setting( 'academic_theme_options[category_blog_three_type]' )->value() ) return true; return false; } /** * Check if partner is enable. * * @since Academic 0.3 * @param WP_Customize_Control $control WP_Customize_Control instance. * @return bool Whether the control is active to the current preview. */ function academic_partner_active( $control ) { if ( 'disabled' != $control->manager->get_setting( 'academic_theme_options[partner_enable]' )->value() ) return true; return false; }