diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-09-24 22:08:08 -0600 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2009-09-24 22:08:08 -0600 |
| commit | 639c9c2d55164eab8ef1f8c21a7f9b69b54686ff (patch) | |
| tree | 0bbb2e33006198d6e30975dc6ba8f9e3e34b2fc0 /themes/admin_wind/views/pager.html.php | |
| parent | 16c97eb6ebd8c5514dff8ed9242d7eb0a4e7178a (diff) | |
| parent | e204e18b3c6a4b4b1aa76b6d4a5392bd238490eb (diff) | |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'themes/admin_wind/views/pager.html.php')
| -rw-r--r-- | themes/admin_wind/views/pager.html.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/themes/admin_wind/views/pager.html.php b/themes/admin_wind/views/pager.html.php new file mode 100644 index 00000000..5034ec19 --- /dev/null +++ b/themes/admin_wind/views/pager.html.php @@ -0,0 +1,44 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<? // See http://docs.kohanaphp.com/libraries/pagination ?> +<ul class="gPager"> + <? /* @todo This message isn't easily localizable */ + $from_to_msg = t2("Item %from_number of %count", + "Items %from_number - %to_number of %count", + $total_items, + array("from_number" => $current_first_item, + "to_number" => $current_last_item, + "count" => $total_items)) ?> + <li> + <? if ($first_page): ?> + <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> + <? else: ?> + <a class="gButtonLink ui-icon-left ui-state-disabled ui-corner-all"> + <span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a> + <? endif ?> + <? if ($previous_page): ?> + <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> + <? else: ?> + <a class="gButtonLink ui-icon-left ui-state-disabled ui-corner-all"> + <span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a> + <? endif ?> + </li> + <li class="gInfo"><?= $from_to_msg ?></li> + <li class="txtright"> + <? if ($next_page): ?> + <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> + <? else: ?> + <a class="gButtonLink ui-state-disabled ui-icon-right ui-corner-all"> + <span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a> + <? endif ?> + <? if ($last_page): ?> + <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> + <? else: ?> + <a class="gButtonLink ui-state-disabled ui-icon-right ui-corner-all"> + <span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a> + <? endif ?> + </li> +</ul> |
