Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
11 / 11 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /* |
3 | * This file is part of Aplus Framework Pagination Library. |
4 | * |
5 | * (c) Natan Felles <natanfelles@gmail.com> |
6 | * |
7 | * For the full copyright and license information, please view the LICENSE |
8 | * file that was distributed with this source code. |
9 | */ |
10 | /** |
11 | * @var Framework\Pagination\Pager $pager |
12 | */ |
13 | $language = $pager->getLanguage(); |
14 | ?> |
15 | <div class="text-center"> |
16 | <?php if ($pager->getPreviousPage()) : ?> |
17 | <a href="<?= $pager->getPreviousPageUrl() ?>" class="relative inline-flex items-center px-2 py-2 rounded-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> |
18 | <?= $language->render('pagination', 'previous') ?> |
19 | </a> |
20 | <?php endif ?> |
21 | |
22 | <?php if ($pager->getNextPage()) : ?> |
23 | <a href="<?= $pager->getNextPageUrl() ?>" class="relative inline-flex items-center px-2 py-2 rounded-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> |
24 | <?= $language->render('pagination', 'next') ?> |
25 | </a> |
26 | <?php endif ?> |
27 | </div> |