esc_html__( 'Processing...', 'bosa-online-shop' ), '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() { $theme = wp_get_theme(); /* activation notice */ $this->theme_name = esc_attr ( $theme->get( 'Name' ) ); 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() { 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-online-shop' ).'
' . sprintf( esc_html__( 'Get started with %s','bosa-online-shop' ), $this->theme_name ) . '' ); echo ( '' . sprintf( esc_html__( '%s Setup','bosa-online-shop' ), $this->theme_name ) . '
' ); echo ( ''.esc_html__( 'Clicking on get started will install and activate Kirki, Advanced Import, Keon Toolset, Elementor, Breadcrumb NavXT, WooCommerce, YITH WooCommerce Compare, YITH WooCommerce Quick View, YITH WooCommerce Wishlist, ElementsKit Lite and Contact Form 7.', 'bosa-online-shop' ).'
' ); echo '