]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/templates/actionbar.tmpl
rcs_id no longer makes sense with Subversion global version number
[SourceForge/phpwiki.git] / themes / Crao / templates / actionbar.tmpl
1 <?php // -*-php-*-
2 // rcs_id('$Id$');
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 <?php if (isBrowserIE()) { ?>
12 <div class="ie-actionbuttons">
13 <?php } else { ?>
14 <div id="actionbuttons">
15 <?php } ?>
16 <?= $EditB ?>
17 <?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
18 <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
19 <?php if (ENABLE_PAGEPERM) { ?>
20 <?=$SEP?><?= Button('chown') ?>
21 <?=$SEP?><?= Button('setacl') ?>
22 <?php }} ?>
23 <?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
24 <?=$SEP?><?= Button('remove') ?>
25 <?php } ?>
26 <?=$SEP?><?= Button("PageHistory", _("PageHistory")) ?>
27 <?=$SEP?><?= Button("diff") ?> 
28 <?=$SEP?><?= Button("PageInfo", _("PageInfo")) ?>
29 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?> 
30 <!-- Buttons really only for debugging -->
31 <?=$SEP?><?= Button("DebugInfo", _("DebugInfo")) ?>
32 <?=$SEP?><?= Button("PageDump", _("PageDump")) ?>
33 <?php $purgeb = Button(array('nocache' => 'purge'),
34                        _("PurgeHtmlCache"), $page->getName());
35       $purgeb->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
36 ?>
37 <?=$SEP?><?= $purgeb ?>
38     <!-- End debugging buttons -->
39 <?php } ?>
40 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> 
41     <?=$SEP?><?= Button("pdf") ?>
42 <?php } ?>
43 </div>