2009-01-01 00:23:29 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? // See http://docs.kohanaphp.com/libraries/pagination ?>
|
2008-11-23 18:15:54 +00:00
|
|
|
<ul id="gPager">
|
2009-01-08 17:13:06 +00:00
|
|
|
<? /* XXX: This message isn't easily localizable */
|
2009-01-15 10:02:41 +00:00
|
|
|
$from_to_msg = t("Photos %from_number - %to_number of %total",
|
2009-01-08 17:13:06 +00:00
|
|
|
array("from_number" => $current_first_item,
|
|
|
|
|
"to_number" => $current_last_item,
|
|
|
|
|
"total" => $total_items)) ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
<li>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? if ($first_page): ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
<a href="<?= str_replace('{page}', 1, $url) ?>" class="gButtonLink ui-icon-left ui-state-default ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? else: ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
<a class="gButtonLink ui-icon-left ui-state-disabled ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? endif ?>
|
|
|
|
|
<? if ($previous_page): ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
<a href="<?= str_replace('{page}', $previous_page, $url) ?>" class="gButtonLink ui-icon-left ui-state-default ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? else: ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
<a class="gButtonLink ui-icon-left ui-state-disabled ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? endif ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
</li>
|
|
|
|
|
<li class="gInfo"><?= $from_to_msg ?></li>
|
|
|
|
|
<li class="txtright">
|
2008-11-07 07:33:43 +00:00
|
|
|
<? if ($next_page): ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
<a href="<?= str_replace('{page}', $next_page, $url) ?>" class="gButtonLink ui-icon-right ui-state-default ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? else: ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
<a class="gButtonLink ui-state-disabled ui-icon-right ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? endif ?>
|
|
|
|
|
<? if ($last_page): ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
<a href="<?= str_replace('{page}', $last_page, $url) ?>" class="gButtonLink ui-icon-right ui-state-default ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? else: ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
<a class="gButtonLink ui-state-disabled ui-icon-right ui-corner-all">
|
|
|
|
|
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
|
2008-11-07 07:33:43 +00:00
|
|
|
<? endif ?>
|
2009-02-22 02:09:48 +00:00
|
|
|
</li>
|
2008-11-23 18:15:54 +00:00
|
|
|
</ul>
|