初版上传

This commit is contained in:
文派备案 2023-04-16 15:59:33 +08:00
parent a1bae5c926
commit 1de962f801
7 changed files with 737 additions and 0 deletions

BIN
languages/wpavatar-zh_CN.mo Normal file

Binary file not shown.

273
languages/wpavatar-zh_CN.po Normal file
View file

@ -0,0 +1,273 @@
msgid ""
msgstr ""
"Project-Id-Version: WPICP License\n"
"POT-Creation-Date: 2023-03-30 22:41+0800\n"
"PO-Revision-Date: 2023-03-30 22:42+0800\n"
"Last-Translator: 薇晓朵 <support@weixiaoduo.com>\n"
"Language-Team: 薇晓朵 <support@weixiaoduo.com>\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-Poedit-Basepath: ..\n"
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
"X-Poedit-WPHeader: wpicp-license.php\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: *.min.js\n"
#: includes/shortcode.php:52 wpicp-license.php:145
msgid "Beijing"
msgstr "北京"
#: includes/shortcode.php:53 wpicp-license.php:146
msgid "Tianjin"
msgstr "天津"
#: includes/shortcode.php:54 wpicp-license.php:147
msgid "Hebei"
msgstr "河北"
#: includes/shortcode.php:55 wpicp-license.php:148
msgid "Shanxi"
msgstr "山西"
#: includes/shortcode.php:56 wpicp-license.php:149
msgid "Inner Mongolia"
msgstr "内蒙古"
#: includes/shortcode.php:57 wpicp-license.php:150
msgid "Liaoning"
msgstr "辽宁"
#: includes/shortcode.php:58 wpicp-license.php:151
msgid "Jilin"
msgstr "吉林"
#: includes/shortcode.php:59 wpicp-license.php:152
msgid "Heilongjiang"
msgstr "黑龙江"
#: includes/shortcode.php:60 wpicp-license.php:153
msgid "Shanghai"
msgstr "上海"
#: includes/shortcode.php:61 wpicp-license.php:154
msgid "Jiangsu"
msgstr "江苏"
#: includes/shortcode.php:62 wpicp-license.php:155
msgid "Zhejiang"
msgstr "浙江"
#: includes/shortcode.php:63 wpicp-license.php:156
msgid "Anhui"
msgstr "安徽"
#: includes/shortcode.php:64 wpicp-license.php:157
msgid "Fujian"
msgstr "福建"
#: includes/shortcode.php:65 wpicp-license.php:158
msgid "Jiangxi"
msgstr "江西"
#: includes/shortcode.php:66 wpicp-license.php:159
msgid "Shandong"
msgstr "山东"
#: includes/shortcode.php:67 wpicp-license.php:160
msgid "Henan"
msgstr "河南"
#: includes/shortcode.php:68 wpicp-license.php:161
msgid "Hubei"
msgstr "湖北"
#: includes/shortcode.php:69 wpicp-license.php:162
msgid "Hunan"
msgstr "湖南"
#: includes/shortcode.php:70 wpicp-license.php:163
msgid "Guangdong"
msgstr "广东"
#: includes/shortcode.php:71 wpicp-license.php:164
msgid "Guangxi"
msgstr "广西"
#: includes/shortcode.php:72 wpicp-license.php:165
msgid "Hainan"
msgstr "海南"
#: includes/shortcode.php:73 wpicp-license.php:166
msgid "Chongqing"
msgstr "重庆"
#: includes/shortcode.php:74 wpicp-license.php:167
msgid "Sichuan"
msgstr "四川"
#: includes/shortcode.php:75 wpicp-license.php:168
msgid "Guizhou"
msgstr "贵州"
#: includes/shortcode.php:76 wpicp-license.php:169
msgid "Yunnan"
msgstr "云南"
#: includes/shortcode.php:77 wpicp-license.php:170
msgid "Tibet"
msgstr "西藏"
#: includes/shortcode.php:78 wpicp-license.php:171
msgid "Shaanxi"
msgstr "陕西"
#: includes/shortcode.php:79 wpicp-license.php:172
msgid "Gansu"
msgstr "甘肃"
#: includes/shortcode.php:80 wpicp-license.php:173
msgid "Qinghai"
msgstr "青海"
#: includes/shortcode.php:81 wpicp-license.php:174
msgid "Ningxia"
msgstr "宁夏"
#: includes/shortcode.php:82 wpicp-license.php:175
msgid "Xinjiang"
msgstr "新疆"
#: wpicp-license.php:36
msgid "WP ICP License Settings"
msgstr "文派 ICP 许可证设置"
#: wpicp-license.php:37 wpicp-license.php:69 wpicp-license.php:105
msgid "ICP License"
msgstr "ICP 备案号"
#: wpicp-license.php:57
msgid "WordPress ICP License Namber"
msgstr "文派(WordPress) ICP 备案许可证"
#: wpicp-license.php:63
msgid "China Wangan License Number"
msgstr "中国公安网许可证"
#: wpicp-license.php:77
msgid "Wangan License"
msgstr "网安备案号"
#: wpicp-license.php:84
msgid "Province"
msgstr "省份"
#: wpicp-license.php:99
msgid "Enter your ICP license number information."
msgstr "输入您的备案号。"
#: wpicp-license.php:115
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 "
"<a href=\"https://wpicp.com\" target=\"_blank\" rel=\"noopener\">WPICP.com</"
"a>"
msgstr ""
"此插件永久免费,目的是补充 WordPress 中文版本所缺少的功能。更多信息请访问 <a "
"href=\"https://wpicp.com\" target=\"_blank\" rel=\"noopener\">WPICP.com</a>"
#: wpicp-license.php:116
msgid "Why do you need?"
msgstr "为什么需要?"
#: wpicp-license.php:117
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 "
"website. <a href=\"https://wpicp.com/document/what-would-happen-if-not\" "
"target=\"_blank\" rel=\"noopener\">(What would happen if not?)</a>"
msgstr ""
"ICP备案许可证是国家颁发的注册证中国大陆所有公开网站都必须在网站首页显示有"
"ICP备案号。<a href=\"https://wpicp.com/document/what-would-happen-if-not\" "
"target=\"_blank\" rel=\"noopener\">(如果没有会怎样?)</a>"
#: wpicp-license.php:118
msgid "How to use?"
msgstr "如何使用?"
#: wpicp-license.php:119
msgid ""
"1. Enter your ICP license information below. <a href=\"https://wpicp.com/"
"document/find-my-license\" target=\"_blank\" rel=\"noopener\">(Find My "
"License?)</a>"
msgstr ""
"1. 在下方输入您的 ICP 许可证信息。 <a href=\"https://wpicp.com/document/find-"
"my-license\" target=\"_blank\" rel=\"noopener\">(找到我的许可证?)</a>"
#: wpicp-license.php:120
msgid ""
"2. Use the shortcode <code>[wpicp_license]</code> to display the license "
"information and link on your website. <a href=\"https://wpicp.com/document/"
"integrate-into-theme\" target=\"_blank\" rel=\"noopener\">(Integrate into "
"theme?)</a>"
msgstr ""
"2. 使用简码<code>[wpicp_license]</code>在您的网站上显示许可证信息和链接。<a "
"href=\"https://wpicp.com/document/integrate-into-theme\" target=\"_blank\" "
"rel=\"noopener\">(集成到主题?)</a>"
#: wpicp-license.php:127
msgid ""
"Enter your ICP license number information. <a href=\"https://wpicp.com/"
"document/correct-format\" target=\"_blank\" rel=\"noopener\">(Correct "
"format?)</a>"
msgstr ""
"输入您的备案号。<a href=\"https://wpicp.com/document/correct-format\" target="
"\"_blank\" rel=\"noopener\">(正确格式?)</a>"
#: wpicp-license.php:131
msgid ""
"Use the shortcode <code>[wpicp_wangan]</code>, You need to register with the "
"Public Security Bureau (PSB) to have this license. <a href=\"https://wpicp."
"com/document/what-is-psb-filing\" target=\"_blank\" rel=\"noopener\">(What "
"is PSB filing?)</a>"
msgstr ""
"使用简码<code>[wpicp_wangan]</code>您需要在公安局PSB注册才能获得此备案"
"许可证。 <a href=\"https://wpicp.com/document/what-is-psb-filing\" target="
"\"_blank\" rel=\"noopener\">(什么是公共安全备案?)</a>"
#: wpicp-license.php:189
msgid ""
"Enter your Wangan license number and select the abbreviation of your "
"province."
msgstr "输入您的网安备案号并选择您所在省份的简称。"
#: wpicp-license.php:199
msgid "ICP License Settings"
msgstr "ICP 许可证设置"
#. Plugin Name of the plugin/theme
msgid "WPICP License"
msgstr "文派 ICP 许可证"
#. Plugin URI of the plugin/theme
msgid "https://wpicp.com/download"
msgstr "https://wpicp.com/download"
#. Description of the plugin/theme
msgid "Must-have for WordPress sites in China, showing your ICP license."
msgstr "中国WordPress网站必备显示您的 ICP 备案许可证。"
#. Author of the plugin/theme
msgid "WPICP.com"
msgstr "文派 ICP"
#. Author URI of the plugin/theme
msgid "https://wpicp.com/"
msgstr "https://wpicp.com/"

