| 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"> |
| 15 |
<?php DashboardInitializer::header(); ?> |
| 16 |
|
| 17 |
<div class="wowp-page-header"> |
| 18 |
<h2 class="wowp-page-header__title"> |
| 19 |
<?php esc_html_e( 'Import / Export', 'wp-coder' ); ?> |
| 20 |
</h2> |
| 21 |
</div> |
| 22 |
|
| 23 |
|
| 24 |
<div class="wowp-settings__header m-w-48"> |
| 25 |
|
| 26 |
<div class="wowp-fieldset"> |
| 27 |
<div class="wowp-fieldset__header"> |
| 28 |
<div class="wowp-fieldset__header-title"> |
| 29 |
<?php esc_html_e( 'Export Settings', 'wp-coder' ); ?> |
| 30 |
<p><?php |
| 31 |
printf( |
| 32 |
/* translators: %s. plugin name */ |
| 33 |
esc_html__( 'Export the settings for %s as a .json file. This allows you to easily import the configuration into another site.', 'wp-coder' ), '<b>' . esc_attr( WPCoder::info( 'name' ) ) . '</b>' ); ?></p> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
<?php ImporterExporter::form_export(); ?> |
| 37 |
</div> |
| 38 |
|
| 39 |
<div class="wowp-fieldset"> |
| 40 |
<div class="wowp-fieldset__header"> |
| 41 |
<div class="wowp-fieldset__header-title"> |
| 42 |
<?php esc_html_e( 'Import Settings', 'wp-coder' ); ?> |
| 43 |
<p><?php |
| 44 |
printf( /* translators: %s. plugin name */ |
| 45 |
esc_html__( 'Import the %s settings from a .json file. This file can be obtained by exporting the settings on another site using the form above.', 'wp-coder' ), '<b>' . esc_attr( WPCoder::info( 'name' ) ) . '</b> ' ); ?></p> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
<?php ImporterExporter::form_import(); ?> |
| 49 |
</div> |
| 50 |
|
| 51 |
</div> |
| 52 |
|
| 53 |
|
| 54 |
</div> |
| 55 |
|
| 56 |
<?php |
| 57 |
|