1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Fixes #2100 toBadge() method added for Bootstrap badge numbers.

This commit is contained in:
Cameron
2016-12-07 08:23:53 -08:00
parent 868c067fe1
commit 1796c6e146

View File

@@ -3569,9 +3569,17 @@ class e_parser
//$text = preg_replace('/\[(i_[\w]*)\]/',"<i class='$1'></i>", $text);
// return $text;
}
/**
* @param $text
* @return string
*/
public function toBadge($text)
{
return "<span class='badge'>".$text."</span>";
}
/**