Mercurial > defr > drupal > core
comparison modules/comment/comment.tpl.php @ 1:c1f4ac30525a 6.0
Drupal 6.0
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:28:28 +0100 |
parents | |
children | 2427550111ae |
comparison
equal
deleted
inserted
replaced
0:5a113a1c4740 | 1:c1f4ac30525a |
---|---|
1 <?php | |
2 // $Id: comment.tpl.php,v 1.4 2008/01/04 19:24:23 goba Exp $ | |
3 | |
4 /** | |
5 * @file comment.tpl.php | |
6 * Default theme implementation for comments. | |
7 * | |
8 * Available variables: | |
9 * - $author: Comment author. Can be link or plain text. | |
10 * - $content: Body of the post. | |
11 * - $date: Date and time of posting. | |
12 * - $links: Various operational links. | |
13 * - $new: New comment marker. | |
14 * - $picture: Authors picture. | |
15 * - $signature: Authors signature. | |
16 * - $status: Comment status. Possible values are: | |
17 * comment-unpublished, comment-published or comment-review. | |
18 * - $submitted: By line with date and time. | |
19 * - $title: Linked title. | |
20 * | |
21 * These two variables are provided for context. | |
22 * - $comment: Full comment object. | |
23 * - $node: Node object the comments are attached to. | |
24 * | |
25 * @see template_preprocess_comment() | |
26 * @see theme_comment() | |
27 */ | |
28 ?> | |
29 <div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' '. $status ?> clear-block"> | |
30 <?php print $picture ?> | |
31 | |
32 <?php if ($comment->new): ?> | |
33 <span class="new"><?php print $new ?></span> | |
34 <?php endif; ?> | |
35 | |
36 <h3><?php print $title ?></h3> | |
37 | |
38 <div class="submitted"> | |
39 <?php print $submitted ?> | |
40 </div> | |
41 | |
42 <div class="content"> | |
43 <?php print $content ?> | |
44 <?php if ($signature): ?> | |
45 <div class="user-signature clear-block"> | |
46 <?php print $signature ?> | |
47 </div> | |
48 <?php endif; ?> | |
49 </div> | |
50 | |
51 <?php print $links ?> | |
52 </div> |