]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/templates/actionbar.tmpl
new Crao theme by Arnaud Fontaine and Laurent Lunati
[SourceForge/phpwiki.git] / themes / Crao / templates / actionbar.tmpl
1 <?php // -*-php-*-
2   rcs_id('$Id: actionbar.tmpl,v 1.1 2004-05-12 19:42:16 rurban Exp $');
3   if (!$page->get('locked') || $user->isAdmin())
4       $EditB = Button("edit",
5                       $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
6   else
7       $EditB = Button("viewsource", _("View Source"));
8
9   $Sep = $Theme->getButtonSeparator();
10 ?>
11 <div <?= isBrowserIE() ? "class=ie-actionbuttons" : "id=actionbuttons"?>>
12     <?= $EditB ?>
13     <?php if ($user->isAdmin()) { ?>
14 <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
15 <?=$Sep?><?= Button('remove') ?>
16 <?php } ?>
17 <?=$Sep?><?= Button("PageHistory", _("PageHistory")) ?>
18 <?=$Sep?><?= Button("diff") ?> 
19 <?=$Sep?><?= Button("PageInfo", _("PageInfo")) ?>
20 <?php if ((defined('DEBUG') and DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?> 
21         <!-- Buttons really only for debugging -->
22 <?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?>
23 <?php $purgeb = Button(array('nocache' => 'purge'),
24                        _("PurgeHtmlCache"), $page->getName());
25               $purgeb->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
26 ?>
27 <?=$Sep?><?= $purgeb ?>
28     <!-- End debugging buttons -->
29 <?php } ?>
30 </div>
31