histogram: Make histograms crash less
[ninja.git] / application / views / pagination / digg-pageless.php
blobb3c786d4e9c75a8cbb5ce76546dfc302ca804914
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * Like the Digg style, but without page numbers, because they're slow to calculate
5 * @preview « Previous Next »
6 */
7 $label_previous = '<span class="icon-16 x16-arrow-left" title="'._('Previous').'"></span>';
8 $label_next = '<span class="icon-16 x16-arrow-right" title="'._('Next').'"></span>';
9 ?>
10 <div class="pagination_container">
12 <?php
13 $paging_step = config::get('pagination.paging_step', '*'); # step used below to print nr of items per page
14 $max_items_per_page = config::get('pagination.max_items_per_page', '*'); # maximum items per page to show
15 $entries = _('entries');
16 if (!isset($items_per_page)) {
17 $items_per_page = config::get('pagination.items_per_page', '*');
20 <span class="pagination_entries_str" style="display:none"><?php echo $entries ?></span>
22 <div class="pagination">
23 <?php if ($previous_page): ?>
24 <a href="<?php echo str_replace('{page}', $previous_page, $url) ?>" class="prevpage" title="<?php echo _('Previous') ?>"><?php echo $label_previous ?></a>
25 <?php else: ?>
26 <?php echo $label_previous ?>
27 <?php endif ?>
29 <?php if ($next_page && !$hide_next): ?>
30 <a href="<?php echo str_replace('{page}', $next_page, $url) ?>" class="nextpage" title="<?php echo _('Next') ?>"><?php echo $label_next ?></a>
31 <?php else: ?>
32 <?php echo $label_next ?>
33 <?php endif ?>
34 <?php //echo '&nbsp; (' . _('total') . ': ' . $total_items . ' ' . _('entries') . ')' ?>
36 </div>
37 </div>