esc_url( admin_url( '/themes.php?page=demo-importer&browse=all&le-hide-notice=welcome' ) ), 'btn_text' => esc_html__( 'Processing...', 'ample' ), 'nonce' => wp_create_nonce( 'ample_demo_import_nonce' ), ); wp_localize_script( 'ample-plugin-install-helper', 'ampleRedirectDemoPage', $welcome_data ); } /** * Add admin menu. */ public function admin_menu() { $theme = wp_get_theme( get_template() ); $page = add_theme_page( esc_html__( 'About', 'ample' ) . ' ' . $theme->display( 'Name' ), esc_html__( 'About', 'ample' ) . ' ' . $theme->display( 'Name' ), 'activate_plugins', 'ample-welcome', array( $this, 'welcome_screen', ) ); add_action( 'admin_print_styles-' . $page, array( $this, 'enqueue_scripts' ) ); } /** * Intro text/links shown to all about pages. * * @access private */ private function intro() { $theme = wp_get_theme( get_template() ); // Drop minor version if 0 $major_version = substr( AMPLE_THEME_VERSION, 0, 3 ); ?>

display( 'Name' ); ?>

display( 'Description' ); ?>

{$current_tab . '_screen'}(); } // Fallback to about screen. return $this->about_screen(); } /** * Output the about screen. */ public function about_screen() { $theme = wp_get_theme( get_template() ); ?>
intro(); ?>

display( 'Name' ); ?>

display( 'Name' ); ?>

|
intro(); ?>

get_contents( $changelog_file ); $changelog_list = $this->parse_changelog( $changelog ); echo wp_kses_post( $changelog_list ); } ?>
'; foreach ( $changes as $index => $line ) { $changelog .= wp_kses_post( preg_replace( '~(=\s*Version\s*(\d+(?:\.\d+)+)\s*=|$)~Uis', '${1}', $line ) ); } $changelog .= ''; } return wp_kses_post( $changelog ); } /** * Output the supported plugins screen. */ public function supported_plugins_screen() { ?>
intro(); ?>

intro(); ?>