selective_refresh ) ? 'postMessage' : 'refresh'; // Site Title. $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; /* ALL Theme Optons Settings */ // Top Bar Settings. require AWPBUSINESSPRESS_THEME_DIR . '/inc/customizer/theme-options/awpbusinesspress-top-bar-customizer.php'; // Menu Settings. require AWPBUSINESSPRESS_THEME_DIR . '/inc/customizer/theme-options/awpbusinesspress-menu-customizer.php'; // Footer Settings. require AWPBUSINESSPRESS_THEME_DIR . '/inc/customizer/theme-options/awpbusinesspress-footer-customizer.php'; // Excerpt Options. require AWPBUSINESSPRESS_THEME_DIR . '/inc/customizer/theme-options/awpbusinesspress-excerpt-customizer.php'; /* ALL Theme Optons Settings */ /* Typography Settings */ require AWPBUSINESSPRESS_THEME_DIR . '/inc/customizer/theme-options/awpbusinesspress-typography-customizer.php'; } add_action( 'customize_register', 'awpbusinesspress_customizer_theme_settings' ); add_action( 'customize_register', 'awpbusinesspress_recommended_plugin_section' ); //recommended plugin section function. function awpbusinesspress_recommended_plugin_section( $manager ) { // Register custom section types. $manager->register_section_type( 'awpbusinesspress_Customize_Recommended_Plugin_Section' ); // Register sections. $manager->add_section( new awpbusinesspress_Customize_Recommended_Plugin_Section( $manager, 'awpbusinesspress_upgrade_to_pro_option', array( 'title' => esc_html__( 'Ready for more?', 'awpbusinesspress' ), 'priority' => 500, 'plugin_text' => esc_html__( 'Upgrade To Pro', 'awpbusinesspress' ), 'plugin_url' => 'https://awplife.com/wordpress-themes/wpbusinesspress-premium/', ) ) ); } /* * Customizer Notifications */ require get_template_directory() . '/inc/customizer/customizer-notice/awpbusinesspress-customizer-notify.php'; $awpbusinesspress_config_customizer = array( 'recommended_plugins' => array( 'awp-companion' => array( 'recommended' => true, 'description' => sprintf( /* translators: %s: plugin name */ esc_html__( 'If you want to show all the features and business sections of the FrontPage. please install and activate %s plugin', 'awpbusinesspress' ), 'AWP Companion' ), ), ), 'recommended_actions' => array(), 'recommended_actions_title' => esc_html__( 'Recommended Actions', 'awpbusinesspress' ), 'recommended_plugins_title' => esc_html__( 'Recommended Plugin', 'awpbusinesspress' ), 'install_button_label' => esc_html__( 'Install and Activate', 'awpbusinesspress' ), 'activate_button_label' => esc_html__( 'Activate', 'awpbusinesspress' ), 'awpbusinesspress_deactivate_button_label' => esc_html__( 'Deactivate', 'awpbusinesspress' ), ); awpbusinesspress_Customizer_Notify::init( apply_filters( 'awpbusinesspress_customizer_notify_array', $awpbusinesspress_config_customizer ) );