| 1 |
<?php |
| 2 |
/** |
| 3 |
* Page Name: Import/Export |
| 4 |
* |
| 5 |
*/ |
| 6 |
|
| 7 |
use WPCoder\Dashboard\ImporterExporter; |
| 8 |
use WPCoder\WOW_Plugin; |
| 9 |
|
| 10 |
defined( 'ABSPATH' ) || exit; |
| 11 |
|
| 12 |
?> |
| 13 |
|
| 14 |
<div class="w_block w_has-border"> |
| 15 |
|
| 16 |
<div class="inside"> |
| 17 |
<h3><span><?php esc_attr_e( 'Export Settings', 'wpcoder' ); ?></span></h3> |
| 18 |
<div class="inside"> |
| 19 |
<p><?php |
| 20 |
printf( esc_attr__( 'Export the settings for %s as a .json file. This allows you to easily import the configuration into another site.', 'wpcoder' ), '<b>' . esc_attr( WOW_Plugin::NAME ) . '</b>' ); ?></p> |
| 21 |
<?php ImporterExporter::form_export(); ?> |
| 22 |
</div> |
| 23 |
</div> |
| 24 |
<hr> |
| 25 |
|
| 26 |
<div class="inside"> |
| 27 |
<h3><span><?php esc_attr_e( 'Import Settings', 'wpcoder' ); ?></span></h3> |
| 28 |
<div class="inside"> |
| 29 |
<p><?php |
| 30 |
printf( esc_attr__( 'Import the %s settings from a .json file. This file can be obtained by exporting the settings on another site using the form above.', 'wpcoder' ), '<b>' . esc_attr( WOW_Plugin::NAME ) . '</b> ' ); ?></p> |
| 31 |
<?php ImporterExporter::form_import(); ?> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
</div> |
| 38 |
|
| 39 |
<?php |
| 40 |
|