Advertisement
Guest User

Untitled

a guest
Jun 28th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <!--Here is the HTML that makes the buttons appear-->
  2.  
  3.  
  4. <ul id="social-buttons-wrap">
  5. <li><div class="fb-like" data-href="http://my-site.com" data-send="false" data-width="225" data-show-faces="false"></div></li>
  6. <li><a class="twitter-share-button" data-count="horizontal">Tweet</a></li>
  7. <li><div class="g-plusone" data-size="medium"></div></li>
  8.  
  9.  
  10. <!--And the following is in the footer, right before ?php wp_footer();?>-->
  11.  
  12. <script>
  13. (function(w, d, s) {
  14. function go(){
  15. var js, fjs = d.getElementsByTagName(s)[0], load = function(url, id) {
  16. if (d.getElementById(id)) {return;}
  17. js = d.createElement(s); js.src = url; js.id = id;
  18. fjs.parentNode.insertBefore(js, fjs);
  19. };
  20. load('//connect.facebook.net/en_US/all.js#xfbml=1&appId=315117041956670', 'fbjssdk');
  21. load('https://apis.google.com/js/plusone.js', 'gplus1js');
  22. load('//platform.twitter.com/widgets.js', 'tweetjs');
  23. }
  24. if (w.addEventListener) { w.addEventListener("load", go, false); }
  25. else if (w.attachEvent) { w.attachEvent("onload",go); }
  26. }(window, document, 'script'));
  27. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement