]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/comment.tmpl
Translate quotes
[SourceForge/phpwiki.git] / themes / default / templates / comment.tmpl
1 <?php
2 $CDATE = $WikiTheme->formatDateTime($COMMENT_CTIME);
3 $buttons = $modified = '';
4
5 if ($user->isAdmin() or $user->getId() == $COMMENT_CREATOR) {
6     $buttons = HTML::small(array('class' => 'floatleft'),
7                            Button('edit', false, $page));
8     if ($user->isAdmin())
9         $buttons->pushContent($SEP, Button('remove', _("Remove Comment"), $page));
10 }
11
12 // This is a hack, but since we only have a fake PageRevision,
13 // we can't get the version.
14 if ($rev->get('mtime') != $COMMENT_CTIME) {
15     $mtime = $WikiTheme->formatDateTime($rev->get('mtime'));
16     $modified = HTML::small(array('class' => 'floatright'),
17                             fmt("Modified on %s by %s",
18                                 $mtime, $rev->get('author')));
19 }
20 ?>
21
22 <!-- FIXME: move table formatting to css -->
23 <div title="<?php echo fmt("Comments on %s by %s.", $COMMENT_PARENT, $COMMENT_CREATOR)?>"
24      class="wikicomment wikitext">
25   <div class="wikicomment-footer">
26     <span class="floatright">
27       <?php echo fmt("%s by %s", WikiLink($page, 'known', $CDATE), WikiLink($COMMENT_CREATOR, 'if_known')) ?></span>
28     <br class="clear-floats" />
29   </div>
30   <?php if ($buttons or $modified) { ?>
31     <div class="floatright">
32       <?php echo $buttons ?>
33       <?php echo $modified ?>
34       <br class="clear-floats" />
35     </div>
36   <?php } ?>
37   <div class="wikicomment-body">
38     <?php echo $CONTENT ?>
39   </div>
40 </div>
41 <hr class="no-css" />