/*
Plugin Name: Add to Any: Bookmark Button
Plugin URI: http://www.addtoany.com/buttons/
Description: Lets readers share, save and bookmark your posts using any service and browser.
Version: .5
Author: MicroPat
Author URI: http://www.addtoany.com/contact/
*/
function add_to_any_link() {
ob_start();
$sitename_enc = rawurlencode( get_bloginfo('name') );
$siteurl_enc = rawurlencode( trailingslashit( get_bloginfo('url') ) );
$linkname = html_entity_decode( get_the_title() , ENT_COMPAT, 'UTF-8');
$linkname_enc = rawurlencode( $linkname );
$linkurl = get_permalink($post->ID);
$linkurl_enc = rawurlencode( $linkurl );
?>
$link = ob_get_contents();
ob_end_clean();
return $link;
}
function a2a_add_to_any_to_content($content) {
$content .= '
'.add_to_any_link('return').'
'; return $content; } add_action('the_content', 'a2a_add_to_any_to_content'); add_action('the_content_rss', 'a2a_add_to_any_to_content'); ?>