3 $CDATE = $WikiTheme->formatDateTime($BLOG_CTIME);
5 $buttons = $modified = '';
7 if ($user->isAdmin() or $user->getId() == $BLOG_CREATOR) {
8 $buttons = HTML::small(array('class' => 'floatleft'),
9 Button('edit', false, $page));
10 if ($user->isAdmin()) {
11 $buttons->pushContent(" - ");
12 $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 $modified = HTML::small(array('class' => 'floatright'),
20 fmt("Comment modified on %s by %s",
21 $WikiTheme->formatDateTime($rev->get('mtime')),
22 WikiLink($rev->get('author'))));
25 <div title="<?php echo fmt("Comments on %s by %s.", $BLOG_PARENT, $BLOG_CREATOR)?>"
26 class="wikiblog wikitext">
27 <!-- <div class="wikiblog-header">
28 <strong class="floatleft"><?php echo WikiLink($page, 'known', $CDATE) ?></strong>
29 <strong class="floatright"><?php echo WikiLink($BLOG_CREATOR, 'if_known') ?></strong>
30 <br class="clear-floats" />
32 <div class="wikiblog-body">
33 <?php if ($rev->get('summary')) { ?>
34 <h3 class="wikiblog-summary"><?php echo $rev->get('summary') ?></h3>
36 <?php echo $CONTENT ?>
39 <?php if ($buttons or $modified) { ?>
40 <div class="wikiblog-footer">
41 <?php echo $buttons ?>
42 <?php echo $modified ?>
43 <br class="clear-floats" />