admin_url( 'admin-ajax.php' ) ) ); wp_enqueue_script( 'blossom-floral-pro-recommended-plugin-install', get_template_directory_uri() . '/inc/getting-started/js/recommended-plugin-install.js', array( 'jquery' ), BLOSSOM_FLORAL_PRO_THEME_VERSION, true ); wp_localize_script( 'blossom-floral-pro-recommended-plugin-install', 'blossom_floral_pro_start_page', array( 'activating' => __( 'Activating ', 'blossom-floral-pro' ) ) ); } endif; add_action( 'admin_enqueue_scripts', 'blossom_floral_pro_getting_started_admin_scripts' ); if( ! function_exists( 'blossom_floral_pro_call_plugin_api' ) ) : /** * Plugin API **/ function blossom_floral_pro_call_plugin_api( $plugin ) { include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; $call_api = plugins_api( 'plugin_information', array( 'slug' => $plugin, 'fields' => array( 'downloaded' => false, 'rating' => false, 'description' => false, 'short_description' => true, 'donate_link' => false, 'tags' => false, 'sections' => true, 'homepage' => true, 'added' => false, 'last_updated' => false, 'compatibility' => false, 'tested' => false, 'requires' => false, 'downloadlink' => false, 'icons' => true ) ) ); return $call_api; } endif; if( ! function_exists( 'blossom_floral_pro_check_for_icon' ) ) : /** * Check For Icon **/ function blossom_floral_pro_check_for_icon( $arr ) { if( ! empty( $arr['svg'] ) ){ $plugin_icon_url = $arr['svg']; }elseif( ! empty( $arr['2x'] ) ){ $plugin_icon_url = $arr['2x']; }elseif( ! empty( $arr['1x'] ) ){ $plugin_icon_url = $arr['1x']; }else{ $plugin_icon_url = $arr['default']; } return $plugin_icon_url; } endif; if( ! function_exists( 'blossom_floral_pro_theme_club_list' ) ) : /** * Ajax Callback for Theme Club List */ function blossom_floral_pro_theme_club_list(){ //Getting theme list from the transient if there are any.... $theme_array = get_transient( 'blossomthemes_feed_transient' ); if( $theme_array ){ ob_start(); foreach( $theme_array as $theme_list ){ $theme_title = isset( $theme_list['title'] ) ? $theme_list['title'] : ''; $theme_image = isset( $theme_list['image'] ) ? $theme_list['image'] : ''; $theme_content = isset( $theme_list['content'] ) ? $theme_list['content'] : ''; ?>
Themes Club page on BlossomThemes.%3$s', 'blossom-floral-pro' ), '', esc_url( $themes_link ), '
' ); } } echo ob_get_clean(); wp_die(); } endif; add_action( 'wp_ajax_theme_club_from_rest', 'blossom_floral_pro_theme_club_list' );