3 $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($SEP, Button('remove', false, $page));
14 // This is a hack, but since we only have a fake PageRevision,
15 // we can't get the version.
16 if ($rev->get('mtime') != $BLOG_CTIME) {
17 $modified = HTML::small(array('class' => 'floatright'),
18 fmt("Modified on %s by %s",
19 $WikiTheme->formatDateTime($rev->get('mtime')),
20 WikiLink($rev->get('author'))));
23 <div title="<?php echo fmt("Entry on %s by %s.", $BLOG_PARENT, $BLOG_CREATOR)?>"
24 class="wikiblog wikitext">
25 <!-- <div class="wikiblog-header">
26 <strong class="floatleft"><?php echo WikiLink($page, 'known', $CDATE) ?></strong>
27 <strong class="floatright"><?php echo WikiLink($BLOG_CREATOR, 'if_known') ?></strong>
28 <br class="clear-floats" />
30 <div class="wikiblog-body">
31 <?php if ($rev->get('summary')) { ?>
32 <h3 class="wikiblog-summary"><?php echo $rev->get('summary') ?></h3>
34 <?php echo $CONTENT ?>
37 <?php if ($buttons or $modified) { ?>
38 <div class="wikiblog-footer">
39 <?php echo $buttons ?>
40 <?php echo $modified ?>
41 <br class="clear-floats" />