0byt3m1n1
Path:
/
data
/
applications
/
aps
/
phpwiki
/
1.4.0-0
/
standard
/
htdocs
/
themes
/
smaller
/
templates
/
[
Home
]
File: actionbar.tmpl
<?php // -*-php-*- // rcs_id('$Id: actionbar.tmpl 7589 2010-07-02 07:31:33Z vargenau $'); if (!$WikiTheme->DUMP_MODE) { // Only [Info] button when not signed in. // The rest behind Info ?> <?php /* I would like not to have to use these tables, and managed to * get this stuff to work more or less correctly using * CSSs float:left; and float:right;. However float:right; seems * to cause MSIE4.01/NT to hang. * So, we use tables... */ ?> <table summary="Toolbar 1: Page actions and user login." width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="baseline"> <td> <div id="actionbuttons"> <?php if ((!$page->get('locked') || $user->isAdmin()) and $revision) { ?> <?php echo Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision")) ?> <?php } else { ?> <?php echo Button("viewsource", _("View Source")) ?> <?php } ?> <?php if ( $user->isSignedIn()) { ?> <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?> <?php echo $SEP?><?php echo Button($page->get('locked') ? 'unlock' : 'lock') ?> <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $page->getName())) { ?> <?php echo $SEP?><?php echo Button('chown') ?> <?php echo $SEP?><?php echo Button('setacl') ?> <?php echo $SEP?><?php echo Button('rename') ?> <?php }} ?> <?php if ($revision and ($user->isAdmin() or mayAccessPage('remove', $page->getName()))) { ?> <?php echo $SEP?><?php echo Button('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?> <?php echo $SEP?><?php echo Button('remove') ?> <?php } ?> <?php echo $SEP?> <?php } ?> <?php echo Button(array('action'=>'PageInfo'),_("Info"), $page->getName()) ?> <?php if (((defined('DEBUG') and DEBUG and $request->getArg('action') == 'browse')) || $user->isAdmin()) { ?> <!-- Buttons really only for debugging --> <?php echo $SEP?><?php echo Button(_("PageHistory")) ?> <?php echo $SEP?><?php echo Button("diff") ?> <?php echo $SEP?><?php echo Button(_("PageDump")) ?> <!-- End debugging buttons --> <?php } ?> <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> <?php echo $SEP?><?php echo Button("pdf") ?> <?php } ?> </div> </td> <?php if (empty($NOSIGNIN)) { ?> <td align="right"> <div id="signin"><?php echo Template('signin') ?></div> </td> <?php } ?> </tr> </table> <?php } ?>