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