-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomment.tpl.php
49 lines (44 loc) · 1.2 KB
/
comment.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
// $Id$
/* *
* @file
* comment-folded.tpl.php
* These two variables are provided for context.
* - $comment: Full comment object.
* - $node: Node object the comments are attached to.
*
* @see template_preprocess_comment()
* @see theme_comment()
*/
/*
* ad a class="" if we have anything in the $classes var
* this is so we can have a cleaner output - no reason to have an empty <div class="" id="">
*/
if ($classes) {
$classes = ' class="' . $classes . '"';
}
?>
<div<?php print $classes; ?>>
<div class="comment-inner">
<?php if ($comment->new){ ?>
<h3 class="new"><?php print $title ?></h3>
<?php }else{ ?>
<h3><?php print $title ?></h3>
<?php } ?>
<div class="comment-content"><?php print $content ?></div>
<?php print $links ?>
</div>
<div class="meta">
<?php
if($comment->picture){
$image = theme('imagecache', 'user-thumbnail', $comment->picture);
print l($image, 'user/'.$comment->uid, $options= array('html'=>TRUE));
}
?>
<span class="author"><?php print $author ?></span>
<span class="date"><?php print $date ?></span>
<?php if ($signature){ ?>
<?php print $signature ?>
<?php } ?>
</div>
</div>