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