2 $CDATE = $WikiTheme->formatDateTime($COMMENT_CTIME);
3 $buttons = $modified = '';
5 if ($user->isAdmin() or $user->getId() == $COMMENT_CREATOR) {
6 $buttons = HTML::small(array('class' => 'floatleft'),
7 Button('edit', false, $page));
9 $buttons->pushContent($SEP, Button('remove', _("Remove Comment"), $page));
12 // This is a hack, but since we only have a fake PageRevision,
13 // we can't get the version.
14 if ($rev->get('mtime') != $COMMENT_CTIME) {
15 $mtime = $WikiTheme->formatDateTime($rev->get('mtime'));
16 $modified = HTML::small(array('class' => 'floatright'),
17 fmt("Modified on %s by %s",
18 $mtime, $rev->get('author')));
22 <!-- FIXME: move table formatting to css -->
23 <div title="<?php echo fmt("Comments on %s by %s.", $COMMENT_PARENT, $COMMENT_CREATOR)?>"
24 class="wikicomment wikitext">
25 <div class="wikicomment-footer">
26 <span class="floatright">
27 <?php echo fmt("%s by %s", WikiLink($page, 'known', $CDATE), WikiLink($COMMENT_CREATOR, 'if_known')) ?></span>
28 <br class="clear-floats" />
30 <?php if ($buttons or $modified) { ?>
31 <div class="floatright">
32 <?php echo $buttons ?>
33 <?php echo $modified ?>
34 <br class="clear-floats" />
37 <div class="wikicomment-body">
38 <?php echo $CONTENT ?>