diff --git a/comments.php b/comments.php
new file mode 100644
index 0000000..c9f1c9e
--- /dev/null
+++ b/comments.php
@@ -0,0 +1,454 @@
+
+
+authorId) {
+ if ($comments->authorId == $comments->ownerId) {
+ $commentClass .= ' comment-by-author';
+ } else {
+ $commentClass .= ' comment-by-user';
+ }
+ }
+ $depth = $comments->levels + 1;
+ ?>
+
+
+
+
\ No newline at end of file
diff --git a/footer.php b/footer.php
index 8bc4998..861cd7a 100644
--- a/footer.php
+++ b/footer.php
@@ -2,11 +2,12 @@
diff --git a/functions.php b/functions.php
index 68cdf09..fd88d98 100644
--- a/functions.php
+++ b/functions.php
@@ -11,6 +11,8 @@ function themeConfig($form) {
$form->addInput($linksurl);
$abouturl = new Typecho_Widget_Helper_Form_Element_Text('abouturl', NULL, NULL, _t('关于页面地址'), _t('关于页面地址'));
$form->addInput($abouturl);
+ $addsns = new Typecho_Widget_Helper_Form_Element_Textarea('addsns', NULL, NULL, _t('自定义联系方式'), _t('头像下方的联系方式,具体使用查看使用文档'));
+ $form->addInput($addsns);
$addmenu = new Typecho_Widget_Helper_Form_Element_Textarea('addmenu', NULL, NULL, _t('自定义菜单'), _t('具体查看使用文档'));
$form->addInput($addmenu);
$showgd = new Typecho_Widget_Helper_Form_Element_Radio('showgd',
@@ -19,7 +21,7 @@ function themeConfig($form) {
$form->addInput($showgd);
$showmod = new Typecho_Widget_Helper_Form_Element_Radio('showmod',
array('0'=> _t('否'), '1'=> _t('是')),
- '0', _t('是否使用魔改风格'), _t('选择“是”将展示。'));
+ '0', _t('是否使用MOD风格'), _t('选择“是”将展示。'));
$form->addInput($showmod);
$instagramurl = new Typecho_Widget_Helper_Form_Element_Text('instagramurl', NULL, NULL, _t('Instagram'), _t('会在个人信息显示'));
$form->addInput($instagramurl);
diff --git a/header.php b/header.php
index a07ac07..dc7704e 100644
--- a/header.php
+++ b/header.php
@@ -45,6 +45,7 @@
+options->addsns() ?>
-
diff --git a/index.php b/index.php
index 81aba73..60f756a 100644
--- a/index.php
+++ b/index.php
@@ -4,7 +4,7 @@
*
* @package Typecho stack Theme
* @author Sun
- * @version 1.0
+ * @version 1.0.2
* @link http://imsun.org
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
+ commentsNum(_t('0'), _t('1'), _t('%d')); ?> +
++ have()): ?> + listComments(); ?> + pageNav( + '', + '', + 1, + '...', + array( + 'wrapTag' => 'div', + 'wrapClass' => 'pagination_page', + 'itemTag' => '', + 'textTag' => 'a', + 'currentClass' => 'active', + 'prevClass' => 'prev', + 'nextClass' => 'next' + ) + ); + ?> + +