]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/wikiblog.tmpl
rcs_id no longer makes sense with Subversion global version number
[SourceForge/phpwiki.git] / themes / default / templates / wikiblog.tmpl
1 <?php // -*- php -*-
2 // rcs_id('$Id$');
3 $CDATE = $WikiTheme->formatDateTime($BLOG_CTIME);
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($SEP, Button('remove', false, $page));
11     }
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("Modified on %s by %s",
19                                 $WikiTheme->formatDateTime($rev->get('mtime')), 
20                                 WikiLink($rev->get('author'))));
21 }
22 ?>
23 <div title="<?= fmt("Entry 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" />