]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/templates/actionbar.tmpl
fix revision can be empty, replace Sep by SEP
[SourceForge/phpwiki.git] / themes / Crao / templates / actionbar.tmpl
1 <?php // -*-php-*-
2   rcs_id('$Id: actionbar.tmpl,v 1.5 2007-01-02 13:29:39 rurban Exp $');
3   if (!$page->get('locked') || $user->isAdmin() and $revision)
4       $EditB = Button("edit",
5                       $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
6   else
7       $EditB = Button("viewsource", _("View Source"));
8   if (empty($revision)) $revision = $page->getCurrentRevision(false);
9 //MSIE needs sticky.js
10 ?>
11 <div <?= isBrowserIE() ? "class=ie-actionbuttons" : "id=actionbuttons"?>>
12 <?= $EditB ?>
13 <?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
14 <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
15 <?php if (ENABLE_PAGEPERM) { ?>
16 <?=$SEP?><?= Button('chown') ?>
17 <?=$SEP?><?= Button('setacl') ?>
18 <?php }} ?>
19 <?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
20 <?=$SEP?><?= Button('remove') ?>
21 <?php } ?>
22 <?=$SEP?><?= Button("PageHistory", _("PageHistory")) ?>
23 <?=$SEP?><?= Button("diff") ?> 
24 <?=$SEP?><?= Button("PageInfo", _("PageInfo")) ?>
25 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?> 
26 <!-- Buttons really only for debugging -->
27 <?=$SEP?><?= Button("DebugInfo", _("DebugInfo")) ?>
28 <?=$SEP?><?= Button("PageDump", _("PageDump")) ?>
29 <?php $purgeb = Button(array('nocache' => 'purge'),
30                        _("PurgeHtmlCache"), $page->getName());
31       $purgeb->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
32 ?>
33 <?=$SEP?><?= $purgeb ?>
34     <!-- End debugging buttons -->
35 <?php } ?>
36 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> 
37     <?=$SEP?><?= Button("pdf") ?>
38 <?php } ?>
39 </div>