]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/navbar.tmpl
Two new convenience functions in lib/Theme.php: WikiLink() and Button().
[SourceForge/phpwiki.git] / themes / Portland / templates / navbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: navbar.tmpl,v 1.7 2002-01-30 23:41:55 dairiki Exp $ -->
3 <?php
4   $Sep = $Theme->getButtonSeparator();
5 ?>
6 <!-- The bottom navigation/search bar -->
7
8     <?= WikiLink(_("FindPage"), "button") ?> by searching
9     <?php if (!empty($revision)) { ?>
10       (or browse <?= Button(_("LikePages")) ?>)
11     <?php } ?>
12     <?php if ($user->isAdmin()) { ?>
13      <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock')?>
14      <?=$Sep?><?= Button('remove') ?>
15     <?php } ?>
16     <!-- For debugging only, really -->
17     <?=$Sep?><?= Button(_("DebugInfo")) ?><br />
18    <hr />
19 <!-- I would like not to have to use these tables, and managed to
20      get this stuff to work more or less correctly using
21      CSSs float:left; and float:right;.  However float:right; seems
22      to cause MSIE4.01/NT to hang. 
23      So, we use tables...  -->
24 <table summary="Toolbar 1: Navigation and user login."
25        class="toolbar" width="100%"
26        cellpadding="0" cellspacing="0" border="0"
27        id="actionbar">
28 <tr valign="baseline">
29   <td>
30    <?= WikiLink(_("RecentChanges"), "button") ?>
31     <?php if (!empty($user) && $user->isAdmin()) { ?>
32      <?=$Sep?><?= WikiLink(_("PhpWikiAdministration"), "button") ?>
33     <?php } ?>
34   </td>
35   <td align="right">
36     <?= Template('signin') ?>
37   </td>
38 </tr></table>