display( 'Name' ), esc_html__( 'About', 'buzz-ecommerce' ) . ' ' . $theme->display( 'Name' ), 'activate_plugins', 'buzz-ecommerce-welcome', array( $this, 'welcome_screen' ) ); add_action( 'admin_print_styles-' . $page, array( $this, 'enqueue_styles' ) ); } /** * Enqueue styles. */ public function enqueue_styles() { //Theme Version Check $buzz_ecommerce = wp_get_theme(); $Buzz_Ecommerce_version = $buzz_ecommerce->get( 'Version' ); wp_enqueue_style( 'buzz-ecommerce-welcome', get_template_directory_uri() . '/spiderbuzz/admin/css/admin-welcome.css', array(), $Buzz_Ecommerce_version ); } /** * Add admin notice. */ public function admin_notice() { global $pagenow; //Theme Version Check $buzz_ecommerce = wp_get_theme(); $Buzz_Ecommerce_version = $buzz_ecommerce->get( 'Version' ); wp_enqueue_style( 'buzz-ecommerce-message', get_template_directory_uri() . '/spiderbuzz/admin/css/admin-welcome.css', array(), $Buzz_Ecommerce_version ); // Let's bail on theme activation. if ( 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) { add_action( 'admin_notices', array( $this, 'welcome_notice' ) ); update_option( 'Buzz_Ecommerce_admin_notice_welcome', 1 ); // No option? Let run the notice wizard again.. } elseif( ! get_option( 'Buzz_Ecommerce_admin_notice_welcome' ) ) { add_action( 'admin_notices', array( $this, 'welcome_notice' ) ); } } /** * Hide a notice if the GET variable is set. */ public static function hide_notices() { if ( isset( $_GET['buzz-ecommerce-hide-notice'] ) && isset( $_GET['Buzz_Ecommerce_notice_nonce'] ) ) { if ( ! wp_verify_nonce( $_GET['Buzz_Ecommerce_notice_nonce'], 'Buzz_Ecommerce_hide_notices_nonce' ) ) { wp_die( __( 'Action failed. Please refresh the page and retry.', 'buzz-ecommerce' ) ); } if ( ! current_user_can( 'manage_options' ) ) { wp_die( __( 'Cheatin’ huh?', 'buzz-ecommerce' ) ); } $hide_notice = sanitize_text_field( $_GET['buzz-ecommerce-hide-notice'] ); update_option( 'Buzz_Ecommerce_admin_notice_welcome' . $hide_notice, 1 ); } } /** * Show welcome notice. */ public function welcome_notice() { ?>

', '' ); ?>

display( 'Name' ); ?>

display( 'Description' ); ?>

{ $current_tab . '_screen' }(); } // Fallback to about screen. return $this->about_screen(); } /** * Output the about screen. */ public function about_screen() { $theme = wp_get_theme( get_template() ); ?>
intro(); ?>

display( 'Name' ); ?>

display( 'Name' ); ?>

|
intro(); ?>

get_contents( $changelog_file ); $changelog_list = $this->parse_changelog( $changelog ); echo wp_kses_post( $changelog_list ); } ?>
'; foreach ( $changes as $index => $line ) { $changelog .= wp_kses_post( preg_replace( '~(=\s*Version\s*(\d+(?:\.\d+)+)\s*=|$)~Uis', '${1}', $line ) ); } $changelog .= ''; } return wp_kses_post( $changelog ); } /** * Output the supported plugins screen. */ public function supported_plugins_screen() { ?>
intro(); ?>

intro(); ?>

intro(); ?>
intro(); ?>
'spiderbuzz', ); // Set the $request array. $request = array( 'body' => array( 'action' => 'query_themes', 'request' => serialize( (object)$args ) ) ); $themes = $this->spiderbuzz_get_themes( $request ); $active_theme = wp_get_theme()->get( 'Name' ); $counter = 1; // For currently active theme. foreach ( $themes->themes as $theme ) { if( $active_theme == $theme->name ) { ?>

: name; ?>

themes as $theme ) { if( $active_theme != $theme->name ) { // Set the argument array with author name. $args = array( 'slug' => $theme->slug, ); // Set the $request array. $request = array( 'body' => array( 'action' => 'theme_information', 'request' => serialize( (object)$args ) ) ); $theme_details = $this->spiderbuzz_get_themes( $request ); ?>

name; ?>

slug )->exists() ) { ?> 'install-theme', 'theme' => $theme->slug, ), self_admin_url( 'update.php' ) ); ?>