From 19614f8dec0bc85cb71bea353ec7d9f0e5ad1964 Mon Sep 17 00:00:00 2001 From: Chris Perko Date: Wed, 23 Oct 2019 18:45:31 +0000 Subject: [PATCH] \#25 Created a new page for Export/Import --- inc/Init.php | 1 + inc/Pages/ExportImport.php | 22 ++++++++++++++++++++++ templates/exportImport.php | 6 ++++++ 3 files changed, 29 insertions(+) create mode 100644 inc/Pages/ExportImport.php create mode 100644 templates/exportImport.php diff --git a/inc/Init.php b/inc/Init.php index 41abe5f..16b9b5d 100644 --- a/inc/Init.php +++ b/inc/Init.php @@ -11,6 +11,7 @@ public static function get_services() return [ Pages\Admin::class, Pages\Customizer::class, + Pages\ExportImport::class, Base\SettingsLinks::class, Base\Enqueue::class ]; diff --git a/inc/Pages/ExportImport.php b/inc/Pages/ExportImport.php new file mode 100644 index 0000000..fc2f86a --- /dev/null +++ b/inc/Pages/ExportImport.php @@ -0,0 +1,22 @@ +plugin_path/templates/exportImport.php"; + } + + function addExportImportPage() { + add_submenu_page( 'wpcui', 'Export/Import', 'Export/Import', 'manage_options', 'wpcui-export-import', [$this, 'exportImportIndex'] ); + } +} \ No newline at end of file diff --git a/templates/exportImport.php b/templates/exportImport.php new file mode 100644 index 0000000..5d13418 --- /dev/null +++ b/templates/exportImport.php @@ -0,0 +1,6 @@ +
+

WPCUI Export/Import

+ + + +