From 890b239d7eb2a1aca2b3ce81d8efdd0665d30310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=94=E8=90=BD?= <45323514+BigCoke233@users.noreply.github.com> Date: Sat, 6 Apr 2019 15:00:31 +0800 Subject: =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- file.php | 7 +---- includes/comments.php | 29 ++++++++++++++++---- includes/footer.php | 23 +++++----------- includes/head.php | 3 ++- includes/sidebar.php | 2 +- includes/toolbar.php | 3 --- index.php | 2 +- links.php | 17 +++--------- page.php | 9 ++----- post.php | 18 ++++++++----- post/post-content.php | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ post/post-excerpt.php | 62 ++++++++++++++++++++++++++++++++++++++++++ post/post-item.php | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 13 files changed, 259 insertions(+), 60 deletions(-) create mode 100644 post/post-content.php create mode 100644 post/post-excerpt.php create mode 100644 post/post-item.php diff --git a/file.php b/file.php index 5315316..4b387a2 100644 --- a/file.php +++ b/file.php @@ -27,12 +27,7 @@
-

title() ?>

- - date('Y-m-d'); ?>  /   - category(',', true, '木有分类'); ?>  /   - commentsNum('%d'); ?> - +

title() ?>


diff --git a/includes/comments.php b/includes/comments.php index ee6e771..39d1a3f 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -64,7 +64,15 @@
- + $this->hidden ? 0 : $this->cid, + 'parentContent' => $this->row, + 'respondId' => $this->respondId, + 'commentPage' => $this->request->filter('int')->commentPage, + 'allowComment' => $this->allow('comment') + ); + ?> allow('comment')): ?>

@@ -93,15 +101,26 @@
-

+

comments()->to($comments); ?> have()): ?> -
- listComments(); ?> + + + +
+
+

- commentsNum('评论列表', '已有 1 条评论', '已有 %d 条评论'); ?> -

+
+
+ listComments(); ?> +
- pageNav('« 前一页', '后一页 »'); ?> +
+ pageNav('«', '»'); ?>
\ No newline at end of file diff --git a/includes/footer.php b/includes/footer.php index 9c58b2e..2519bbe 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -1,3 +1,4 @@ + - + - + + - -
-
-
-
-
-
-
-
- options->pjax && $this->options->pjax!=0) :?> + - +