public function create_form( $type ) {
		// Bail if installing.
		if ( isset( $_POST['option_page'] ) && 'github_updater_install' === $_POST['option_page'] ) {
			return;
		}

		$this->register_settings( $type ); ?>
		<form method="post">
			<?php
			settings_fields( 'github_updater_install' );
			do_settings_sections( 'github_updater_install_' . $type );
			if ( 'plugin' === $type ) {
				submit_button( esc_html__( 'Install Plugin', 'github-updater' ) );
			}
			if ( 'theme' === $type ) {
				submit_button( esc_html__( 'Install Theme', 'github-updater' ) );
			}
			?>
		</form>
		<?php
	}
public function create_form( $type ) {
		// Bail if installing.
		if ( isset( $_POST['option_page'] ) && 'github_updater_install' === $_POST['option_page'] ) {
			return;
		}

		$this->register_settings( $type ); ?>
		<form method="post">
			<?php
			settings_fields( 'github_updater_install' );
			do_settings_sections( 'github_updater_install_' . $type );
			if ( 'plugin' === $type ) {
				submit_button( esc_html__( 'Install Plugin', 'github-updater' ) );
			}
			if ( 'theme' === $type ) {
				submit_button( esc_html__( 'Install Theme', 'github-updater' ) );
			}
			?>
		</form>
		<?php
	}
public function create_form ( $ type ) { // Bail if installing. if ( isset ( $ _POST [ 'option_page' ] ) && 'github_updater_install' === $ _POST [ 'option_page' ] ) { return ; } $ this -> register_settings ( $ type ) ; ?>
		<form method="post">
			<?php settings_fields ( 'github_updater_install' ) ; do_settings_sections ( 'github_updater_install_' . $ type ) ; if ( 'plugin' === $ type ) { submit_button ( esc_html__ ( 'Install Plugin' , 'github-updater' ) ) ; } if ( 'theme' === $ type ) { submit_button ( esc_html__ ( 'Install Theme' , 'github-updater' ) ) ; } ?>
		</form>
		<?php }
Create Install Plugin or Install Theme page.

@param string $type
Create Install Plugin or Install Theme page .