| 1 |
<div class="metabox-holder"> |
| 2 |
<div class="postbox"> |
| 3 |
<h3><span><?php _e( 'Export Settings', 'userswp' ); ?></span></h3> |
| 4 |
<div class="inside"> |
| 5 |
<p><?php _e( 'Export the plugin settings for this site as a .json file. This allows you to easily import the configuration into another site.', 'userswp' ); ?></p> |
| 6 |
<form method="post"> |
| 7 |
<p><input type="hidden" name="uwp_ie_action" value="export_settings" /></p> |
| 8 |
<p> |
| 9 |
<?php wp_nonce_field( 'uwp_export_nonce', 'uwp_export_nonce' ); ?> |
| 10 |
<?php submit_button( __( 'Export', 'userswp' ), 'primary', 'submit', false ); ?> |
| 11 |
</p> |
| 12 |
</form> |
| 13 |
</div> |
| 14 |
</div> |
| 15 |
|
| 16 |
<div class="postbox"> |
| 17 |
<h3><span><?php _e( 'Import Settings', 'userswp' ); ?></span></h3> |
| 18 |
<div class="inside"> |
| 19 |
<p><?php _e( 'Import the plugin settings from a .json file. This file can be obtained by exporting the settings on another site using the form above.', 'userswp' ); ?></p> |
| 20 |
<form method="post" enctype="multipart/form-data"> |
| 21 |
<p> |
| 22 |
<input type="file" name="import_file" class="uwp-import-setting-file"/> |
| 23 |
</p> |
| 24 |
<p> |
| 25 |
<input type="hidden" name="uwp_ie_action" value="import_settings" /> |
| 26 |
<?php wp_nonce_field( 'uwp_import_nonce', 'uwp_import_nonce' ); ?> |
| 27 |
<?php submit_button( __( 'Import', 'userswp' ), 'primary', 'submit', false ); ?> |
| 28 |
</p> |
| 29 |
</form> |
| 30 |
</div> |
| 31 |
</div> |
| 32 |
</div> |