2 <!-- $Id: actionbar.tmpl,v 1.3 2002-01-19 00:04:50 carstenklapp Exp $ -->
6 if (!$page->get('locked') || $user->is_admin())
7 $EditB = $BF->makeActionButton("edit",
8 $IS_CURRENT ? _("Edit") : _("Edit Old Revision"));
10 $EditB = $BF->makeActionButton("edit", _("View Source"));
12 $LockPageB = $BF->makeActionButton($page->get('locked') ? 'unlock' : 'lock');
13 $RemovePageB = $BF->makeActionButton('remove');
15 //<?plugin-link PageHistory page="[pagename]" ?>
16 $PageHistoryB = $BF->makeActionPageButton(_("PageHistory"));
17 $DiffB = $BF->makeActionButton(array('action' => 'diff', 'previous' => 'major'));
19 $DebugInfoB = $BF->makeActionPageButton(_("DebugInfo"));
21 $SignInB = $BF->makeActionButton($user->is_authenticated() ? 'logout' : 'login');
23 $s = $Theme->getButtonSeparator();
26 <!-- I would like not to have to use these tables, and managed to
27 get this stuff to work more or less correctly using
28 CSSs float:left; and float:right;. However float:right; seems
29 to cause MSIE4.01/NT to hang.
30 So, we use tables... -->
31 <table summary="Toolbar 1: Page actions and login."
32 class="toolbar" width="100%"
33 cellpadding="0" cellspacing="0" border="0"
38 <?php if ($user->is_admin()) { ?>
39 <?=$s?><?= $LockPageB ?><?=$s?><?= $RemovePageB ?>
41 <?=$s?><?= $PageHistoryB ?><?=$s?><?= $DiffB ?>
42 <?=$s?><?= $DebugInfoB ?> <!-- For debugging only, really -->
46 <?php if ($user->is_authenticated()) {
47 /* This extra table data is required to properly align an image
48 * button next to text. With text-only buttons, it would take up
49 * too much room on small screens to align text this way, so the
50 * default browse template is overridden for this theme.
52 <?php printf(_("You are signed in as %s"), LinkWikiWord($USERID)); ?> </td>
53 <td><?=$s?><?= $SignInB ?></td>