web/drupal/modules/comment/comment.tpl.php
branchdrupal
changeset 74 0ff3ba646492
equal deleted inserted replaced
73:fcf75e232c5b 74:0ff3ba646492
       
     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 <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>