]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/templates/wikiblog.tmpl
Remove rcs_id
[SourceForge/phpwiki.git] / themes / Crao / templates / wikiblog.tmpl
1 <?php // -*-php-*-
2 // $Id$
3 ?>
4 <?php
5 $CDATE = $WikiTheme->formatDateTime($BLOG_CTIME);
6
7 $buttons = $modified = '';
8
9 if ($user->isAdmin() or $user->getId() == $BLOG_CREATOR) {
10     $buttons = HTML::small(array('class' => 'floatleft'),
11                            Button('edit', false, $page));
12     if ($user->isAdmin())
13       $buttons->pushContent(Button('remove', false, $page));
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     $mtime = $WikiTheme->formatDateTime($rev->get('mtime'));
20     $modified = HTML::small(array('class' => 'floatright'),
21                             fmt("Comment modified on %s by %s",
22                                 $mtime, $rev->get('author')));
23 }
24 ?>
25
26 <!-- FIXME: move table formatting to css -->
27 <div title="<?php echo fmt("Comments on %s by %s.", $BLOG_PARENT, $BLOG_CREATOR)?>"
28      class="wikiblog wikitext">
29   <div class="wikiblog-header">
30     <strong class="floatleft"><?php echo WikiLink($page, 'known', $CDATE) ?></strong>
31     <strong class="floatright"><?php echo WikiLink($BLOG_CREATOR, 'if_known') ?></strong>
32     <br class="clear-floats" />
33   </div>
34   <div class="wikiblog-body">
35     <?php if ($rev->get('summary')) { ?> 
36       <h3 class="wikiblog-summary"><?php echo $rev->get('summary') ?></h3>
37     <?php } ?>  
38     <?php echo $CONTENT ?>
39   </div>
40
41   <?php if ($buttons or $modified) { ?>
42     <div class="wikiblog-footer">
43       <?php echo $buttons ?>
44       <?php echo $modified ?>
45       <br class="clear-floats" />
46     </div>
47   <?php } ?>
48
49 </div>
50 <hr class="no-css" />