esc_html__( 'Processing...', 'bosa-mobile-app' ), 'nonce' => wp_create_nonce( 'bosa_demo_import_nonce' ), 'noncen' => 'bosa_demo_import_nonce', 'adminurl' => esc_url( admin_url() ), ); wp_localize_script( 'bosa-custom-widgets', 'bosa_adi_install', $translation ); wp_enqueue_media(); wp_enqueue_script( 'bosa-custom-widgets' ); } /** * Class to handle notices and Advanced Demo Import * * Class Bosa_Notice_Handler */ class Bosa_Notice_Handler { public static $nonce; /** * Empty Constructor */ public function __construct() { /* activation notice */ add_action( 'switch_theme', array( $this, 'flush_dismiss_status' ) ); add_action( 'admin_init', array($this,'getting_started_notice_dismissed' ) ); add_action( 'admin_notices', array( $this, 'bosa_theme_info_welcome_admin_notice' ), 3 ); add_action( 'wp_ajax_bosa_getting_started', array( $this, 'bosa_getting_started' ) ); } /** * Display an admin notice linking to the about page */ public function bosa_theme_info_welcome_admin_notice() { $theme = wp_get_theme(); if ( is_admin() && !get_user_meta( get_current_user_id(), 'gs_notice_dismissed' ) ){ echo '
'.esc_html__( 'Plugins added successfully. You may dismiss this notice now.', 'bosa-mobile-app' ).'
' . sprintf( esc_html__( 'Get started with %s','bosa-mobile-app' ), esc_attr ( $theme->get( 'Name' ) ) ) . '' ); echo ( '' . sprintf( esc_html__( '%s Setup','bosa-mobile-app' ), esc_attr ( $theme->get( 'Name' ) ) ) . '
' ); echo ( ''.esc_html__( 'Clicking on get started will install and activate Kirki, Advanced Import, Keon Toolset, Elementor, Bosa Elementor Addons for WooCommerce, Breadcrumb NavXT, ElementsKit Lite and Contact Form 7.', 'bosa-mobile-app' ).'
' ); echo '