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