]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/actionbar.tmpl
new minimalist theme "Portland", like c2.com
[SourceForge/phpwiki.git] / themes / Portland / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.1 2002-01-19 22:48:42 carstenklapp Exp $ -->
3 <?php
4   $BF = &$ButtonFactory;
5
6   /* TODO: Cleanup for localization. */
7
8   if (!$page->get('locked') || $user->isAdmin())
9       $EditB = $BF->makeActionButton("edit",
10                                      $IS_CURRENT ? _("EditText") : _("Edit Old Revision"));
11   else
12       $EditB = $BF->makeActionButton("edit", _("View Source"));
13
14   $mtime = $Theme->formatDateTime($revision->get('mtime'));
15   //<?plugin-link PageHistory page="[pagename]" ?>
16   $PageHistoryB = $BF->makeLabelActionPageButton($mtime, _("PageHistory"));
17
18   /* FIXME: This doesn't work yet. */
19   if ($IS_CURRENT)
20       $LastModifiedMsg = sprintf(_("(last edited %s)"), $PageHistoryB);
21   else
22       $LastModifiedMsg = __sprintf(_("(version %s, saved on %s)"),
23                                    $VERSION, $PageHistoryB);
24
25   $LockPageB = $BF->makeActionButton($page->get('locked') ? 'unlock' : 'lock');
26   $RemovePageB = $BF->makeActionButton('remove');
27
28   $DiffB = $BF->makeActionButton(array('action' => 'diff', 'previous' => 'major'));
29
30   $DebugInfoB = $BF->makeActionPageButton(_("DebugInfo"));
31
32   $Sep = $Theme->getButtonSeparator();
33 ?>
34
35     <?= $EditB ?> of this page <?= $LastModifiedMsg ?>
36     <?php if ($user->isAdmin()) { ?>
37      <?=$Sep?><?= $LockPageB ?><?=$Sep?><?= $RemovePageB ?>
38     <?php } ?>
39     <!-- For debugging only, really -->
40     <?=$Sep?><?= $DebugInfoB ?><br />