aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-01-18 14:19:31 +0000
committerMario <mario@mariovavti.com>2020-01-18 14:19:31 +0000
commit7404a8ec1a0980fa3448ca6b05e410ea36c6a5f2 (patch)
tree6d0dd0bd487ef950fd75450962efacd30acf6388 /include/bbcode.php
parentbfae86bdb6d18f4238fe114485e24947ad7c7d75 (diff)
downloadvolse-hubzilla-7404a8ec1a0980fa3448ca6b05e410ea36c6a5f2.tar.gz
volse-hubzilla-7404a8ec1a0980fa3448ca6b05e410ea36c6a5f2.tar.bz2
volse-hubzilla-7404a8ec1a0980fa3448ca6b05e410ea36c6a5f2.zip
implement bdi tags via bbcode where possible
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index c7dea53c5..301ffbd24 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -382,7 +382,7 @@ function bb_ShareAttributes($match) {
// Bob Smith wrote the following post 2 hours ago
$fmt = sprintf( t('%1$s wrote the following %2$s %3$s'),
- '<a href="' . (($auth) ? zid($profile) : $profile) . '" >' . $author . '</a>',
+ '<a href="' . (($auth) ? zid($profile) : $profile) . '" ><bdi>' . $author . '</bdi></a>',
'<a href="' . (($auth) ? zid($link) : $link) . '" >' . $type . '</a>',
$reldate
);
@@ -1111,6 +1111,12 @@ function bbcode($Text, $options = []) {
if (strpos($Text,'[/footer]') !== false) {
$Text = preg_replace("(\[footer\](.*?)\[\/footer\])ism", "<div class=\"wall-item-footer\">$1</div>", $Text);
}
+
+ // Check for bdi
+ if (strpos($Text,'[/bdi]') !== false) {
+ $Text = preg_replace("(\[bdi\](.*?)\[\/bdi\])ism", "<bdi>$1</bdi>", $Text);
+ }
+
// Check for list text
$Text = preg_replace("/<br \/>\[\*\]/ism",'[*]',$Text);