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