BIN
languages/wpavatar-zh_TW.mo Normal file

Binary file not shown.

220
languages/wpavatar-zh_TW.po Normal file
View file

@ -0,0 +1,220 @@
# Translation of Plugins - WPICP License - Development (trunk) in Chinese (Taiwan)
# This file is distributed under the same license as the Plugins - WPICP License - Development (trunk) package.
msgid ""
msgstr ""
"PO-Revision-Date: 2023-03-19 07:28:23+0000\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: GlotPress/4.0.0-alpha.4\n"
"Language: zh_TW\n"
"Project-Id-Version: Plugins - WPICP License - Development (trunk)\n"
#: wpicp-license.php:169
msgid "Enter your Wangan license number and select the abbreviation of your province."
msgstr "輸入這個網站的公安局備案許可證號,並選取所在省份。"
#: wpicp-license.php:155
msgid "Xinjiang"
msgstr "新疆"
#: wpicp-license.php:154
msgid "Ningxia"
msgstr "寧夏"
#: wpicp-license.php:153
msgid "Qinghai"
msgstr "青海"
#: wpicp-license.php:152
msgid "Gansu"
msgstr "甘肅"
#: wpicp-license.php:151
msgid "Shaanxi"
msgstr "陝西"
#: wpicp-license.php:150
msgid "Tibet"
msgstr "西藏"
#: wpicp-license.php:149
msgid "Yunnan"
msgstr "雲南"
#: wpicp-license.php:148
msgid "Guizhou"
msgstr "貴州"
#: wpicp-license.php:147
msgid "Sichuan"
msgstr "四川"
#: wpicp-license.php:146
msgid "Chongqing"
msgstr "重慶"
#: wpicp-license.php:145
msgid "Hainan"
msgstr "海南"
#: wpicp-license.php:144
msgid "Guangxi"
msgstr "廣西"
#: wpicp-license.php:143
msgid "Guangdong"
msgstr "廣東"
#: wpicp-license.php:142
msgid "Hunan"
msgstr "湖南"
#: wpicp-license.php:141
msgid "Hubei"
msgstr "湖北"
#: wpicp-license.php:140
msgid "Henan"
msgstr "河南"
#: wpicp-license.php:139
msgid "Shandong"
msgstr "山東"
#: wpicp-license.php:138
msgid "Jiangxi"
msgstr "江西"
#: wpicp-license.php:137
msgid "Fujian"
msgstr "福建"
#: wpicp-license.php:136
msgid "Anhui"
msgstr "安徽"
#: wpicp-license.php:135
msgid "Zhejiang"
msgstr "浙江"
#: wpicp-license.php:134
msgid "Jiangsu"
msgstr "江蘇"
#: wpicp-license.php:133
msgid "Shanghai"
msgstr "上海"
#: wpicp-license.php:132
msgid "Heilongjiang"
msgstr "黑龍江"
#: wpicp-license.php:131
msgid "Jilin"
msgstr "吉林"
#: wpicp-license.php:130
msgid "Liaoning"
msgstr "遼寧"
#: wpicp-license.php:129
msgid "Inner Mongolia"
msgstr "內蒙古"
#: wpicp-license.php:128
msgid "Shanxi"
msgstr "山西"
#: wpicp-license.php:127
msgid "Hebei"
msgstr "河北"
#: wpicp-license.php:126
msgid "Tianjin"
msgstr "天津"
#: wpicp-license.php:125
msgid "Beijing"
msgstr "北京"
#: wpicp-license.php:111
msgid "Use the shortcode <code>[wpicp_wangan]</code>, You need to register with the Public Security Bureau (PSB) to have this license. <a href=\"https://wpicp.com/document/what-is-psb-filing\" target=\"_blank\" rel=\"noopener\">(What is PSB filing?)</a>"
msgstr "使用短代碼 <code>[wpicp_wangan]</code>。網站管理員必須向中國公安局 (Public Security BureauPSB) 註冊以取得證號。<a href=\"https://wpicp.com/document/what-is-psb-filing\" target=\"_blank\" rel=\"noopener\">(什麼是中國公安局備案)</a>"
#: wpicp-license.php:79
msgid "Province"
msgstr "中國省份"
#: wpicp-license.php:72
msgid "Wangan License"
msgstr "公安網備案證號"
#: wpicp-license.php:58
msgid "China Wangan License Number"
msgstr "中國公安局備案證號"
#: wpicp-license.php:179
msgid "ICP License Settings"
msgstr "ICP 備案許可證號設定"
#: wpicp-license.php:107
msgid "Enter your ICP license number information. <a href=\"https://wpicp.com/document/correct-format\" target=\"_blank\" rel=\"noopener\">(Correct format?)</a>"
msgstr "輸入這個網站的 ICP 備案許可證號。<a href=\"https://wpicp.com/document/correct-format\" target=\"_blank\" rel=\"noopener\">進一步了解正確格式</a>"
#: wpicp-license.php:99
msgid "2. Use the shortcode <code>[wpicp_license]</code> to display the license information and link on your website. <a href=\"https://wpicp.com/document/integrate-into-theme\" target=\"_blank\" rel=\"noopener\">(Integrate into theme?)</a>"
msgstr "2. 使用短代碼 <code>[wpicp_license]</code> 在這個網站上顯示 ICP 備案許可證號及連結。<a href=\"https://wpicp.com/document/integrate-into-theme\" target=\"_blank\" rel=\"noopener\">(與佈景主題整合的方式)</a>"
#: wpicp-license.php:98
msgid "1. Enter your ICP license information below. <a href=\"https://wpicp.com/document/find-my-license\" target=\"_blank\" rel=\"noopener\">(Find My License?)</a>"
msgstr "1. 在下方輸入欄位輸入網站的 ICP 備案許可證號。<a href=\"https://wpicp.com/document/find-my-license\" target=\"_blank\" rel=\"noopener\">(如何找到 ICP 備案許可證號)</a>"
#: wpicp-license.php:97
msgid "How to use?"
msgstr "使用方式"
#: wpicp-license.php:96
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 website. <a href=\"https://wpicp.com/document/what-would-happen-if-not\" target=\"_blank\" rel=\"noopener\">(What would happen if not?)</a>"
msgstr "ICP 備案許可證號是中國頒發的網站註冊證明,在中國提供網際網路資訊服務的全部公開網站,都必須在網站首頁顯示 ICP 備案許可證號。<a href=\"https://wpicp.com/document/what-would-happen-if-not\" target=\"_blank\" rel=\"noopener\">(如果沒有 ICP 備案許可證號會發生什麼)</a>"
#: wpicp-license.php:95
msgid "Why do you need?"
msgstr "為什麼需要 ICP 備案許可證號"
#: wpicp-license.php:94
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 <a href=\"https://wpicp.com\" target=\"_blank\" rel=\"noopener\">WPICP.com</a>"
msgstr "這個外掛永久免費,目的是為 WordPress 網站新增能加入 ICP 備案許可證號的功能。如需進一步了解,請造訪 <a href=\"https://wpicp.com\" target=\"_blank\" rel=\"noopener\">WPICP.com</a>。"
#: wpicp-license.php:52
msgid "WordPress ICP License Namber"
msgstr "WordPress 網站 ICP 備案許可證號"
#: wpicp-license.php:32 wpicp-license.php:64
msgid "ICP License"
msgstr "ICP 備案許可證號"
#: wpicp-license.php:31
msgid "WP ICP License Settings"
msgstr "WordPress 網站 ICP 備案許可證號設定"
#. Author URI of the plugin
msgid "https://wpicp.com/"
msgstr "https://wpicp.com/"
#. Author of the plugin
msgid "WPICP.com"
msgstr "文派 ICP"
#. Description of the plugin
msgid "Must-have for WordPress sites in China, showing your ICP license."
msgstr "目標對象為中國使用者的 WordPress 網站必備外掛,用於顯示網站 ICP 備案許可證號。"
#. Plugin URI of the plugin
msgid "https://wpicp.com/download"
msgstr "https://wpicp.com/download"
#. Plugin Name of the plugin
msgid "WPICP License"
msgstr "WPICP License"

