Rev | Line | |
---|
[44] | 1 | <?php
|
---|
| 2 | $fb_user ="";
|
---|
| 3 | if (isset($_REQUEST['userid']) && $_REQUEST['userid']!=""){
|
---|
| 4 | $fb_user = $_REQUEST['userid'];
|
---|
| 5 | $comments = WPfbConnect_Logic::get_user_comments_byID($_REQUEST['userid']);
|
---|
| 6 | }elseif (isset($_REQUEST['fbuserid']) && $_REQUEST['fbuserid']!=""){
|
---|
| 7 | $comments = WPfbConnect_Logic::get_user_comments($_REQUEST['fbuserid']);
|
---|
| 8 | }elseif(isset($_REQUEST['fb_sig_profile_user']) && $_REQUEST['fb_sig_profile_user']!=""){
|
---|
| 9 | $comments = WPfbConnect_Logic::get_user_comments($_REQUEST['fb_sig_profile_user']);
|
---|
| 10 | }
|
---|
| 11 | ?>
|
---|
| 12 | <?php if ($comments) : ?>
|
---|
| 13 |
|
---|
| 14 | <div class="commentlist">
|
---|
| 15 | <?php global $comment;?>
|
---|
| 16 | <?php foreach ($comments as $comment) : ?>
|
---|
| 17 |
|
---|
| 18 | <div <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
|
---|
| 19 | <h2 class="entry-title" style="margin: 10px 0 0;"><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></h2>
|
---|
| 20 |
|
---|
| 21 | <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit',' ',''); ?></small>
|
---|
| 22 |
|
---|
| 23 | <?php comment_text() ?>
|
---|
| 24 |
|
---|
| 25 | </div>
|
---|
| 26 |
|
---|
| 27 | <?php
|
---|
| 28 | /* Changes every other comment to a different class */
|
---|
| 29 | $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
|
---|
| 30 | ?>
|
---|
| 31 |
|
---|
| 32 | <?php endforeach; /* end for each comment */ ?>
|
---|
| 33 |
|
---|
| 34 | </div>
|
---|
| 35 | <?php endif; ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.