diff --git a/Plugin.php b/Plugin.php old mode 100644 new mode 100755 index 4723162..c7801a3 --- a/Plugin.php +++ b/Plugin.php @@ -45,7 +45,7 @@ class Plugin { */ add_filter( sprintf( '%splugin_action_links', is_multisite() ? 'network_admin_' : '' ), function ( $links, $plugin = '' ) { $links[] = '参与翻译'; - $links[] = '去广告'; + $links[] = '去广告'; return $links; }, 10, 2 ); diff --git a/Service/Base.php b/Service/Base.php old mode 100644 new mode 100755 index 5938a15..4da50cc --- a/Service/Base.php +++ b/Service/Base.php @@ -16,11 +16,13 @@ class Base { new Super(); // 监控服务 new Monitor(); + // 内存服务 + new Memory(); // 更新服务 new Update(); if ( is_admin() ) { - // 设置服务 - new Setting(); + // 设置服务 + new Setting(); } } } diff --git a/Service/Memory.php b/Service/Memory.php new file mode 100755 index 0000000..23a1115 --- /dev/null +++ b/Service/Memory.php @@ -0,0 +1,254 @@ +' . __('WP_DEBUG', 'wp-china-yes') . ''; + } + return '' . __('WP_DEBUG', 'wp-china-yes') . ''; + } + + /** + * 获取 CPU 使用率 + */ + private function get_cpu_usage() { + if (function_exists('sys_getloadavg') && is_callable('sys_getloadavg')) { + $load = sys_getloadavg(); + return round($load[0] * 100 / 4, 2); // 假设是4核CPU + } + return false; + } + + /** + * 获取 MySQL 版本 + */ + private function get_mysql_version() { + global $wpdb; + return $wpdb->get_var("SELECT VERSION()"); + } + + /** + * 检查 PHP 内存限制 + */ + public function check_memory_limit() { + $this->memory['limit'] = (int) ini_get('memory_limit'); + } + + /** + * 检查内存使用情况 + */ + private function check_memory_usage() { + $this->memory['usage'] = function_exists('memory_get_peak_usage') + ? round(memory_get_peak_usage(true) / 1024 / 1024, 2) + : 0; + + if (!empty($this->memory['usage']) && !empty($this->memory['limit'])) { + $this->memory['percent'] = round($this->memory['usage'] / $this->memory['limit'] * 100, 0); + $this->memory['color'] = $this->get_memory_color($this->memory['percent']); + } + } + + /** + * 获取内存使用率的颜色 + */ + private function get_memory_color($percent) { + if ($percent > 90) { + return 'font-weight:bold;color:red'; + } elseif ($percent > 75) { + return 'font-weight:bold;color:#E66F00'; + } + return 'font-weight:normal;'; + } + + /** + * 格式化 WordPress 内存限制 + */ + private function format_wp_limit($size) { + $unit = strtoupper(substr($size, -1)); + $value = (int) substr($size, 0, -1); + + switch ($unit) { + case 'P': $value *= 1024; + case 'T': $value *= 1024; + case 'G': $value *= 1024; + case 'M': $value *= 1024; + case 'K': $value *= 1024; + } + return $value; + } + + /** + * 获取 WordPress 内存限制 + */ + private function check_wp_limit() { + $memory = $this->format_wp_limit(WP_MEMORY_LIMIT); + return $memory ? size_format($memory) : __('N/A', 'wp-china-yes'); + } + + /** + * 添加信息到管理界面页脚 + */ +public function add_footer($content) { + $settings = get_settings(); + // 确保 memory_display 是数组,如果不是则使用空数组 + $display_options = is_array($settings['memory_display'] ?? []) ? $settings['memory_display'] : []; + + // 如果 memory 设置未启用,直接返回原始内容 + if (empty($settings['memory'])) { + return $content; + } + + $this->check_memory_usage(); + $this->server_ip_address = $_SERVER['SERVER_ADDR'] ?? ($_SERVER['LOCAL_ADDR'] ?? ''); + $this->os_info = $this->get_os_info(); + + $footer_parts = []; + + // 内存使用量 + if (in_array('memory_usage', $display_options)) { + $footer_parts[] = sprintf('%s: %s %s %s MB (%s%%)', + __('Memory', 'wp-china-yes'), + $this->memory['usage'], + __('of', 'wp-china-yes'), + $this->memory['limit'], + $this->memory['color'], + $this->memory['percent'] + ); + } + + // WP内存限制 + if (in_array('wp_limit', $display_options)) { + $footer_parts[] = sprintf('%s: %s', + __('WP LIMIT', 'wp-china-yes'), + $this->check_wp_limit() + ); + } + + // 服务器IP和主机名 + if (in_array('server_ip', $display_options)) { + $hostname_part = in_array('hostname', $display_options) ? " (" . gethostname() . ")" : ""; + $footer_parts[] = sprintf('IP: %s%s', + $this->server_ip_address, + $hostname_part + ); + } + + // 操作系统信息 + if (in_array('os_info', $display_options)) { + $footer_parts[] = sprintf('OS: %s', $this->os_info); + } + + // PHP信息 + if (in_array('php_info', $display_options)) { + $footer_parts[] = sprintf('PHP: %s @%sBitOS', + PHP_VERSION, + PHP_INT_SIZE * 8 + ); + } + + // Debug状态 + if (in_array('debug_status', $display_options)) { + $footer_parts[] = $this->get_debug_status(); + } + + // CPU使用率 + if (in_array('cpu_usage', $display_options)) { + $cpu_usage = $this->get_cpu_usage(); + if ($cpu_usage !== false) { + $footer_parts[] = sprintf('CPU: %s%%', $cpu_usage); + } + } + + // MySQL版本 + if (in_array('mysql_version', $display_options)) { + $footer_parts[] = sprintf('MySQL: %s', $this->get_mysql_version()); + } + + if (!empty($footer_parts)) { + $content .= ' | WPCY - ' . implode(' | ', $footer_parts); + } + + return $content; +} + + + /** + * 检查 PHP 版本 + */ + public function check_php_version() { + if (version_compare(PHP_VERSION, '7.0', '<')) { + deactivate_plugins(plugin_basename(CHINA_YES_PLUGIN_FILE)); + wp_die( + sprintf( + '

%s

%s

', + __('插件无法激活:PHP 版本过低', 'wp-china-yes'), + __('请升级 PHP 至 7.0 或更高版本。', 'wp-china-yes') + ), + __('PHP 版本错误', 'wp-china-yes'), + ['back_link' => true] + ); + } + } +} diff --git a/Service/Monitor.php b/Service/Monitor.php old mode 100644 new mode 100755 index b2be08e..c6d3b44 --- a/Service/Monitor.php +++ b/Service/Monitor.php @@ -1,173 +1,171 @@ -settings = get_settings(); - wp_clear_scheduled_hook( 'wp_china_yes_maybe_check_store' ); // TODO 下个版本移除 - wp_clear_scheduled_hook( 'wp_china_yes_maybe_check_cravatar' ); // TODO 下个版本移除 - wp_clear_scheduled_hook( 'wp_china_yes_maybe_check_admincdn' ); // TODO 下个版本移除 - if ( $this->settings['monitor'] ) { - // 站点网络下只在主站运行 - if ( is_main_site() ) { - add_action( 'init', [ $this, 'init' ] ); - add_action( 'wp_china_yes_monitor', [ - $this, - 'run_monitor' - ] ); - } - } else { - if ( wp_get_scheduled_event( 'wp_china_yes_monitor' ) ) { - wp_clear_scheduled_hook( 'wp_china_yes_monitor' ); - } - } - } - - /** - * 初始化 - */ - public function init() { - if ( ! wp_next_scheduled( 'wp_china_yes_monitor' ) ) { - wp_schedule_event( time(), 'hourly', 'wp_china_yes_monitor' ); - } - } - - /** - * 运行监控 - */ - public function run_monitor() { - if ( $this->settings['store'] != 'off' ) { - $this->maybe_check_store(); - } - if ( $this->settings['cravatar'] != 'off' ) { - $this->maybe_check_cravatar(); - } - if ( ! empty( $this->settings['admincdn'] ) ) { - $this->maybe_check_admincdn(); - } - } - - /** - * 检查应用市场可用性 - */ - public function maybe_check_store() { - $test_url = 'https://api.wenpai.net/china-yes/version-check'; - if ( $this->settings['store'] == 'proxy' ) { - $test_url = 'https://api.wpmirror.com/core/version-check/1.7/'; - } - $response = wp_remote_get( $test_url ); - if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { - if ( $this->settings['store'] == 'wenpai' ) { - $this->settings['store'] = 'proxy'; - } elseif ( $this->settings['store'] == 'proxy' ) { - $this->settings['store'] = 'off'; - } - $this->update_settings(); - } - } - - /** - * 检查初认头像可用性 - */ - public function maybe_check_cravatar() { - $test_url = 'https://cn.cravatar.com/avatar/'; - switch ( $this->settings['cravatar'] ) { - case 'global': - $test_url = 'https://en.cravatar.com/avatar/'; - break; - case 'weavatar': - $test_url = 'https://weavatar.com/avatar/'; - break; - } - $response = wp_remote_get( $test_url ); - if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { - if ( $this->settings['cravatar'] == 'cn' ) { - $this->settings['cravatar'] = 'global'; - } elseif ( $this->settings['cravatar'] == 'global' ) { - $this->settings['cravatar'] = 'weavatar'; - } elseif ( $this->settings['cravatar'] == 'weavatar' ) { - $this->settings['cravatar'] = 'cn'; - } - $this->update_settings(); - } - } - - /** - * 检查萌芽加速可用性 - */ - public function maybe_check_admincdn() { - // 后台加速 - if ( in_array( 'admin', $this->settings['admincdn'] ) ) { - $response = wp_remote_get( 'https://wpstatic.admincdn.com/6.7/wp-includes/js/wp-sanitize.min.js' ); - if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { - $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'admin' ] ) ); - $this->update_settings(); - } - } - // 前台加速 - if ( in_array( 'frontend', $this->settings['admincdn'] ) ) { - $url = network_site_url( '/wp-includes/js/wp-sanitize.min.js' ); - $response = wp_remote_get( 'https://public.admincdn.com/' . $url ); - if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { - $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'frontend' ] ) ); - $this->update_settings(); - } - } - // Google 字体 - if ( in_array( 'googlefonts', $this->settings['admincdn'] ) ) { - $response = wp_remote_get( 'https://googlefonts.admincdn.com/css?family=Roboto:400,700' ); - if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { - $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'googlefonts' ] ) ); - $this->update_settings(); - } - } - // Google 前端公共库 - if ( in_array( 'googleajax', $this->settings['admincdn'] ) ) { - $response = wp_remote_get( 'https://googleajax.admincdn.com/ajax/libs/jquery/3.7.1/jquery.slim.min.js' ); - if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { - $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'googleajax' ] ) ); - $this->update_settings(); - } - } - // CDNJS 前端公共库 - if ( in_array( 'cdnjs', $this->settings['admincdn'] ) ) { - $response = wp_remote_get( 'https://cdnjs.admincdn.com/jquery/3.7.1/jquery.slim.min.js' ); - if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { - $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'cdnjs' ] ) ); - $this->update_settings(); - } - } - // jsDelivr 公共库 - if ( in_array( 'jsdelivr', $this->settings['admincdn'] ) ) { - $response = wp_remote_get( 'https://jsd.admincdn.com/npm/jquery@3.7.1/dist/jquery.slim.min.js' ); - if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { - $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'jsdelivr' ] ) ); - $this->update_settings(); - } - } - } - - /** - * 更新设置 - */ - private function update_settings() { - if ( is_multisite() ) { - update_site_option( 'wp_china_yes', $this->settings ); - } else { - update_option( 'wp_china_yes', $this->settings, true ); - } - } -} +settings = get_settings(); + wp_clear_scheduled_hook( 'wp_china_yes_maybe_check_store' ); // TODO 下个版本移除 + wp_clear_scheduled_hook( 'wp_china_yes_maybe_check_cravatar' ); // TODO 下个版本移除 + wp_clear_scheduled_hook( 'wp_china_yes_maybe_check_admincdn' ); // TODO 下个版本移除 + if ( $this->settings['monitor'] ) { + // 站点网络下只在主站运行 + if ( is_main_site() ) { + add_action( 'init', [ $this, 'init' ] ); + add_action( 'wp_china_yes_monitor', [ + $this, + 'run_monitor' + ] ); + } + } else { + wp_clear_scheduled_hook( 'wp_china_yes_monitor' ); + } + } + + /** + * 初始化 + */ + public function init() { + if ( ! wp_next_scheduled( 'wp_china_yes_monitor' ) ) { + wp_schedule_event( time(), 'hourly', 'wp_china_yes_monitor' ); + } + } + + /** + * 运行监控 + */ + public function run_monitor() { + if ( $this->settings['store'] != 'off' ) { + $this->maybe_check_store(); + } + if ( $this->settings['cravatar'] != 'off' ) { + $this->maybe_check_cravatar(); + } + if ( ! empty( $this->settings['admincdn'] ) ) { + $this->maybe_check_admincdn(); + } + } + + /** + * 检查应用市场可用性 + */ + public function maybe_check_store() { + $test_url = 'https://api.wenpai.net/china-yes/version-check'; + if ( $this->settings['store'] == 'proxy' ) { + $test_url = 'https://api.wpmirror.com/core/version-check/1.7/'; + } + $response = wp_remote_get( $test_url ); + if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { + if ( $this->settings['store'] == 'wenpai' ) { + $this->settings['store'] = 'proxy'; + } elseif ( $this->settings['store'] == 'proxy' ) { + $this->settings['store'] = 'off'; + } + $this->update_settings(); + } + } + + /** + * 检查初认头像可用性 + */ + public function maybe_check_cravatar() { + $test_url = 'https://cn.cravatar.com/avatar/'; + switch ( $this->settings['cravatar'] ) { + case 'global': + $test_url = 'https://en.cravatar.com/avatar/'; + break; + case 'weavatar': + $test_url = 'https://weavatar.com/avatar/'; + break; + } + $response = wp_remote_get( $test_url ); + if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { + if ( $this->settings['cravatar'] == 'cn' ) { + $this->settings['cravatar'] = 'global'; + } elseif ( $this->settings['cravatar'] == 'global' ) { + $this->settings['cravatar'] = 'weavatar'; + } elseif ( $this->settings['cravatar'] == 'weavatar' ) { + $this->settings['cravatar'] = 'cn'; + } + $this->update_settings(); + } + } + + /** + * 检查萌芽加速可用性 + */ + public function maybe_check_admincdn() { + // 后台加速 + if ( in_array( 'admin', $this->settings['admincdn'] ) ) { + $response = wp_remote_get( 'https://wpstatic.admincdn.com/6.7/wp-includes/js/wp-sanitize.min.js' ); + if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { + $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'admin' ] ) ); + $this->update_settings(); + } + } + // 前台加速 + if ( in_array( 'frontend', $this->settings['admincdn'] ) ) { + $url = network_site_url( '/wp-includes/js/wp-sanitize.min.js' ); + $response = wp_remote_get( 'https://public.admincdn.com/' . $url ); + if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { + $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'frontend' ] ) ); + $this->update_settings(); + } + } + // Google 字体 + if ( in_array( 'googlefonts', $this->settings['admincdn'] ) ) { + $response = wp_remote_get( 'https://googlefonts.admincdn.com/css?family=Roboto:400,700' ); + if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { + $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'googlefonts' ] ) ); + $this->update_settings(); + } + } + // Google 前端公共库 + if ( in_array( 'googleajax', $this->settings['admincdn'] ) ) { + $response = wp_remote_get( 'https://googleajax.admincdn.com/ajax/libs/jquery/3.7.1/jquery.slim.min.js' ); + if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { + $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'googleajax' ] ) ); + $this->update_settings(); + } + } + // CDNJS 前端公共库 + if ( in_array( 'cdnjs', $this->settings['admincdn'] ) ) { + $response = wp_remote_get( 'https://cdnjs.admincdn.com/jquery/3.7.1/jquery.slim.min.js' ); + if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { + $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'cdnjs' ] ) ); + $this->update_settings(); + } + } + // jsDelivr 公共库 + if ( in_array( 'jsdelivr', $this->settings['admincdn'] ) ) { + $response = wp_remote_get( 'https://jsd.admincdn.com/npm/jquery@3.7.1/dist/jquery.slim.min.js' ); + if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) != 200 ) { + $this->settings['admincdn'] = array_values( array_diff( $this->settings['admincdn'], [ 'jsdelivr' ] ) ); + $this->update_settings(); + } + } + } + + /** + * 更新设置 + */ + private function update_settings() { + if ( is_multisite() ) { + update_site_option( 'wp_china_yes', $this->settings ); + } else { + update_option( 'wp_china_yes', $this->settings, true ); + } + } +} diff --git a/Service/Setting.php b/Service/Setting.php index 376bbc6..99b06d0 100755 --- a/Service/Setting.php +++ b/Service/Setting.php @@ -25,6 +25,19 @@ class Setting { self::admin_init(); } + +/** + * 动态获取设置页面的 URL + * + * @return string + */ +private function get_settings_page_url() { + if ( is_multisite() ) { + return network_admin_url( 'settings.php?page=wp-china-yes' ); + } + return admin_url( 'options-general.php?page=wp-china-yes' ); +} + /** * 挂载设置项 */ @@ -55,7 +68,7 @@ class Setting { 'type' => 'content', 'content' => <<

原生体验

文派叶子🍃(WP-China-Yes)是一款不可多得的 WordPress 系统底层优化和生态基础设施软件。

网站加速

优化加速插件多如牛毛,为何文派叶子如此与众不同?

进一步了解 ↗

翻译推送

高质量翻译中文本地化翻译由文派开源官方提供,欢迎参与改进。

本地化改进 ↗

广告屏蔽

呈现清爽整洁的网站后台,清除侵入式后台广告、无用信息。

获取广告规则 ↗

加入我们

关注文派茶馆 WPTEA.com 公众号以及订阅我们的时事通讯即可接收独家内容、提示和更新。

+

原生体验

文派叶子🍃(WP-China-Yes)是一款不可多得的 WordPress 系统底层优化和生态基础设施软件。

网站加速

优化加速插件多如牛毛,为何文派叶子如此与众不同?

进一步了解 ↗

翻译推送

高质量翻译中文本地化翻译由文派开源官方提供,欢迎参与改进。

本地化改进 ↗

广告屏蔽

呈现清爽整洁的网站后台,清除侵入式后台广告、无用信息。

获取广告规则 ↗

加入我们

关注文派茶馆 WPTEA.com 公众号以及订阅我们的时事通讯即可接收独家内容、提示和更新。

HTML, ] ], @@ -71,13 +84,13 @@ HTML, 'title' => __( '应用市场', 'wp-china-yes' ), 'inline' => true, 'options' => [ + 'wenpai' => '文派开源', 'proxy' => '官方镜像', - 'wenpai' => '文派开源', 'off' => '不启用' ], 'default' => 'wenpai', 'subtitle' => '是否启用市场加速', - 'desc' => __( '官方加速源(WPMirror)直接从 .org 反代至大陆分发;文派开源(WenPai.org)中国境内自建托管仓库,同时集成文派翻译平台。可参考源站说明。', + 'desc' => __( '文派开源(WenPai.org)中国境内自建托管仓库,同时集成文派翻译平台。官方加速源(WPMirror)直接从 .org 反代至大陆分发;可参考源站说明。', 'wp-china-yes' ), ], [ @@ -86,20 +99,36 @@ HTML, 'title' => __( '萌芽加速', 'wp-china-yes' ), 'inline' => true, 'options' => [ - 'admin' => '后台加速', - 'frontend' => '前台加速', 'googlefonts' => 'Google 字体', 'googleajax' => 'Google 前端库', 'cdnjs' => 'CDNJS 前端库', - 'jsdelivr' => 'jsDelivr 前端库' + 'jsdelivr' => 'jsDelivr 前端库', + 'bootstrapcdn' => 'Bootstrap 前端库' ], 'default' => [ 'admin' => 'admin', ], 'subtitle' => '是否启用萌芽加速', - 'desc' => __( '萌芽加速(adminCDN)将 WordPress 依赖的静态文件切换为公共资源,加快网站访问速度。您可按需启用需要加速的项目,更多细节控制和功能,请查看推荐设置。', + 'desc' => __( '萌芽加速(adminCDN)将 WordPress 插件依赖的静态文件切换为公共资源,解决卡顿、加载慢等问题。您可按需启用加速项目,更多细节控制和功能,请查看推荐设置。', 'wp-china-yes' ), ], + [ + 'id' => 'admincdn', + 'type' => 'checkbox', + 'title' => __( '文件加速', 'wp-china-yes' ), + 'inline' => true, + 'options' => [ + 'admin' => '后台加速', + 'frontend' => '前台加速', + ], + 'default' => [ + 'admin' => 'admin', + ], + 'subtitle' => '是否启用文件加速', + 'desc' => __( '专为 WordPress 系统内置依赖的静态资源进行加速,加快网站访问速度,如遇异常请停用对应选项。', + 'wp-china-yes' ), + ], + [ 'id' => 'cravatar', 'type' => 'radio', @@ -148,10 +177,12 @@ HTML, 'corner' => '直角括号', 'space' => '文本空格', 'punctuation' => '标点显示', + 'indent' => '段首缩进', + 'align' => '两端对齐', ], 'default' => '', 'subtitle' => '是否启用排印优化', - 'desc' => __( '排印优化可提升中文网页的视觉美感,适用于中文字体的网站。', + 'desc' => __( '文风字体排印优化可提升中文网页的视觉美感,适用于正式内容的网站。', 'wp-china-yes' ), 'dependency' => [ 'windfonts', @@ -261,7 +292,7 @@ HTML, ], 'default' => 'off', 'subtitle' => '是否启用后台广告屏蔽', - 'desc' => __( '文派叶子🍃(WP-China-Yes)独家特色功能,让您拥有清爽整洁的 WordPress 后台,清除各类常用插件侵入式后台广告、通知及无用信息,拿回您的后台控制权。', + 'desc' => __( '文派叶子🍃(WPCY)独家特色功能,让您拥有清爽整洁的 WordPress 后台,清除各类常用插件侵入式后台广告、通知及无用信息,拿回后台控制权。', 'wp-china-yes' ), ], [ @@ -360,10 +391,10 @@ HTML, ], [ 'id' => 'url', - 'type' => 'text', + 'type' => 'textarea', 'title' => __( 'URL', 'wp-china-yes' ), 'subtitle' => 'URL', - 'desc' => __( '设置需要屏蔽的 URL 关键词', + 'desc' => __( '填入需要屏蔽的 URL 链接,一行一条,注意不要串行', 'wp-china-yes' ), 'default' => '', 'placeholder' => 'example.com', @@ -382,25 +413,64 @@ HTML, ] ); - WP_CHINA_YES::createSection( $this->prefix, [ - 'title' => '节点监控', - 'icon' => 'icon icon-story', - 'fields' => [ - [ - 'id' => 'monitor', - 'type' => 'switcher', - 'default' => true, - 'title' => '节点监控', - 'subtitle' => '自动监控加速节点可用性', - 'desc' => __( '脉云维护(MainCloud)支持自动监控各加速节点可用性,当节点不可用时自动切换至可用节点或关闭加速,以保证您的网站正常访问', - 'wp-china-yes' ), - ], - [ - 'type' => 'content', - 'content' => '启用隐藏设置前请务必的保存或收藏当前设置页面 URL,否则您将无法再次进入插件设置页面', - ], - ], - ] ); +WP_CHINA_YES::createSection( $this->prefix, [ + 'title' => '脉云维护', + 'icon' => 'icon icon-story', + 'fields' => [ + [ + 'id' => 'monitor', + 'type' => 'switcher', + 'default' => true, + 'title' => '节点监控', + 'subtitle' => '自动监控加速节点可用性', + 'desc' => __( '脉云维护(MainCloud)支持自动监控各加速节点可用性,当节点不可用时自动切换至可用节点或关闭加速,以保证您的网站正常访问', + 'wp-china-yes' ), + ], + [ + 'id' => 'memory', + 'type' => 'switcher', + 'default' => true, + 'title' => '系统监控', + 'subtitle' => '自动监控站点系统运行状态', + 'desc' => __( '支持在管理后台页脚中显示系统运行状态,包括内存使用、CPU负载、MySQL版本、调试状态等信息', + 'wp-china-yes' ), + ], + [ + 'id' => 'memory_display', + 'type' => 'checkbox', + 'title' => __( '显示参数', 'wp-china-yes' ), + 'inline' => true, + 'options' => [ + 'memory_usage' => '内存使用量', + 'wp_limit' => 'WP内存限制', + 'server_ip' => '服务器IP', + 'hostname' => '主机名', + 'os_info' => '操作系统', + 'php_info' => 'PHP信息', + 'cpu_usage' => 'CPU使用率', + 'debug_status' => '调试状态', + 'mysql_version'=> 'MySQL版本' + ], + 'default' => [ + 'memory_usage', + 'wp_limit', + 'server_ip', + 'os_info', + 'php_info', + 'cpu_usage', + 'debug_status', + 'mysql_version' + ], + 'subtitle' => '选择页脚要显示的信息', + 'desc' => __( '为网站维护人员提供参考依据,无需登录服务器即可查看相关信息参数','wp-china-yes' ), + 'dependency' => ['memory', '==', 'true'], + ], + [ + 'type' => 'content', + 'content' => '启用隐藏设置前请务必的保存或收藏当前设置页面 URL,否则您将无法再次进入插件设置页面', + ], + ], +] ); WP_CHINA_YES::createSection( $this->prefix, [ 'title' => '品牌白标', @@ -448,7 +518,7 @@ HTML, 'type' => 'content', 'content' => <<

开源建站

文派寻鹿🦌(WP Deer)建站套件是由文派科技官方提供的企业建站产品集合,代码均为 100% GPL 开源,无任何加密隐藏。

SEO 优化技巧

WPXYZ.com ↗

网站政策合规

WPICP.com ↗

软件开发工具

WPSDK.com ↗
+

开源建站

文派寻鹿🦌(WP Deer)建站套件是由文派科技官方提供的企业建站产品集合,代码均为 100% GPL 开源,无任何加密隐藏。

SEO 优化技巧

WPXYZ.com ↗

网站政策合规

WPICP.com ↗

软件开发工具

WPSDK.com ↗
HTML, ] ], @@ -468,9 +538,7 @@ HTML,

项目简介

文派(WordPress)中国本土化项目始于 2019 年,由 文派叶子🍃(WPCY) 插件开启,其前身为 WP-China-Yes。

2023 年 5 月,文派科技完成对该项目的收购,并对其进行了全面的品牌重塑。

-
进一步了解 ↗ - -文派开源(WenPai.org)↗

赞助支持

特别感谢以下企业品牌对文派项目提供的资金资源支持。早期伙伴未来有机会共享文派生态资源,期待社会各界参与。

赞助支持

特别感谢以下企业品牌对文派项目提供的资金资源支持。早期伙伴未来有机会共享文派生态资源,期待社会各界参与。

开发 & 贡献者

100% 开源代码,诚邀您一起参与文派 (WordPress) 软件国产化进程,打造属于自己的开源自助建站程序。

+
推广名单 ↗参与贡献 ↗
HTML, ] ], diff --git a/Service/Super.php b/Service/Super.php old mode 100644 new mode 100755 index c0e10d0..7f664ca --- a/Service/Super.php +++ b/Service/Super.php @@ -55,9 +55,7 @@ HTML; | 翻译平台 | - 文章投稿 - | - 自选新闻源 + 订阅推送

