mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 20:16:22 +05:30
Improve pagination
This commit is contained in:
parent
0a2a375953
commit
aa7a456ae7
7 changed files with 36 additions and 48 deletions
|
|
@ -89,15 +89,7 @@
|
|||
</section><!--//section-->
|
||||
<?php endforeach; ?>
|
||||
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
|
||||
<div class="pager">
|
||||
<?php if (!empty($pagination['prev'])): ?>
|
||||
<span class="newer pull-left"><a class="btn btn-cta-secondary" href="?page=<?php echo $page - 1 ?>" rel="prev">Newer</a></span>
|
||||
<?php endif; ?>
|
||||
<span class="page-number"><?php echo $pagination['pagenum'];?></span>
|
||||
<?php if (!empty($pagination['next'])): ?>
|
||||
<span class="older pull-right"><a class="btn btn-cta-secondary" href="?page=<?php echo $page + 1 ?>" rel="next">Older</a></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="pagination"><?php echo $pagination['html'];?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (disqus_count()): ?>
|
||||
<?php echo disqus_count() ?>
|
||||
|
|
|
|||
|
|
@ -28,20 +28,13 @@
|
|||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
|
||||
<div class="pager">
|
||||
<?php if (!empty($pagination['prev'])): ?>
|
||||
<span class="newer pull-left"><a class="btn btn-cta-secondary" href="?page=<?php echo $page - 1 ?>" rel="prev">Newer</a></span>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($pagination['next'])): ?>
|
||||
<span class="older pull-right"><a class="btn btn-cta-secondary" href="?page=<?php echo $page + 1 ?>" rel="next">Older</a></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php } else {
|
||||
echo 'No posts found!';
|
||||
} ?>
|
||||
</div><!--//item-->
|
||||
</div><!--//content-->
|
||||
</div><!--//section-inner-->
|
||||
</section><!--//section-->
|
||||
</section><!--//section-->
|
||||
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
|
||||
<div class="pagination"><?php echo $pagination['html'];?></div>
|
||||
<?php endif; ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue