(similar_text($test1,$test2) / strlen($data["title"])) > 0.9)) {
$title2 = $data["url"];
}
- $text = sprintf('<a href="%s" title="%s" class="attachment thumbnail" rel="nofollow external">%s</a><br />',
+ $text = sprintf('<a href="%s" title="%s" class="attachment" rel="nofollow external">%s</a><br />',
$data["url"], $data["title"], $title2);
} elseif (($simplehtml != 4) AND ($simplehtml != 0)) {
$text = sprintf('<a href="%s" target="_blank">%s</a><br>', $data["url"], $data["title"]);
}
}
}
- return $data["text"] . $text . $data["after"];
+ return trim($data["text"].' '.$text.' '.$data["after"]);
}
function bb_remove_share_information($Text, $plaintext = false, $nolink = false) {
}
function bb_cleanstyle($st) {
- return "<span style=\"" . cleancss($st[1]) . ";\">" . $st[2] . "</span>";
+ return "<span style=\"" . cleancss($st[1]) . ";\">" . $st[2] . "</span>";
}
function bb_cleanclass($st) {
- return "<span class=\"" . cleancss($st[1]) . "\">" . $st[2] . "</span>";
+ return "<span class=\"" . cleancss($st[1]) . "\">" . $st[2] . "</span>";
}
function cleancss($input) {
}
function bb_find_open_close($s, $open, $close, $occurence = 1) {
- if ($occurence < 1) {
- $occurence = 1;
- }
+ if ($occurence < 1) {
+ $occurence = 1;
+ }
$start_pos = -1;
for ($i = 1; $i <= $occurence; $i++) {
$gplus = preg_replace("=https?://plus.google.com/(.*)=ism", "$1@plus.google.com", $profile);
if ($gplus != $profile) {
if ($getnetwork) {
- return NETWORK_GPLUS);
+ return NETWORK_GPLUS;
} elseif ($compact) {
return ($gplususername . " (" . $username . ")");
} else {
function bb_highlight($match) {
if (in_array(strtolower($match[1]), ['php', 'css', 'mysql', 'sql', 'abap', 'diff', 'html', 'perl', 'ruby',
'vbscript', 'avrc', 'dtd', 'java', 'xml', 'cpp', 'python', 'javascript', 'js', 'sh'])) {
- return text_highlight($match[2],strtolower($match[1]));
+ return text_highlight($match[2], strtolower($match[1]));
}
return $match[0];
}