Files
gallery3/themes/default/views/pager.html.php
Bharat Mediratta 76436c0029 Add automatic pagination. All you have to do is add <?= $theme->pager
?> 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.
2008-11-07 07:33:43 +00:00

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>