1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/themes/3nids_theme/3nids/views/pager.html.php

44 lines
2.1 KiB
PHP
Raw Normal View History

2009-09-23 06:43:11 +00:00
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? // See http://docs.kohanaphp.com/libraries/pagination ?>
2009-10-19 07:21:48 +00:00
<ul class="g-pager g-clearfix">
2009-09-23 06:43:11 +00:00
<? /* @todo This message isn't easily localizable */
$from_to_msg = t2("%current_page / %total_pages",
"%current_page / %total_pages",
$total_items,
array("total_pages" => $total_pages,
"current_page" => $current_page)) ?>
<li>
<? if ($first_page): ?>
2009-10-19 07:21:48 +00:00
<a href="<?= str_replace('{page}', 1, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
<? else: ?>
2009-10-19 07:21:48 +00:00
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
<? endif ?>
<? if ($previous_page): ?>
2009-10-19 07:21:48 +00:00
<a href="<?= str_replace('{page}', $previous_page, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
<? else: ?>
2009-10-19 07:21:48 +00:00
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
<? endif ?>
</li>
2009-10-19 07:21:48 +00:00
<li class="g-info"><?= $from_to_msg ?></li>
<li class="g-txt-right">
2009-09-23 06:43:11 +00:00
<? if ($next_page): ?>
2009-10-19 07:21:48 +00:00
<a href="<?= str_replace('{page}', $next_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
<? else: ?>
2009-10-19 07:21:48 +00:00
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
<? endif ?>
<? if ($last_page): ?>
2009-10-19 07:21:48 +00:00
<a href="<?= str_replace('{page}', $last_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
<? else: ?>
2009-10-19 07:21:48 +00:00
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
2009-09-23 06:43:11 +00:00
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
<? endif ?>
</li>
</ul>