更新
This commit is contained in:
parent
04c87d493e
commit
37859ddf68
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/* 加强评论拦截功能 */
|
||||
Typecho_Plugin::factory('Widget_Feedback')->comment = array('Intercept', 'message');
|
||||
class Intercept
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* 获取主题当前版本号 */
|
||||
function _getVersion()
|
||||
{
|
||||
return "6.7.4";
|
||||
return "6.7.5";
|
||||
};
|
||||
|
||||
/* 判断是否是手机 */
|
||||
@ -186,6 +186,9 @@ function _getAbstract($item, $type = true)
|
||||
$abstract = $item->fields->abstract;
|
||||
} else {
|
||||
$abstract = strip_tags($item->excerpt);
|
||||
if (strpos($abstract, '{hide') !== false) {
|
||||
$abstract = preg_replace('/{hide[^}]*}([\s\S]*?){\/hide}/', '隐藏内容,请前往内页查看详情', $abstract);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($abstract === '') $abstract = "暂无简介";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "typecho-joe-next",
|
||||
"version": "6.7.4",
|
||||
"version": "6.7.5",
|
||||
"description": "A Theme Of Typecho",
|
||||
"main": "index.php",
|
||||
"keywords": [
|
||||
|
Loading…
Reference in New Issue
Block a user