get_notice_status('welcome'); if ( !$this_notice_was_dismissed ) { if ( isset($_GET['page']) && 'bradbury-doc' == $_GET['page'] ) { return; } add_action( 'admin_notices', array( $this, 'welcome_notice_markup' ) ); // Display this notice. } } /** * Show welcome notice. */ public function welcome_notice_markup() { $dismiss_url = wp_nonce_url( remove_query_arg( array( 'activated' ), add_query_arg( 'bradbury-hide-notice', 'welcome' ) ), 'bradbury_hide_notices_nonce', '_bradbury_notice_nonce' ); $theme_data = wp_get_theme(); ?>
<?php esc_attr_e( 'Bradbury Lite', 'bradbury' ); ?>

'; /* translators: %1$s: theme name, %2$s link */ printf( __( 'To take advantage of everything that this theme can offer, please take a look at the Get Started with %1$s page.', 'bradbury' ), esc_html( $theme_data->Name ), esc_url( admin_url( 'themes.php?page=bradbury-doc' ) ) ); echo '

'; echo '

'; /* translators: %s theme name */ printf( esc_html__( 'Get started with %s', 'bradbury' ), esc_html( $theme_data->Name ) ); echo ''; echo ' '; /* translators: %s theme name */ printf( esc_html__( '%s Video Guide', 'bradbury' ), esc_html( $theme_data->Name ) ); echo '

'; ?>