get_permalink( get_option( 'page_on_front' ) ), ); wp_enqueue_style( 'blossom-studio-customize', get_template_directory_uri() . '/inc/css/customize.css', array(), BLOSSOM_STUDIO_THEME_VERSION ); wp_enqueue_script( 'blossom-studio-customize', get_template_directory_uri() . '/inc/js/customize.js', array( 'jquery', 'customize-controls' ), BLOSSOM_STUDIO_THEME_VERSION, true ); wp_localize_script( 'blossom-studio-customize', 'blossom_studio_cdata', $array ); wp_localize_script( 'blossom-studio-repeater', 'blossom_studio_customize', array( 'nonce' => wp_create_nonce( 'blossom_studio_customize_nonce' ) ) ); } add_action( 'customize_controls_enqueue_scripts', 'blossom_studio_customize_script' ); /* * Notifications in customizer */ require get_template_directory() . '/inc/customizer-plugin-recommend/customizer-notice/class-customizer-notice.php'; require get_template_directory() . '/inc/customizer-plugin-recommend/plugin-install/class-plugin-install-helper.php'; require get_template_directory() . '/inc/customizer-plugin-recommend/plugin-install/class-plugin-recommend.php'; $config_customizer = array( 'recommended_plugins' => array( //change the slug for respective plugin recomendation 'blossomthemes-toolkit' => array( 'recommended' => true, 'description' => sprintf( /* translators: %s: plugin name */ esc_html__( 'If you want to take full advantage of the features this theme has to offer, please install and activate %s plugin.', 'blossom-studio' ), 'BlossomThemes Toolkit' ), ), ), 'recommended_plugins_title' => esc_html__( 'Recommended Plugin', 'blossom-studio' ), 'install_button_label' => esc_html__( 'Install and Activate', 'blossom-studio' ), 'activate_button_label' => esc_html__( 'Activate', 'blossom-studio' ), 'deactivate_button_label' => esc_html__( 'Deactivate', 'blossom-studio' ), ); Blossom_Studio_Customizer_Notice::init( apply_filters( 'Blossom_Studio_Customizer_Notice_array', $config_customizer ) );