]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/actionbar.tmpl
More infiltration of new object-based HTML generation.
[SourceForge/phpwiki.git] / themes / Portland / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.5 2002-01-21 06:55: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   //<?plugin-link PageHistory page="[pagename]" ?>
15   $PageHistoryB = $BF->makeLabelActionPageButton($mtime, _("PageHistory"));
16
17   if ($IS_CURRENT)
18       $LastModifiedMsg = fmt("(last edited %s)", $PageHistoryB);
19   else
20       $LastModifiedMsg = fmt("(version %s, saved on %s)",
21                              $VERSION, $PageHistoryB);
22 ?>
23    <?= $EditB ?> <?= $LastModifiedMsg ?><br />