| 1 |
<?php
|
| 2 |
// $Id$
|
| 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 |
|
| 30 |
<div class="comment <?php echo comment_classes($comment) .' '. $zebra ?> clear-block">
|
| 31 |
|
| 32 |
<?php if ($title): ?>
|
| 33 |
<h3 class="title"><?php echo $title; if (!empty($new)): ?> <span class="new"><?php echo $new; ?></span><?php endif; ?></h3>
|
| 34 |
<?php elseif (!empty($new)): ?>
|
| 35 |
<div class="new"><?php echo $new; ?></div>
|
| 36 |
<?php endif; ?>
|
| 37 |
|
| 38 |
<?php if ($unpublished): ?>
|
| 39 |
<div class="unpublished"><?php echo t('Unpublished'); ?></div>
|
| 40 |
<?php endif; ?>
|
| 41 |
|
| 42 |
<?php if ($picture) { echo $picture; } ?>
|
| 43 |
|
| 44 |
<div class="submitted">
|
| 45 |
<?php echo $submitted; ?>
|
| 46 |
</div>
|
| 47 |
|
| 48 |
<div class="content">
|
| 49 |
<?php echo $content ?>
|
| 50 |
<?php if ($signature): ?>
|
| 51 |
<div class="user-signature clear-block">
|
| 52 |
<?php echo $signature ?>
|
| 53 |
</div>
|
| 54 |
<?php endif; ?>
|
| 55 |
</div>
|
| 56 |
|
| 57 |
<?php if ($links): ?>
|
| 58 |
<div class="links">
|
| 59 |
<?php echo $links; ?>
|
| 60 |
</div>
|
| 61 |
<?php endif; ?>
|
| 62 |
</div>
|