post->ID; // Return out of function if commenting is closed for this post if (!comments_open()) { echo "
" . __($fbc_options['title']) . "
\n"; } // Print out the JavaScript for calculating the width of the comments box fbComments_printFbCommentsTag($xid, $postTitle, $postUrl, $customStylesheet); // Hide the WordPress commenting form if requested if ($fbc_options['hideWpComments']) { return array(); // Must return an empty array so foreach() loops in certain themes don't produce errors } } else { // If no application ID or application secret are set, display a message asking the user to set one (if they have permission to do so) fbComments_handleNoAppId(); } return $comments; } /********************************** Facebook comments box helpers **********************************/ function fbComments_getStylesheet() { global $fbc_options; if (($fbc_options['darkSite'])) { return FBCOMMENTS_CSS_HIDELIKEANDDARKSITE . '?' . fbComments_getRandXid(); } else { return FBCOMMENTS_CSS_HIDELIKE . '?' . fbComments_getRandXid(); } } function fbComments_handleNoAppId() { global $fbc_options; get_currentuserinfo(); // Get user info to see if the currently logged in user (if any) has the 'manage_options' capability if (current_user_can('manage_options')) { $fbc_optionsPage = admin_url('options-general.php?page=facebook-comments'); echo "\n" . __($fbc_options['title']) . "
\n"; } echo "\t