| 1 |
<?php |
| 2 |
/** |
| 3 |
* Page Name: Import/Export |
| 4 |
* |
| 5 |
*/ |
| 6 |
|
| 7 |
use WPCoder\Dashboard\DashboardInitializer; |
| 8 |
use WPCoder\Dashboard\ImporterExporter; |
| 9 |
use WPCoder\WPCoder; |
| 10 |
|
| 11 |
defined( 'ABSPATH' ) || exit; |
| 12 |
?> |
| 13 |
|
| 14 |
<div class="wowp-header-wrapper"> |
| 15 |
<?php DashboardInitializer::header(); ?> |
| 16 |
|
| 17 |
<div class="wowp-header-title"> |
| 18 |
<h2><?php esc_html_e( 'Import / Export', 'wpcoder' ); ?></h2> |
| 19 |
</div> |
| 20 |
|
| 21 |
</div> |
| 22 |
|
| 23 |
<div class="wrap wowp-wrap"> |
| 24 |
<div class="w_block w_has-border"> |
| 25 |
|
| 26 |
<div class="inside"> |
| 27 |
<h3><span class="dashicons dashicons-database-export"></span> <span><?php esc_attr_e( 'Export Settings', 'wpcoder' ); ?></span></h3> |
| 28 |
<div class="inside"> |
| 29 |
<p><?php |
| 30 |
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( WPCoder::info( 'name' ) ) . '</b>' ); ?></p> |
| 31 |
<?php ImporterExporter::form_export(); ?> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
<hr> |
| 35 |
|
| 36 |
<div class="inside"> |
| 37 |
<h3><span class="dashicons dashicons-database-import"></span> <span><?php esc_attr_e( 'Import Settings', 'wpcoder' ); ?></span></h3> |
| 38 |
<div class="inside"> |
| 39 |
<p><?php |
| 40 |
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( WPCoder::info( 'name' ) ) . '</b> ' ); ?></p> |
| 41 |
<?php ImporterExporter::form_import(); ?> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|
| 45 |
|
| 46 |
</div> |
| 47 |
</div> |
| 48 |
|
| 49 |
<?php |
| 50 |
|