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,6 +55,7 @@ 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);
if ($item->next()) {
$result[] = array( $result[] = array(
"mode" => $item->fields->mode ? $item->fields->mode : 'default', "mode" => $item->fields->mode ? $item->fields->mode : 'default',
"image" => _getThumbnails($item), "image" => _getThumbnails($item),
@ -72,6 +73,7 @@ function _getPost($self)
); );
} }
} }
}
$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);
while ($item->next()) { while ($item->next()) {
$result[] = array( $result[] = array(

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": [