浏览代码

添加翻页页码

pull/12/head
Zisbusy 4 年前
提交者 GitHub
父节点
当前提交
2980eaa1e4
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      Akina/index.php

+ 3
- 2
Akina/index.php 查看文件

@ -214,8 +214,9 @@ if($sticky && $this->is('index') || $this->is('front')){
<!-- 结束文章循环输出 -->
<!-- 翻页按钮 -->
<nav class="navigator">
<?php $this->pageLink('<i class="iconfont">&#xe611;</i>'); ?>
<?php $this->pageLink('<i class="iconfont">&#xe60f;</i>','next'); ?>
<?php $this->pageLink('<i class="iconfont">&#xe611;</i>'); ?>
<i class="navnumber"><?php if($this->_currentPage>1) echo $this->_currentPage; else echo 1;?> / <?php echo ceil($this->getTotal() / $this->parameter->pageSize); ?></i>
<?php $this->pageLink('<i class="iconfont">&#xe60f;</i>','next'); ?>
</nav>
</main>
<div id="pagination"><?php $this->pageLink('加载更多','next'); ?></div>

正在加载...
取消
保存