From: Carsten K. <car...@us...> - 2002-01-20 02:46:52
|
Update of /cvsroot/phpwiki/phpwiki/themes/Portland/templates In directory usw-pr-cvs1:/tmp/cvs-serv14065 Modified Files: actionbar.tmpl Log Message: added admin functions to be available on all pages Index: actionbar.tmpl =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/themes/Portland/templates/actionbar.tmpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** actionbar.tmpl 2002/01/20 00:29:49 1.3 --- actionbar.tmpl 2002/01/20 02:46:50 1.4 *************** *** 13,17 **** $mtime = $Theme->formatDateTime($revision->get('mtime')); //<?plugin-link PageHistory page="[pagename]" ?> - //$Theme->addButtonAlias($mtime,_("PageHistory")); $PageHistoryB = $BF->makeLabelActionPageButton($mtime, _("PageHistory")); --- 13,16 ---- *************** *** 21,40 **** $LastModifiedMsg = __sprintf(_("(version %s, saved on %s)"), $VERSION, $PageHistoryB->asHTML()); - - $LockPageB = $BF->makeActionButton($page->get('locked') ? 'unlock' : 'lock'); - $RemovePageB = $BF->makeActionButton('remove'); - - $DiffB = $BF->makeActionButton(array('action' => 'diff', 'previous' => 'major')); - - $DebugInfoB = $BF->makeActionPageButton(_("DebugInfo")); - - $Sep = $Theme->getButtonSeparator(); - ?> ! ! <?= $EditB ?> <?= $LastModifiedMsg ?> ! <?php if ($user->isAdmin()) { ?> ! <?=$Sep?><?= $LockPageB ?><?=$Sep?><?= $RemovePageB ?> ! <?php } ?> ! <!-- For debugging only, really --> ! <?=$Sep?><?= $DebugInfoB ?><br /> --- 20,23 ---- $LastModifiedMsg = __sprintf(_("(version %s, saved on %s)"), $VERSION, $PageHistoryB->asHTML()); ?> ! <?= $EditB ?> <?= $LastModifiedMsg ?><br /> |