function sfsi_twitterlike($permalink, $show_count) { global $socialObj; $socialObj = new sfsi_SocialHelper(); $twitter_text = ''; if (!empty($permalink)) { $postid = url_to_postid($permalink); } if (!empty($postid)) { $twitter_text = get_the_title($postid); } return $socialObj->sfsi_twitterSharewithcount($permalink, $twitter_text, $show_count); }