manager->get_setting('blogcorner_options[enable_always_dark_mode]')->value() === false) { return true; } else { return false; } } endif; if (!function_exists('blogcorner_is_show_preloader')) : /** * Check if top bar is enabled * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. * @since 1.0.0 * */ function blogcorner_is_show_preloader($control) { if ($control->manager->get_setting('blogcorner_options[show_preloader]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('blogcorner_shop_select_product_from')) : /** * Check if author Posts is active. * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. * @since 1.0.0 * */ function blogcorner_shop_select_product_from($control) { if ($control->manager->get_setting('blogcorner_options[shop_select_product_from]')->value() === 'custom') { return true; } else { return false; } } endif; if (!function_exists('blogcorner_is_progressbar_enabled')) : /** * Check if progressbar is enabled * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. * @since 1.0.0 * */ function blogcorner_is_progressbar_enabled($control) { if ($control->manager->get_setting('blogcorner_options[show_progressbar]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('blogcorner_is_related_posts_enabled')) : /** * Check if related Posts is active. * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. * @since 1.0.0 * */ function blogcorner_is_related_posts_enabled($control) { if ($control->manager->get_setting('blogcorner_options[show_related_posts]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('blogcorner_is_author_posts_enabled')) : /** * Check if author Posts is active. * * @param WP_Customize_Control $control WP_Customize_Control instance. * * @return bool Whether the control is active to the current preview. * @since 1.0.0 * */ function blogcorner_is_author_posts_enabled($control) { if ($control->manager->get_setting('blogcorner_options[show_author_posts]')->value() === true) { return true; } else { return false; } } endif;