Created
July 11, 2012 17:27
-
-
Save xendk/3091877 to your computer and use it in GitHub Desktop.
Mutilate facebook_comments.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/facebook_comments.module b/facebook_comments.module | |
index 68a1cc8..b65ea88 100644 | |
--- a/facebook_comments.module | |
+++ b/facebook_comments.module | |
@@ -354,13 +354,6 @@ function facebook_comments_display($width, $amount, $fluid = 0) { | |
// Add user defined settings | |
$style = variable_get('facebook_comments_style', 'light'); | |
$output = '<div id="fb-root"></div> | |
-<script>(function(d, s, id) { | |
- var js, fjs = d.getElementsByTagName(s)[0]; | |
- if (d.getElementById(id)) {return;} | |
- js = d.createElement(s); js.id = id; | |
- js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; | |
- fjs.parentNode.insertBefore(js, fjs); | |
-}(document, "script", "facebook-jssdk"));</script> | |
<div class="fb-comments ' . $class . '" data-href="' . $url . '" data-num-posts="' . $amount . '" data-width="' . $width . '" data-colorscheme="' . $style . '"></div>'; | |
return $output; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment