You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.6 KiB
39 lines
1.6 KiB
11 months ago
|
<?php $pager->setSurroundCount(2) ?>
|
||
|
|
||
|
<nav aria-label="Page navigation">
|
||
|
<ul class="pagination">
|
||
|
<?php if ($pager->hasPrevious()) : ?>
|
||
|
<li class="page-item">
|
||
|
<a class="page-link" href="<?= $pager->getFirst() ?>" aria-label="<?= lang('Pager.first') ?>">
|
||
|
<span aria-hidden="true"><?= lang('Pager.first') ?></span>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="page-item">
|
||
|
<a class="page-link" href="<?= $pager->getPrevious() ?>" 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 class="page-link" href="<?= $link['uri'] ?>">
|
||
|
<?= $link['title'] ?>
|
||
|
</a>
|
||
|
</li>
|
||
|
<?php endforeach ?>
|
||
|
|
||
|
<?php if ($pager->hasNext()) : ?>
|
||
|
<li class="page-item">
|
||
|
<a class="page-link" href="<?= $pager->getNext() ?>" aria-label="<?= lang('Pager.next') ?>">
|
||
|
<span aria-hidden="true"><?= lang('Pager.next') ?></span>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="page-item">
|
||
|
<a class="page-link" href="<?= $pager->getLast() ?>" aria-label="<?= lang('Pager.last') ?>">
|
||
|
<span aria-hidden="true"><?= lang('Pager.last') ?></span>
|
||
|
</a>
|
||
|
</li>
|
||
|
<?php endif ?>
|
||
|
</ul>
|
||
|
</nav>
|