first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use CodeIgniter\Pager\PagerRenderer;
|
||||
|
||||
/**
|
||||
* @var PagerRenderer $pager
|
||||
*/
|
||||
$pager->setSurroundCount(2);
|
||||
?>
|
||||
|
||||
<nav aria-label="<?= lang('Pager.pageNavigation') ?>">
|
||||
<ul class="pagination justify-content-center">
|
||||
<?php if ($pager->hasPrevious()) : ?>
|
||||
<li class="page-item">
|
||||
<a href="<?= $pager->getPrevious() ?>" class="page-link" aria-label="<?= lang('Pager.previous') ?>">
|
||||
<span aria-hidden="true"><?= lang('Pager.previous') ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php foreach ($pager->links() as $link) : ?>
|
||||
<li class="page-item <?= $link['active'] ? 'active' : '' ?>">
|
||||
<a href="<?= $link['uri'] ?>" class="page-link"><?= $link['title'] ?></a>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php if ($pager->hasNext()) : ?>
|
||||
<li class="page-item">
|
||||
<a href="<?= $pager->getNext() ?>" class="page-link" aria-label="<?= lang('Pager.next') ?>">
|
||||
<span aria-hidden="true"><?= lang('Pager.next') ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user