5 $CDATE = $WikiTheme->formatDateTime($BLOG_CTIME);
7 $buttons = $modified = '';
9 if ($user->isAdmin() or $user->getId() == $BLOG_CREATOR) {
10 $buttons = HTML::small(array('class' => 'floatleft'),
11 Button('edit', false, $page));
13 $buttons->pushContent(Button('remove', false, $page));
16 // This is a hack, but since we only have a fake PageRevision,
17 // we can't get the version.
18 if ($rev->get('mtime') != $BLOG_CTIME) {
19 $mtime = $WikiTheme->formatDateTime($rev->get('mtime'));
20 $modified = HTML::small(array('class' => 'floatright'),
21 fmt("Comment modified on %s by %s",
22 $mtime, $rev->get('author')));
26 <!-- FIXME: move table formatting to css -->
27 <div title="<?= fmt("Comments on %s by %s.", $BLOG_PARENT, $BLOG_CREATOR)?>"
28 class="wikiblog wikitext">
29 <div class="wikiblog-header">
30 <strong class="floatleft"><?= WikiLink($page, 'known', $CDATE) ?></strong>
31 <strong class="floatright"><?= WikiLink($BLOG_CREATOR, 'if_known') ?></strong>
32 <br clear="all" class="clear-floats" />
34 <div class="wikiblog-body">
35 <?php if ($rev->get('summary')) { ?>
36 <h3 class="wikiblog-summary"><?= $rev->get('summary') ?></h3>
41 <?php if ($buttons or $modified) { ?>
42 <div class="wikiblog-footer">
45 <br clear="all" class="clear-floats" />