Merge branch 'maint/7.0'
[ninja.git] / application / views / pagination / extended.php
blob11a6857545c7bdad04a33dc231ccddeb2cff8828
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * Extended pagination style
5 * @preview « Previous | Page 2 of 11 | Showing items 6-10 of 52 | Next »
6 */
7 ?>
9 <p class="pagination">
11 <?php if ($previous_page): ?>
12 <a href="<?php echo str_replace('{page}', $previous_page, $url) ?>">&laquo;&nbsp;<?php echo Kohana::lang('pagination.previous') ?></a>
13 <?php else: ?>
14 &laquo;&nbsp;<?php echo Kohana::lang('pagination.previous') ?>
15 <?php endif ?>
17 | <?php echo Kohana::lang('pagination.page') ?> <?php echo $current_page ?> <?php echo Kohana::lang('pagination.of') ?> <?php echo $total_pages ?>
19 | <?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 ?>
21 | <?php if ($next_page): ?>
22 <a href="<?php echo str_replace('{page}', $next_page, $url) ?>"><?php echo Kohana::lang('pagination.next') ?>&nbsp;&raquo;</a>
23 <?php else: ?>
24 <?php echo Kohana::lang('pagination.next') ?>&nbsp;&raquo;
25 <?php endif ?>
27 </p>