'; + } ); + } + // 支持中文排版两端对齐 + if ( in_array( 'align', (array) $this->settings['windfonts_typography'] ) ) { + add_action( 'wp_head', function () { + echo ''; + } ); + } + } /** diff --git a/Service/Update.php b/Service/Update.php old mode 100644 new mode 100755 diff --git a/assets/css/setting.css b/assets/css/setting.css index 1ad5486..f69d956 100755 --- a/assets/css/setting.css +++ b/assets/css/setting.css @@ -90,6 +90,9 @@ box-shadow: 0 0 0 1px #ccd0d4, 0 1px 1px 1px rgba(0, 0, 0, .04); } +.wp_china_yes-field-checkbox .wp_china_yes--inline-list li, .wp_china_yes-field-radio .wp_china_yes--inline-list li { + margin-right: 20px; +} .wp_china_yes-section { margin: 50px auto; diff --git a/assets/images/qr-banner.jpg b/assets/images/qr-banner.jpg new file mode 100755 index 0000000..4620f3b Binary files /dev/null and b/assets/images/qr-banner.jpg differ diff --git a/assets/images/website-banner.jpg b/assets/images/website-banner.jpg index 475afd7..d212bdc 100755 Binary files a/assets/images/website-banner.jpg and b/assets/images/website-banner.jpg differ diff --git a/framework/assets/css/style-rtl.min.css b/framework/assets/css/style-rtl.min.css old mode 100644 new mode 100755 diff --git a/framework/assets/css/style.min.css b/framework/assets/css/style.min.css old mode 100644 new mode 100755 diff --git a/framework/assets/images/checkerboard.png b/framework/assets/images/checkerboard.png old mode 100644 new mode 100755 diff --git a/framework/assets/images/wp-logo.svg b/framework/assets/images/wp-logo.svg old mode 100644 new mode 100755 diff --git a/framework/assets/images/wp-plugin-logo.svg b/framework/assets/images/wp-plugin-logo.svg old mode 100644 new mode 100755 diff --git a/framework/assets/js/main.min.js b/framework/assets/js/main.min.js old mode 100644 new mode 100755 diff --git a/framework/assets/js/plugins.min.js b/framework/assets/js/plugins.min.js old mode 100644 new mode 100755 diff --git a/framework/classes/abstract.class.php b/framework/classes/abstract.class.php old mode 100644 new mode 100755 diff --git a/framework/classes/admin-options.class.php b/framework/classes/admin-options.class.php old mode 100644 new mode 100755 diff --git a/framework/classes/fields.class.php b/framework/classes/fields.class.php old mode 100644 new mode 100755 diff --git a/framework/fields/accordion/accordion.php b/framework/fields/accordion/accordion.php old mode 100644 new mode 100755 diff --git a/framework/fields/background/background.php b/framework/fields/background/background.php old mode 100644 new mode 100755 diff --git a/framework/fields/backup/backup.php b/framework/fields/backup/backup.php old mode 100644 new mode 100755 diff --git a/framework/fields/border/border.php b/framework/fields/border/border.php old mode 100644 new mode 100755 diff --git a/framework/fields/button_set/button_set.php b/framework/fields/button_set/button_set.php old mode 100644 new mode 100755 diff --git a/framework/fields/callback/callback.php b/framework/fields/callback/callback.php old mode 100644 new mode 100755 diff --git a/framework/fields/checkbox/checkbox.php b/framework/fields/checkbox/checkbox.php old mode 100644 new mode 100755 diff --git a/framework/fields/code_editor/code_editor.php b/framework/fields/code_editor/code_editor.php old mode 100644 new mode 100755 diff --git a/framework/fields/color/color.php b/framework/fields/color/color.php old mode 100644 new mode 100755 diff --git a/framework/fields/color_group/color_group.php b/framework/fields/color_group/color_group.php old mode 100644 new mode 100755 diff --git a/framework/fields/content/content.php b/framework/fields/content/content.php old mode 100644 new mode 100755 diff --git a/framework/fields/date/date.php b/framework/fields/date/date.php old mode 100644 new mode 100755 diff --git a/framework/fields/datetime/datetime.php b/framework/fields/datetime/datetime.php old mode 100644 new mode 100755 diff --git a/framework/fields/dimensions/dimensions.php b/framework/fields/dimensions/dimensions.php old mode 100644 new mode 100755 diff --git a/framework/fields/fieldset/fieldset.php b/framework/fields/fieldset/fieldset.php old mode 100644 new mode 100755 diff --git a/framework/fields/gallery/gallery.php b/framework/fields/gallery/gallery.php old mode 100644 new mode 100755 diff --git a/framework/fields/group/group.php b/framework/fields/group/group.php old mode 100644 new mode 100755 diff --git a/framework/fields/heading/heading.php b/framework/fields/heading/heading.php old mode 100644 new mode 100755 diff --git a/framework/fields/icon/fa4-icons.php b/framework/fields/icon/fa4-icons.php old mode 100644 new mode 100755 diff --git a/framework/fields/icon/fa5-icons.php b/framework/fields/icon/fa5-icons.php old mode 100644 new mode 100755 diff --git a/framework/fields/icon/icon.php b/framework/fields/icon/icon.php old mode 100644 new mode 100755 diff --git a/framework/fields/image_select/image_select.php b/framework/fields/image_select/image_select.php old mode 100644 new mode 100755 diff --git a/framework/fields/index.php b/framework/fields/index.php old mode 100644 new mode 100755 diff --git a/framework/fields/link/link.php b/framework/fields/link/link.php old mode 100644 new mode 100755 diff --git a/framework/fields/link_color/link_color.php b/framework/fields/link_color/link_color.php old mode 100644 new mode 100755 diff --git a/framework/fields/map/map.php b/framework/fields/map/map.php old mode 100644 new mode 100755 diff --git a/framework/fields/media/media.php b/framework/fields/media/media.php old mode 100644 new mode 100755 diff --git a/framework/fields/notice/notice.php b/framework/fields/notice/notice.php old mode 100644 new mode 100755 diff --git a/framework/fields/number/number.php b/framework/fields/number/number.php old mode 100644 new mode 100755 diff --git a/framework/fields/palette/palette.php b/framework/fields/palette/palette.php old mode 100644 new mode 100755 diff --git a/framework/fields/radio/radio.php b/framework/fields/radio/radio.php old mode 100644 new mode 100755 diff --git a/framework/fields/repeater/repeater.php b/framework/fields/repeater/repeater.php old mode 100644 new mode 100755 diff --git a/framework/fields/select/select.php b/framework/fields/select/select.php old mode 100644 new mode 100755 diff --git a/framework/fields/slider/slider.php b/framework/fields/slider/slider.php old mode 100644 new mode 100755 diff --git a/framework/fields/sortable/sortable.php b/framework/fields/sortable/sortable.php old mode 100644 new mode 100755 diff --git a/framework/fields/sorter/sorter.php b/framework/fields/sorter/sorter.php old mode 100644 new mode 100755 diff --git a/framework/fields/spacing/spacing.php b/framework/fields/spacing/spacing.php old mode 100644 new mode 100755 diff --git a/framework/fields/spinner/spinner.php b/framework/fields/spinner/spinner.php old mode 100644 new mode 100755 diff --git a/framework/fields/subheading/subheading.php b/framework/fields/subheading/subheading.php old mode 100644 new mode 100755 diff --git a/framework/fields/submessage/submessage.php b/framework/fields/submessage/submessage.php old mode 100644 new mode 100755 diff --git a/framework/fields/switcher/switcher.php b/framework/fields/switcher/switcher.php old mode 100644 new mode 100755 diff --git a/framework/fields/tabbed/tabbed.php b/framework/fields/tabbed/tabbed.php old mode 100644 new mode 100755 diff --git a/framework/fields/text/text.php b/framework/fields/text/text.php old mode 100644 new mode 100755 diff --git a/framework/fields/textarea/textarea.php b/framework/fields/textarea/textarea.php old mode 100644 new mode 100755 diff --git a/framework/fields/typography/google-fonts.php b/framework/fields/typography/google-fonts.php old mode 100644 new mode 100755 diff --git a/framework/fields/typography/typography.php b/framework/fields/typography/typography.php old mode 100644 new mode 100755 diff --git a/framework/fields/upload/upload.php b/framework/fields/upload/upload.php old mode 100644 new mode 100755 diff --git a/framework/fields/wp_editor/wp_editor.php b/framework/fields/wp_editor/wp_editor.php old mode 100644 new mode 100755 diff --git a/framework/functions/actions.php b/framework/functions/actions.php old mode 100644 new mode 100755 diff --git a/framework/functions/customize.php b/framework/functions/customize.php old mode 100644 new mode 100755 diff --git a/framework/functions/helpers.php b/framework/functions/helpers.php old mode 100644 new mode 100755 diff --git a/framework/functions/sanitize.php b/framework/functions/sanitize.php old mode 100644 new mode 100755 diff --git a/framework/functions/validate.php b/framework/functions/validate.php old mode 100644 new mode 100755 diff --git a/framework/functions/walker.php b/framework/functions/walker.php old mode 100644 new mode 100755 diff --git a/framework/index.php b/framework/index.php old mode 100644 new mode 100755 diff --git a/framework/languages/zh_CN.mo b/framework/languages/zh_CN.mo old mode 100644 new mode 100755 diff --git a/framework/languages/zh_CN.po b/framework/languages/zh_CN.po old mode 100644 new mode 100755 index 4121676..6c4bfc3 --- a/framework/languages/zh_CN.po +++ b/framework/languages/zh_CN.po @@ -1,672 +1,672 @@ -# Copyright (C) 2021 Wp_china_yes -# This file is distributed under the same license as the Wp_china_yes Framework package. -msgid "" -msgstr "" -"POT-Creation-Date: 2021-06-25 12:32:35+00:00\n" -"PO-Revision-Date: 2021-08-19 12:18+0800\n" -"Last-Translator: Seaton Jiang \n" -"Language-Team: \n" -"Language: zh_CN\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.4.3\n" -"Project-Id-Version: \n" - -#: classes/admin-options.class.php:226 -msgid "Error while saving the changes." -msgstr "保存失败" - -#: classes/admin-options.class.php:286 -msgid "Settings successfully imported." -msgstr "导入成功" - -#: classes/admin-options.class.php:298 classes/admin-options.class.php:314 -msgid "Default settings restored." -msgstr "恢复完成" - -#: classes/admin-options.class.php:385 -msgid "Settings saved." -msgstr "保存成功" - -#: classes/admin-options.class.php:565 -msgid "You have unsaved changes, save your changes!" -msgstr "配置发生改变,请勿忘记保存!" - -#: classes/admin-options.class.php:567 -msgid "show all settings" -msgstr "显示所有设置" - -#: classes/admin-options.class.php:569 fields/icon/icon.php:57 -#: fields/map/map.php:23 -msgid "Search..." -msgstr "请输入关键词" - -#: classes/admin-options.class.php:572 classes/admin-options.class.php:695 -msgid "Save" -msgstr "保存配置" - -#: classes/admin-options.class.php:572 classes/admin-options.class.php:695 -msgid "Saving..." -msgstr "正在保存" - -#: classes/admin-options.class.php:573 classes/admin-options.class.php:696 -msgid "Reset Section" -msgstr "恢复此页" - -#: classes/admin-options.class.php:573 classes/admin-options.class.php:696 -msgid "Are you sure to reset this section options?" -msgstr "单击「确定」进行恢复,当前页面的配置将会丢失!" - -#: classes/admin-options.class.php:574 classes/admin-options.class.php:697 -msgid "Reset All" -msgstr "恢复全部" - -#: classes/admin-options.class.php:574 classes/admin-options.class.php:697 -#: classes/comment-options.class.php:216 classes/metabox-options.class.php:294 -#: fields/backup/backup.php:31 -msgid "Reset" -msgstr "恢复默认" - -#: classes/admin-options.class.php:574 classes/admin-options.class.php:697 -msgid "Are you sure you want to reset all settings to default values?" -msgstr "单击「确定」进行恢复,所有页面的配置都将丢失!" - -#: classes/admin-options.class.php:672 classes/comment-options.class.php:199 -#: classes/metabox-options.class.php:277 fields/button_set/button_set.php:56 -#: fields/checkbox/checkbox.php:76 fields/radio/radio.php:75 -#: fields/select/select.php:113 functions/actions.php:41 -msgid "No data available." -msgstr "没有可用数据" - -#: classes/comment-options.class.php:217 classes/metabox-options.class.php:295 -msgid "update post" -msgstr "更新文章" - -#: classes/comment-options.class.php:217 classes/metabox-options.class.php:295 -msgid "Cancel" -msgstr "取消" - -#: classes/setup.class.php:592 -msgid "Are you sure?" -msgstr "单击「确定」进行下一步操作,该操作可能会丢失部分配置!" - -#: classes/setup.class.php:593 -msgid "Please enter %s or more characters" -msgstr "请输入 %s 或更多字符" - -#: classes/setup.class.php:594 -msgid "Searching..." -msgstr "搜索中..." - -#: classes/setup.class.php:595 -msgid "No results found." -msgstr "未找到结果。" - -#: classes/setup.class.php:696 -msgid "Oops! Not allowed." -msgstr "哎呀!不允许。" - -#: classes/setup.class.php:768 classes/setup.class.php:772 -msgid "Field not found!" -msgstr "没有找到任何数据" - -#: classes/shortcode-options.class.php:253 fields/group/group.php:23 -msgid "Add New" -msgstr "新增" - -#: classes/shortcode-options.class.php:290 functions/actions.php:16 -#: functions/actions.php:68 functions/actions.php:106 functions/actions.php:141 -#: functions/actions.php:170 -msgid "Error: Invalid nonce verification." -msgstr "错误: 无效的nonce验证。" - -#: fields/background/background.php:36 fields/media/media.php:59 -msgid "Not selected" -msgstr "未选择" - -#: fields/background/background.php:72 fields/date/date.php:31 -msgid "From" -msgstr "从" - -#: fields/background/background.php:90 fields/date/date.php:32 -msgid "To" -msgstr "到" - -#: fields/background/background.php:108 -msgid "Direction" -msgstr "方向" - -#: fields/background/background.php:114 -msgid "Gradient Direction" -msgstr "渐变方向" - -#: fields/background/background.php:115 -msgid "⇓ top to bottom" -msgstr "⇓ 从上到下" - -#: fields/background/background.php:116 -msgid "⇒ left to right" -msgstr "⇒从左到右" - -#: fields/background/background.php:117 -msgid "⇘ corner top to right" -msgstr "⇘ 右上角" - -#: fields/background/background.php:118 -msgid "⇙ corner top to left" -msgstr "⇘ 左上角" - -#: fields/background/background.php:161 -msgid "Background Position" -msgstr "背景位置" - -#: fields/background/background.php:162 -msgid "Left Top" -msgstr "左上" - -#: fields/background/background.php:163 -msgid "Left Center" -msgstr "左中" - -#: fields/background/background.php:164 -msgid "Left Bottom" -msgstr "左下" - -#: fields/background/background.php:165 -msgid "Center Top" -msgstr "中上" - -#: fields/background/background.php:166 -msgid "Center Center" -msgstr "居中" - -#: fields/background/background.php:167 -msgid "Center Bottom" -msgstr "中下" - -#: fields/background/background.php:168 -msgid "Right Top" -msgstr "右上" - -#: fields/background/background.php:169 -msgid "Right Center" -msgstr "右中" - -#: fields/background/background.php:170 -msgid "Right Bottom" -msgstr "右下" - -#: fields/background/background.php:184 -msgid "Background Repeat" -msgstr "背景重复" - -#: fields/background/background.php:185 -msgid "Repeat" -msgstr "重复" - -#: fields/background/background.php:186 -msgid "No Repeat" -msgstr "不重复" - -#: fields/background/background.php:187 -msgid "Repeat Horizontally" -msgstr "水平重复" - -#: fields/background/background.php:188 -msgid "Repeat Vertically" -msgstr "垂直重复" - -#: fields/background/background.php:202 -msgid "Background Attachment" -msgstr "背景附件" - -#: fields/background/background.php:203 -msgid "Scroll" -msgstr "滚动" - -#: fields/background/background.php:204 -msgid "Fixed" -msgstr "固定" - -#: fields/background/background.php:218 -msgid "Background Size" -msgstr "背景大小" - -#: fields/background/background.php:219 -msgid "Cover" -msgstr "覆盖" - -#: fields/background/background.php:220 -msgid "Contain" -msgstr "包含" - -#: fields/background/background.php:221 -msgid "Auto" -msgstr "自动" - -#: fields/background/background.php:235 -msgid "Background Origin" -msgstr "背景起源" - -#: fields/background/background.php:236 fields/background/background.php:254 -msgid "Padding Box" -msgstr "框内边距" - -#: fields/background/background.php:237 fields/background/background.php:253 -msgid "Border Box" -msgstr "边框" - -#: fields/background/background.php:238 fields/background/background.php:255 -msgid "Content Box" -msgstr "内容框" - -#: fields/background/background.php:252 -msgid "Background Clip" -msgstr "背景剪辑" - -#: fields/background/background.php:269 -msgid "Background Blend Mode" -msgstr "背景混合模式" - -#: fields/background/background.php:270 fields/link_color/link_color.php:36 -#: fields/typography/typography.php:186 -msgid "Normal" -msgstr "正常" - -#: fields/background/background.php:271 -msgid "Multiply" -msgstr "乘" - -#: fields/background/background.php:272 -msgid "Screen" -msgstr "屏幕" - -#: fields/background/background.php:273 -msgid "Overlay" -msgstr "覆盖" - -#: fields/background/background.php:274 -msgid "Darken" -msgstr "变黑" - -#: fields/background/background.php:275 -msgid "Lighten" -msgstr "减轻" - -#: fields/background/background.php:276 -msgid "Color Dodge" -msgstr "颜色减淡" - -#: fields/background/background.php:277 -msgid "Saturation" -msgstr "饱和度" - -#: fields/background/background.php:278 -msgid "Color" -msgstr "颜色" - -#: fields/background/background.php:279 -msgid "Luminosity" -msgstr "光度" - -#: fields/backup/backup.php:26 -msgid "Import" -msgstr "导入" - -#: fields/backup/backup.php:29 -msgid "Export & Download" -msgstr "导出和下载" - -#: fields/border/border.php:25 fields/spacing/spacing.php:25 -msgid "top" -msgstr "顶部" - -#: fields/border/border.php:26 fields/spacing/spacing.php:26 -msgid "right" -msgstr "右" - -#: fields/border/border.php:27 fields/spacing/spacing.php:27 -msgid "bottom" -msgstr "底部" - -#: fields/border/border.php:28 fields/spacing/spacing.php:28 -msgid "left" -msgstr "左" - -#: fields/border/border.php:29 fields/spacing/spacing.php:29 -msgid "all" -msgstr "所有" - -#: fields/border/border.php:51 fields/typography/typography.php:214 -msgid "Solid" -msgstr "实线" - -#: fields/border/border.php:52 fields/typography/typography.php:217 -msgid "Dashed" -msgstr "虚线" - -#: fields/border/border.php:53 fields/typography/typography.php:216 -msgid "Dotted" -msgstr "点线" - -#: fields/border/border.php:54 fields/typography/typography.php:215 -msgid "Double" -msgstr "双线" - -#: fields/border/border.php:55 -msgid "Inset" -msgstr "插入" - -#: fields/border/border.php:56 -msgid "Outset" -msgstr "开始" - -#: fields/border/border.php:57 -msgid "Groove" -msgstr "凹槽" - -#: fields/border/border.php:58 -msgid "ridge" -msgstr "凸出" - -#: fields/border/border.php:59 fields/typography/typography.php:199 -#: fields/typography/typography.php:213 -msgid "None" -msgstr "无" - -#: fields/dimensions/dimensions.php:22 -msgid "width" -msgstr "宽度" - -#: fields/dimensions/dimensions.php:23 -msgid "height" -msgstr "高度" - -#: fields/gallery/gallery.php:20 -msgid "Add Gallery" -msgstr "添加图库" - -#: fields/gallery/gallery.php:21 -msgid "Edit Gallery" -msgstr "编辑图库" - -#: fields/gallery/gallery.php:22 -msgid "Clear" -msgstr "清除" - -#: fields/group/group.php:35 fields/repeater/repeater.php:27 -msgid "Error: Field ID conflict." -msgstr "错误:字段ID冲突。" - -#: fields/group/group.php:46 fields/group/group.php:87 -#: fields/repeater/repeater.php:48 fields/repeater/repeater.php:76 -msgid "Are you sure to delete this item?" -msgstr "确定要删除这个项目吗?" - -#: fields/group/group.php:121 fields/repeater/repeater.php:89 -msgid "You cannot add more." -msgstr "无法添加更多" - -#: fields/group/group.php:122 fields/repeater/repeater.php:90 -msgid "You cannot remove more." -msgstr "无法删除更多" - -#: fields/icon/icon.php:20 fields/icon/icon.php:53 -msgid "Add Icon" -msgstr "添加图标" - -#: fields/icon/icon.php:21 -msgid "Remove Icon" -msgstr "删除图标" - -#: fields/link/link.php:20 -msgid "Add Link" -msgstr "添加链接" - -#: fields/link/link.php:21 -msgid "Edit Link" -msgstr "编辑链接" - -#: fields/link/link.php:22 -msgid "Remove Link" -msgstr "移除链接" - -#: fields/link_color/link_color.php:37 -msgid "Hover" -msgstr "悬停" - -#: fields/link_color/link_color.php:38 -msgid "Active" -msgstr "启用" - -#: fields/link_color/link_color.php:39 -msgid "Visited" -msgstr "访问" - -#: fields/link_color/link_color.php:40 -msgid "Focus" -msgstr "焦点" - -#: fields/map/map.php:24 -msgid "Latitude" -msgstr "纬度" - -#: fields/map/map.php:25 -msgid "Longitude" -msgstr "经度" - -#: fields/media/media.php:25 fields/upload/upload.php:25 -msgid "Upload" -msgstr "上传" - -#: fields/media/media.php:26 fields/upload/upload.php:26 -msgid "Remove" -msgstr "删除" - -#: fields/sorter/sorter.php:21 -msgid "Enabled" -msgstr "启用" - -#: fields/sorter/sorter.php:22 -msgid "Disabled" -msgstr "禁用" - -#: fields/switcher/switcher.php:20 -msgid "On" -msgstr "启用" - -#: fields/switcher/switcher.php:21 -msgid "Off" -msgstr "禁用" - -#: fields/typography/typography.php:96 -msgid "Font Family" -msgstr "字体" - -#: fields/typography/typography.php:97 -msgid "Select a font" -msgstr "选择字体" - -#: fields/typography/typography.php:105 -msgid "Backup Font Family" -msgstr "备份字体系列" - -#: fields/typography/typography.php:119 fields/typography/typography.php:132 -#: fields/typography/typography.php:145 fields/typography/typography.php:160 -#: fields/typography/typography.php:176 fields/typography/typography.php:189 -#: fields/typography/typography.php:203 fields/typography/typography.php:221 -msgid "Default" -msgstr "默认" - -#: fields/typography/typography.php:130 -msgid "Font Style" -msgstr "字体样式" - -#: fields/typography/typography.php:144 fields/typography/typography.php:145 -msgid "Load Extra Styles" -msgstr "加载额外样式" - -#: fields/typography/typography.php:158 -msgid "Subset" -msgstr "子集" - -#: fields/typography/typography.php:168 -msgid "Text Align" -msgstr "文本对齐" - -#: fields/typography/typography.php:170 -msgid "Inherit" -msgstr "继承" - -#: fields/typography/typography.php:171 -msgid "Left" -msgstr "左侧" - -#: fields/typography/typography.php:172 -msgid "Center" -msgstr "居中" - -#: fields/typography/typography.php:173 -msgid "Right" -msgstr "右侧" - -#: fields/typography/typography.php:174 -msgid "Justify" -msgstr "两端对齐" - -#: fields/typography/typography.php:175 -msgid "Initial" -msgstr "初始" - -#: fields/typography/typography.php:184 -msgid "Font Variant" -msgstr "字体变体" - -#: fields/typography/typography.php:187 -msgid "Small Caps" -msgstr "小写" - -#: fields/typography/typography.php:188 -msgid "All Small Caps" -msgstr "所有字母小写" - -#: fields/typography/typography.php:197 -msgid "Text Transform" -msgstr "文本转换" - -#: fields/typography/typography.php:200 -msgid "Capitalize" -msgstr "大写" - -#: fields/typography/typography.php:201 -msgid "Uppercase" -msgstr "大写" - -#: fields/typography/typography.php:202 -msgid "Lowercase" -msgstr "小写" - -#: fields/typography/typography.php:211 -msgid "Text Decoration" -msgstr "文本装饰" - -#: fields/typography/typography.php:218 -msgid "Wavy" -msgstr "波浪" - -#: fields/typography/typography.php:219 -msgid "Overline" -msgstr "上划线" - -#: fields/typography/typography.php:220 -msgid "Line-through" -msgstr "删除线" - -#: fields/typography/typography.php:233 -msgid "Font Size" -msgstr "字体大小" - -#: fields/typography/typography.php:245 -msgid "Line Height" -msgstr "线高度" - -#: fields/typography/typography.php:257 -msgid "Letter Spacing" -msgstr "字母间距" - -#: fields/typography/typography.php:269 -msgid "Word Spacing" -msgstr "字间距" - -#: fields/typography/typography.php:284 -msgid "Font Color" -msgstr "字体颜色" - -#: fields/typography/typography.php:295 -msgid "Custom Style" -msgstr "自定义样式" - -#: fields/typography/typography.php:362 -msgid "Custom Web Fonts" -msgstr "自定义 Web 字体" - -#: fields/typography/typography.php:368 -msgid "Safe Web Fonts" -msgstr "Web 安全字体" - -#: fields/typography/typography.php:388 -msgid "Google Web Fonts" -msgstr "Google Web 字体" - -#: functions/actions.php:72 functions/actions.php:110 -msgid "Error: Invalid key." -msgstr "错误:无效密钥。" - -#: functions/actions.php:114 -msgid "Error: The response is not a valid JSON response." -msgstr "错误:响应不是有效的 JSON 响应。" - -#: functions/actions.php:174 -msgid "Error: Invalid term ID." -msgstr "错误:无效的项目ID。" - -#: functions/actions.php:180 -msgid "Error: You do not have permission to do that." -msgstr "错误:您无权这样做。" - -#: functions/validate.php:14 functions/validate.php:86 -msgid "Please enter a valid email address." -msgstr "请输入正确的电子邮件地址。" - -#: functions/validate.php:32 functions/validate.php:106 -msgid "Please enter a valid number." -msgstr "请输入有效的数字" - -#: functions/validate.php:50 functions/validate.php:126 -msgid "This field is required." -msgstr "这是必填栏。" - -#: functions/validate.php:68 functions/validate.php:146 -msgid "Please enter a valid URL." -msgstr "请输入有效网址" - -#. Plugin Name of the plugin/theme -msgid "Wp_china_yes Framework" -msgstr "Wp_china_yes Framework" - -#. Plugin URI of the plugin/theme -msgid "http://wp_china_yesframework.com/" -msgstr "http://wp_china_yesframework.com/" - -#. Description of the plugin/theme -msgid "A Simple and Lightweight WordPress Option Framework for Themes and Plugins" -msgstr "一个简单且轻量的 WordPress 主题和插件选项框架" - -#. Author of the plugin/theme -msgid "Wp_china_yes" -msgstr "Wp_china_yes" - -#. Author URI of the plugin/theme -msgid "http://wp_china_yesthemes.com/" -msgstr "http://wp_china_yesthemes.com/" +# Copyright (C) 2021 Wp_china_yes +# This file is distributed under the same license as the Wp_china_yes Framework package. +msgid "" +msgstr "" +"POT-Creation-Date: 2021-06-25 12:32:35+00:00\n" +"PO-Revision-Date: 2021-08-19 12:18+0800\n" +"Last-Translator: Seaton Jiang \n" +"Language-Team: \n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.4.3\n" +"Project-Id-Version: \n" + +#: classes/admin-options.class.php:226 +msgid "Error while saving the changes." +msgstr "保存失败" + +#: classes/admin-options.class.php:286 +msgid "Settings successfully imported." +msgstr "导入成功" + +#: classes/admin-options.class.php:298 classes/admin-options.class.php:314 +msgid "Default settings restored." +msgstr "恢复完成" + +#: classes/admin-options.class.php:385 +msgid "Settings saved." +msgstr "保存成功" + +#: classes/admin-options.class.php:565 +msgid "You have unsaved changes, save your changes!" +msgstr "配置发生改变,请勿忘记保存!" + +#: classes/admin-options.class.php:567 +msgid "show all settings" +msgstr "显示所有设置" + +#: classes/admin-options.class.php:569 fields/icon/icon.php:57 +#: fields/map/map.php:23 +msgid "Search..." +msgstr "请输入关键词" + +#: classes/admin-options.class.php:572 classes/admin-options.class.php:695 +msgid "Save" +msgstr "保存配置" + +#: classes/admin-options.class.php:572 classes/admin-options.class.php:695 +msgid "Saving..." +msgstr "正在保存" + +#: classes/admin-options.class.php:573 classes/admin-options.class.php:696 +msgid "Reset Section" +msgstr "恢复此页" + +#: classes/admin-options.class.php:573 classes/admin-options.class.php:696 +msgid "Are you sure to reset this section options?" +msgstr "单击「确定」进行恢复,当前页面的配置将会丢失!" + +#: classes/admin-options.class.php:574 classes/admin-options.class.php:697 +msgid "Reset All" +msgstr "恢复全部" + +#: classes/admin-options.class.php:574 classes/admin-options.class.php:697 +#: classes/comment-options.class.php:216 classes/metabox-options.class.php:294 +#: fields/backup/backup.php:31 +msgid "Reset" +msgstr "恢复默认" + +#: classes/admin-options.class.php:574 classes/admin-options.class.php:697 +msgid "Are you sure you want to reset all settings to default values?" +msgstr "单击「确定」进行恢复,所有页面的配置都将丢失!" + +#: classes/admin-options.class.php:672 classes/comment-options.class.php:199 +#: classes/metabox-options.class.php:277 fields/button_set/button_set.php:56 +#: fields/checkbox/checkbox.php:76 fields/radio/radio.php:75 +#: fields/select/select.php:113 functions/actions.php:41 +msgid "No data available." +msgstr "没有可用数据" + +#: classes/comment-options.class.php:217 classes/metabox-options.class.php:295 +msgid "update post" +msgstr "更新文章" + +#: classes/comment-options.class.php:217 classes/metabox-options.class.php:295 +msgid "Cancel" +msgstr "取消" + +#: classes/setup.class.php:592 +msgid "Are you sure?" +msgstr "单击「确定」进行下一步操作,该操作可能会丢失部分配置!" + +#: classes/setup.class.php:593 +msgid "Please enter %s or more characters" +msgstr "请输入 %s 或更多字符" + +#: classes/setup.class.php:594 +msgid "Searching..." +msgstr "搜索中..." + +#: classes/setup.class.php:595 +msgid "No results found." +msgstr "未找到结果。" + +#: classes/setup.class.php:696 +msgid "Oops! Not allowed." +msgstr "哎呀!不允许。" + +#: classes/setup.class.php:768 classes/setup.class.php:772 +msgid "Field not found!" +msgstr "没有找到任何数据" + +#: classes/shortcode-options.class.php:253 fields/group/group.php:23 +msgid "Add New" +msgstr "新增" + +#: classes/shortcode-options.class.php:290 functions/actions.php:16 +#: functions/actions.php:68 functions/actions.php:106 functions/actions.php:141 +#: functions/actions.php:170 +msgid "Error: Invalid nonce verification." +msgstr "错误: 无效的nonce验证。" + +#: fields/background/background.php:36 fields/media/media.php:59 +msgid "Not selected" +msgstr "未选择" + +#: fields/background/background.php:72 fields/date/date.php:31 +msgid "From" +msgstr "从" + +#: fields/background/background.php:90 fields/date/date.php:32 +msgid "To" +msgstr "到" + +#: fields/background/background.php:108 +msgid "Direction" +msgstr "方向" + +#: fields/background/background.php:114 +msgid "Gradient Direction" +msgstr "渐变方向" + +#: fields/background/background.php:115 +msgid "⇓ top to bottom" +msgstr "⇓ 从上到下" + +#: fields/background/background.php:116 +msgid "⇒ left to right" +msgstr "⇒从左到右" + +#: fields/background/background.php:117 +msgid "⇘ corner top to right" +msgstr "⇘ 右上角" + +#: fields/background/background.php:118 +msgid "⇙ corner top to left" +msgstr "⇘ 左上角" + +#: fields/background/background.php:161 +msgid "Background Position" +msgstr "背景位置" + +#: fields/background/background.php:162 +msgid "Left Top" +msgstr "左上" + +#: fields/background/background.php:163 +msgid "Left Center" +msgstr "左中" + +#: fields/background/background.php:164 +msgid "Left Bottom" +msgstr "左下" + +#: fields/background/background.php:165 +msgid "Center Top" +msgstr "中上" + +#: fields/background/background.php:166 +msgid "Center Center" +msgstr "居中" + +#: fields/background/background.php:167 +msgid "Center Bottom" +msgstr "中下" + +#: fields/background/background.php:168 +msgid "Right Top" +msgstr "右上" + +#: fields/background/background.php:169 +msgid "Right Center" +msgstr "右中" + +#: fields/background/background.php:170 +msgid "Right Bottom" +msgstr "右下" + +#: fields/background/background.php:184 +msgid "Background Repeat" +msgstr "背景重复" + +#: fields/background/background.php:185 +msgid "Repeat" +msgstr "重复" + +#: fields/background/background.php:186 +msgid "No Repeat" +msgstr "不重复" + +#: fields/background/background.php:187 +msgid "Repeat Horizontally" +msgstr "水平重复" + +#: fields/background/background.php:188 +msgid "Repeat Vertically" +msgstr "垂直重复" + +#: fields/background/background.php:202 +msgid "Background Attachment" +msgstr "背景附件" + +#: fields/background/background.php:203 +msgid "Scroll" +msgstr "滚动" + +#: fields/background/background.php:204 +msgid "Fixed" +msgstr "固定" + +#: fields/background/background.php:218 +msgid "Background Size" +msgstr "背景大小" + +#: fields/background/background.php:219 +msgid "Cover" +msgstr "覆盖" + +#: fields/background/background.php:220 +msgid "Contain" +msgstr "包含" + +#: fields/background/background.php:221 +msgid "Auto" +msgstr "自动" + +#: fields/background/background.php:235 +msgid "Background Origin" +msgstr "背景起源" + +#: fields/background/background.php:236 fields/background/background.php:254 +msgid "Padding Box" +msgstr "框内边距" + +#: fields/background/background.php:237 fields/background/background.php:253 +msgid "Border Box" +msgstr "边框" + +#: fields/background/background.php:238 fields/background/background.php:255 +msgid "Content Box" +msgstr "内容框" + +#: fields/background/background.php:252 +msgid "Background Clip" +msgstr "背景剪辑" + +#: fields/background/background.php:269 +msgid "Background Blend Mode" +msgstr "背景混合模式" + +#: fields/background/background.php:270 fields/link_color/link_color.php:36 +#: fields/typography/typography.php:186 +msgid "Normal" +msgstr "正常" + +#: fields/background/background.php:271 +msgid "Multiply" +msgstr "乘" + +#: fields/background/background.php:272 +msgid "Screen" +msgstr "屏幕" + +#: fields/background/background.php:273 +msgid "Overlay" +msgstr "覆盖" + +#: fields/background/background.php:274 +msgid "Darken" +msgstr "变黑" + +#: fields/background/background.php:275 +msgid "Lighten" +msgstr "减轻" + +#: fields/background/background.php:276 +msgid "Color Dodge" +msgstr "颜色减淡" + +#: fields/background/background.php:277 +msgid "Saturation" +msgstr "饱和度" + +#: fields/background/background.php:278 +msgid "Color" +msgstr "颜色" + +#: fields/background/background.php:279 +msgid "Luminosity" +msgstr "光度" + +#: fields/backup/backup.php:26 +msgid "Import" +msgstr "导入" + +#: fields/backup/backup.php:29 +msgid "Export & Download" +msgstr "导出和下载" + +#: fields/border/border.php:25 fields/spacing/spacing.php:25 +msgid "top" +msgstr "顶部" + +#: fields/border/border.php:26 fields/spacing/spacing.php:26 +msgid "right" +msgstr "右" + +#: fields/border/border.php:27 fields/spacing/spacing.php:27 +msgid "bottom" +msgstr "底部" + +#: fields/border/border.php:28 fields/spacing/spacing.php:28 +msgid "left" +msgstr "左" + +#: fields/border/border.php:29 fields/spacing/spacing.php:29 +msgid "all" +msgstr "所有" + +#: fields/border/border.php:51 fields/typography/typography.php:214 +msgid "Solid" +msgstr "实线" + +#: fields/border/border.php:52 fields/typography/typography.php:217 +msgid "Dashed" +msgstr "虚线" + +#: fields/border/border.php:53 fields/typography/typography.php:216 +msgid "Dotted" +msgstr "点线" + +#: fields/border/border.php:54 fields/typography/typography.php:215 +msgid "Double" +msgstr "双线" + +#: fields/border/border.php:55 +msgid "Inset" +msgstr "插入" + +#: fields/border/border.php:56 +msgid "Outset" +msgstr "开始" + +#: fields/border/border.php:57 +msgid "Groove" +msgstr "凹槽" + +#: fields/border/border.php:58 +msgid "ridge" +msgstr "凸出" + +#: fields/border/border.php:59 fields/typography/typography.php:199 +#: fields/typography/typography.php:213 +msgid "None" +msgstr "无" + +#: fields/dimensions/dimensions.php:22 +msgid "width" +msgstr "宽度" + +#: fields/dimensions/dimensions.php:23 +msgid "height" +msgstr "高度" + +#: fields/gallery/gallery.php:20 +msgid "Add Gallery" +msgstr "添加图库" + +#: fields/gallery/gallery.php:21 +msgid "Edit Gallery" +msgstr "编辑图库" + +#: fields/gallery/gallery.php:22 +msgid "Clear" +msgstr "清除" + +#: fields/group/group.php:35 fields/repeater/repeater.php:27 +msgid "Error: Field ID conflict." +msgstr "错误:字段ID冲突。" + +#: fields/group/group.php:46 fields/group/group.php:87 +#: fields/repeater/repeater.php:48 fields/repeater/repeater.php:76 +msgid "Are you sure to delete this item?" +msgstr "确定要删除这个项目吗?" + +#: fields/group/group.php:121 fields/repeater/repeater.php:89 +msgid "You cannot add more." +msgstr "无法添加更多" + +#: fields/group/group.php:122 fields/repeater/repeater.php:90 +msgid "You cannot remove more." +msgstr "无法删除更多" + +#: fields/icon/icon.php:20 fields/icon/icon.php:53 +msgid "Add Icon" +msgstr "添加图标" + +#: fields/icon/icon.php:21 +msgid "Remove Icon" +msgstr "删除图标" + +#: fields/link/link.php:20 +msgid "Add Link" +msgstr "添加链接" + +#: fields/link/link.php:21 +msgid "Edit Link" +msgstr "编辑链接" + +#: fields/link/link.php:22 +msgid "Remove Link" +msgstr "移除链接" + +#: fields/link_color/link_color.php:37 +msgid "Hover" +msgstr "悬停" + +#: fields/link_color/link_color.php:38 +msgid "Active" +msgstr "启用" + +#: fields/link_color/link_color.php:39 +msgid "Visited" +msgstr "访问" + +#: fields/link_color/link_color.php:40 +msgid "Focus" +msgstr "焦点" + +#: fields/map/map.php:24 +msgid "Latitude" +msgstr "纬度" + +#: fields/map/map.php:25 +msgid "Longitude" +msgstr "经度" + +#: fields/media/media.php:25 fields/upload/upload.php:25 +msgid "Upload" +msgstr "上传" + +#: fields/media/media.php:26 fields/upload/upload.php:26 +msgid "Remove" +msgstr "删除" + +#: fields/sorter/sorter.php:21 +msgid "Enabled" +msgstr "启用" + +#: fields/sorter/sorter.php:22 +msgid "Disabled" +msgstr "禁用" + +#: fields/switcher/switcher.php:20 +msgid "On" +msgstr "启用" + +#: fields/switcher/switcher.php:21 +msgid "Off" +msgstr "禁用" + +#: fields/typography/typography.php:96 +msgid "Font Family" +msgstr "字体" + +#: fields/typography/typography.php:97 +msgid "Select a font" +msgstr "选择字体" + +#: fields/typography/typography.php:105 +msgid "Backup Font Family" +msgstr "备份字体系列" + +#: fields/typography/typography.php:119 fields/typography/typography.php:132 +#: fields/typography/typography.php:145 fields/typography/typography.php:160 +#: fields/typography/typography.php:176 fields/typography/typography.php:189 +#: fields/typography/typography.php:203 fields/typography/typography.php:221 +msgid "Default" +msgstr "默认" + +#: fields/typography/typography.php:130 +msgid "Font Style" +msgstr "字体样式" + +#: fields/typography/typography.php:144 fields/typography/typography.php:145 +msgid "Load Extra Styles" +msgstr "加载额外样式" + +#: fields/typography/typography.php:158 +msgid "Subset" +msgstr "子集" + +#: fields/typography/typography.php:168 +msgid "Text Align" +msgstr "文本对齐" + +#: fields/typography/typography.php:170 +msgid "Inherit" +msgstr "继承" + +#: fields/typography/typography.php:171 +msgid "Left" +msgstr "左侧" + +#: fields/typography/typography.php:172 +msgid "Center" +msgstr "居中" + +#: fields/typography/typography.php:173 +msgid "Right" +msgstr "右侧" + +#: fields/typography/typography.php:174 +msgid "Justify" +msgstr "两端对齐" + +#: fields/typography/typography.php:175 +msgid "Initial" +msgstr "初始" + +#: fields/typography/typography.php:184 +msgid "Font Variant" +msgstr "字体变体" + +#: fields/typography/typography.php:187 +msgid "Small Caps" +msgstr "小写" + +#: fields/typography/typography.php:188 +msgid "All Small Caps" +msgstr "所有字母小写" + +#: fields/typography/typography.php:197 +msgid "Text Transform" +msgstr "文本转换" + +#: fields/typography/typography.php:200 +msgid "Capitalize" +msgstr "大写" + +#: fields/typography/typography.php:201 +msgid "Uppercase" +msgstr "大写" + +#: fields/typography/typography.php:202 +msgid "Lowercase" +msgstr "小写" + +#: fields/typography/typography.php:211 +msgid "Text Decoration" +msgstr "文本装饰" + +#: fields/typography/typography.php:218 +msgid "Wavy" +msgstr "波浪" + +#: fields/typography/typography.php:219 +msgid "Overline" +msgstr "上划线" + +#: fields/typography/typography.php:220 +msgid "Line-through" +msgstr "删除线" + +#: fields/typography/typography.php:233 +msgid "Font Size" +msgstr "字体大小" + +#: fields/typography/typography.php:245 +msgid "Line Height" +msgstr "线高度" + +#: fields/typography/typography.php:257 +msgid "Letter Spacing" +msgstr "字母间距" + +#: fields/typography/typography.php:269 +msgid "Word Spacing" +msgstr "字间距" + +#: fields/typography/typography.php:284 +msgid "Font Color" +msgstr "字体颜色" + +#: fields/typography/typography.php:295 +msgid "Custom Style" +msgstr "自定义样式" + +#: fields/typography/typography.php:362 +msgid "Custom Web Fonts" +msgstr "自定义 Web 字体" + +#: fields/typography/typography.php:368 +msgid "Safe Web Fonts" +msgstr "Web 安全字体" + +#: fields/typography/typography.php:388 +msgid "Google Web Fonts" +msgstr "Google Web 字体" + +#: functions/actions.php:72 functions/actions.php:110 +msgid "Error: Invalid key." +msgstr "错误:无效密钥。" + +#: functions/actions.php:114 +msgid "Error: The response is not a valid JSON response." +msgstr "错误:响应不是有效的 JSON 响应。" + +#: functions/actions.php:174 +msgid "Error: Invalid term ID." +msgstr "错误:无效的项目ID。" + +#: functions/actions.php:180 +msgid "Error: You do not have permission to do that." +msgstr "错误:您无权这样做。" + +#: functions/validate.php:14 functions/validate.php:86 +msgid "Please enter a valid email address." +msgstr "请输入正确的电子邮件地址。" + +#: functions/validate.php:32 functions/validate.php:106 +msgid "Please enter a valid number." +msgstr "请输入有效的数字" + +#: functions/validate.php:50 functions/validate.php:126 +msgid "This field is required." +msgstr "这是必填栏。" + +#: functions/validate.php:68 functions/validate.php:146 +msgid "Please enter a valid URL." +msgstr "请输入有效网址" + +#. Plugin Name of the plugin/theme +msgid "Wp_china_yes Framework" +msgstr "Wp_china_yes Framework" + +#. Plugin URI of the plugin/theme +msgid "http://wp_china_yesframework.com/" +msgstr "http://wp_china_yesframework.com/" + +#. Description of the plugin/theme +msgid "A Simple and Lightweight WordPress Option Framework for Themes and Plugins" +msgstr "一个简单且轻量的 WordPress 主题和插件选项框架" + +#. Author of the plugin/theme +msgid "Wp_china_yes" +msgstr "Wp_china_yes" + +#. Author URI of the plugin/theme +msgid "http://wp_china_yesthemes.com/" +msgstr "http://wp_china_yesthemes.com/" diff --git a/helpers.php b/helpers.php old mode 100644 new mode 100755 index c5fa9c0..2b770f1 --- a/helpers.php +++ b/helpers.php @@ -20,6 +20,7 @@ function get_settings() { 'plane' => 'off', 'plane_rule' => [], 'monitor' => true, + 'memory' => true, 'hide' => false, 'custom_name' => 'WP-China-Yes', ] );