Skip to content

Instantly share code, notes, and snippets.

@ngstigator
Created December 4, 2012 04:11
Show Gist options
  • Select an option

  • Save ngstigator/4200513 to your computer and use it in GitHub Desktop.

Select an option

Save ngstigator/4200513 to your computer and use it in GitHub Desktop.
ProtectInternetFreedom facebook like using XFBML
<div id="fb-root"></div>
<?php // $link = $_SERVER['HTTP_HOST'] . request_uri(); ?>
<?php $link = "http://" . $_SERVER['HTTP_HOST']; ?>
<ul class="share-links">
<li>
<div class="fb-like" data-href="http://www.protectinternetfreedom.net" data-send="true" data-layout="box_count" data-width="450" data-show-faces="false" data-colorscheme="light"></div>
</li>
<li>
<a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical" data-url="<?php print $link; ?>" data-text="Protect Global #NetFreedom now:" data-via="theopenmedia" data-hashtags="itu">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</li>
<li>
<div class="g-plusone" data-size="tall" data-href="<?php print $link; ?>"></div>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</li>
<li>
<script type="text/javascript" src="http://www.reddit.com/static/button/button2.js"></script>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment