get( 'Name' ), $theme->get( 'Version' ) ), esc_html__( 'Azuma Theme', 'azuma' ), 'edit_theme_options', 'azuma', 'azuma_display_theme_help_page' ); } // Display Theme help page. function azuma_display_theme_help_page() { // Get Theme Details from style.css. $theme = wp_get_theme(); ?>

get( 'Name' ) ), esc_html( $theme->get( 'Version' ) ) ); ?>

get( 'Description' ) ); ?>


get( 'Name' ) ) ); ?>

get( 'Name' ) ) ); ?>

tag, %2$s: closing tag */ printf( esc_html__( 'To help you get the most from the Site Editor and futureproof your website, we have created the %1$sEternal%2$s block theme, which can optionally be used with the Starter Sites plugin, giving you an incredible headstart when creating any website.', 'azuma' ), '', '' ); ?>


get( 'Name' ) ), 'UXL Themes', '' . esc_html__( 'rate it', 'azuma' ) . '' ); ?>

exists() ) { return admin_url( 'themes.php?theme=eternal' ); } else { return admin_url( 'theme-install.php?theme=eternal' ); } } function azuma_eternal_dismiss() { if ( isset( $_GET['azuma-eternal-dismiss'] ) && check_admin_referer( 'azuma-eternal-dismiss-' . get_current_user_id() ) ) { update_user_meta( get_current_user_id(), 'azuma_eternal_dismissed_notice', 1 ); } } add_action( 'admin_head', 'azuma_eternal_dismiss' ); function azuma_eternal_nudge() { return '' . esc_html__( 'The future of WordPress is block themes.', 'azuma' ) . ' ' . esc_html__( 'A block theme uses blocks for all parts of your site, including navigation menus, headers, content, and footers. This allows you to edit and customize all parts of your site within the Site Editor.', 'azuma' ) . ' ' . /* translators: %1$s: opening tag, %2$s: closing tag */ sprintf( esc_html__( 'To help you get the most from the Site Editor and futureproof your website, we have created the %1$sEternal%2$s block theme, which can optionally be used with the Starter Sites plugin, giving you an incredible headstart when creating any website.', 'azuma' ), '', '' ) . ' ' . esc_html__( 'Check out the Eternal theme', 'azuma' ) . ' ' . esc_html__( 'Permanently dismiss this notice', 'azuma' ) . ''; } function azuma_admin_notice() { if ( get_user_meta( get_current_user_id(), 'azuma_eternal_dismissed_notice', true ) ) { return; } add_settings_error( 'azuma-eternal-notice', 'azuma-eternal-notice', azuma_eternal_nudge(), 'info' ); settings_errors( 'azuma-eternal-notice' ); } add_action( 'admin_notices', 'azuma_admin_notice' );