From 7d3aae523cf4e1e651eff6f731fa87c722599d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E6=81=92?= <2323333339@qq.com> Date: Mon, 22 Feb 2021 12:57:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- core/function.php | 2 +- core/short.php | 4 ++-- public/comment.php | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/core.php b/core/core.php index 1e3900a..0dae030 100644 --- a/core/core.php +++ b/core/core.php @@ -29,7 +29,7 @@ function themeInit($self) Helper::options()->commentsRequireMail = true; /* 强奸用户要求无需填写url */ Helper::options()->commentsRequireURL = false; - /* 强制用户评论回复 */ + /* 强制用户开启评论回复 */ Helper::options()->commentsThreaded = true; /* 强制显示一页12篇文章 */ $self->parameter->pageSize = 12; diff --git a/core/function.php b/core/function.php index 0a31bb8..d527582 100644 --- a/core/function.php +++ b/core/function.php @@ -185,7 +185,7 @@ function _getAbstract($item, $type = true) if ($item->fields->abstract) { $abstract = $item->fields->abstract; } else { - $abstract = Typecho_Common::subStr(strip_tags($item->excerpt), 0, 180, '...');; + $abstract = strip_tags($item->excerpt); } } if ($abstract === '') $abstract = "暂无简介"; diff --git a/core/short.php b/core/short.php index 5f9ab3e..eecf2f5 100644 --- a/core/short.php +++ b/core/short.php @@ -88,14 +88,14 @@ function _parseContent($post, $login) $content = preg_replace_callback( '/\{music-list\s*id="(\w*)"\s*\/\}/SU', function ($matches) { - return ''; + return ''; }, $content ); $content = preg_replace_callback( '/\{music\s*id="(\w*)"\s*\/\}/SU', function ($matches) { - return ''; + return ''; }, $content ); diff --git a/public/comment.php b/public/comment.php index f374217..96e70c9 100644 --- a/public/comment.php +++ b/public/comment.php @@ -64,7 +64,8 @@ have()) : ?> listComments(); ?> - pageNav( + pageNav( '', '', 1,