/[drupal]/contributions/comment.tpl.php
ViewVC logotype

Contents of /contributions/comment.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Oct 21 13:39:20 2009 UTC (5 weeks, 1 day ago) by mcrittenden
Branch: MAIN
File MIME type: text/x-php
Initial commit
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 $classes . ' ' . $zebra; if ($unpublished) { echo 'comment-unpublished'; } ?> clear-block">
31
32 <?php if ($title): ?>
33 <h3><?php echo $title; if (!empty($new)): ?> <span class="new"><?php echo $new; ?></span><?php endif; ?></h3>
34 <?php elseif (!empty($new)): ?>
35 <?php echo $new; ?>
36 <?php endif; ?>
37
38 <?php if ($unpublished): ?>
39 <?php echo t('Unpublished'); ?>
40 <?php endif; ?>
41
42 <?php if ($picture): ?>
43 <?php echo $picture; ?>
44 <?php endif; ?>
45
46 <?php echo $submitted; ?>
47
48 <?php echo $content ?>
49
50 <?php if ($signature): ?>
51 <?php echo $signature; ?>
52 <?php endif; ?>
53
54 <?php if ($links): ?>
55 <?php echo $links; ?>
56 <?php endif; ?>
57
58 </div> <!-- /comment -->

  ViewVC Help
Powered by ViewVC 1.1.2