First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
45
system/Pager/Views/default_full.php
Normal file
45
system/Pager/Views/default_full.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \CodeIgniter\Pager\PagerRenderer $pager
|
||||
*/
|
||||
|
||||
$pager->setSurroundCount(2);
|
||||
?>
|
||||
|
||||
<nav aria-label="<?= lang('Pager.pageNavigation') ?>">
|
||||
<ul class="pagination">
|
||||
<?php if ($pager->hasPrevious()) : ?>
|
||||
<li>
|
||||
<a href="<?= $pager->getFirst() ?>" aria-label="<?= lang('Pager.first') ?>">
|
||||
<span aria-hidden="true"><?= lang('Pager.first') ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?= $pager->getPrevious() ?>" aria-label="<?= lang('Pager.previous') ?>">
|
||||
<span aria-hidden="true">«</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
|
||||
<?php foreach ($pager->links() as $link) : ?>
|
||||
<li <?= $link['active'] ? 'class="active"' : '' ?>>
|
||||
<a href="<?= $link['uri'] ?>">
|
||||
<?= $link['title'] ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php if ($pager->hasNext()) : ?>
|
||||
<li>
|
||||
<a href="<?= $pager->getNext() ?>" aria-label="<?= lang('Pager.next') ?>">
|
||||
<span aria-hidden="true">»</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?= $pager->getLast() ?>" aria-label="<?= lang('Pager.last') ?>">
|
||||
<span aria-hidden="true"><?= lang('Pager.last') ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
</nav>
|
||||
18
system/Pager/Views/default_head.php
Normal file
18
system/Pager/Views/default_head.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \CodeIgniter\Pager\PagerRenderer $pager
|
||||
*/
|
||||
|
||||
$pager->setSurroundCount(0);
|
||||
|
||||
if ($pager->hasPrevious())
|
||||
{
|
||||
echo '<link rel="prev" href="' . $pager->getPrevious() . '">' . PHP_EOL;
|
||||
}
|
||||
|
||||
echo '<link rel="canonical" href="' . $pager->getCurrent() . '">' . PHP_EOL;
|
||||
|
||||
if ($pager->hasNext())
|
||||
{
|
||||
echo '<link rel="next" href="' . $pager->getNext() . '">' . PHP_EOL;
|
||||
}
|
||||
21
system/Pager/Views/default_simple.php
Normal file
21
system/Pager/Views/default_simple.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \CodeIgniter\Pager\PagerRenderer $pager
|
||||
*/
|
||||
|
||||
$pager->setSurroundCount(0);
|
||||
?>
|
||||
<nav>
|
||||
<ul class="pager">
|
||||
<li <?= $pager->hasPrevious() ? '' : 'class="disabled"' ?>>
|
||||
<a href="<?= $pager->getPrevious() ?? '#' ?>" aria-label="<?= lang('Pager.previous') ?>">
|
||||
<span aria-hidden="true"><?= lang('Pager.newer') ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<li <?= $pager->hasNext() ? '' : 'class="disabled"' ?>>
|
||||
<a href="<?= $pager->getnext() ?? '#' ?>" aria-label="<?= lang('Pager.next') ?>">
|
||||
<span aria-hidden="true"><?= lang('Pager.older') ?></span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user