diff --git a/include/bbcode.php b/include/bbcode.php index 11d06ad06..43c1189e0 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -552,13 +552,6 @@ function bb_ShareAttributes($match) { $rnd = mt_rand(); - $reldate = '' . datetime_convert('UTC', date_default_timezone_get(), $posted, 'r') . ''; - - $headline = '
'; - - return $text; + return replace_macros(get_markup_template('bb_share.tpl'), [ + '$rnd' => $rnd, + '$avatar' => $avatar, + '$text' => t(' wrote the following '), + '$author' => $author, + '$author_url' => $author_url, + '$post_url' => $post_url, + '$type' => $type, + '$reldate' => $reldate, + '$reldate_iso' => $reldate_iso, + '$content' => trim($match[2]), + ]); } function bb_location($match) { diff --git a/view/tpl/bb_share.tpl b/view/tpl/bb_share.tpl new file mode 100644 index 000000000..048647496 --- /dev/null +++ b/view/tpl/bb_share.tpl @@ -0,0 +1 @@ +