This commit is contained in:
haoouba
2021-05-12 21:29:42 +08:00
parent a155178fa0
commit 2ae9560cfc
7 changed files with 5479 additions and 3 deletions

View File

@@ -823,6 +823,74 @@ function themeConfig($form)
$JSiteMap->setAttribute('class', 'joe_content joe_other');
$form->addInput($JSiteMap->multiMode());
/* 评论发信 */
$JCommentMail = new Typecho_Widget_Helper_Form_Element_Select(
'JCommentMail',
array('off' => '关闭(默认)', 'on' => '开启'),
'off',
'是否开启评论邮件通知',
'介绍:开启后评论内容将会进行邮箱通知 <br />
注意:此项需要您完整无错的填写下方的邮箱设置!! <br />
其他下方例子以QQ邮箱为例推荐使用QQ邮箱'
);
$JCommentMail->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMail->multiMode());
$JCommentMailHost = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailHost',
NULL,
NULL,
'邮箱服务器地址',
'例如smtp.qq.com'
);
$JCommentMailHost->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailHost->multiMode());
$JCommentMailPort = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailPort',
NULL,
NULL,
'邮箱服务器端口号',
'例如465'
);
$JCommentMailPort->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailPort->multiMode());
$JCommentMailFromName = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailFromName',
NULL,
NULL,
'发件人昵称',
'例如:帅气的象拔蚌'
);
$JCommentMailFromName->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailFromName->multiMode());
$JCommentMailAccount = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailAccount',
NULL,
NULL,
'发件人邮箱',
'例如2323333339@qq.com'
);
$JCommentMailAccount->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailAccount->multiMode());
$JCommentMailPassword = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailPassword',
NULL,
NULL,
'邮箱授权码',
'介绍:这里填写的是邮箱生成的授权码 <br>
获取方式以QQ邮箱为例<br>
QQ邮箱 > 设置 > 账户 > IMAP/SMTP服务 > 开启 <br>
其他:这个可以百度一下开启教程,有图文教程'
);
$JCommentMailPassword->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailPassword->multiMode());
$JBaiduToken = new Typecho_Widget_Helper_Form_Element_Text(
'JBaiduToken',
NULL,