mirror of
https://github.com/woodchen-ink/czlexpress-for-woocommerce.git
synced 2025-07-19 06:21:57 +08:00
- Updated plugin URI for better branding consistency. - Added environment checks to ensure WooCommerce is installed and meets version requirements. - Improved AJAX handling for shipment creation and tracking updates, including enhanced error messages. - Streamlined order management with new custom order statuses and improved logging for better tracking. - Removed deprecated API test page and updated admin interface for clarity. - Enhanced localization by ensuring all translatable strings use esc_html functions for security. These changes improve the robustness, usability, and maintainability of the CZL Express plugin.
31 lines
1.0 KiB
PHP
31 lines
1.0 KiB
PHP
<?php
|
|
defined('ABSPATH') || exit;
|
|
|
|
$tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : 'settings';
|
|
?>
|
|
|
|
<div class="wrap">
|
|
<h1><?php echo esc_html(get_admin_page_title()); ?></h1>
|
|
|
|
<nav class="nav-tab-wrapper">
|
|
<a href="?page=czl-express&tab=settings" class="nav-tab <?php echo $tab === 'settings' ? 'nav-tab-active' : ''; ?>">
|
|
<?php esc_html_e('基本设置', 'czlexpress-for-woocommerce'); ?>
|
|
</a>
|
|
<a href="?page=czl-express&tab=test" class="nav-tab <?php echo $tab === 'test' ? 'nav-tab-active' : ''; ?>">
|
|
<?php esc_html_e('接口测试', 'czlexpress-for-woocommerce'); ?>
|
|
</a>
|
|
</nav>
|
|
|
|
<div class="tab-content">
|
|
<?php
|
|
switch ($tab) {
|
|
case 'test':
|
|
require_once CZL_EXPRESS_PATH . 'admin/views/api-test.php';
|
|
break;
|
|
default:
|
|
require_once CZL_EXPRESS_PATH . 'admin/views/settings.php';
|
|
break;
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|