absint( get_option( WM_THEME_SETTINGS_INSTALL ) )
&& ! isset( $wp_customize )
) {
$screen = get_current_screen();
if (
isset( $screen->id )
&& 'themes' === $screen->id
) {
$message = '' . WM_THEME_NAME . ' setup $raquo;Thank you for installing ' . WM_THEME_NAME . ' WordPress theme by WebMan!
Please, set the theme up according to "' . sprintf( 'About %s', WM_THEME_NAME ) . '" page first.';
set_transient( 'wm-admin-notice', array( $message, '', 'switch_themes' ), ( 60 * 60 * 24 ) );
}
}
}
} // /wm_about_screen_notice
/**
* Add "About" screen to WordPress menu
*
* @version 1.6
*/
if ( ! function_exists( 'wm_add_about_screen' ) ) {
function wm_add_about_screen() {
// Processing
$page_title = esc_html__( 'Welcome', 'mustang-lite' );
$screen = add_theme_page(
$page_title,
$page_title,
'switch_themes',
WM_THEME_SHORTNAME . '-about',
'wm_about_screen'
);
add_action( 'admin_print_styles-' . $screen, 'wm_about_css' );
}
} // /wm_add_about_screen
/**
* Render the "About" screen content
*
* @since 1.0
* @version 1.7.1
*/
if ( ! function_exists( 'wm_about_screen' ) ) {
function wm_about_screen() {
// Output
?>