conflict fixed

pull/212/head
Spirit 2020-04-05 11:54:05 +08:00
commit ec55167586
12 changed files with 274 additions and 231 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@ function get_gravatar(email, size) {
var size = size || 80;
return 'https://gravatar.2heng.xin/avatar/' + MD5(email) + '.jpg?s=' + size + '&d=mm';
return 'https://' + Poi.gravatar_url + '/' + MD5(email) + '.jpg?s=' + size + '&d=mm';
}
// sync css

View File

@ -88,7 +88,7 @@
'comment_notes_after' => '',
'comment_notes_before' => '',
'fields' => apply_filters( 'comment_form_default_fields', array(
'avatar' => '<div class="cmt-info-container"><div class="comment-user-avatar"><img src="https://gravatar.2heng.xin/avatar/f11f237b3de93c93b24045e71f7f65c6?s=80&d=mm&r=g"><div class="socila-check qq-check"><i class="fa fa-qq" aria-hidden="true"></i></div><div class="socila-check gravatar-check"><i class="fa fa-google" aria-hidden="true"></i></div></div>',
'avatar' => '<div class="cmt-info-container"><div class="comment-user-avatar"><img src="' . get_template_directory_uri() . '/images/avatar.jpeg"><div class="socila-check qq-check"><i class="fa fa-qq" aria-hidden="true"></i></div><div class="socila-check gravatar-check"><i class="fa fa-google" aria-hidden="true"></i></div></div>',
'author' =>
'<div class="popup cmt-popup cmt-author" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -115px;width: 230px;">' . __("Auto pull nickname and avatar with a QQ num. entered", "sakura")/*输入QQ号将自动拉取昵称和头像*/ . '</span><input type="text" placeholder="' . __("Nickname or QQ number", "sakura") /*昵称或QQ号*/. ' ' . ( $req ? '(' . __("Name* ", "sakura") . ')' : '') . '" name="author" id="author" value="' . esc_attr($comment_author) . '" size="22" autocomplete="off" tabindex="1" ' . ($req ? "aria-required='true'" : '' ). ' /></div>',
'email' =>

View File

@ -204,6 +204,7 @@ function sakura_scripts()
// }
//拦截移动端
version_compare($GLOBALS['wp_version'], '5.1', '>=') ? $reply_link_version = 'new' : $reply_link_version = 'old';
$gravatar_url = akina_option('gravatar_proxy') ?: 'secure.gravatar.com/avatar';
wp_localize_script('app', 'Poi', array(
'pjax' => akina_option('poi_pjax'),
'movies' => $movies,
@ -215,7 +216,8 @@ function sakura_scripts()
'reply_link_version' => $reply_link_version,
'api' => esc_url_raw(rest_url()),
'nonce' => wp_create_nonce('wp_rest'),
'google_analytics_id' => akina_option('google_analytics_id', '')
'google_analytics_id' => akina_option('google_analytics_id', ''),
'gravatar_url' => $gravatar_url
));
}
add_action('wp_enqueue_scripts', 'sakura_scripts');
@ -608,13 +610,15 @@ function get_link_items()
* Gravatar头像使用中国服务器
*/
function gravatar_cn($url)
{
$gravatar_url = array('0.gravatar.com', '1.gravatar.com', '2.gravatar.com', 'secure.gravatar.com');
{
$gravatar_url = array('0.gravatar.com/avatar','1.gravatar.com/avatar','2.gravatar.com/avatar','secure.gravatar.com/avatar');
//return str_replace($gravatar_url, 'cn.gravatar.com', $url);
//官方服务器近期大陆访问 429建议使用镜像
return str_replace( $gravatar_url, 'gravatar.2heng.xin', $url );
return str_replace( $gravatar_url, akina_option('gravatar_proxy'), $url );
}
if(akina_option('gravatar_proxy')){
add_filter('get_avatar_url', 'gravatar_cn', 4);
}
add_filter('get_avatar_url', 'gravatar_cn', 4);
/*
* 自定义默认头像

BIN
images/avatar.jpeg 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Sakura\n"
"POT-Creation-Date: 2020-04-02 11:56+0800\n"
"PO-Revision-Date: 2020-04-02 11:56+0800\n"
"POT-Creation-Date: 2020-04-05 11:52+0800\n"
"PO-Revision-Date: 2020-04-05 11:52+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en_US\n"
@ -142,74 +142,74 @@ msgstr ""
msgid "Nav Menus"
msgstr ""
#: functions.php:421 inc/theme_plus.php:186 layouts/authorprofile.php:11
#: functions.php:423 inc/theme_plus.php:186 layouts/authorprofile.php:11
#: options.php:121
msgid "Author"
msgstr ""
#: functions.php:421
#: functions.php:423
msgid "Blogger"
msgstr ""
#: functions.php:425
#: functions.php:427
msgid "Location"
msgstr ""
#: functions.php:429
#: functions.php:431
msgid "Private"
msgstr ""
#: functions.php:431
#: functions.php:433
msgid "Yes"
msgstr ""
#: functions.php:433
#: functions.php:435
msgid "No"
msgstr ""
#: functions.php:436
#: functions.php:438
msgid "Edit"
msgstr ""
#: functions.php:525
#: functions.php:527
msgid ""
"Please install pulgin <a href=\"https://wordpress.org/plugins/wp-statistics/"
"\" target=\"_blank\">WP-Statistics</a>"
msgstr ""
#: functions.php:575
#: functions.php:577
msgid "This guy is so lazy ╮(╯▽╰)╭"
msgstr ""
#: functions.php:1330
#: functions.php:1334
msgid "All expand/collapse"
msgstr ""
#: functions.php:1351 options.php:834
#: functions.php:1355 options.php:834
msgid " "
msgstr ""
#: functions.php:1355
#: functions.php:1359
msgid " post(s)"
msgstr ""
#: functions.php:1378 functions.php:1381 inc/theme_plus.php:478
#: functions.php:1382 functions.php:1385 inc/theme_plus.php:478
msgid "Dashboard"
msgstr ""
#: functions.php:1607
#: functions.php:1611
msgid "<b>ERROR</b>: This email domain (<b>@"
msgstr ""
#: functions.php:1712
#: functions.php:1716
msgid "QQ"
msgstr ""
#: functions.php:1784
#: functions.php:1788
msgid "Sidebar"
msgstr ""
#: functions.php:1896
#: functions.php:1900
msgid ""
"<b> For a better experience, please do not set <a href=\"/wp-admin/options-"
"permalink.php\"> permalink </a> as plain. To do this, you may need to "
@ -923,7 +923,7 @@ msgstr ""
msgid "Whether to turn on the top-feature"
msgstr ""
#: options.php:446 options.php:1097
#: options.php:446 options.php:1104
msgid "Default on"
msgstr ""
@ -1496,72 +1496,82 @@ msgid "23k Views (chinese)"
msgstr ""
#: options.php:1022
msgid "Comment image upload API"
msgid "Gravatar avatar proxy"
msgstr ""
#: options.php:1027
msgid "Imgur (https://imgur.com)"
msgstr ""
#: options.php:1028
msgid "SM.MS (https://sm.ms)"
#: options.php:1023
msgid ""
"A front-ed proxy for Gravatar, eg. gravatar.2heng.xin/avatar . Leave it "
"blank if you do not need."
msgstr ""
#: options.php:1029
msgid "Chevereto (https://chevereto.com)"
msgstr ""
#: options.php:1033
msgid "Imgur Client ID"
msgid "Comment image upload API"
msgstr ""
#: options.php:1034
msgid "Imgur (https://imgur.com)"
msgstr ""
#: options.php:1035
msgid "SM.MS (https://sm.ms)"
msgstr ""
#: options.php:1036
msgid "Chevereto (https://chevereto.com)"
msgstr ""
#: options.php:1040
msgid "Imgur Client ID"
msgstr ""
#: options.php:1041
msgid ""
"Register your application <a href=\"https://api.imgur.com/oauth2/addclient"
"\">here</a>, note we only need the Client ID here."
msgstr ""
#: options.php:1040
#: options.php:1047
msgid "SM.MS Secret Token"
msgstr ""
#: options.php:1041
#: options.php:1048
msgid ""
"Register your application <a href=\"https://sm.ms/home/apitoken\">here</a>."
msgstr ""
#: options.php:1047
#: options.php:1054
msgid "Chevereto API v1 key"
msgstr ""
#: options.php:1048
#: options.php:1055
msgid "Get your API key here: "
msgstr ""
#: options.php:1054
#: options.php:1061
msgid "Chevereto URL"
msgstr ""
#: options.php:1055
#: options.php:1062
msgid ""
"Your Chevereto homepage url, no slash in the end, eg. https://your.cherverto."
"com"
msgstr ""
#: options.php:1061
#: options.php:1068
msgid "Comment images proxy"
msgstr ""
#: options.php:1062
#: options.php:1069
msgid ""
"A front-ed proxy for the uploaded images. Leave it blank if you do not need."
msgstr ""
#: options.php:1068
#: options.php:1075
msgid "Imgur upload proxy"
msgstr ""
#: options.php:1069
#: options.php:1076
msgid ""
"A back-ed proxy to upload images. You may set a self hosted proxy with "
"Nginx, following my <a href=\"https://2heng.xin/2018/06/06/javascript-upload-"
@ -1571,151 +1581,151 @@ msgid ""
"a>】"
msgstr ""
#: options.php:1075
#: options.php:1082
msgid "Enable live search"
msgstr ""
#: options.php:1076
#: options.php:1083
msgid ""
"Real-time search in the foreground, call the Rest API to update the cache "
"every hour, you can manually set the cache time in functions.php"
"every hour, you can manually set the cache time in api.php"
msgstr ""
#: options.php:1082
#: options.php:1089
msgid "Include comments in live search"
msgstr ""
#: options.php:1083
#: options.php:1090
msgid ""
"Search for comments in real-time search (not recommended if there are too "
"many comments on the site)"
msgstr ""
#: options.php:1089
#: options.php:1096
msgid "Enable baguetteBox"
msgstr ""
#: options.php:1090
#: options.php:1097
msgid ""
"Default off<a href=\"https://github.com/mashirozx/Sakura/wiki/Fancybox"
"\">please read wiki</a>"
msgstr ""
#: options.php:1096
#: options.php:1103
msgid "Enable lazyload in posts"
msgstr ""
#: options.php:1103
#: options.php:1110
msgid "lazyload spinner"
msgstr ""
#: options.php:1104
#: options.php:1111
msgid "The placeholder to display when the image loads, fill in the image url"
msgstr ""
#: options.php:1110
#: options.php:1117
msgid "Whether to enable the clipboard copyright"
msgstr ""
#: options.php:1111
#: options.php:1118
msgid ""
"Automatically add a copyright to the clipboard when copying more than 30 "
"bytes, which is enabled by default."
msgstr ""
#: options.php:1117
#: options.php:1124
msgid "Email address prefix"
msgstr ""
#: options.php:1118
#: options.php:1125
msgid ""
"For sending system mail, the sender address displayed in the user's mailbox, "
"do not use Chinese, the default system email address is bibi@your_domain_name"
msgstr ""
#: options.php:1124
#: options.php:1131
msgid "Comments reply notification"
msgstr ""
#: options.php:1125
#: options.php:1132
msgid ""
"WordPress will use email to notify users when their comments receive a reply "
"by default. Tick this item allows users to set their own comments reply "
"notification"
msgstr ""
#: options.php:1131
#: options.php:1138
msgid "Administrator comment notification"
msgstr ""
#: options.php:1132
#: options.php:1139
msgid ""
"Whether to use email notification when the administrator's comments receive "
"a reply"
msgstr ""
#: options.php:1138
#: options.php:1145
msgid "Enable private comment"
msgstr ""
#: options.php:1139
#: options.php:1146
msgid "Allow users to set their own comments to be invisible to others"
msgstr ""
#: options.php:1145
#: options.php:1152
msgid "Human verification"
msgstr ""
#: options.php:1146
#: options.php:1153
msgid "Enable human verification"
msgstr ""
#: options.php:1152
#: options.php:1159
msgid "QQ avatar link encryption"
msgstr ""
#: options.php:1153
#: options.php:1160
msgid "Do not display the user's qq avatar links directly."
msgstr ""
#: options.php:1158
#: options.php:1165
msgid "Off (default)"
msgstr ""
#: options.php:1159
#: options.php:1166
msgid "use redirect (general security)"
msgstr ""
#: options.php:1160
#: options.php:1167
msgid "fetch data at backend (high security)"
msgstr ""
#: options.php:1161
#: options.php:1168
msgid "fetch data at backend (high securityslow)"
msgstr ""
#: options.php:1165
#: options.php:1172
msgid "Comment UA infomation"
msgstr ""
#: options.php:1166
#: options.php:1173
msgid ""
"Check to enable, display the user's browser, operating system information"
msgstr ""
#: options.php:1172
#: options.php:1179
msgid "Enable disqus"
msgstr ""
#: options.php:1173
#: options.php:1180
msgid "Enable disqus for comment"
msgstr ""
#: options.php:1179
#: options.php:1186
msgid "Time Zone adjustment"
msgstr ""
#: options.php:1180
#: options.php:1187
msgid ""
"If the comment has a time difference problem adjust here, fill in an "
"integer, the calculation method: actual_time = display_error_time - "

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"Project-Id-Version: Sakura\n"
"POT-Creation-Date: 2020-04-02 11:56+0800\n"
"POT-Creation-Date: 2020-04-05 11:50+0800\n"
"PO-Revision-Date: 2019-11-01 14:27+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -142,73 +142,73 @@ msgstr ""
msgid "Nav Menus"
msgstr ""
#: functions.php:421 inc/theme_plus.php:186 layouts/authorprofile.php:11 options.php:121
#: functions.php:423 inc/theme_plus.php:186 layouts/authorprofile.php:11 options.php:121
msgid "Author"
msgstr ""
#: functions.php:421
#: functions.php:423
msgid "Blogger"
msgstr ""
#: functions.php:425
#: functions.php:427
msgid "Location"
msgstr ""
#: functions.php:429
#: functions.php:431
msgid "Private"
msgstr ""
#: functions.php:431
#: functions.php:433
msgid "Yes"
msgstr ""
#: functions.php:433
#: functions.php:435
msgid "No"
msgstr ""
#: functions.php:436
#: functions.php:438
msgid "Edit"
msgstr ""
#: functions.php:525
#: functions.php:527
msgid ""
"Please install pulgin <a href=\"https://wordpress.org/plugins/wp-statistics/\" target=\"_blank"
"\">WP-Statistics</a>"
msgstr ""
#: functions.php:575
#: functions.php:577
msgid "This guy is so lazy ╮(╯▽╰)╭"
msgstr ""
#: functions.php:1330
#: functions.php:1334
msgid "All expand/collapse"
msgstr ""
#: functions.php:1351 options.php:834
#: functions.php:1355 options.php:834
msgid " "
msgstr ""
#: functions.php:1355
#: functions.php:1359
msgid " post(s)"
msgstr ""
#: functions.php:1378 functions.php:1381 inc/theme_plus.php:478
#: functions.php:1382 functions.php:1385 inc/theme_plus.php:478
msgid "Dashboard"
msgstr ""
#: functions.php:1607
#: functions.php:1611
msgid "<b>ERROR</b>: This email domain (<b>@"
msgstr ""
#: functions.php:1712
#: functions.php:1716
msgid "QQ"
msgstr ""
#: functions.php:1784
#: functions.php:1788
msgid "Sidebar"
msgstr ""
#: functions.php:1896
#: functions.php:1900
msgid ""
"<b> For a better experience, please do not set <a href=\"/wp-admin/options-permalink.php\"> "
"permalink </a> as plain. To do this, you may need to configure <a href=\"https://www.wpdaxue."
@ -911,7 +911,7 @@ msgstr ""
msgid "Whether to turn on the top-feature"
msgstr ""
#: options.php:446 options.php:1097
#: options.php:446 options.php:1104
msgid "Default on"
msgstr ""
@ -1470,68 +1470,78 @@ msgid "23k Views (chinese)"
msgstr ""
#: options.php:1022
msgid "Comment image upload API"
msgid "Gravatar avatar proxy"
msgstr ""
#: options.php:1027
msgid "Imgur (https://imgur.com)"
msgstr ""
#: options.php:1028
msgid "SM.MS (https://sm.ms)"
#: options.php:1023
msgid ""
"A front-ed proxy for Gravatar, eg. gravatar.2heng.xin/avatar . Leave it blank if you do not "
"need."
msgstr ""
#: options.php:1029
msgid "Chevereto (https://chevereto.com)"
msgstr ""
#: options.php:1033
msgid "Imgur Client ID"
msgid "Comment image upload API"
msgstr ""
#: options.php:1034
msgid "Imgur (https://imgur.com)"
msgstr ""
#: options.php:1035
msgid "SM.MS (https://sm.ms)"
msgstr ""
#: options.php:1036
msgid "Chevereto (https://chevereto.com)"
msgstr ""
#: options.php:1040
msgid "Imgur Client ID"
msgstr ""
#: options.php:1041
msgid ""
"Register your application <a href=\"https://api.imgur.com/oauth2/addclient\">here</a>, note we "
"only need the Client ID here."
msgstr ""
#: options.php:1040
#: options.php:1047
msgid "SM.MS Secret Token"
msgstr ""
#: options.php:1041
#: options.php:1048
msgid "Register your application <a href=\"https://sm.ms/home/apitoken\">here</a>."
msgstr ""
#: options.php:1047
#: options.php:1054
msgid "Chevereto API v1 key"
msgstr ""
#: options.php:1048
#: options.php:1055
msgid "Get your API key here: "
msgstr ""
#: options.php:1054
#: options.php:1061
msgid "Chevereto URL"
msgstr ""
#: options.php:1055
#: options.php:1062
msgid "Your Chevereto homepage url, no slash in the end, eg. https://your.cherverto.com"
msgstr ""
#: options.php:1061
#: options.php:1068
msgid "Comment images proxy"
msgstr ""
#: options.php:1062
#: options.php:1069
msgid "A front-ed proxy for the uploaded images. Leave it blank if you do not need."
msgstr ""
#: options.php:1068
#: options.php:1075
msgid "Imgur upload proxy"
msgstr ""
#: options.php:1069
#: options.php:1076
msgid ""
"A back-ed proxy to upload images. You may set a self hosted proxy with Nginx, following my <a "
"href=\"https://2heng.xin/2018/06/06/javascript-upload-images-with-imgur-api/\">turtal</a>. "
@ -1540,146 +1550,146 @@ msgid ""
"</a>】"
msgstr ""
#: options.php:1075
#: options.php:1082
msgid "Enable live search"
msgstr ""
#: options.php:1076
#: options.php:1083
msgid ""
"Real-time search in the foreground, call the Rest API to update the cache every hour, you can "
"manually set the cache time in functions.php"
"manually set the cache time in api.php"
msgstr ""
#: options.php:1082
#: options.php:1089
msgid "Include comments in live search"
msgstr ""
#: options.php:1083
#: options.php:1090
msgid ""
"Search for comments in real-time search (not recommended if there are too many comments on the "
"site)"
msgstr ""
#: options.php:1089
#: options.php:1096
msgid "Enable baguetteBox"
msgstr ""
#: options.php:1090
#: options.php:1097
msgid ""
"Default off<a href=\"https://github.com/mashirozx/Sakura/wiki/Fancybox\">please read wiki</a>"
msgstr ""
#: options.php:1096
#: options.php:1103
msgid "Enable lazyload in posts"
msgstr ""
#: options.php:1103
#: options.php:1110
msgid "lazyload spinner"
msgstr ""
#: options.php:1104
#: options.php:1111
msgid "The placeholder to display when the image loads, fill in the image url"
msgstr ""
#: options.php:1110
#: options.php:1117
msgid "Whether to enable the clipboard copyright"
msgstr ""
#: options.php:1111
#: options.php:1118
msgid ""
"Automatically add a copyright to the clipboard when copying more than 30 bytes, which is "
"enabled by default."
msgstr ""
#: options.php:1117
#: options.php:1124
msgid "Email address prefix"
msgstr ""
#: options.php:1118
#: options.php:1125
msgid ""
"For sending system mail, the sender address displayed in the user's mailbox, do not use "
"Chinese, the default system email address is bibi@your_domain_name"
msgstr ""
#: options.php:1124
#: options.php:1131
msgid "Comments reply notification"
msgstr ""
#: options.php:1125
#: options.php:1132
msgid ""
"WordPress will use email to notify users when their comments receive a reply by default. Tick "
"this item allows users to set their own comments reply notification"
msgstr ""
#: options.php:1131
#: options.php:1138
msgid "Administrator comment notification"
msgstr ""
#: options.php:1132
#: options.php:1139
msgid "Whether to use email notification when the administrator's comments receive a reply"
msgstr ""
#: options.php:1138
#: options.php:1145
msgid "Enable private comment"
msgstr ""
#: options.php:1139
#: options.php:1146
msgid "Allow users to set their own comments to be invisible to others"
msgstr ""
#: options.php:1145
#: options.php:1152
msgid "Human verification"
msgstr ""
#: options.php:1146
#: options.php:1153
msgid "Enable human verification"
msgstr ""
#: options.php:1152
#: options.php:1159
msgid "QQ avatar link encryption"
msgstr ""
#: options.php:1153
#: options.php:1160
msgid "Do not display the user's qq avatar links directly."
msgstr ""
#: options.php:1158
#: options.php:1165
msgid "Off (default)"
msgstr ""
#: options.php:1159
#: options.php:1166
msgid "use redirect (general security)"
msgstr ""
#: options.php:1160
#: options.php:1167
msgid "fetch data at backend (high security)"
msgstr ""
#: options.php:1161
#: options.php:1168
msgid "fetch data at backend (high securityslow)"
msgstr ""
#: options.php:1165
#: options.php:1172
msgid "Comment UA infomation"
msgstr ""
#: options.php:1166
#: options.php:1173
msgid "Check to enable, display the user's browser, operating system information"
msgstr ""
#: options.php:1172
#: options.php:1179
msgid "Enable disqus"
msgstr ""
#: options.php:1173
#: options.php:1180
msgid "Enable disqus for comment"
msgstr ""
#: options.php:1179
#: options.php:1186
msgid "Time Zone adjustment"
msgstr ""
#: options.php:1180
#: options.php:1187
msgid ""
"If the comment has a time difference problem adjust here, fill in an integer, the calculation "
"method: actual_time = display_error_time - the_integer_you_entered (unit: hour)"

Binary file not shown.

View File

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Sakura\n"
"POT-Creation-Date: 2020-04-02 11:56+0800\n"
"PO-Revision-Date: 2020-04-02 11:56+0800\n"
"POT-Creation-Date: 2020-04-05 11:52+0800\n"
"PO-Revision-Date: 2020-04-05 11:52+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: zh_CN\n"
@ -142,36 +142,36 @@ msgstr "小工具"
msgid "Nav Menus"
msgstr "导航菜单"
#: functions.php:421 inc/theme_plus.php:186 layouts/authorprofile.php:11
#: functions.php:423 inc/theme_plus.php:186 layouts/authorprofile.php:11
#: options.php:121
msgid "Author"
msgstr "作者"
#: functions.php:421
#: functions.php:423
msgid "Blogger"
msgstr "博主"
#: functions.php:425
#: functions.php:427
msgid "Location"
msgstr "来自"
#: functions.php:429
#: functions.php:431
msgid "Private"
msgstr "私密"
#: functions.php:431
#: functions.php:433
msgid "Yes"
msgstr "是"
#: functions.php:433
#: functions.php:435
msgid "No"
msgstr "否"
#: functions.php:436
#: functions.php:438
msgid "Edit"
msgstr "编辑"
#: functions.php:525
#: functions.php:527
msgid ""
"Please install pulgin <a href=\"https://wordpress.org/plugins/wp-statistics/"
"\" target=\"_blank\">WP-Statistics</a>"
@ -179,39 +179,39 @@ msgstr ""
"请安装插件 <a href=\"https://wordpress.org/plugins/wp-statistics/\" target="
"\"_blank\">WP-Statistics</a>"
#: functions.php:575
#: functions.php:577
msgid "This guy is so lazy ╮(╯▽╰)╭"
msgstr "这家伙好懒╮(╯▽╰)╭"
#: functions.php:1330
#: functions.php:1334
msgid "All expand/collapse"
msgstr "全部展开/收缩"
#: functions.php:1351 options.php:834
#: functions.php:1355 options.php:834
msgid " "
msgstr ""
#: functions.php:1355
#: functions.php:1359
msgid " post(s)"
msgstr " 篇文章"
#: functions.php:1378 functions.php:1381 inc/theme_plus.php:478
#: functions.php:1382 functions.php:1385 inc/theme_plus.php:478
msgid "Dashboard"
msgstr "管理中心"
#: functions.php:1607
#: functions.php:1611
msgid "<b>ERROR</b>: This email domain (<b>@"
msgstr ""
#: functions.php:1712
#: functions.php:1716
msgid "QQ"
msgstr ""
#: functions.php:1784
#: functions.php:1788
msgid "Sidebar"
msgstr "侧栏"
#: functions.php:1896
#: functions.php:1900
msgid ""
"<b> For a better experience, please do not set <a href=\"/wp-admin/options-"
"permalink.php\"> permalink </a> as plain. To do this, you may need to "
@ -938,7 +938,7 @@ msgstr "点点"
msgid "Whether to turn on the top-feature"
msgstr "是否开启聚焦"
#: options.php:446 options.php:1097
#: options.php:446 options.php:1104
msgid "Default on"
msgstr "默认开启"
@ -1535,26 +1535,38 @@ msgid "23k Views (chinese)"
msgstr "23k 次访问(中式)"
#: options.php:1022
msgid "Gravatar avatar proxy"
msgstr "Gravatar头像代理"
#: options.php:1023
msgid ""
"A front-ed proxy for Gravatar, eg. gravatar.2heng.xin/avatar . Leave it "
"blank if you do not need."
msgstr ""
"填写Gravatar头像的代理地址例如gravatar.2heng.xin/avatar。留空则不使用代"
"理。"
#: options.php:1029
msgid "Comment image upload API"
msgstr "评论上传图片接口"
#: options.php:1027
#: options.php:1034
msgid "Imgur (https://imgur.com)"
msgstr ""
#: options.php:1028
#: options.php:1035
msgid "SM.MS (https://sm.ms)"
msgstr ""
#: options.php:1029
#: options.php:1036
msgid "Chevereto (https://chevereto.com)"
msgstr ""
#: options.php:1033
#: options.php:1040
msgid "Imgur Client ID"
msgstr ""
#: options.php:1034
#: options.php:1041
msgid ""
"Register your application <a href=\"https://api.imgur.com/oauth2/addclient"
"\">here</a>, note we only need the Client ID here."
@ -1562,48 +1574,48 @@ msgstr ""
"在<a href=\"https://api.imgur.com/oauth2/addclient\">这里</a>注册你的 "
"application , 注意此处只需要填写 Client ID."
#: options.php:1040
#: options.php:1047
msgid "SM.MS Secret Token"
msgstr ""
#: options.php:1041
#: options.php:1048
msgid ""
"Register your application <a href=\"https://sm.ms/home/apitoken\">here</a>."
msgstr "在<a href=\"https://sm.ms/home/apitoken\">这里</a>获取 key."
#: options.php:1047
#: options.php:1054
msgid "Chevereto API v1 key"
msgstr ""
#: options.php:1048
#: options.php:1055
msgid "Get your API key here: "
msgstr "在这里获取你的 API key "
#: options.php:1054
#: options.php:1061
msgid "Chevereto URL"
msgstr ""
#: options.php:1055
#: options.php:1062
msgid ""
"Your Chevereto homepage url, no slash in the end, eg. https://your.cherverto."
"com"
msgstr ""
"你的 Chevereto 首页 url, 注意结尾没有 /, 例如https://your.cherverto.com"
#: options.php:1061
#: options.php:1068
msgid "Comment images proxy"
msgstr "评论图片代理"
#: options.php:1062
#: options.php:1069
msgid ""
"A front-ed proxy for the uploaded images. Leave it blank if you do not need."
msgstr "前端显示的图片的代理。"
#: options.php:1068
#: options.php:1075
msgid "Imgur upload proxy"
msgstr "Imgur 上传代理"
#: options.php:1069
#: options.php:1076
msgid ""
"A back-ed proxy to upload images. You may set a self hosted proxy with "
"Nginx, following my <a href=\"https://2heng.xin/2018/06/06/javascript-upload-"
@ -1618,33 +1630,33 @@ msgstr ""
"端显示都需要代理!如果服务器在国外不需要上传代理,此处填写默认值即可:【<a "
"href=\"https://api.imgur.com/3/image/\">https://api.imgur.com/3/image/</a>】"
#: options.php:1075
#: options.php:1082
msgid "Enable live search"
msgstr "启用实时搜索"
#: options.php:1076
#: options.php:1083
msgid ""
"Real-time search in the foreground, call the Rest API to update the cache "
"every hour, you can manually set the cache time in functions.php"
"every hour, you can manually set the cache time in api.php"
msgstr ""
"前台实现实时搜索,调用 Rest API 每小时更新一次缓存,可在 functions.php 里手动"
"设置缓存时间"
"前台实现实时搜索,调用 Rest API 每小时更新一次缓存,可在 api.php 里手动设置缓"
"存时间"
#: options.php:1082
#: options.php:1089
msgid "Include comments in live search"
msgstr "实时搜索包含评论"
#: options.php:1083
#: options.php:1090
msgid ""
"Search for comments in real-time search (not recommended if there are too "
"many comments on the site)"
msgstr "在实时搜索中搜索评论(如果网站评论数量太多不建议开启)"
#: options.php:1089
#: options.php:1096
msgid "Enable baguetteBox"
msgstr "启用 baguetteBox"
#: options.php:1090
#: options.php:1097
msgid ""
"Default off<a href=\"https://github.com/mashirozx/Sakura/wiki/Fancybox"
"\">please read wiki</a>"
@ -1652,33 +1664,33 @@ msgstr ""
"默认禁用,<a href=\"https://github.com/mashirozx/Sakura/wiki/Fancybox\">请阅"
"读说明</a>"
#: options.php:1096
#: options.php:1103
msgid "Enable lazyload in posts"
msgstr "文章内图片启用 lazyload"
#: options.php:1103
#: options.php:1110
msgid "lazyload spinner"
msgstr "lazyload 占位图"
#: options.php:1104
#: options.php:1111
msgid "The placeholder to display when the image loads, fill in the image url"
msgstr "图片加载时要显示的占位图,填写图片 url"
#: options.php:1110
#: options.php:1117
msgid "Whether to enable the clipboard copyright"
msgstr "是否开启剪贴板版权标识"
#: options.php:1111
#: options.php:1118
msgid ""
"Automatically add a copyright to the clipboard when copying more than 30 "
"bytes, which is enabled by default."
msgstr "复制超过30个字节时自动向剪贴板添加版权标识默认开启。"
#: options.php:1117
#: options.php:1124
msgid "Email address prefix"
msgstr "发件地址前缀"
#: options.php:1118
#: options.php:1125
msgid ""
"For sending system mail, the sender address displayed in the user's mailbox, "
"do not use Chinese, the default system email address is bibi@your_domain_name"
@ -1686,11 +1698,11 @@ msgstr ""
"用于发送系统邮件,在用户的邮箱中显示的发件人地址,不要使用中文,默认系统邮件"
"地址为 bibi@你的域名"
#: options.php:1124
#: options.php:1131
msgid "Comments reply notification"
msgstr "邮件回复通知"
#: options.php:1125
#: options.php:1132
msgid ""
"WordPress will use email to notify users when their comments receive a reply "
"by default. Tick this item allows users to set their own comments reply "
@ -1699,78 +1711,78 @@ msgstr ""
"WordPress默认会使用邮件通知用户评论收到回复开启此项允许用户设置自己的评论收"
"到回复时是否使用邮件通知"
#: options.php:1131
#: options.php:1138
msgid "Administrator comment notification"
msgstr "邮件回复通知管理员"
#: options.php:1132
#: options.php:1139
msgid ""
"Whether to use email notification when the administrator's comments receive "
"a reply"
msgstr "当管理员评论收到回复时是否使用邮件通知"
#: options.php:1138
#: options.php:1145
msgid "Enable private comment"
msgstr "允许私密评论"
#: options.php:1139
#: options.php:1146
msgid "Allow users to set their own comments to be invisible to others"
msgstr "允许用户设置自己的评论对其他人不可见"
#: options.php:1145
#: options.php:1152
msgid "Human verification"
msgstr "机器人验证"
#: options.php:1146
#: options.php:1153
msgid "Enable human verification"
msgstr "开启机器人验证"
#: options.php:1152
#: options.php:1159
msgid "QQ avatar link encryption"
msgstr "QQ头像链接加密"
#: options.php:1153
#: options.php:1160
msgid "Do not display the user's qq avatar links directly."
msgstr "不直接暴露用户QQ头像链接"
#: options.php:1158
#: options.php:1165
msgid "Off (default)"
msgstr "关闭(默认)"
#: options.php:1159
#: options.php:1166
msgid "use redirect (general security)"
msgstr "使用重定向(安全性低)"
#: options.php:1160
#: options.php:1167
msgid "fetch data at backend (high security)"
msgstr "后端获取头像数据(安全性高)"
#: options.php:1161
#: options.php:1168
msgid "fetch data at backend (high securityslow)"
msgstr "后端解析QQ头像接口安全性高"
#: options.php:1165
#: options.php:1172
msgid "Comment UA infomation"
msgstr "评论UA信息"
#: options.php:1166
#: options.php:1173
msgid ""
"Check to enable, display the user's browser, operating system information"
msgstr "勾选开启,显示用户的浏览器,操作系统信息"
#: options.php:1172
#: options.php:1179
msgid "Enable disqus"
msgstr "开启多说插件支持"
#: options.php:1173
#: options.php:1180
msgid "Enable disqus for comment"
msgstr "多说已经凉了~~"
#: options.php:1179
#: options.php:1186
msgid "Time Zone adjustment"
msgstr "时区调整"
#: options.php:1180
#: options.php:1187
msgid ""
"If the comment has a time difference problem adjust here, fill in an "
"integer, the calculation method: actual_time = display_error_time - "

View File

@ -1018,6 +1018,13 @@ function optionsframework_options()
'type_4' => __('23k Views (chinese)', 'sakura'), /*23k 次访问(中式)*/
));
$options[] = array(
'name' => __('Gravatar avatar proxy', 'sakura'),
'desc' => __('A front-ed proxy for Gravatar, eg. gravatar.2heng.xin/avatar . Leave it blank if you do not need.', 'sakura'),
'id' => 'gravatar_proxy',
'std' => "gravatar.2heng.xin/avatar",
'type' => "text");
$options[] = array(
'name' => __('Comment image upload API', 'sakura'), /*评论图片上传接口*/
'id' => 'img_upload_api',
@ -1073,7 +1080,7 @@ function optionsframework_options()
$options[] = array(
'name' => __('Enable live search', 'sakura'), /*启用实时搜索*/
'desc' => __('Real-time search in the foreground, call the Rest API to update the cache every hour, you can manually set the cache time in functions.php', 'sakura'), /*前台实现实时搜索,调用 Rest API 每小时更新一次缓存,可在 functions.php 里手动设置缓存时间*/
'desc' => __('Real-time search in the foreground, call the Rest API to update the cache every hour, you can manually set the cache time in api.php', 'sakura'), /*前台实现实时搜索,调用 Rest API 每小时更新一次缓存,可在 functions.php 里手动设置缓存时间*/
'id' => 'live_search',
'std' => '0',
'type' => 'checkbox');