diff --git a/templates/admin/dashboard.php b/templates/admin/dashboard.php index c59eddd..8c405ea 100644 --- a/templates/admin/dashboard.php +++ b/templates/admin/dashboard.php @@ -10,22 +10,33 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } + +$sync_pairs = $settings->syncPairs(); + +if ( array() === $sync_pairs ) { + $sync_pairs = array( + array( + 'name' => '', + 'source_url' => '', + 'destination_url' => '', + 'username' => '', + 'application_password' => '', + 'default_direction' => 'push', + 'content_types' => array( 'posts', 'terms', 'media', 'custom_post_types' ), + 'url_mappings' => array( + array( + 'source' => '', + 'destination' => '', + ), + ), + ), + ); +} ?>
- -
-| - | syncPairs() ) ); ?> | -
|---|---|
| - | loggingLevel() ); ?> | -
| - | + + | -
| - | conflictStrategy() ); ?> | -
| + | + |
|---|---|
| + | + |
| + | + |
| + | + |
| + | + + + | +
| + | + + | +
| + |
+
+ + + |
+
| + | + '', 'destination' => '' ); ?> + + + | +
| + | + + | +
|---|---|
| + | + + | +
| + | + + | +
| + | + |
| + | + + | +