Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
5 / 5 |
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 | ?> |
14 | |
15 | <?php if ($pager->getPreviousPage()) : ?> |
16 | <link rel="prev" href="<?= $pager->getPreviousPageUrl() ?>"> |
17 | <?php endif ?> |
18 | <link rel="canonical" href="<?= $pager->getCurrentPageUrl() ?>"> |
19 | <?php if ($pager->getNextPage()) : ?> |
20 | <link rel="next" href="<?= $pager->getNextPageUrl() ?>"> |
21 | <?php endif ?> |