public function create_admin_page() {
		$action = is_multisite() ? 'edit.php?action=github-updater' : 'options.php';
		$tab    = isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : 'github_updater_settings';
		$subtab = isset( $_GET['subtab'] ) ? esc_attr( $_GET['subtab'] ) : 'github_updater';
		$logo   = plugins_url( basename( GITHUB_UPDATER_DIR ) . '/assets/GitHub_Updater_logo_small.png' ); ?>
		<div class="wrap github-updater-settings">
			<h1>
				<a href="https://github.com/afragen/github-updater" target="_blank"><img src="<?php esc_attr_e( $logo ); ?>" alt="GitHub Updater logo" /></a><br>
				<?php esc_html_e( 'GitHub Updater', 'github-updater' ); ?>
			</h1>
			<?php $this->options_tabs(); ?>
			<?php $this->admin_page_notices(); ?>
			<?php if ( 'github_updater_settings' === $tab ) : ?>
				<?php $this->options_sub_tabs(); ?>
				<form class="settings" method="post" action="<?php esc_attr_e( $action ); ?>">
					<?php
					settings_fields( 'github_updater' );
					if ( 'github_updater' === $subtab ) {
						do_settings_sections( 'github_updater_install_settings' );
						$this->add_hidden_settings_sections();
					} else {
						do_settings_sections( 'github_updater_' . $subtab . '_install_settings' );
						$this->display_ghu_repos( $subtab );
						$this->add_hidden_settings_sections( $subtab );
					}
					submit_button();
					?>
				</form>
				<?php $refresh_transients = add_query_arg( [ 'github_updater_refresh_transients' => true ], $action ); ?>
				<form class="settings" method="post" action="<?php esc_attr_e( $refresh_transients ); ?>">
					<?php submit_button( esc_html__( 'Refresh Cache', 'github-updater' ), 'primary', 'ghu_refresh_cache' ); ?>
				</form>
			<?php endif; ?>

			<?php
			/**
			 * Action hook to add admin page data to appropriate $tab.
			 *
			 * @since 8.0.0
			 *
			 * @param string $tab    Name of tab.
			 * @param string $action Save action for appropriate WordPress installation.
			 *                       Single site or Multisite.
			 */
			do_action( 'github_updater_add_admin_page', $tab, $action );
			?>
		</div>
		<?php
	}
public function create_admin_page() {
		$action = is_multisite() ? 'edit.php?action=github-updater' : 'options.php';
		$tab    = isset( $_GET['tab'] ) ? esc_attr( $_GET['tab'] ) : 'github_updater_settings';
		$subtab = isset( $_GET['subtab'] ) ? esc_attr( $_GET['subtab'] ) : 'github_updater';
		$logo   = plugins_url( basename( GITHUB_UPDATER_DIR ) . '/assets/GitHub_Updater_logo_small.png' ); ?>
		<div class="wrap github-updater-settings">
			<h1>
				<a href="https://github.com/afragen/github-updater" target="_blank"><img src="<?php esc_attr_e( $logo ); ?>" alt="GitHub Updater logo" /></a><br>
				<?php esc_html_e( 'GitHub Updater', 'github-updater' ); ?>
			</h1>
			<?php $this->options_tabs(); ?>
			<?php $this->admin_page_notices(); ?>
			<?php if ( 'github_updater_settings' === $tab ) : ?>
				<?php $this->options_sub_tabs(); ?>
				<form class="settings" method="post" action="<?php esc_attr_e( $action ); ?>">
					<?php
					settings_fields( 'github_updater' );
					if ( 'github_updater' === $subtab ) {
						do_settings_sections( 'github_updater_install_settings' );
						$this->add_hidden_settings_sections();
					} else {
						do_settings_sections( 'github_updater_' . $subtab . '_install_settings' );
						$this->display_ghu_repos( $subtab );
						$this->add_hidden_settings_sections( $subtab );
					}
					submit_button();
					?>
				</form>
				<?php $refresh_transients = add_query_arg( [ 'github_updater_refresh_transients' => true ], $action ); ?>
				<form class="settings" method="post" action="<?php esc_attr_e( $refresh_transients ); ?>">
					<?php submit_button( esc_html__( 'Refresh Cache', 'github-updater' ), 'primary', 'ghu_refresh_cache' ); ?>
				</form>
			<?php endif; ?>

			<?php
			/**
			 * Action hook to add admin page data to appropriate $tab.
			 *
			 * @since 8.0.0
			 *
			 * @param string $tab    Name of tab.
			 * @param string $action Save action for appropriate WordPress installation.
			 *                       Single site or Multisite.
			 */
			do_action( 'github_updater_add_admin_page', $tab, $action );
			?>
		</div>
		<?php
	}
public function create_admin_page ( ) { $ action = is_multisite ( ) ? 'edit.php?action=github-updater' : 'options.php' ; $ tab = isset ( $ _GET [ 'tab' ] ) ? esc_attr ( $ _GET [ 'tab' ] ) : 'github_updater_settings' ; $ subtab = isset ( $ _GET [ 'subtab' ] ) ? esc_attr ( $ _GET [ 'subtab' ] ) : 'github_updater' ; $ logo = plugins_url ( basename ( GITHUB_UPDATER_DIR ) . '/assets/GitHub_Updater_logo_small.png' ) ; ?>
		<div class="wrap github-updater-settings">
			<h1>
				<a href="https://github.com/afragen/github-updater" target="_blank"><img src="<?php esc_attr_e ( $ logo ) ; ?>" alt="GitHub Updater logo" /></a><br>
				<?php esc_html_e ( 'GitHub Updater' , 'github-updater' ) ; ?>
			</h1>
			<?php $ this -> options_tabs ( ) ; ?>
			<?php $ this -> admin_page_notices ( ) ; ?>
			<?php if ( 'github_updater_settings' === $ tab ) : ?>
				<?php $ this -> options_sub_tabs ( ) ; ?>
				<form class="settings" method="post" action="<?php esc_attr_e ( $ action ) ; ?>">
					<?php settings_fields ( 'github_updater' ) ; if ( 'github_updater' === $ subtab ) { do_settings_sections ( 'github_updater_install_settings' ) ; $ this -> add_hidden_settings_sections ( ) ; } else { do_settings_sections ( 'github_updater_' . $ subtab . '_install_settings' ) ; $ this -> display_ghu_repos ( $ subtab ) ; $ this -> add_hidden_settings_sections ( $ subtab ) ; } submit_button ( ) ; ?>
				</form>
				<?php $ refresh_transients = add_query_arg ( [ 'github_updater_refresh_transients' => true ] , $ action ) ; ?>
				<form class="settings" method="post" action="<?php esc_attr_e ( $ refresh_transients ) ; ?>">
					<?php submit_button ( esc_html__ ( 'Refresh Cache' , 'github-updater' ) , 'primary' , 'ghu_refresh_cache' ) ; ?>
				</form>
			<?php endif ; ?>

			<?php /**
			 * Action hook to add admin page data to appropriate $tab.
			 *
			 * @since 8.0.0
			 *
			 * @param string $tab    Name of tab.
			 * @param string $action Save action for appropriate WordPress installation.
			 *                       Single site or Multisite.
			 */ do_action ( 'github_updater_add_admin_page' , $ tab , $ action ) ; ?>
		</div>
		<?php }
Options page callback.
Options page callback .