Skip to content

Commit

Permalink
Merge pull request #189 from rankment/master
Browse files Browse the repository at this point in the history
分页中添加最后一页的链接
  • Loading branch information
Licoy committed Oct 6, 2022
2 parents f970927 + f080ca7 commit 5c8234d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,10 @@ function pk_paging($pnum = 2)
}
}
}
if ($paged < $max_page - $pnum - 1) echo "<li><a href='javascript:void(0)'>...</a></li>";
if ($paged < $max_page - $pnum - 1) {
echo "<li><a href='javascript:void(0)'>...</a></li>";
page_link($max_page);
}
echo '<li class="next-page">';
next_posts_link('&raquo;');
echo '</li>';
Expand Down

0 comments on commit 5c8234d

Please sign in to comment.