Fragen\GitHub_Updater\Install::create_form PHP Метод

create_form() публичный Метод

Create Install Plugin or Install Theme page.
public create_form ( string $type )
$type string
    public function create_form($type)
    {
        $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 
    }