85
license.txt Normal file
View file

@ -0,0 +1,85 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

93
readme.txt Normal file
View file

@ -0,0 +1,93 @@
=== WPAvatar ===
Contributors: wpfanyi
Tags: wpavatar, avatar, wp avatar, 头像, gravatar
Requires at least: 5.4
Tested up to: 6.2
Requires PHP: 5.6
Stable tag: 1.2
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
This plugin is free forever, and its purpose is to supplement the essential functions that the Chinese version of WordPress lacks.
== Description ==
### Must-have for WordPress sites in China, showing your ICP license. ###
More information at [https://wpicp.com](https://wpicp.com)
How to use the ICP license:
**1.Shortcode**
You can use the [wpicp_license] shortcode to display ICP anywhere, usually the Ministry of Industry and Information Technology of China requires it to be displayed on the homepage of the website.
**2.Add to footer**
If you need to integrate with your own theme or plugin, you can use do_shortcode() function to add.
== Frequently Asked Questions ==
###Who needs this plugin###
All WordPress websites in China, as well as businesses and individuals who want to do business in China.
###Who are you###
We are the first WordPress agency in China, Welcome to China and nice to meet you.
### Found a bug in this plugin? ###
Please submit issues here: [https://github.com/WenPai-org/wpicp-license/issues](https://github.com/WenPai-org/wpicp-license/issues), we will fix it in the next version, thank you for your feedback!
== Installation ==
Starting with WP ICP License consists of just two steps: installing and setting up the plugin. WP ICP License is designed to work with your sites specific needs, so dont forget to go through the WP ICP License configuration wizard as explained in the after activation step!
###Install WP ICP License form within WordPress###
1. Visit the plugins page within your dashboard and select Add New;
2. Search for WPICP License;
3. Activate WPICP License from your Plugins page;
4. Go to after activation below.
###After Activate###
1. Setting Menu: Go to Setting => ICP licensen;
2. Enter the correct ICP Number;
3. Add shortcodes to footer.php or text widgets;
3. Youre done!
== Screenshots ==
1. Setting Page
2. Translation Ready
== Changelog ==
### 1.2 ###
* Add Chinese province shortcodes.
* Use the shortcode [wpicp_province] to display the full province name.
* Use the shortcode [wpicp_p] to display the short name of the province.
* Added ICP license input box to settings page.
### 1.1 ###
* Add China Wangan License(PSB)
* Use ShortCode [wpicp_wangan]
### 1.0.1 ###
* Fix glotpress language pack issue, thanks for reporting by Alex.
* Delete preset language zh_CN/zh_TW.
### 1.0.0 ###
* Released first edition
* Support shortcode method

66
wpavatar.php Normal file
View file

@ -0,0 +1,66 @@
<?php
/**
* Plugin Name: WPAvatar
* Plugin URI: https://wpavatar.com/download
* Description: Must-have for WordPress sites in China, showing your ICP license.
* Author: WPfanyi
* Author URI: https://wpfanyi.com/
* Text Domain: wpavatar
* Domain Path: /languages
* Version: 1.0
* Network: True
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*
* WP Avatar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* WP Avatar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
if ( ! function_exists( 'get_cravatar_url' ) ) {
/**
* 替换 Gravatar 头像为 Cravatar 头像
*
* Cravatar Gravatar 在中国的完美替代方案,你可以在 https://cravatar.cn 更新你的头像
*/
function get_cravatar_url( $url ) {
$sources = array(
'www.gravatar.com',
'0.gravatar.com',
'1.gravatar.com',
'2.gravatar.com',
'secure.gravatar.com',
'cn.gravatar.com',
'gravatar.com',
);
return str_replace( $sources, 'cravatar.cn', $url );
}
add_filter( 'um_user_avatar_url_filter', 'get_cravatar_url', 1 );
add_filter( 'bp_gravatar_url', 'get_cravatar_url', 1 );
add_filter( 'get_avatar_url', 'get_cravatar_url', 1 );
}
if ( ! function_exists( 'set_defaults_for_cravatar' ) ) {
/**
* 替换 WordPress 讨论设置中的默认头像
*/
function set_defaults_for_cravatar( $avatar_defaults ) {
$avatar_defaults['gravatar_default'] = 'Cravatar 标志';
return $avatar_defaults;
}
add_filter( 'avatar_defaults', 'set_defaults_for_cravatar', 1 );
}
if ( ! function_exists( 'set_user_profile_picture_for_cravatar' ) ) {
/**
* 替换个人资料卡中的头像上传地址
*/
function set_user_profile_picture_for_cravatar() {
return '<a href="https://cravatar.cn" target="_blank">您可以在 Cravatar 修改您的资料图片</a>';
}
add_filter( 'user_profile_picture_description', 'set_user_profile_picture_for_cravatar', 1 );
}