更新
This commit is contained in:
parent
27906613d9
commit
30d997bcca
@ -2,7 +2,7 @@
|
|||||||
/* 获取主题当前版本号 */
|
/* 获取主题当前版本号 */
|
||||||
function _getVersion()
|
function _getVersion()
|
||||||
{
|
{
|
||||||
return "6.9.7";
|
return "6.9.8";
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 判断是否是手机 */
|
/* 判断是否是手机 */
|
||||||
@ -157,7 +157,7 @@ function _endCountTime($precision = 3)
|
|||||||
/* 通过邮箱生成头像地址 */
|
/* 通过邮箱生成头像地址 */
|
||||||
function _getAvatarByMail($mail)
|
function _getAvatarByMail($mail)
|
||||||
{
|
{
|
||||||
$gravatarsUrl = 'https://gravatar.helingqi.com/wavatar/';
|
$gravatarsUrl = Helper::options()->JCustomAvatarSource ? Helper::options()->JCustomAvatarSource : 'https://gravatar.helingqi.com/wavatar/';
|
||||||
$mailLower = strtolower($mail);
|
$mailLower = strtolower($mail);
|
||||||
$md5MailLower = md5($mailLower);
|
$md5MailLower = md5($mailLower);
|
||||||
$qqMail = str_replace('@qq.com', '', $mailLower);
|
$qqMail = str_replace('@qq.com', '', $mailLower);
|
||||||
|
@ -345,6 +345,19 @@ function themeConfig($form)
|
|||||||
$JCustomFont->setAttribute('class', 'joe_content joe_global');
|
$JCustomFont->setAttribute('class', 'joe_content joe_global');
|
||||||
$form->addInput($JCustomFont);
|
$form->addInput($JCustomFont);
|
||||||
|
|
||||||
|
$JCustomAvatarSource = new Typecho_Widget_Helper_Form_Element_Text(
|
||||||
|
'JCustomAvatarSource',
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
'自定义头像源(非必填)',
|
||||||
|
'介绍:用于修改全站头像源地址 <br>
|
||||||
|
例如:https://gravatar.ihuan.me/avatar/ <br>
|
||||||
|
其他:非必填,默认头像源为禾令奇 <br>
|
||||||
|
注意:填写时,务必保证最后有一个/字符,否则不起作用!'
|
||||||
|
);
|
||||||
|
$JCustomAvatarSource->setAttribute('class', 'joe_content joe_global');
|
||||||
|
$form->addInput($JCustomAvatarSource);
|
||||||
|
|
||||||
$JAside_Author_Nick = new Typecho_Widget_Helper_Form_Element_Text(
|
$JAside_Author_Nick = new Typecho_Widget_Helper_Form_Element_Text(
|
||||||
'JAside_Author_Nick',
|
'JAside_Author_Nick',
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "typecho-joe-next",
|
"name": "typecho-joe-next",
|
||||||
"version": "6.9.7",
|
"version": "6.9.8",
|
||||||
"description": "A Theme Of Typecho",
|
"description": "A Theme Of Typecho",
|
||||||
"main": "index.php",
|
"main": "index.php",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
Loading…
Reference in New Issue
Block a user