function _fb_social_comments_seo_view in Facebook social plugins integration 7.2
Same name and namespace in other branches
- 6.2 plugins/fb_plugin/comments.inc \_fb_social_comments_seo_view()
the html representation of comments
1 call to _fb_social_comments_seo_view()
- _fb_social_comments_seo in plugins/
fb_plugin/ comments.inc - Get comments from facebook using graph api
File
- plugins/
fb_plugin/ comments.inc, line 300
Code
function _fb_social_comments_seo_view($comments) {
$result = '<ul style="display:none">';
foreach ($comments as $comment) {
$result .= '<li>' . fb_social_comments_seo_comment_view($comment);
if (isset($comment->comments)) {
$result .= '<ul>';
foreach ($comment->comments->data as $subcomment) {
$result .= '<li>' . fb_social_comments_seo_comment_view($subcomment) . '</li>';
}
$result .= '</ul>';
}
$result .= '</li>';
}
$result .= '</ul>';
return $result;
}