mirror of
https://github.com/woodchen-ink/czlexpress-for-woocommerce.git
synced 2025-07-19 06:21:57 +08:00
- Renamed the plugin from "woocommerce-czlexpress" to "CZL Express for WooCommerce" for better branding. - Updated README and readme.txt files to reflect the new plugin name and improved description. - Enhanced system requirements to support PHP 8.0 and tested compatibility with WordPress 6.7. - Removed outdated files and references, including the main plugin file and language files. - Improved localization by updating text domain references throughout the codebase. - Streamlined the admin interface for better usability, including updated labels and descriptions. These changes enhance the clarity, performance, and user experience of the CZL Express plugin.
31 lines
1012 B
PHP
31 lines
1012 B
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 _e('基本设置', 'czlexpress-for-woocommerce'); ?>
|
|
</a>
|
|
<a href="?page=czl-express&tab=test" class="nav-tab <?php echo $tab === 'test' ? 'nav-tab-active' : ''; ?>">
|
|
<?php _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>
|