- $o .= "\xE2\x99\xb2" . ' [url=' . $r[0]['author-link'] . ']' . $r[0]['author-name'] . '[/url]' . "\n";
- if($r[0]['title'])
- $o .= '[b]' . $r[0]['title'] . '[/b]' . "\n";
- $o .= $r[0]['body'] . "\n" ;
+function share_header($author, $profile, $avatar, $guid, $posted, $link) {
+ $header = "[share author='".str_replace(["'", "[", "]"], ["'", "[", "]"], $author).
+ "' profile='".str_replace(["'", "[", "]"], ["'", "[", "]"], $profile).
+ "' avatar='".str_replace(["'", "[", "]"], ["'", "[", "]"], $avatar);