]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/smaller/templates/actionbar.tmpl
added PageDump, rearranged seps
[SourceForge/phpwiki.git] / themes / smaller / templates / actionbar.tmpl
1 <?php // -*-php-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.3 2004-06-08 14:11:59 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 <!-- I would like not to have to use these tables, and managed to
13      get this stuff to work more or less correctly using
14      CSSs float:left; and float:right;.  However float:right; seems
15      to cause MSIE4.01/NT to hang. 
16      So, we use tables...  -->
17 <table summary="Toolbar 1: Page actions and user login."
18        width="100%" cellpadding="0" cellspacing="0" border="0">
19 <tr valign="baseline">
20   <td>
21   <div id="actionbuttons">
22     <? if ( $user->isSignedIn()) { ?>
23      <?= $EditB ?>
24      <?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
25       <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
26       <?php if (ENABLE_PAGEPERM) { ?>
27         <?=$Sep?><?= Button('chown') ?>
28         <?=$Sep?><?= Button('setacl') ?>
29      <?php }} ?>
30      <?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
31       <?=$Sep?><?= Button('remove') ?>
32      <?php } ?>
33     <?php } ?>
34     <?=$Sep?><?= Button(array('action'=>'PageInfo'),_("Info"),$page->getName()) ?>
35 <?php if (((defined('DEBUG') and DEBUG and $request->getArg('action') == 'browse')) || $user->isAdmin()) { ?> 
36       <!-- Buttons really only for debugging -->
37       <?=$Sep?><?= Button(_("PageHistory")) ?>
38       <?=$Sep?><?= Button("diff") ?> 
39       <?=$Sep?><?= Button(_("PageDump")) ?>
40 <?php
41      $PurgeCache = Button(array('nocache' => 'purge'),
42                      _("PurgeHtmlCache"), $page->getName());
43      $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
44 ?>
45     <?=$Sep?><?= $PurgeCache ?>
46     <!-- End debugging buttons -->
47     <?php } ?>
48   </div>
49   </td>
50 <?php if (empty($NOSIGNIN)) { ?>
51   <td align="right">
52     <div id="signin"><?= Template('signin') ?></div>
53   </td>
54 <?php } ?>
55 </tr>
56 </table>