1 <!-- $Id: wikiblog.tmpl,v 1.1 2003-02-21 04:20:09 dairiki Exp $ -->
3 $CDATE = $Theme->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));
11 $buttons->pushContent(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 $mtime = $Theme->formatDateTime($rev->get('mtime'));
18 $modified = HTML::small(array('class' => 'floatright'),
19 fmt("Comment modified on %s by %s",
20 $mtime, $rev->get('author')));
24 <!-- FIXME: move table formatting to css -->
25 <div title="<?= fmt("Comments on %s by %s.", $BLOG_PARENT, $BLOG_CREATOR)?>"
26 class="wikiblog wikitext">
27 <div class="wikiblog-header">
28 <strong class="floatleft"><?= WikiLink($page, 'known', $CDATE) ?></strong>
29 <strong class="floatright"><?= WikiLink($BLOG_CREATOR, 'if_known') ?></strong>
30 <br style="clear:both;" />
32 <div class="wikiblog-body">
33 <?php if ($rev->get('summary')) { ?>
34 <h3 class="wikiblog-summary"><?= $rev->get('summary') ?></h3>
39 <?php if ($buttons or $modified) { ?>
40 <div class="wikiblog-footer">
43 <br style="clear:both;" />