freenetis-github/system/views/pagination/classic.php @ 41417e44
8baed187 | Michal Kliment | <?php
|
|
/**
|
|||
* Classic pagination style
|
|||
*
|
|||
* @preview ‹ First < 1 2 3 > Last ›
|
|||
*/
|
|||
?>
|
|||
<p class="pagination">
|
|||
<?php if ($first_page): ?>
|
|||
<a href="<?php echo str_replace('{page}', 1, $url) ?>">‹ <?php echo Kohana::lang('pagination.first') ?></a>
|
|||
<?php endif ?>
|
|||
<?php if ($previous_page): ?>
|
|||
<a href="<?php echo str_replace('{page}', $previous_page, $url) ?>"><</a>
|
|||
<?php endif ?>
|
|||
<?php for ($i = 1; $i <= $total_pages; $i++): ?>
|
|||
<?php if ($i == $current_page): ?>
|
|||
<strong><?php echo $i ?></strong>
|
|||
<?php else: ?>
|
|||
<a href="<?php echo str_replace('{page}', $i, $url) ?>"><?php echo $i ?></a>
|
|||
<?php endif ?>
|
|||
<?php endfor ?>
|
|||
<?php if ($next_page): ?>
|
|||
<a href="<?php echo str_replace('{page}', $next_page, $url) ?>">></a>
|
|||
<?php endif ?>
|
|||
<?php if ($last_page): ?>
|
|||
<a href="<?php echo str_replace('{page}', $last_page, $url) ?>"><?php echo Kohana::lang('pagination.last') ?> ›</a>
|
|||
<?php endif ?>
|
|||
</p>
|