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