PluginProbe
WP Coder – Insert & Manage Code Snippets / trunk
WP Coder – Insert & Manage Code Snippets vtrunk
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / includes / pages / 6.import-export.php

6.import-export.php in WP Coder – Insert & Manage Code Snippets trunk, at includes/pages/6.import-export.php

57 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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