| 1 |
<?php |
| 2 |
/** |
| 3 |
* LoginPress Import Export Page Content. |
| 4 |
* @package LoginPress |
| 5 |
* @since 1.0.19 |
| 6 |
* @version 1.1.14 |
| 7 |
*/ |
| 8 |
|
| 9 |
$loginpress_import_nonce = wp_create_nonce('loginpress-import-nonce'); |
| 10 |
$loginpress_export_nonce = wp_create_nonce('loginpress-export-nonce'); |
| 11 |
?> |
| 12 |
<div class="loginpress-import-export-page"> |
| 13 |
<h2><?php esc_html_e( 'Import/Export LoginPress Settings', 'loginpress' ); ?></h2> |
| 14 |
<div class=""><?php esc_html_e( "Import/Export your LoginPress Settings for/from other sites. This will export/import all the settings including Customizer settings as well.", 'loginpress' ); ?></div> |
| 15 |
<table class="form-table"> |
| 16 |
<tbody> |
| 17 |
<tr class="import_setting"> |
| 18 |
<th scope="row"> |
| 19 |
<label for="loginpress_configure[import_setting]"><?php esc_html_e( 'Import Settings:', 'loginpress' ); ?></label> |
| 20 |
</th> |
| 21 |
<td> |
| 22 |
<div class="upload-file"><span>Upload File</span><input type="file" name="loginPressImport" id="loginPressImport"></div> |
| 23 |
<input type="button" class="button loginpress-import" value="<?php esc_html_e( 'Import', 'loginpress' ); ?>" multiple="multiple" disabled="disabled"> |
| 24 |
<input type="hidden" class="loginpress_import_nonce" name="loginpress_import_nonce" value="<?php echo $loginpress_import_nonce; ?>"> |
| 25 |
<span class="import-sniper"> |
| 26 |
<img src="<?php echo admin_url( 'images/wpspin_light.gif' ); ?>"> |
| 27 |
</span> |
| 28 |
<span class="import-text"><?php esc_html_e( 'LoginPress Settings Imported Successfully.', 'loginpress' ); ?></span> |
| 29 |
<span class="wrong-import"></span> |
| 30 |
<p class="description"><?php esc_html_e( 'Select a file and click on Import to start processing.', 'loginpress' ); ?></p> |
| 31 |
</td> |
| 32 |
</tr> |
| 33 |
<tr class="export_setting"> |
| 34 |
<th scope="row"> |
| 35 |
<label for="loginpress_configure[export_setting]"><?php esc_html_e( 'Export Settings:', 'loginpress' ); ?></label> |
| 36 |
</th> |
| 37 |
<td> |
| 38 |
<input type="button" class="button loginpress-export" value="<?php esc_html_e( 'Export', 'loginpress' ); ?>"> |
| 39 |
<input type="hidden" class="loginpress_export_nonce" name="loginpress_export_nonce" value="<?php echo $loginpress_export_nonce; ?>"> |
| 40 |
<span class="export-sniper"> |
| 41 |
<img src="<?php echo admin_url( 'images/wpspin_light.gif' ); ?>"> |
| 42 |
</span> |
| 43 |
<span class="export-text"><?php esc_html_e( 'LoginPress Settings Exported Successfully!', 'loginpress' ); ?></span> |
| 44 |
<p class="description"><?php esc_html_e( 'Export LoginPress Settings.', 'loginpress' ) ?></p> |
| 45 |
</td> |
| 46 |
</tr> |
| 47 |
</tbody> |
| 48 |
</table> |
| 49 |
</div> |
| 50 |
|