XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
navigation_pages.php
Go to the documentation of this file.
1 <?php load_theme_locale('designia','',true); ?>
2 <div class="rmc_pages_navigation_container">
3  <ul>
4  <?php if($showing): ?><li class="showing"><?php echo $showing_legend; ?></li><?php endif; ?>
5  <?php if($caption): ?><li class="pages_caption"><?php _e('Pages:','rmcommon'); ?></li><?php endif; ?>
6  <?php if($total_pages>$steps && $current_page>$steps-1): ?>
7  <li class="pages"><a href="<?php echo str_replace('{PAGE_NUM}', 1, $url); ?>" title="<?php _e('First Page','rmcommon'); ?>"><?php _e('First','designia'); ?></a></li>
8  <?php endif; ?>
9 
10  <?php if($current_page>1): ?>
11  <li class="pages"><a href="<?php echo str_replace('{PAGE_NUM}', $current_page-1, $url); ?>" title="<?php _e('Previous Page','rmcommon'); ?>"><?php _e('Previous','designia'); ?></a></li>
12  <?php endif; ?>
13 
14  <?php
15  for($i=$start;$i<=$end;$i++):
16  if ($i==$current_page):
17  ?>
18  <li class="current_page"><?php echo $i; ?></li>
19  <?php else: ?>
20  <li class="pages"><a href="<?php echo str_replace('{PAGE_NUM}', $i, $url); ?>" title="<?php echo sprintf(__('Page %u','rmcommon'), $i); ?>"><?php echo $i; ?></a></li>
21  <?php
22  endif;
24  ?>
25 
26  <?php if($current_page<$total_pages): ?>
27  <li class="pages"><a href="<?php echo str_replace('{PAGE_NUM}', $current_page+1, $url); ?>" title="<?php _e('Next Page','rmcommon'); ?>"><?php _e('Next','designia'); ?></a>
28  <?php endif; ?>
29 
30  <?php if($total_pages>$steps && $current_page<($total_pages-$steps)+2): ?>
31  <li class="pages"><a href="<?php echo str_replace('{PAGE_NUM}', $total_pages, $url); ?>" title="<?php _e('Last Page','rmcommon'); ?>"><?php _e('Last','designia'); ?></a></li>
32  <?php endif; ?>
33 
34  </ul>
35 
36 </div>