<?php
$title = urlencode(get_the_title());
$url = urlencode(get_permalink());
?>

//Email
<a title="Email" rel="nofollow" target="_blank" href="https://mail.google.com/mail/?view=cm&fs=1&to&su=<?php echo $title ?>&body=<?php echo $url ?>&ui=2&tf=1&shva=1"/>
<img src="<?php echo bloginfo('template_directory'); ?>/images/gmail.png" border="0" /></a>

//Print
<a title="Print this page" rel="nofollow" href="" onclick="window.print();return false" class="print"><img src="<?php echo bloginfo('template_directory'); ?>/images/print.jpg" border="0" /></a>

//Share
<a title="Facebook" rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=<?php echo $url ?>&t=<?php echo $title ?>"/>
<img src="<?php echo bloginfo('template_directory'); ?>/images/share.png" border="0" /></a>

Advertisements