]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/blog/templates/wikiblog.tmpl
layout update
[SourceForge/phpwiki.git] / themes / blog / templates / wikiblog.tmpl
1 <?php // -*- php -*-
2 rcs_id('$Id: wikiblog.tmpl,v 1.2 2005-02-02 19:25:09 rurban Exp $');
3 $CDATE = $WikiTheme->formatDateTime($BLOG_CTIME);
4
5 $buttons = $modified = '';
6
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(Button('remove', false, $page));
12 }
13
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("Comment modified on %s by %s",
19                                 $WikiTheme->formatDateTime($rev->get('mtime')), 
20                                 WikiLink($rev->get('author'))));
21 }
22 ?>
23 <div title="<?= fmt("Comments on %s by %s.", $BLOG_PARENT, $BLOG_CREATOR)?>"
24      class="wikiblog wikitext">
25   <!-- <div class="wikiblog-header">
26     <strong class="floatleft"><?= WikiLink($page, 'known', $CDATE) ?></strong>
27     <strong class="floatright"><?= WikiLink($BLOG_CREATOR, 'if_known') ?></strong>
28     <br clear="all" class="clear-floats" />
29   </div> -->
30   <div class="wikiblog-body">
31     <?php if ($rev->get('summary')) { ?> 
32       <h3 class="wikiblog-summary"><?= $rev->get('summary') ?></h3>
33     <?php } ?>  
34     <?= $CONTENT ?>
35   </div>
36
37   <?php if ($buttons or $modified) { ?>
38     <div class="wikiblog-footer">
39       <?= $buttons ?>
40       <?= $modified ?>
41       <br clear="all" class="clear-floats" />
42     </div>
43   <?php } ?>
44
45 </div>
46 <hr class="no-css" />