Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
21 / 21
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<nav class="paginate-container" aria-label="Pagination">
16    <div class="pagination">
17        <?php if ($pager->getPreviousPage()) : ?>
18            <a class="previous_page" rel="prev" href="<?= $pager->getPreviousPageUrl() ?>" aria-label="Previous Page">
19                <?= $language->render('pagination', 'previous') ?>
20            </a>
21        <?php else: ?>
22            <span class="previous_page" aria-disabled="true">
23                <?= $language->render('pagination', 'previous') ?>
24            </span>
25        <?php endif ?>
26
27        <?php if ($pager->getNextPage()) : ?>
28            <a class="next_page" rel="next" href="<?= $pager->getNextPageUrl() ?>" aria-label="Next Page">
29                <?= $language->render('pagination', 'next') ?>
30            </a>
31        <?php else: ?>
32            <span class="next_page" aria-disabled="true">
33                <?= $language->render('pagination', 'next') ?>
34            </span>
35        <?php endif ?>
36    </div>
37</nav>