Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
13 / 13 |
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 | <ul class="pagination text-center"> |
16 | <?php if ($pager->getPreviousPage()) : ?> |
17 | <li> |
18 | <a rel="prev" href="<?= $pager->getPreviousPageUrl() ?>"> |
19 | <?= $language->render('pagination', 'previous') ?> |
20 | </a> |
21 | </li> |
22 | <?php endif ?> |
23 | |
24 | <?php if ($pager->getNextPage()) : ?> |
25 | <li> |
26 | <a rel="next" href="<?= $pager->getNextPageUrl() ?>"> |
27 | <?= $language->render('pagination', 'next') ?> |
28 | </a> |
29 | </li> |
30 | <?php endif ?> |
31 | </ul> |