php code
function share($title=false) {
$link = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
return '
<div class="share">
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-url="'.$link.'"></script>
<a href="http://twitter.com/share" class="twitter-share-button" data-url="'.$link.'" '.($title?'data-text="'.$title.'"':'').' data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<iframe src="http://www.facebook.com/plugins/like.php?layout=button_count&href='.urlencode($link).'&locale=en_US" scrolling="no" frameborder="0" style="border:none; width:50px; height:20px;"></iframe>
</div>';
}