]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/shamino_com/templates/actionbar.tmpl
fix revision can be empty, replace Sep by SEP
[SourceForge/phpwiki.git] / themes / shamino_com / templates / actionbar.tmpl
1 <?php // -*-php-*-
2 if (empty($revision)) $revision = $page->getCurrentRevision(false);
3 ?>
4 <!-- $Id: actionbar.tmpl,v 1.2 2007-01-02 13:29:40 rurban Exp $ -->
5 <?= Button(array('action'=>'PageInfo'),_("PageInfo"),$page->getName()) ?>
6 <?=$SEP?><?= Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision")) ?>
7 <?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
8   <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
9   <?php if (ENABLE_PAGEPERM) { ?>
10      <?=$SEP?><?= Button('chown') ?>
11      <?=$SEP?><?= Button('setacl') ?>
12   <?php } ?>
13 <?php } ?>
14 <?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
15    <?=$SEP?><?= Button('remove') ?>
16 <?php } ?>
17 <?php if (!empty($user) && $user->isAdmin()) { ?>
18   <?=$SEP?><?= WikiLink(_("PhpWikiAdministration"), "","Admin") ?>
19   <!-- Buttons really only for debugging. See info for more -->
20   <?=$SEP?><?= Button(_("PageHistory")) ?>
21   <?=$SEP?><?= Button("diff") ?>
22   <?=$SEP?><?= Button(_("PageDump")) ?>
23   <!-- End debugging buttons -->
24 <?php } ?>