/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function social_share_buttons() { ?> <div class="share-buttons"> <ul> <li class="email-share"><a class="email-share" href="mailto:?subject=Check this out&BODY=I found this article interesting and thought of sharing it with you. Check it out: <?php the_permalink(); ?>" target="_blank"></a></li> <li class="facebook-share"><a name="fb_share"></a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></li> <li class="linkedin-share"><script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="right"></script></li> <li class="twitter-share"><a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink() ?>" data-text="<?php the_title(); ?>" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li> </ul> </div> <div class="clear_b" style="line-height:0;"> </div> <?php } add_action('thesis_hook_after_headline', 'social_share_buttons');