# wp-clone-template/trunk/views/export.php

Export Themes, version trunk. 40 lines.

- Page: https://pluginprobe.com/plugins/wp-clone-template/trunk/code/views/export.php
- Raw: https://pluginprobe.com/plugins/wp-clone-template/trunk/raw/views/export.php
- Modified: 2026-08-19T00:44:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-clone-template/trunk/code/views/export.php#L10-L20`.

```php
<?php
/**
 * Appearance > Export screen.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$wpct_themes = wpct_get_themes();
?>
<div class="wrap">
	<h1><?php esc_html_e( 'Export Themes', 'wp-clone-template' ); ?></h1>

	<?php settings_errors( 'wpct' ); ?>

	<p><?php esc_html_e( 'Pick a theme to download it as a .zip file. You can install that file on another site through Appearance > Themes > Add New > Upload Theme.', 'wp-clone-template' ); ?></p>

	<form method="post">
		<?php wp_nonce_field( 'wpct_export' ); ?>
		<table class="form-table" role="presentation">
			<tr>
				<th scope="row">
					<label for="wpct-template"><?php esc_html_e( 'Theme to export', 'wp-clone-template' ); ?></label>
				</th>
				<td>
					<select name="Templates" id="wpct-template" class="regular-text">
						<?php foreach ( $wpct_themes as $wpct_stylesheet => $wpct_name ) : ?>
							<option value="<?php echo esc_attr( $wpct_stylesheet ); ?>">
								<?php echo esc_html( $wpct_name ); ?>
							</option>
						<?php endforeach; ?>
					</select>
				</td>
			</tr>
		</table>
		<?php submit_button( __( 'Export', 'wp-clone-template' ), 'primary', 'export_template' ); ?>
	</form>
</div>

```
