This commit is contained in:
haoouba 2021-05-22 10:30:07 +08:00
parent 71834710c8
commit 4e82b7cfe9
7 changed files with 14 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -200,9 +200,9 @@
}
.panel-body {
display: none;
padding-left: 20px;
padding: 15px 15px 0 15px;
li {
margin-top: 20px;
line-height: 2.5;
a {
color: var(--routine);
&:hover {

View File

@ -14,9 +14,9 @@
<head>
<?php $this->need('public/include.php'); ?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.census.min.css?v=202105211730'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.census.min.css?v=20210522'); ?>">
<script src="https://cdn.jsdelivr.net/npm/echarts@5.1.1/dist/echarts.min.js"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.census.min.js?v=202105211730'); ?>"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.census.min.js?v=20210522'); ?>"></script>
</head>
<body>

View File

@ -70,6 +70,9 @@ function themeInit($self)
case 'article_filing':
_getArticleFiling($self);
break;
case 'article_filing_list':
_getArticleFilingList($self);
break;
};
}

View File

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

View File

@ -328,6 +328,8 @@ function _getServerStatus($self)
$self->response->throwJson(array(
/* 状态 */
"status" => $response ? true : false,
/* 信息提示 */
"message" => $response['msg'] ? $response['msg'] : '无',
/* 上行流量KB */
"up" => $response["up"] ? $response["up"] : 0,
/* 下行流量KB */
@ -370,6 +372,7 @@ function _getCommentLately($self)
]);
}
/* 获取文章归档 */
function _getArticleFiling($self)
{
header("HTTP/1.1 200 OK");
@ -390,7 +393,7 @@ function _getArticleFiling($self)
foreach ($temp as $item) {
$date = $item['date'];
$list = [];
$sql = "SELECT * FROM `{$prefix}contents` WHERE created < {$time} AND (password is NULL or password = '') AND status = 'publish' AND type = 'post' AND FROM_UNIXTIME(created, '%Y 年 %m 月') = '{$date}' ORDER BY created DESC";
$sql = "SELECT * FROM `{$prefix}contents` WHERE created < {$time} AND (password is NULL or password = '') AND status = 'publish' AND type = 'post' AND FROM_UNIXTIME(created, '%Y 年 %m 月') = '{$date}' ORDER BY created DESC LIMIT 100";
$_list = $db->fetchAll($sql);
foreach ($_list as $_item) {
$type = $_item['type'];

View File

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