]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/blog/templates/wikiblog.tmpl
<?= --> <?php echo
[SourceForge/phpwiki.git] / themes / blog / templates / wikiblog.tmpl
1 <?php // -*- php -*-
2 // rcs_id('$Id$');
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(" - ");
12         $buttons->pushContent(Button('remove', false, $page));
13     }
14 }
15
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'))));
23 }
24 ?>
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" />
31   </div> -->
32   <div class="wikiblog-body">
33     <?php if ($rev->get('summary')) { ?> 
34       <h3 class="wikiblog-summary"><?php echo $rev->get('summary') ?></h3>
35     <?php } ?>  
36     <?php echo $CONTENT ?>
37   </div>
38
39   <?php if ($buttons or $modified) { ?>
40     <div class="wikiblog-footer">
41       <?php echo $buttons ?>
42       <?php echo $modified ?>
43       <br class="clear-floats" />
44     </div>
45   <?php } ?>
46
47 </div>
48 <hr class="no-css" />