diff --git a/README.md b/README.md index bc58fdf..da9ca0d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,17 @@ 评论列表参考`wordpress`主题`farallon` +## 使用 +更多SNS,按以下格式 +``` + svg + svg + svg + svg + svg + +``` ## 感谢 diff --git a/functions.php b/functions.php index 7d1928f..94cc69a 100644 --- a/functions.php +++ b/functions.php @@ -23,6 +23,8 @@ function themeConfig($form) { $form->addInput($postlisttittle); $cnavatar = new Typecho_Widget_Helper_Form_Element_Text('cnavatar', NULL, 'https://cravatar.cn/avatar/', _t('Gravatar镜像'), _t('默认https://cravatar.cn/avatar/,建议保持默认')); $form->addInput($cnavatar); + $moresns= new Typecho_Widget_Helper_Form_Element_Textarea('moresns', NULL, NULL, _t('更多的SNS'), _t('支持HTML,请参考文档')); + $form->addInput($moresns); $twikoo = new Typecho_Widget_Helper_Form_Element_Textarea('twikoo', NULL, NULL, _t('引用第三方评论'), _t('不填写则不显示')); $form->addInput($twikoo); $addhead = new Typecho_Widget_Helper_Form_Element_Textarea('addhead', NULL, NULL, _t('添加head'), _t('支持HTML')); diff --git a/index.php b/index.php index 76f8bdb..f1b945b 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * 移植自 Hexo主题 Chic * @package Chic * @author 老孙 - * @version 1.0.2 + * @version 1.0.3 * @link https://www.imsun.org */ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> diff --git a/page-home.php b/page-home.php index 8d3f111..9346abd 100644 --- a/page-home.php +++ b/page-home.php @@ -42,6 +42,7 @@ +options->moresns() ?>