]> git.mxchange.org Git - friendica.git/commitdiff
Mentions are now having an own class
authorMichael Vogel <icarus@dabo.de>
Wed, 1 Jun 2016 14:04:31 +0000 (16:04 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 1 Jun 2016 14:04:31 +0000 (16:04 +0200)
include/bbcode.php

index bc307677702bc6ce40c1cd45734f4d1ff92ae2ea..3833c554015ae83dc55acbbba0e2058ca544c015 100644 (file)
@@ -809,7 +809,10 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal
                $Text = preg_replace("/([@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
                        '$1<span class="vcard"><a href="$2" class="url" title="$3"><span class="fn nickname mention">$3</span></a></span>',
                        $Text);
-
+       elseif (!$simplehtml)
+               $Text = preg_replace("/([@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
+                       '$1<a href="$2" class="mention" title="$3">$3</a>',
+                       $Text);
 
        // Bookmarks in red - will be converted to bookmarks in friendica
        $Text = preg_replace("/#\^\[url\]([$URLSearchString]*)\[\/url\]/ism", '[bookmark=$1]$1[/bookmark]', $Text);