manager->get_setting('avenews_options[enable_top_bar]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_is_enable_jumbotron_cat_meta')) : /** * 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 avenews_is_enable_jumbotron_cat_meta($control) { if ($control->manager->get_setting('avenews_options[enable_jumbotron_cat_meta]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_is_enable_read_more_category_meta')) : /** * 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 avenews_is_enable_read_more_category_meta($control) { if ($control->manager->get_setting('avenews_options[enable_read_more_category_meta]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_is_enable_banner_cat_meta')) : /** * 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 avenews_is_enable_banner_cat_meta($control) { if ($control->manager->get_setting('avenews_options[enable_banner_cat_meta]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_is_todays_date_enabled')) : /** * Check if Todays Date 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 avenews_is_todays_date_enabled($control) { if ($control->manager->get_setting('avenews_options[enable_topbar_date]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_is_always_dark_mode')) : /** * 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 avenews_is_always_dark_mode($control) { if ($control->manager->get_setting('avenews_options[enable_always_dark_mode]')->value() === false) { return true; } else { return false; } } endif; if (!function_exists('avenews_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 avenews_is_show_preloader($control) { if ($control->manager->get_setting('avenews_options[show_preloader]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_is_dark_mode_enabled')) : /** * Check if Dark mode 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 avenews_is_dark_mode_enabled($control) { if ($control->manager->get_setting('avenews_options[enable_dark_mode]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_main_header_section_layout')) : /** * 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 avenews_main_header_section_layout($control) { if ($control->manager->get_setting('avenews_options[main_header_section_layout]')->value() === 'layout-1') { return true; } else { return false; } } endif; if (!function_exists('avenews_single_post_layout_callback')) : /** * 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 avenews_single_post_layout_callback($control) { if (($control->manager->get_setting('avenews_options[avenews_single_post_layout]')->value() === 'layout-3')|| ($control->manager->get_setting('avenews_options[avenews_single_post_layout]')->value() === 'layout-2')) { return true; } else { return false; } } endif; if (!function_exists('avenews_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 avenews_shop_select_product_from($control) { if ($control->manager->get_setting('avenews_options[shop_select_product_from]')->value() === 'custom') { return true; } else { return false; } } endif; if (!function_exists('avenews_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 avenews_is_progressbar_enabled($control) { if ($control->manager->get_setting('avenews_options[show_progressbar]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_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 avenews_is_related_posts_enabled($control) { if ($control->manager->get_setting('avenews_options[show_related_posts]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_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 avenews_is_author_posts_enabled($control) { if ($control->manager->get_setting('avenews_options[show_author_posts]')->value() === true) { return true; } else { return false; } } endif; if (!function_exists('avenews_archive_poost_meta_1')) : /** * 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 avenews_archive_poost_meta_1($control) { if ($control->manager->get_setting('avenews_options[archive_style]')->value() === 'archive_style_1') { return true; } else { return false; } } endif; if (!function_exists('avenews_archive_poost_meta_2')) : /** * 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 avenews_archive_poost_meta_2($control) { if ($control->manager->get_setting('avenews_options[archive_style]')->value() === 'archive_style_2') { return true; } else { return false; } } endif; if (!function_exists('avenews_archive_poost_meta_3')) : /** * 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 avenews_archive_poost_meta_3($control) { if ($control->manager->get_setting('avenews_options[archive_style]')->value() === 'archive_style_3') { return true; } else { return false; } } endif; if (!function_exists('avenews_archive_poost_meta_4')) : /** * 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 avenews_archive_poost_meta_4($control) { if ($control->manager->get_setting('avenews_options[archive_style]')->value() === 'archive_style_4') { return true; } else { return false; } } endif;