Files
WP-Content-Sync/templates/admin/dashboard.php
T
2026-04-26 12:44:16 -05:00

59 lines
1.7 KiB
PHP

<?php
/**
* Admin dashboard template.
*
* @package WPContentSync
*
* @var \WPContentSync\Settings\Settings $settings
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wrap">
<h1><?php echo esc_html__( 'WP Content Sync', 'wp-content-sync' ); ?></h1>
<p><?php echo esc_html__( 'Configure sync pairs, test connections, and run push or pull operations from this screen.', 'wp-content-sync' ); ?></p>
<div class="notice notice-info">
<p>
<?php
echo esc_html__(
'The foundation is installed. Sync pair management, URL mappings, file transport, and REST transport will be added in upcoming implementation phases.',
'wp-content-sync'
);
?>
</p>
</div>
<h2><?php echo esc_html__( 'Current Defaults', 'wp-content-sync' ); ?></h2>
<table class="widefat striped">
<tbody>
<tr>
<th scope="row"><?php echo esc_html__( 'Configured Sync Pairs', 'wp-content-sync' ); ?></th>
<td><?php echo esc_html( (string) count( $settings->syncPairs() ) ); ?></td>
</tr>
<tr>
<th scope="row"><?php echo esc_html__( 'Logging Level', 'wp-content-sync' ); ?></th>
<td><?php echo esc_html( $settings->loggingLevel() ); ?></td>
</tr>
<tr>
<th scope="row"><?php echo esc_html__( 'URL Replacement', 'wp-content-sync' ); ?></th>
<td>
<?php
echo esc_html(
$settings->automaticUrlReplacementEnabled()
? __( 'Enabled', 'wp-content-sync' )
: __( 'Disabled', 'wp-content-sync' )
);
?>
</td>
</tr>
<tr>
<th scope="row"><?php echo esc_html__( 'Conflict Strategy', 'wp-content-sync' ); ?></th>
<td><?php echo esc_html( $settings->conflictStrategy() ); ?></td>
</tr>
</tbody>
</table>
</div>