This commit is contained in:
杜恒 2021-04-28 17:20:27 +08:00
parent 04c87d493e
commit 37859ddf68
3 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
<?php <?php
/* 加强评论拦截功能 */ /* 加强评论拦截功能 */
Typecho_Plugin::factory('Widget_Feedback')->comment = array('Intercept', 'message'); Typecho_Plugin::factory('Widget_Feedback')->comment = array('Intercept', 'message');
class Intercept class Intercept

View File

@ -2,7 +2,7 @@
/* 获取主题当前版本号 */ /* 获取主题当前版本号 */
function _getVersion() function _getVersion()
{ {
return "6.7.4"; return "6.7.5";
}; };
/* 判断是否是手机 */ /* 判断是否是手机 */
@ -186,6 +186,9 @@ function _getAbstract($item, $type = true)
$abstract = $item->fields->abstract; $abstract = $item->fields->abstract;
} else { } else {
$abstract = strip_tags($item->excerpt); $abstract = strip_tags($item->excerpt);
if (strpos($abstract, '{hide') !== false) {
$abstract = preg_replace('/{hide[^}]*}([\s\S]*?){\/hide}/', '隐藏内容,请前往内页查看详情', $abstract);
}
} }
} }
if ($abstract === '') $abstract = "暂无简介"; if ($abstract === '') $abstract = "暂无简介";

View File

@ -1,6 +1,6 @@
{ {
"name": "typecho-joe-next", "name": "typecho-joe-next",
"version": "6.7.4", "version": "6.7.5",
"description": "A Theme Of Typecho", "description": "A Theme Of Typecho",
"main": "index.php", "main": "index.php",
"keywords": [ "keywords": [