]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/smaller/templates/actionbar.tmpl
Theme with less buttons and shorter descriptions:
[SourceForge/phpwiki.git] / themes / smaller / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.1 2004-03-01 09:38:01 rurban Exp $ -->
3 <?php
4   if (!$page->get('locked') || $user->isAdmin())
5       $EditB = Button("edit",
6                       $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
7   else
8       $EditB = Button("viewsource", _("View Source"));
9
10   $Sep = $Theme->getButtonSeparator();
11 ?>
12
13 <!-- I would like not to have to use these tables, and managed to
14      get this stuff to work more or less correctly using
15      CSSs float:left; and float:right;.  However float:right; seems
16      to cause MSIE4.01/NT to hang. 
17      So, we use tables...  -->
18
19 <table summary="Toolbar 1: Page actions and user login."
20        width="100%" cellpadding="0" cellspacing="0" border="0">
21 <tr valign="baseline">
22   <td>
23   <div id="actionbuttons">
24     <? if ( $user->isSignedIn()) { ?>
25     <?= $EditB ?><?=$Sep?>
26       <?php if ($user->isAdmin()) { ?>
27       <?= Button($page->get('locked') ? 'unlock' : 'lock') ?><?=$Sep?>
28       <?= Button('remove') ?><?=$Sep?>
29       <?php } ?>
30     <?php } ?>
31     <?= Button(array('action'=>'PageInfo'),_("Info"),$page->getName()) ?>
32 <?php if ((defined('DEBUG') && DEBUG) || $user->isAdmin()) { ?> 
33       <?=$Sep?><?= Button(_("PageHistory")) ?>
34       <?=$Sep?><?= Button("diff") ?> 
35       <!-- Buttons really only for debugging -->
36 <?php
37      $PurgeCache = Button(array('nocache' => 'purge'),
38                      _("PurgeHtmlCache"), $page->getName());
39      $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
40 ?>
41     <?=$Sep?><?= $PurgeCache ?>
42     <?php } ?>
43   </div>
44   </td>
45   <td align="right">
46     <div id="signin"><?= Template('signin') ?></div>
47   </td>
48 </tr>
49 </table>