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