]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/actionbar.tmpl
Big refactor of lib/WikiUser.php. The login mechanism no longer uses
[SourceForge/phpwiki.git] / themes / default / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.3 2002-01-19 07:21:58 dairiki Exp $ -->
3 <?php
4   $BF = &$ButtonFactory;
5
6   if (!$page->get('locked') || $user->isAdmin())
7       $EditB = $BF->makeActionButton("edit",
8                                      $IS_CURRENT ? _("Edit") : _("Edit Old Revision"));
9   else
10       $EditB = $BF->makeActionButton("edit", _("View Source"));
11
12   $LockPageB = $BF->makeActionButton($page->get('locked') ? 'unlock' : 'lock');
13   $RemovePageB = $BF->makeActionButton('remove');
14
15   //<?plugin-link PageHistory page="[pagename]" ?>
16   $PageHistoryB = $BF->makeActionPageButton(_("PageHistory"));
17   $DiffB = $BF->makeActionButton(array('action' => 'diff', 'previous' => 'major'));
18
19   $DebugInfoB = $BF->makeActionPageButton(_("DebugInfo"));
20
21   $Sep = $Theme->getButtonSeparator();
22 ?>
23
24 <!-- I would like not to have to use these tables, and managed to
25      get this stuff to work more or less correctly using
26      CSSs float:left; and float:right;.  However float:right; seems
27      to cause MSIE4.01/NT to hang. 
28      So, we use tables...  -->
29
30
31 <table summary="Toolbar 1: Page actions and user login."
32        class="toolbar" width="100%"
33        cellpadding="0" cellspacing="0" border="0"
34        id="actionbar">
35 <tr valign="baseline">
36   <td>
37     <?= $EditB ?> 
38     <?php if ($user->isAdmin()) { ?>
39      <?=$Sep?><?= $LockPageB ?><?=$Sep?><?= $RemovePageB ?>
40     <?php } ?>
41    <?=$Sep?><?= $PageHistoryB ?><?=$Sep?><?= $DiffB ?> 
42    <?=$Sep?><?= $DebugInfoB ?> <!-- For debugging only, really -->
43   </td>
44   <td align="right">
45     <?= new WikiTemplate('signin') ?>
46   </td>
47 </tr></table>
48