WP_Theme_Install_List_Table::theme_installer_single()publicWP 1.0

Prints the wrapper for the theme installer with a provided theme's data. Used to make the theme installer work for no-js.

Method of the class: WP_Theme_Install_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Theme_Install_List_Table = new WP_Theme_Install_List_Table();
$WP_Theme_Install_List_Table->theme_installer_single( $theme );
$theme(stdClass) (required)
A WordPress.org Theme API object.

WP_Theme_Install_List_Table::theme_installer_single() code WP 6.5.2

<?php
public function theme_installer_single( $theme ) {
	?>
	<div id="theme-installer" class="wp-full-overlay single-theme">
		<div class="wp-full-overlay-sidebar">
			<?php $this->install_theme_info( $theme ); ?>
		</div>
		<div class="wp-full-overlay-main">
			<iframe src="<?php echo esc_url( $theme->preview_url ); ?>"></iframe>
		</div>
	</div>
	<?php
}