| @@ -3,37 +3,47 @@ | ||
| 3 | 3 | * Page Name: Import/Export |
| 4 | 4 | * |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | +use WPCoder\Dashboard\DashboardInitializer; | |
| 7 | 8 | use WPCoder\Dashboard\ImporterExporter; |
| 8 | -use WPCoder\WOW_Plugin; | |
| 9 | +use WPCoder\WPCoder; | |
| 9 | 10 | |
| 10 | 11 | defined( 'ABSPATH' ) || exit; |
| 12 | +?> | |
| 11 | 13 | |
| 12 | -?> | |
| 14 | + <div class="wowp-header-wrapper"> | |
| 15 | + <?php DashboardInitializer::header(); ?> | |
| 13 | 16 | |
| 14 | - <div class="w_block w_has-border"> | |
| 17 | + <div class="wowp-header-title"> | |
| 18 | + <h2><?php esc_html_e( 'Import / Export', 'wpcoder' ); ?></h2> | |
| 19 | + </div> | |
| 15 | 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> | |
| 16 | 28 | <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> | |
| 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(); ?> | |
| 23 | 32 | </div> |
| 24 | - <hr> | |
| 33 | + </div> | |
| 34 | + <hr> | |
| 25 | 35 | |
| 36 | + <div class="inside"> | |
| 37 | + <h3><span class="dashicons dashicons-database-import"></span> <span><?php esc_attr_e( 'Import Settings', 'wpcoder' ); ?></span></h3> | |
| 26 | 38 | <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> | |
| 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(); ?> | |
| 33 | 42 | </div> |
| 43 | + </div> | |
| 34 | 44 | |
| 35 | 45 | |
| 36 | - | |
| 46 | + </div> | |
| 37 | 47 | </div> |
| 38 | 48 | |
| 39 | 49 | <?php |