Skip to content

Commit

Permalink
Export complete #25
Browse files Browse the repository at this point in the history
  • Loading branch information
BaronVonPerko committed Oct 23, 2019
1 parent 39b9573 commit 2afc6e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/exportImport.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div class="wrap">
<h1>WPCUI Export/Import</h1>

<p>Copy the text below to another WordPress installation.</p>

<?php use PerkoCustomizerUI\Services\DataService; ?>

<?php
$sections = DataService::getSections();
var_dump($sections);

echo '<br>';

$controls = DataService::getControls();
var_dump($controls);
$export = ["sections" => $sections, "controls" => $controls];
?>

<textarea readonly rows="10" cols="100"><?= json_encode($export); ?></textarea>

</div>

0 comments on commit 2afc6e4

Please sign in to comment.