]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/navbar.tmpl
moved admin functions from actionbar to be available on all pages
[SourceForge/phpwiki.git] / themes / Portland / templates / navbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: navbar.tmpl,v 1.2 2002-01-20 02:48:05 carstenklapp 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 /* TODO: Cleanup for localization. */
18 ?>
19 <!-- The bottom navigation/search bar -->
20
21     <?= $BF->makeLinkButton(_("FindPage")) ?> by searching
22     <?php if (!empty($PAGE)) { ?>
23       (or browse <?= $ButtonFactory->makeActionPageButton(_("LikePages")) ?>)
24     <?php } ?>
25     <?php if ($user->isAdmin()) { ?>
26      <?=$Sep?><?= $LockPageB ?><?=$Sep?><?= $RemovePageB ?>
27     <?php } ?>
28     <!-- For debugging only, really -->
29     <?=$Sep?><?= $DebugInfoB ?><br />
30    <hr />
31 <!-- I would like not to have to use these tables, and managed to
32      get this stuff to work more or less correctly using
33      CSSs float:left; and float:right;.  However float:right; seems
34      to cause MSIE4.01/NT to hang. 
35      So, we use tables...  -->
36 <table summary="Toolbar 1: Navigation and user login."
37        class="toolbar" width="100%"
38        cellpadding="0" cellspacing="0" border="0"
39        id="actionbar">
40 <tr valign="baseline">
41   <td>
42    <?= $BF->makeLinkButton(_("RecentChanges")) ?>
43     <?php if (!empty($user) && $user->isAdmin()) { ?>
44      <?=$Sep?><?= $ButtonFactory->makeLinkButton(_("PhpWikiAdministration")) ?>
45     <?php } ?>
46   <td align="right">
47     <?= new WikiTemplate('signin') ?>
48   </td>
49 </tr></table>
50 </form>