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