Line | |
---|
1 | <?php
|
---|
2 | $comments = WPfbConnect_Logic::get_community_comments(5);
|
---|
3 | ?>
|
---|
4 | <?php if ($comments) : ?>
|
---|
5 |
|
---|
6 | <ol class="commentlist">
|
---|
7 | <?php global $comment;?>
|
---|
8 | <?php foreach ($comments as $comment) : ?>
|
---|
9 |
|
---|
10 | <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
|
---|
11 | <?php echo get_avatar( $comment, 32 ); ?>
|
---|
12 | <b style="font-size: 175%;"><a href="<?php echo get_permalink($comment->comment_post_ID) ?>" rel="bookmark" title="Permanent Link to <?php echo $comment->post_title;?>"><?php echo $comment->post_title;?></a></b>
|
---|
13 | <br/>
|
---|
14 | <cite><?php _e('Sent by', 'fbconnect'); ?> <?php comment_author_link() ?></cite>
|
---|
15 | <small class="commentmetadata"><a href="<?php echo get_permalink($comment->comment_post_ID) ?>#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit',' ',''); ?></small>
|
---|
16 |
|
---|
17 | <?php comment_text() ?>
|
---|
18 |
|
---|
19 | </li>
|
---|
20 |
|
---|
21 | <?php
|
---|
22 | /* Changes every other comment to a different class */
|
---|
23 | $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
|
---|
24 | ?>
|
---|
25 |
|
---|
26 | <?php endforeach; /* end for each comment */ ?>
|
---|
27 |
|
---|
28 | </ol>
|
---|
29 | <?php endif; ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.