'.__('Settings').'';
// make the 'Settings' link appear first
array_unshift( $links, $async_share_settings_link );
}
return $links;
}
/*
| -------------------------------------------------------------------
| Async Share Content
| * added to bottom of posts
| -------------------------------------------------------------------
|
| */
add_filter('the_content', 'async_share_display');
function async_share_display($content)
{
$options = get_option('async_share_options');
if ($options['twitter'] == TRUE) {
$twitter = '
';
} else { $twitter = ''; }
if ($options['facebook'] == TRUE) {
$facebookinit = '';
$facebook = '';
} else {$facebookinit = ''; $facebook = '';}
if ($options['gplus'] == TRUE) {
$gplus = '';
} else { $glus = ''; }
if ($options['linkedin'] == TRUE) {
$linkedin = '';
} else { $linkedin = ''; }
if ($options['hackernews'] == TRUE) {
$hackernews = 'Vote on HN';
} else { $hackernews = ''; }
/**
* Displaying the sharing widgets
*/
$async_display_share_box = ''. $facebookinit .'
'. $twitter . $facebook . $gplus . $linkedin . $hackernews .'
';
if (is_paged() || is_single())
{
return $content . $async_display_share_box;
} else {
return $content;
}
}