blob: bec066965c7cb51c2e7e3156668be0c821849327 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<? defined("SYSPATH") or die("No direct script access."); ?>
<? // See http://docs.kohanaphp.com/libraries/pagination ?>
<div id="gPagination">
<?= sprintf(_("Photos %d - %d of %d"), $current_first_item, $current_last_item, $total_items) ?>
<? if ($first_page): ?>
<a href="<?= str_replace('{page}', 1, $url) ?>"><?= _("first") ?></a>
<? else: ?>
<span class="first_inactive"><?= _("first") ?></span>
<? endif ?>
<? if ($previous_page): ?>
<a href="<?= str_replace('{page}', $previous_page, $url) ?>"><?= _("previous") ?></a>
<? else: ?>
<span class="previous_inactive"><?= _("previous") ?></span>
<? endif ?>
<? if ($next_page): ?>
<a href="<?= str_replace('{page}', $next_page, $url) ?>"><?= _("next") ?></a>
<? else: ?>
<span class="next_inactive"><?= _("next") ?></span>
<? endif ?>
<? if ($last_page): ?>
<a href="<?= str_replace('{page}', $last_page, $url) ?>"><?= _("last") ?></a>
<? else: ?>
<span class="last_inactive"><?= _("last") ?></span>
<? endif ?>
</div>
|