This commit is contained in:
杜恒 2021-03-19 12:26:48 +08:00
parent 3989e2f08f
commit 514662f407
3 changed files with 19 additions and 17 deletions

View File

@ -2,7 +2,7 @@
/* 获取主题当前版本号 */ /* 获取主题当前版本号 */
function _getVersion() function _getVersion()
{ {
return "6.0.9"; return "6.1.0";
}; };
/* 判断是否是手机 */ /* 判断是否是手机 */

View File

@ -55,21 +55,23 @@ function _getPost($self)
$sticky_arr = explode("||", $sticky_text); $sticky_arr = explode("||", $sticky_text);
foreach ($sticky_arr as $cid) { foreach ($sticky_arr as $cid) {
$self->widget('Widget_Archive@' . $cid, 'pageSize=1&type=post', 'cid=' . $cid)->to($item); $self->widget('Widget_Archive@' . $cid, 'pageSize=1&type=post', 'cid=' . $cid)->to($item);
$result[] = array( if ($item->next()) {
"mode" => $item->fields->mode ? $item->fields->mode : 'default', $result[] = array(
"image" => _getThumbnails($item), "mode" => $item->fields->mode ? $item->fields->mode : 'default',
"time" => date('Y-m-d', $item->created), "image" => _getThumbnails($item),
"created" => date('Y年m月d日', $item->created), "time" => date('Y-m-d', $item->created),
"title" => $item->title, "created" => date('Y年m月d日', $item->created),
"abstract" => _getAbstract($item, false), "title" => $item->title,
"category" => $item->categories, "abstract" => _getAbstract($item, false),
"views" => _getViews($item, false), "category" => $item->categories,
"commentsNum" => number_format($item->commentsNum), "views" => _getViews($item, false),
"agree" => _getAgree($item, false), "commentsNum" => number_format($item->commentsNum),
"permalink" => $item->permalink, "agree" => _getAgree($item, false),
"lazyload" => _getLazyload(false), "permalink" => $item->permalink,
"type" => "sticky", "lazyload" => _getLazyload(false),
); "type" => "sticky",
);
}
} }
} }
$self->widget('Widget_Contents_Sort', 'page=' . $page . '&pageSize=' . $pageSize . '&type=' . $type)->to($item); $self->widget('Widget_Contents_Sort', 'page=' . $page . '&pageSize=' . $pageSize . '&type=' . $type)->to($item);

View File

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