'header', 20 => 'guide', 30 => 'demo', 40 => 'promo', 100 => 'footer', ) ); ksort( $sections ); // Output ?>
get( 'Version' ) ) ) ); } // /styles /** * Add screen to WordPress admin menu. * * @since 2.1 * @version 2.9.0 */ public static function admin_menu() { // Processing add_theme_page( // $page_title esc_html__( 'Welcome', 'auberge' ), // $menu_title esc_html__( 'Welcome', 'auberge' ), // $capability 'edit_theme_options', // $menu_slug 'auberge-welcome', // $function __CLASS__ . '::render' ); } // /admin_menu /** * Initiate "Welcome" admin notice after theme activation. * * @since 2.9.0 * * @return void */ public static function activation_notice_display() { // Processing global $pagenow; if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) { add_action( 'admin_notices', __CLASS__ . '::activation_notice_content', 99 ); } } // /activation_notice_display /** * Display "Welcome" admin notice after theme activation. * * @since 2.9.0 * * @return void */ public static function activation_notice_content() { // Processing get_template_part( 'template-parts/admin/notice', 'welcome' ); } // /activation_notice_content /** * Info text: Rate the theme. * * @since 2.7.0 * @version 2.9.0 */ public static function get_info_like() { // Output return sprintf( /* translators: %1$s: heart icon, %2$s: star icons. */ esc_html__( 'If you %1$s love this theme don\'t forget to rate it %2$s.', 'auberge' ), '', '' ) . ' ' . '
' . '' . esc_html__( 'And/or please consider a donation.', 'auberge' ) . '' . ' ' . esc_html__( 'Thank you!', 'auberge' ); } // /get_info_like /** * Info text: Contact support. * * @since 2.7.0 * @version 2.9.0 */ public static function get_info_support() { // Output return esc_html__( 'Have a suggestion for improvement or something is not working as it should?', 'auberge' ) . ' ' . esc_html__( '→ Contact support', 'auberge' ) . ''; } // /get_info_support } // /Auberge_Welcome add_action( 'after_setup_theme', 'Auberge_Welcome::init' );