| 1 |
<?php |
| 2 |
/** |
| 3 |
* Appearance > Export screen. |
| 4 |
*/ |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; |
| 8 |
} |
| 9 |
|
| 10 |
$wpct_themes = wpct_get_themes(); |
| 11 |
?> |
| 12 |
<div class="wrap"> |
| 13 |
<h1><?php esc_html_e( 'Export Themes', 'wp-clone-template' ); ?></h1> |
| 14 |
|
| 15 |
<?php settings_errors( 'wpct' ); ?> |
| 16 |
|
| 17 |
<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> |
| 18 |
|
| 19 |
<form method="post"> |
| 20 |
<?php wp_nonce_field( 'wpct_export' ); ?> |
| 21 |
<table class="form-table" role="presentation"> |
| 22 |
<tr> |
| 23 |
<th scope="row"> |
| 24 |
<label for="wpct-template"><?php esc_html_e( 'Theme to export', 'wp-clone-template' ); ?></label> |
| 25 |
</th> |
| 26 |
<td> |
| 27 |
<select name="Templates" id="wpct-template" class="regular-text"> |
| 28 |
<?php foreach ( $wpct_themes as $wpct_stylesheet => $wpct_name ) : ?> |
| 29 |
<option value="<?php echo esc_attr( $wpct_stylesheet ); ?>"> |
| 30 |
<?php echo esc_html( $wpct_name ); ?> |
| 31 |
</option> |
| 32 |
<?php endforeach; ?> |
| 33 |
</select> |
| 34 |
</td> |
| 35 |
</tr> |
| 36 |
</table> |
| 37 |
<?php submit_button( __( 'Export', 'wp-clone-template' ), 'primary', 'export_template' ); ?> |
| 38 |
</form> |
| 39 |
</div> |
| 40 |
|