display( 'Name' ), esc_html__( 'About', 'bizwhoop' ) . ' ' . $theme->display( 'Name' ), 'activate_plugins', 'bizwhoop-welcome', array( $this, 'welcome_screen' ) ); add_action( 'admin_print_styles-' . $page, array( $this, 'bizwhoop_enqueue_styles' ) ); } /** * Enqueue styles. */ public function bizwhoop_enqueue_styles() { global $bizwhoop_version; wp_enqueue_style( 'bizwhoop-welcome', get_template_directory_uri() . '/css/themeinfo.css', array(), $bizwhoop_version ); } /** * Hide a notice if the GET variable is set. */ public static function bizwhoop_hide_notices() { if ( isset( $_GET['bizwhoop-hide-notice'] ) && isset( $_GET['_bizwhoop_notice_nonce'] ) ) { if ( ! wp_verify_nonce( $_GET['_bizwhoop_notice_nonce'], 'bizwhoop_bizwhoop_hide_notices_nonce' ) ) { wp_die( __( 'Action failed. Please refresh the page and retry.', 'bizwhoop' ) ); } if ( ! current_user_can( 'manage_options' ) ) { wp_die( __( 'Cheatin’ huh?', 'bizwhoop' ) ); } $hide_notice = sanitize_text_field( $_GET['bizwhoop-hide-notice'] ); } } public function bizwhoop_activation_admin_notice() { global $pagenow; if ( is_admin() && ('themes.php' == $pagenow) && isset( $_GET['activated'] ) ) { add_action( 'admin_notices', array( $this, 'bizwhoop_admin_notice' ), 99 ); } } /** * Display an admin notice linking to the welcome screen * @sfunctionse 1.8.2.4 */ public function bizwhoop_admin_notice() { ?>