From f2bb3ef9d7103482362c251e0ab377b6e6c54e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Mon, 1 Jul 2024 10:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archive.php | 24 +- comments.php | 356 ------------------------- part/footer.php => footer.php | 0 part/header.php => header.php | 28 ++ index.php | 57 +++- page-archives.php | 6 +- page-categories.php | 6 +- part/sns.php => page-home.php | 22 +- page-links.php | 6 +- page-tags.php | 6 +- page.php | 6 +- part/head.php | 28 -- part/paginator.php | 67 ----- part/profile.php | 11 - post.php | 8 +- dist/js/script.js => script.js | 0 dist/css/style.css => style.css | 354 +++++++++++++++++++++++- part/toc.php => toc.php | 0 dist/js/tocbot.min.js => tocbot.min.js | 0 19 files changed, 483 insertions(+), 502 deletions(-) rename part/footer.php => footer.php (100%) rename part/header.php => header.php (58%) rename part/sns.php => page-home.php (94%) delete mode 100644 part/head.php delete mode 100644 part/paginator.php delete mode 100644 part/profile.php rename dist/js/script.js => script.js (100%) rename dist/css/style.css => style.css (82%) rename part/toc.php => toc.php (100%) rename dist/js/tocbot.min.js => tocbot.min.js (100%) diff --git a/archive.php b/archive.php index 368b688..2888d1b 100644 --- a/archive.php +++ b/archive.php @@ -1,8 +1,6 @@ -need('part/head.php'); ?> -
-need('part/header.php'); ?> +need('header.php'); ?>

archiveTitle(array( @@ -37,6 +35,22 @@ while($this->next()):

-need('part/paginator.php'); ?> +pagenav( + '', + '', + 1, + '...', + array( + 'wrapTag' => 'div', + 'wrapClass' => 'pagination_page', + 'itemTag' => '', + 'textTag' => 'a', + 'currentClass' => 'active', + 'prevClass' => 'prev', + 'nextClass' => 'next' + ) + ); + ?>
-need('part/footer.php'); ?> \ No newline at end of file +need('footer.php'); ?> \ No newline at end of file diff --git a/comments.php b/comments.php index 22fbfa5..9be0707 100644 --- a/comments.php +++ b/comments.php @@ -1,360 +1,4 @@ -
comments()->to($comments); ?> allow('comment')): ?> diff --git a/part/footer.php b/footer.php similarity index 100% rename from part/footer.php rename to footer.php diff --git a/part/header.php b/header.php similarity index 58% rename from part/header.php rename to header.php index 59166d5..bf57e4c 100644 --- a/part/header.php +++ b/header.php @@ -1,4 +1,32 @@ + + + + + + + + + + + <?php if($this->_currentPage>1) echo '第 '.$this->_currentPage.' 页 - '; ?><?php $this->archiveTitle(array( + 'category' => _t('分类 %s 下的文章'), + 'search' => _t('包含关键字 %s 的文章'), + 'tag' => _t('标签 %s 下的文章'), + 'date' => _t('在<span> %s </span>发布的文章'), + 'author' => _t('%s 发布的文章') + ), '', ' - '); ?><?php if ($this->is('post')) $this->category(',', false);?><?php if ($this->is('post')) echo ' - ';?><?php $this->options->title(); ?><?php if ($this->is('index')) echo ' - '; ?><?php if ($this->is('index')) $this->options->description() ?> + + + + + +header("generator=&template=&pingback=&wlw=&xmlrpc=&rss1=&atom=&rss2=/feed"); ?> +options->addhead(); ?> +header(); ?> + + +