]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/pagelink.tmpl
Better use CSS than custom template
[SourceForge/phpwiki.git] / themes / default / templates / pagelink.tmpl
1 <?php // -*-php-*-
2 // $Id$
3
4 /**
5  * Themable paging "|<< <<   - i/sum - >> >>|" links
6  *
7  * Variables: PREV, NEXT, PREV_LINK, NEXT_LINK,
8  * COUNT, OFFSET, SIZE
9  * More ideas: FIRST, LAST, ...
10  */
11 if ($WikiTheme->DUMP_MODE) {
12   $PREV = false;
13   $NEXT = false;
14 }
15 ?>
16 <tr><td width="100%" colspan="<?php echo $COLS ?>"><table width="100%" class="wikipaging"><tr class="wikipaging">
17   <td class="wikipaging<?php echo $PREV ? "-enabled" : "-disabled" ?>" align="left">
18       <?php echo $PREV ? HTML::a(array('href'=>$FIRST_LINK), "|<<") : "|<<" ?>
19       &nbsp;
20       <?php echo $PREV ? HTML::a(array('href'=>$PREV_LINK), "<< " . _("Prev")) : "<<" ?>
21   </td>
22   <td class="wikipaging-enabled" align="center">
23       <?php echo fmt(" - %d / %d - ", $ACTPAGE, $NUMPAGES) ?>
24   </td>
25   <td class="wikipaging<?php echo $NEXT ? "-enabled" : "-disabled" ?>" align="right">
26       <?php echo $NEXT ? HTML::a(array('href'=>$NEXT_LINK), _("Next") . " >>") : ">>" ?>
27       &nbsp;
28       <?php echo $NEXT ? HTML::a(array('href'=>$LAST_LINK), ">>|") : ">>|" ?>
29   </td>
30 </tr></table></td></tr>