PluginProbe
Export Themes / trunk
Export Themes vtrunk
3.0.1 trunk 1.0 1.5 2.0 2.1 2.2 3.0
wp-clone-template / views / export.php

export.php in Export Themes trunk, at views/export.php

40 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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