public

A patch makes WP Social Bookmarking Light visible on top page.

  • Download Gist
wp-social-bookmarking-light.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
diff --git a/public_html/wp-content/plugins/wp-social-bookmarking-light/wp-social-bookmarking-light.php b/public_html/wp-content/plugins/wp-social-bookmarkin
index 6c08727..d9bbba5 100644
--- a/public_html/wp-content/plugins/wp-social-bookmarking-light/wp-social-bookmarking-light.php
+++ b/public_html/wp-content/plugins/wp-social-bookmarking-light/wp-social-bookmarking-light.php
@@ -123,8 +123,12 @@ class WpSocialBookmarkingLight
*/
function twitter()
{
- return $this->link_raw( '<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a>'
- .'<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>' );
+ return $this->link_raw( '<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal"'
+ ." data-url=\"{$this->url}\""
+ ." data-text=\"{$this->title}\""
+ .' data-via="YOUR_TWITTER_ACCOUNT"'
+ .'>Tweet</a>'
+ .'<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>' );
}
/**
@@ -492,7 +496,7 @@ function wp_social_bookmarking_light_the_content( $content )
}
$options = wp_social_bookmarking_light_options();
- if( $options['single_page'] && !is_singular() ){
+ if( $options['single_page'] && !is_singular() && !is_home() ){
return $content;
}
if( !$options['is_page'] && is_page() ){

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.