summaryrefslogtreecommitdiff
path: root/kohana/views/pagination/extended.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-10-31 22:12:14 +0000
committerBharat Mediratta <bharat@menalto.com>2008-10-31 22:12:14 +0000
commiteba717f95f586d2538007bd18da6e9b32b076c30 (patch)
tree15fc596a270f9de0d163c66c96e3c65fca5ee100 /kohana/views/pagination/extended.php
parentfff10f8b70376ef25722bd867df26bc5aefced43 (diff)
Merge over vendor code.
git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18408 57fcd75e-5312-0410-8df3-f5eb6fbb1595
Diffstat (limited to 'kohana/views/pagination/extended.php')
-rw-r--r--kohana/views/pagination/extended.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/kohana/views/pagination/extended.php b/kohana/views/pagination/extended.php
new file mode 100644
index 00000000..7e4fa389
--- /dev/null
+++ b/kohana/views/pagination/extended.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * Extended pagination style
+ *
+ * @preview « Previous | Page 2 of 11 | Showing items 6-10 of 52 | Next »
+ */
+?>
+
+<p class="pagination">
+
+ <?php if ($previous_page): ?>
+ <a href="<?php echo str_replace('{page}', $previous_page, $url) ?>">&laquo;&nbsp;<?php echo Kohana::lang('pagination.previous') ?></a>
+ <?php else: ?>
+ &laquo;&nbsp;<?php echo Kohana::lang('pagination.previous') ?>
+ <?php endif ?>
+
+ | <?php echo Kohana::lang('pagination.page') ?> <?php echo $current_page ?> <?php echo Kohana::lang('pagination.of') ?> <?php echo $total_pages ?>
+
+ | <?php echo Kohana::lang('pagination.items') ?> <?php echo $current_first_item ?>&ndash;<?php echo $current_last_item ?> <?php echo Kohana::lang('pagination.of') ?> <?php echo $total_items ?>
+
+ | <?php if ($next_page): ?>
+ <a href="<?php echo str_replace('{page}', $next_page, $url) ?>"><?php echo Kohana::lang('pagination.next') ?>&nbsp;&raquo;</a>
+ <?php else: ?>
+ <?php echo Kohana::lang('pagination.next') ?>&nbsp;&raquo;
+ <?php endif ?>
+
+</p> \ No newline at end of file