\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Poedit 3.1.1\n"
+"X-Generator: Poedit 3.4.2\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
"X-Poedit-WPHeader: wpicp-license.php\n"
@@ -21,127 +20,127 @@ msgstr ""
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: *.min.js\n"
-#: includes/shortcode.php:52 wpicp-license.php:145
+#: includes/shortcode.php:46 wpicp-license.php:199
msgid "Beijing"
msgstr "北京"
-#: includes/shortcode.php:53 wpicp-license.php:146
+#: includes/shortcode.php:47 wpicp-license.php:200
msgid "Tianjin"
msgstr "天津"
-#: includes/shortcode.php:54 wpicp-license.php:147
+#: includes/shortcode.php:48 wpicp-license.php:201
msgid "Hebei"
msgstr "河北"
-#: includes/shortcode.php:55 wpicp-license.php:148
+#: includes/shortcode.php:49 wpicp-license.php:202
msgid "Shanxi"
msgstr "山西"
-#: includes/shortcode.php:56 wpicp-license.php:149
+#: includes/shortcode.php:50 wpicp-license.php:203
msgid "Inner Mongolia"
msgstr "内蒙古"
-#: includes/shortcode.php:57 wpicp-license.php:150
+#: includes/shortcode.php:51 wpicp-license.php:204
msgid "Liaoning"
msgstr "辽宁"
-#: includes/shortcode.php:58 wpicp-license.php:151
+#: includes/shortcode.php:52 wpicp-license.php:205
msgid "Jilin"
msgstr "吉林"
-#: includes/shortcode.php:59 wpicp-license.php:152
+#: includes/shortcode.php:53 wpicp-license.php:206
msgid "Heilongjiang"
msgstr "黑龙江"
-#: includes/shortcode.php:60 wpicp-license.php:153
+#: includes/shortcode.php:54 wpicp-license.php:207
msgid "Shanghai"
msgstr "上海"
-#: includes/shortcode.php:61 wpicp-license.php:154
+#: includes/shortcode.php:55 wpicp-license.php:208
msgid "Jiangsu"
msgstr "江苏"
-#: includes/shortcode.php:62 wpicp-license.php:155
+#: includes/shortcode.php:56 wpicp-license.php:209
msgid "Zhejiang"
msgstr "浙江"
-#: includes/shortcode.php:63 wpicp-license.php:156
+#: includes/shortcode.php:57 wpicp-license.php:210
msgid "Anhui"
msgstr "安徽"
-#: includes/shortcode.php:64 wpicp-license.php:157
+#: includes/shortcode.php:58 wpicp-license.php:211
msgid "Fujian"
msgstr "福建"
-#: includes/shortcode.php:65 wpicp-license.php:158
+#: includes/shortcode.php:59 wpicp-license.php:212
msgid "Jiangxi"
msgstr "江西"
-#: includes/shortcode.php:66 wpicp-license.php:159
+#: includes/shortcode.php:60 wpicp-license.php:213
msgid "Shandong"
msgstr "山东"
-#: includes/shortcode.php:67 wpicp-license.php:160
+#: includes/shortcode.php:61 wpicp-license.php:214
msgid "Henan"
msgstr "河南"
-#: includes/shortcode.php:68 wpicp-license.php:161
+#: includes/shortcode.php:62 wpicp-license.php:215
msgid "Hubei"
msgstr "湖北"
-#: includes/shortcode.php:69 wpicp-license.php:162
+#: includes/shortcode.php:63 wpicp-license.php:216
msgid "Hunan"
msgstr "湖南"
-#: includes/shortcode.php:70 wpicp-license.php:163
+#: includes/shortcode.php:64 wpicp-license.php:217
msgid "Guangdong"
msgstr "广东"
-#: includes/shortcode.php:71 wpicp-license.php:164
+#: includes/shortcode.php:65 wpicp-license.php:218
msgid "Guangxi"
msgstr "广西"
-#: includes/shortcode.php:72 wpicp-license.php:165
+#: includes/shortcode.php:66 wpicp-license.php:219
msgid "Hainan"
msgstr "海南"
-#: includes/shortcode.php:73 wpicp-license.php:166
+#: includes/shortcode.php:67 wpicp-license.php:220
msgid "Chongqing"
msgstr "重庆"
-#: includes/shortcode.php:74 wpicp-license.php:167
+#: includes/shortcode.php:68 wpicp-license.php:221
msgid "Sichuan"
msgstr "四川"
-#: includes/shortcode.php:75 wpicp-license.php:168
+#: includes/shortcode.php:69 wpicp-license.php:222
msgid "Guizhou"
msgstr "贵州"
-#: includes/shortcode.php:76 wpicp-license.php:169
+#: includes/shortcode.php:70 wpicp-license.php:223
msgid "Yunnan"
msgstr "云南"
-#: includes/shortcode.php:77 wpicp-license.php:170
+#: includes/shortcode.php:71 wpicp-license.php:224
msgid "Tibet"
msgstr "西藏"
-#: includes/shortcode.php:78 wpicp-license.php:171
+#: includes/shortcode.php:72 wpicp-license.php:225
msgid "Shaanxi"
msgstr "陕西"
-#: includes/shortcode.php:79 wpicp-license.php:172
+#: includes/shortcode.php:73 wpicp-license.php:226
msgid "Gansu"
msgstr "甘肃"
-#: includes/shortcode.php:80 wpicp-license.php:173
+#: includes/shortcode.php:74 wpicp-license.php:227
msgid "Qinghai"
msgstr "青海"
-#: includes/shortcode.php:81 wpicp-license.php:174
+#: includes/shortcode.php:75 wpicp-license.php:228
msgid "Ningxia"
msgstr "宁夏"
-#: includes/shortcode.php:82 wpicp-license.php:175
+#: includes/shortcode.php:76 wpicp-license.php:229
msgid "Xinjiang"
msgstr "新疆"
@@ -149,7 +148,7 @@ msgstr "新疆"
msgid "WP ICP License Settings"
msgstr "文派 ICP 许可证设置"
-#: wpicp-license.php:37 wpicp-license.php:69 wpicp-license.php:105
+#: wpicp-license.php:37 wpicp-license.php:69 wpicp-license.php:159
msgid "ICP License"
msgstr "ICP 备案号"
@@ -169,11 +168,35 @@ msgstr "网安备案号"
msgid "Province"
msgstr "省份"
+#: wpicp-license.php:91
+msgid "Company Name"
+msgstr "公司名称"
+
#: wpicp-license.php:99
+msgid "Report Email"
+msgstr "举报邮箱"
+
+#: wpicp-license.php:107
+msgid "Complaint Hotline"
+msgstr "投诉电话"
+
+#: wpicp-license.php:115
+msgid "EDI License Number"
+msgstr "增值电信业务经营许可证"
+
+#: wpicp-license.php:123
+msgid "APP License Number"
+msgstr "APP 备案号"
+
+#: wpicp-license.php:131
+msgid "MiniAPP License Number"
+msgstr "小程序备案号"
+
+#: wpicp-license.php:153
msgid "Enter your ICP license number information."
msgstr "输入您的备案号。"
-#: wpicp-license.php:115
+#: wpicp-license.php:169
msgid ""
"This plugin is free forever, and its purpose is to supplement the essential "
"functions that the Chinese version of WordPress lacks. More information at "
@@ -183,11 +206,11 @@ msgstr ""
"此插件永久免费,目的是补充 WordPress 中文版本所缺少的功能。更多信息请访问 WPICP.com"
-#: wpicp-license.php:116
+#: wpicp-license.php:170
msgid "Why do you need?"
msgstr "为什么需要?"
-#: wpicp-license.php:117
+#: wpicp-license.php:171
msgid ""
"The ICP license is a state-issued registration, All public websites in "
"mainland China must have an ICP number listed on the homepage of the "
@@ -198,11 +221,11 @@ msgstr ""
"ICP备案号。(如果没有会怎样?)"
-#: wpicp-license.php:118
+#: wpicp-license.php:172
msgid "How to use?"
msgstr "如何使用?"
-#: wpicp-license.php:119
+#: wpicp-license.php:173
msgid ""
"1. Enter your ICP license information below. (Find My "
@@ -211,7 +234,7 @@ msgstr ""
"1. 在下方输入您的 ICP 许可证信息。 (找到我的许可证?)"
-#: wpicp-license.php:120
+#: wpicp-license.php:174
msgid ""
"2. Use the shortcode [wpicp_license]
to display the license "
"information and link on your website. (集成到主题?)"
-#: wpicp-license.php:127
+#: wpicp-license.php:181
msgid ""
"Enter your ICP license number information. (Correct "
"format?)"
msgstr ""
-"输入您的备案号。(正确格式?)"
+"输入您的备案号。(正确格式?)"
-#: wpicp-license.php:131
+#: wpicp-license.php:185
msgid ""
"Use the shortcode [wpicp_wangan]
, You need to register with the "
"Public Security Bureau (PSB) to have this license. "
msgstr ""
"使用简码[wpicp_wangan]
,您需要在公安局(PSB)注册才能获得此备案"
-"许可证。 (什么是公共安全备案?)"
+"许可证。 (什么是公共安全备案?)"
-#: wpicp-license.php:189
+#: wpicp-license.php:243
msgid ""
"Enter your Wangan license number and select the abbreviation of your "
"province."
msgstr "输入您的网安备案号并选择您所在省份的简称。"
-#: wpicp-license.php:199
+#: wpicp-license.php:251
+msgid "Use the shortcode [wpicp_company]
"
+msgstr "使用简码 [wpicp_company]
"
+
+#: wpicp-license.php:258
+msgid "Use the shortcode [wpicp_email]
"
+msgstr "使用简码 [wpicp_email]
"
+
+#: wpicp-license.php:265
+msgid "Use the shortcode [wpicp_phone]
"
+msgstr "使用简码 [wpicp_phone]
"
+
+#: wpicp-license.php:272
+msgid "Use the shortcode [wpicp_edi]
"
+msgstr "使用简码 [wpicp_edi]
"
+
+#: wpicp-license.php:279
+msgid "Use the shortcode [wpicp_app]
"
+msgstr "使用简码 [wpicp_app]
"
+
+#: wpicp-license.php:285
+msgid "Use the shortcode [wpicp_minipapp]
"
+msgstr "使用简码 [wpicp_minipapp]
"
+
+#: wpicp-license.php:294
msgid "ICP License Settings"
msgstr "ICP 许可证设置"
diff --git a/languages/wpicp-license-zh_TW.mo b/languages/wpicp-license-zh_TW.mo
old mode 100644
new mode 100755
diff --git a/languages/wpicp-license-zh_TW.po b/languages/wpicp-license-zh_TW.po
old mode 100644
new mode 100755
diff --git a/license.txt b/license.txt
old mode 100644
new mode 100755
diff --git a/readme.txt b/readme.txt
old mode 100644
new mode 100755
index aff4ee4..f63d82e
--- a/readme.txt
+++ b/readme.txt
@@ -2,9 +2,9 @@
Contributors: wpfanyi
Tags: ICP, ICP License, ICP Beian,备案,备案号
Requires at least: 5.4
-Tested up to: 6.2
+Tested up to: 6.6
Requires PHP: 5.6
-Stable tag: 1.2
+Stable tag: 1.3
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -68,6 +68,12 @@ Starting with WP ICP License consists of just two steps: installing and setting
== Changelog ==
+### 1.3 ###
+
+* Add Chinese company name and EDI/APP/MiniAPP ICP license short codes.
+* Use short code [wpicp_company] to display full company name.
+* Use short code [wpicp_email] to display report email.
+* Use short code [wpicp_phone] to display complaint hotline.
### 1.2 ###
diff --git a/wpicp-license.php b/wpicp-license.php
old mode 100644
new mode 100755
index fb65100..8d5d767
--- a/wpicp-license.php
+++ b/wpicp-license.php
@@ -7,7 +7,7 @@
* Author URI: https://wpicp.com/
* Text Domain: wpicp-license
* Domain Path: /languages
- * Version: 1.2
+ * Version: 1.3
* Network: True
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -86,10 +86,64 @@
'wpicp_license_section'
);
+ add_settings_field(
+ 'wpicp_company',
+ __('Company Name', 'wpicp-license'),
+ 'wpicp_company_field_callback',
+ 'wpicp_license_settings',
+ 'wpicp_license_section'
+ );
+
+ add_settings_field(
+ 'wpicp_email',
+ __('Report Email', 'wpicp-license'),
+ 'wpicp_email_field_callback',
+ 'wpicp_license_settings',
+ 'wpicp_license_section'
+ );
+
+ add_settings_field(
+ 'wpicp_phone',
+ __('Complaint Hotline', 'wpicp-license'),
+ 'wpicp_phone_field_callback',
+ 'wpicp_license_settings',
+ 'wpicp_license_section'
+ );
+
+ add_settings_field(
+ 'wpicp_edi',
+ __('EDI License Number', 'wpicp-license'),
+ 'wpicp_edi_field_callback',
+ 'wpicp_license_settings',
+ 'wpicp_license_section'
+ );
+
+ add_settings_field(
+ 'wpicp_app',
+ __('APP License Number', 'wpicp-license'),
+ 'wpicp_app_field_callback',
+ 'wpicp_license_settings',
+ 'wpicp_license_section'
+ );
+
+ add_settings_field(
+ 'wpicp_minipapp',
+ __('MiniAPP License Number', 'wpicp-license'),
+ 'wpicp_minipapp_field_callback',
+ 'wpicp_license_settings',
+ 'wpicp_license_section'
+ );
register_setting( 'wpicp_license_settings', 'wpicp_province' );
register_setting( 'wpicp_license_settings', 'wpicp_wangan' );
register_setting( 'wpicp_license_settings', 'wpicp_license' );
+ register_setting( 'wpicp_license_settings', 'wpicp_company');
+ register_setting( 'wpicp_license_settings', 'wpicp_email' );
+ register_setting( 'wpicp_license_settings', 'wpicp_phone' );
+ register_setting( 'wpicp_license_settings', 'wpicp_edi');
+ register_setting( 'wpicp_license_settings', 'wpicp_app');
+ register_setting( 'wpicp_license_settings', 'wpicp_minipapp');
+
}
@@ -191,6 +245,47 @@ function wpicp_wangan_field_callback() {
';
+ echo '' . __( 'Use the shortcode [wpicp_company]
', 'wpicp-license' ) . '
';
+
+}
+
+function wpicp_email_field_callback() {
+ $company = get_option('wpicp_email');
+ echo '';
+ echo '' . __( 'Use the shortcode [wpicp_email]
', 'wpicp-license' ) . '
';
+
+}
+
+function wpicp_phone_field_callback() {
+ $company = get_option('wpicp_phone');
+ echo '';
+ echo '' . __( 'Use the shortcode [wpicp_phone]
', 'wpicp-license' ) . '
';
+
+}
+
+function wpicp_edi_field_callback() {
+ $edi = get_option('wpicp_edi');
+ echo '';
+ echo '' . __( 'Use the shortcode [wpicp_edi]
', 'wpicp-license' ) . '
';
+
+}
+
+function wpicp_app_field_callback() {
+ $app = get_option('wpicp_app');
+ echo '';
+ echo '' . __( 'Use the shortcode [wpicp_app]
', 'wpicp-license' ) . '
';
+}
+
+function wpicp_minipapp_field_callback() {
+ $minipapp = get_option('wpicp_minipapp');
+ echo '';
+ echo '' . __( 'Use the shortcode [wpicp_minipapp]
', 'wpicp-license' ) . '
';
+
+}
+
// Settings page callback
function wpicp_license_settings_page() {
@@ -207,5 +302,17 @@ function wpicp_license_settings_page() {
}
+// Ensure this code runs after other plugins have loaded
+add_action('plugins_loaded', 'wpicp_sync_cn_settings');
+
+function wpicp_sync_cn_settings() {
+ if (get_option('wpicp_license') == '' && get_option('cn_icp') != '') {
+ update_option('wpicp_license', get_option('cn_icp'));
+ }
+ if (get_option('wpicp_wangan') == '' && get_option('cn_ga') != '') {
+ update_option('wpicp_wangan', get_option('cn_ga'));
+ }
+}
+
?>