]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/actionbar.tmpl
Finish conversion to new OO HTML generation scheme.
[SourceForge/phpwiki.git] / themes / Portland / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.6 2002-01-22 03:17:47 dairiki 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 = fmt("%s of this page", $EditB);
12
13   $mtime = $Theme->formatDateTime($revision->get('mtime'));
14   $PageHistoryB = $BF->makeLabelActionPageButton($mtime, _("PageHistory"));
15
16   if ($IS_CURRENT)
17       $LastModifiedMsg = fmt("(last edited %s)", $PageHistoryB);
18   else
19       $LastModifiedMsg = fmt("(version %s, saved on %s)",
20                              $VERSION, $PageHistoryB);
21 ?>
22    <?= $EditB ?> <?= $LastModifiedMsg ?><br />