summaryrefslogtreecommitdiff
path: root/themes/night_wind/views/pager.html.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-08 10:11:57 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-08 10:11:57 -0700
commit23ba9a2a4eaef62408d52286d573f2be6820afca (patch)
treecd7fd5a72db205dba8e6985261bced886946664a /themes/night_wind/views/pager.html.php
parent03561649ea3d04d96c8911d39b05b71845912b1d (diff)
A clone of the Gallery Wind theme that is based on darker colors. We can move it to -contrib if that's the desire, but i'd thought i'd put it here for now.
Diffstat (limited to 'themes/night_wind/views/pager.html.php')
-rw-r--r--themes/night_wind/views/pager.html.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/themes/night_wind/views/pager.html.php b/themes/night_wind/views/pager.html.php
new file mode 100644
index 00000000..2075fd95
--- /dev/null
+++ b/themes/night_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="g-pager g-clearfix">
+ <? /* @todo This message isn't easily localizable */
+ $from_to_msg = t2("Photo %from_number of %count",
+ "Photos %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="g-button ui-icon-left ui-state-default ui-corner-all">
+ <span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
+ <? else: ?>
+ <a class="g-button 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="g-button ui-icon-left ui-state-default ui-corner-all">
+ <span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
+ <? else: ?>
+ <a class="g-button 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="g-info"><?= $from_to_msg ?></li>
+ <li class="g-txt-right">
+ <? if ($next_page): ?>
+ <a href="<?= str_replace('{page}', $next_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
+ <span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
+ <? else: ?>
+ <a class="g-button 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="g-button ui-icon-right ui-state-default ui-corner-all">
+ <span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
+ <? else: ?>
+ <a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
+ <span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
+ <? endif ?>
+ </li>
+</ul>