]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/navbar.tmpl
Add missing </tr>, delete extraneous </form>.
[SourceForge/phpwiki.git] / themes / Portland / templates / navbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: navbar.tmpl,v 1.4 2002-01-22 04:51:50 dairiki Exp $ -->
3 <?php
4
5   $BF = &$ButtonFactory;
6
7   $LockPageB = $BF->makeActionButton($page->get('locked') ? 'unlock' : 'lock');
8   $RemovePageB = $BF->makeActionButton('remove');
9
10   $DiffB = $BF->makeActionButton(array('action' => 'diff', 'previous' => 'major'));
11
12   $DebugInfoB = $BF->makeActionPageButton(_("DebugInfo"));
13
14   $Sep = $Theme->getButtonSeparator();
15
16 ?>
17 <!-- The bottom navigation/search bar -->
18
19     <?= $BF->makeLinkButton(_("FindPage")) ?> by searching
20     <?php if (!empty($PAGE)) { ?>
21       (or browse <?= $ButtonFactory->makeActionPageButton(_("LikePages")) ?>)
22     <?php } ?>
23     <?php if ($user->isAdmin()) { ?>
24      <?=$Sep?><?= $LockPageB ?><?=$Sep?><?= $RemovePageB ?>
25     <?php } ?>
26     <!-- For debugging only, really -->
27     <?=$Sep?><?= $DebugInfoB ?><br />
28    <hr />
29 <!-- I would like not to have to use these tables, and managed to
30      get this stuff to work more or less correctly using
31      CSSs float:left; and float:right;.  However float:right; seems
32      to cause MSIE4.01/NT to hang. 
33      So, we use tables...  -->
34 <table summary="Toolbar 1: Navigation and user login."
35        class="toolbar" width="100%"
36        cellpadding="0" cellspacing="0" border="0"
37        id="actionbar">
38 <tr valign="baseline">
39   <td>
40    <?= $BF->makeLinkButton(_("RecentChanges")) ?>
41     <?php if (!empty($user) && $user->isAdmin()) { ?>
42      <?=$Sep?><?= $ButtonFactory->makeLinkButton(_("PhpWikiAdministration")) ?>
43     <?php } ?>
44   </td>
45   <td align="right">
46     <?= new WikiTemplate('signin') ?>
47   </td>
48 </tr></table>