| 1 |
|
<?php |
| 2 |
|
// $Id: comment.tpl.php,v 1.4.2.1 2008/03/21 21:58:28 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-preview. |
| 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 |
|
<li id="comment-<?php print $comment->cid ?>" class="<?php print $classes ?>"> |
| 30 |
|
<div class="commentmeta clearfix"> |
| 31 |
|
<div class="gravatar"> |
| 32 |
|
<?php print $picture ?> |
| 33 |
|
</div> |
| 34 |
|
<span class="commentauthor"><?php print $author ?></span><br /> |
| 35 |
|
<span class="commentdate"><?php print $date ?></span> |
| 36 |
|
</div> |
| 37 |
|
|
| 38 |
|
<div class="commententry"> |
| 39 |
|
|
| 40 |
|
<?php if ($status == 'comment-unpublished') : ?> |
| 41 |
|
<p class="moderate"><?php print t('Your comment is awaiting moderation.'); ?></p> |
| 42 |
|
<?php endif; ?> |
| 43 |
|
|
| 44 |
|
<?php print $content ?> |
| 45 |
|
<?php if ($signature): ?> |
| 46 |
|
<div class="user-signature clear-block"> |
| 47 |
|
<?php print $signature ?> |
| 48 |
|
</div> |
| 49 |
|
<?php endif; ?> |
| 50 |
|
|
| 51 |
|
<?php print $links ?> |
| 52 |
|
</div><!-- /commententry --> |
| 53 |
|
<li> |