actionbar.tmpl
来自「PhpWiki是sourceforge的一个开源项目」· TMPL 代码 · 共 57 行
TMPL
57 行
<?php // -*-php-*-rcs_id('$Id: actionbar.tmpl,v 1.5 2005/04/08 05:28:54 rurban Exp $');if (!$page->get('locked') || $user->isAdmin()) $EditB = Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));else $EditB = Button("viewsource", _("View Source"));?><?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"> <? if ( $user->isSignedIn()) { ?> <?= $EditB ?> <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?> <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?> <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $page->getName())) { ?> <?=$SEP?><?= Button('chown') ?> <?=$SEP?><?= Button('setacl') ?> <?php }} ?> <?php if ($user->isAdmin() or mayAccessPage('remove', $page->getName())) { ?> <?=$SEP?><?= Button('remove') ?> <?php } ?> <?=$SEP?> <?php } ?> <?= 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 --> <?=$SEP?><?= Button(_("PageHistory")) ?> <?=$SEP?><?= Button("diff") ?> <?=$SEP?><?= Button(_("PageDump")) ?><?php $PurgeCache = Button(array('nocache' => 'purge'), _("PurgeHtmlCache"), $page->getName()); $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));?> <?=$SEP?><?= $PurgeCache ?> <!-- End debugging buttons --> <?php } ?><?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> <?=$SEP?><?= Button("pdf") ?><?php } ?> </div> </td><?php if (empty($NOSIGNIN)) { ?> <td align="right"> <div id="signin"><?= Template('signin') ?></div> </td><?php } ?></tr></table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?