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