Dzetki
The Prodigal Son Returns
Well, i got really bored and made an EXTREMELY simple +1 button script. But i just remembered that google have several versions of this button. But i will release mine anyways.
Like it, +1 it or hate it!
PHP:
//put this tag into head, or right before the </body> tag.
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
//put this code in where you want to show the +1 button. (Can use either $_SERVER['HTTP_HOST'] or $site).
<?php
$site = "localhost";
echo "<g:plusone href='" . $_SERVER['HTTP_HOST'] . "'></g:plusone>";
?>
Like it, +1 it or hate it!