]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/blog/templates/wikiblog.tmpl
Do not show message "You are viewing an old revision of this page." when reverting
[SourceForge/phpwiki.git] / themes / blog / 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(" - ");
11         $buttons->pushContent(Button('remove', false, $page));
12     }
13 }
14
15 // This is a hack, but since we only have a fake PageRevision,
16 // we can't get the version.
17 if ($rev->get('mtime') != $BLOG_CTIME) {
18     $modified = HTML::small(array('class' => 'floatright'),
19                             fmt("Comment modified on %s by %s",
20                                 $WikiTheme->formatDateTime($rev->get('mtime')), 
21                                 WikiLink($rev->get('author'))));
22 }
23 ?>
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" />