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:
@@ -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>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user