Skip to content

Commit

Permalink
\#25 Created a new page for Export/Import
Browse files Browse the repository at this point in the history
  • Loading branch information
BaronVonPerko committed Oct 23, 2019
1 parent abe401d commit 19614f8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions inc/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
Expand Down
22 changes: 22 additions & 0 deletions inc/Pages/ExportImport.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace PerkoCustomizerUI\Pages;

use PerkoCustomizerUI\Base\BaseController;
use PerkoCustomizerUI\Services\AdminSettingsService;
use PerkoCustomizerUI\Services\DataService;

class ExportImport extends BaseController {

public function register() {
add_action( 'admin_menu', [ $this, 'addExportImportPage' ] );
}

function exportImportIndex() {
require_once "$this->plugin_path/templates/exportImport.php";
}

function addExportImportPage() {
add_submenu_page( 'wpcui', 'Export/Import', 'Export/Import', 'manage_options', 'wpcui-export-import', [$this, 'exportImportIndex'] );
}
}
6 changes: 6 additions & 0 deletions templates/exportImport.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="wrap">
<h1>WPCUI Export/Import</h1>

</div>

0 comments on commit 19614f8

Please sign in to comment.