[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/modules/comment/ -> comment.tpl.php (source)

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


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7