Skip to content

Instantly share code, notes, and snippets.

@danielmiessler
Created July 3, 2014 02:57
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmiessler/141626a6c6d601748382 to your computer and use it in GitHub Desktop.
Save danielmiessler/141626a6c6d601748382 to your computer and use it in GitHub Desktop.
<!--Text-based Social Media Buttons-->
<p>
<!--Facebook-->
<a class="top_social" href="javascript:window.location=%22http://www.facebook.com/sharer.php?u=%22+encodeURIComponent(document.location)+%22&#38;t=%22+encodeURIComponent(document.title)" title="Share on Facebook...">Like</a> |
<!--Google Plus-->
<a href="https://plusone.google.com/_/+1/confirm?hl=en&url=<?php if(is_home()){echo home_url();}else{the_permalink();} ?>" target="_blank" title="Plus one this page on Google">Google +1</a> |
<!--Twitter-->
<a class="top_social" href="javascript:window.location=%22https://twitter.com/share?url=%22+encodeURIComponent(document.location)+%22&text=%22+encodeURIComponent(document.title)">Tweet</a> |
<!--LinkedIn-->
<a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php if(is_home()){echo home_url();}else{the_permalink();} ?>" target="_blank">Share on LinkedIn</a> |
<!--Reddit-->
<a class="top_social" href="javascript:window.location=%22http://reddit.com/submit?url=%22+encodeURIComponent(document.location)+%22&title=%22+encodeURIComponent(document.title)">Submit to Reddit</a> |
<!--Hacker News-->
<a class="top_social" href="javascript:window.location=%22http://news.ycombinator.com/submitlink?u=%22+encodeURIComponent(document.location)+%22&t=%22+encodeURIComponent(document.title)">Post to Hacker News</a>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment