]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/templates/actionbar.tmpl
hack to call subtemplates from default theme
[SourceForge/phpwiki.git] / themes / Sidebar / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.4 2002-02-02 07:24:50 carstenklapp Exp $ -->
3 <?php $old = $Theme->getButtonSeparator();
4       $Theme->setButtonSeparator(HTML::br());
5
6 // Template('default-actionbar')
7
8   if (!$page->get('locked') || $user->isAdmin())
9       $EditB = Button("edit",
10                       $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
11   else
12       $EditB = Button("viewsource", _("View Source"));
13
14   $Sep = $Theme->getButtonSeparator();
15 ?>
16
17 <?= $EditB ?> 
18 <?php if ($user->isAdmin()) { ?>
19   <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
20   <?=$Sep?><?= Button('remove') ?>
21 <?php } ?>
22 <?=$Sep?><?= Button(_("PageHistory")) ?>
23 <?=$Sep?><?= Button("diff") ?> 
24 <?=$Sep?><?= Button(_("DebugInfo")) ?> <!-- For debugging only, really -->
25 <?= Template('signin') ?>
26
27 <?php $Theme->setButtonSeparator($old); ?>