mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-30 00:09:10 -04:00
?> to your theme file and you get a well formed pager. Themes can customize this any way they want. A version that matches the mockup is provided in the default theme.
29 lines
1016 B
PHP
29 lines
1016 B
PHP
<? 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>
|