]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/templates/wikiblog.tmpl
Use HTML 5 DOCTYPE
[SourceForge/phpwiki.git] / themes / Crao / templates / wikiblog.tmpl
1 <?php
2 $CDATE = $WikiTheme->formatDateTime($BLOG_CTIME);
3
4 $buttons = $modified = '';
5
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(Button('remove', false, $page));
11 }
12
13 // This is a hack, but since we only have a fake PageRevision,
14 // we can't get the version.
15 if ($rev->get('mtime') != $BLOG_CTIME) {
16     $mtime = $WikiTheme->formatDateTime($rev->get('mtime'));
17     $modified = HTML::small(array('class' => 'floatright'),
18                             fmt("Comment modified on %s by %s",
19                                 $mtime, $rev->get('author')));
20 }
21 ?>
22
23 <!-- FIXME: move table formatting to css -->
24 <div title="<?php echo fmt("Comments on %s by %s.", $BLOG_PARENT, $BLOG_CREATOR)?>"
25      class="wikiblog wikitext">
26   <div class="wikiblog-header">
27     <strong class="floatleft"><?php echo WikiLink($page, 'known', $CDATE) ?></strong>
28     <strong class="floatright"><?php echo WikiLink($BLOG_CREATOR, 'if_known') ?></strong>
29     <br class="clear-floats" />
30   </div>
31   <div class="wikiblog-body">
32     <?php if ($rev->get('summary')) { ?> 
33       <h3 class="wikiblog-summary"><?php echo $rev->get('summary') ?></h3>
34     <?php } ?>  
35     <?php echo $CONTENT ?>
36   </div>
37
38   <?php if ($buttons or $modified) { ?>
39     <div class="wikiblog-footer">
40       <?php echo $buttons ?>
41       <?php echo $modified ?>
42       <br class="clear-floats" />
43     </div>
44   <?php } ?>
45
46 </div>
47 <hr class="no-css" />