1 把部分CSS移入style.css
2 加入点击加载的文章列表展示方式
3 修改了nopic.svg的大小
4 修复特定分类下的显示功能
This commit is contained in:
浪子
2025-03-21 09:17:15 +08:00
parent 077bd0f720
commit 5ca790f631
7 changed files with 103 additions and 111 deletions
+13 -1
View File
@@ -164,6 +164,7 @@ foreach ($normalPosts as $normalPost) {
<?php endif; ?>
</article>
<?php endwhile; ?>
<?php if ($this->options->loadmore): ?>
<?php
$this->pageNav(
' ',
@@ -181,4 +182,15 @@ foreach ($normalPosts as $normalPost) {
'nextClass' => 'hidden'
)
);
?>
?>
<?php else:?>
<?php
$nextPage = $this->_currentPage + 1;
$totalPages = ceil($this->getTotal() / $this->parameter->pageSize);
if ($this->_currentPage < $totalPages): ?>
<div class="nav-links">
<span class="loadmore"><?php $this->pageLink('加载更多', 'next'); ?></span>
</div>
<?php endif; ?>
<script src="<?php $this->options->themeUrl('assets/js/loadmore.js'); ?>"></script>
<?php endif; ?>