1
|
1 |
<?php |
|
2 |
|
|
3 |
// Custom callback to list comments in the Thematic style |
|
4 |
function thematic_comments($comment, $args, $depth) { |
|
5 |
$GLOBALS['comment'] = $comment; |
|
6 |
$GLOBALS['comment_depth'] = $depth; |
|
7 |
?> |
|
8 |
<li id="comment-<?php comment_ID() ?>" class="<?php thematic_comment_class() ?>"> |
|
9 |
<div class="comment-author vcard"><?php thematic_commenter_link() ?></div> |
|
10 |
<div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'thematic'), |
|
11 |
get_comment_date(), |
|
12 |
get_comment_time(), |
|
13 |
'#comment-' . get_comment_ID() ); |
|
14 |
edit_comment_link(__('Edit', 'thematic'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div> |
|
15 |
<?php if ($comment->comment_approved == '0') _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'thematic') ?> |
|
16 |
<div class="comment-content"> |
|
17 |
<?php comment_text() ?> |
|
18 |
</div> |
|
19 |
<?php // echo the comment reply link with help from Justin Tadlock http://justintadlock.com/ and Will Norris http://willnorris.com/ |
|
20 |
if($args['type'] == 'all' || get_comment_type() == 'comment') : |
|
21 |
comment_reply_link(array_merge($args, array( |
|
22 |
'reply_text' => __('Reply','thematic'), |
|
23 |
'login_text' => __('Log in to reply.','thematic'), |
|
24 |
'depth' => $depth, |
|
25 |
'before' => '<div class="comment-reply-link">', |
|
26 |
'after' => '</div>' |
|
27 |
))); |
|
28 |
endif; |
|
29 |
?> |
|
30 |
<?php } |
|
31 |
|
|
32 |
// Custom callback to list pings in the Thematic style |
|
33 |
function thematic_pings($comment, $args, $depth) { |
|
34 |
$GLOBALS['comment'] = $comment; |
|
35 |
?> |
|
36 |
<li id="comment-<?php comment_ID() ?>" class="<?php thematic_comment_class() ?>"> |
|
37 |
<div class="comment-author"><?php printf(__('By %1$s on %2$s at %3$s', 'thematic'), |
|
38 |
get_comment_author_link(), |
|
39 |
get_comment_date(), |
|
40 |
get_comment_time() ); |
|
41 |
edit_comment_link(__('Edit', 'thematic'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div> |
|
42 |
<?php if ($comment->comment_approved == '0') _e('\t\t\t\t\t<span class="unapproved">Your trackback is awaiting moderation.</span>\n', 'thematic') ?> |
|
43 |
<div class="comment-content"> |
|
44 |
<?php comment_text() ?> |
|
45 |
</div> |
|
46 |
<?php } |
|
47 |
|
|
48 |
?> |