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));
9 if ($user->isAdmin()) {
10 $buttons->pushContent(" - ");
11 $buttons->pushContent(Button('remove', false, $page));
15 // This is a hack, but since we only have a fake PageRevision,
16 // we can't get the version.
17 if ($rev->get('mtime') != $BLOG_CTIME) {
18 $modified = HTML::small(array('class' => 'floatright'),
19 fmt("Comment modified on %s by %s",
20 $WikiTheme->formatDateTime($rev->get('mtime')),
21 WikiLink($rev->get('author'))));
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" />