1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Support for HTML/CSS sprites in toIcon() method.

This commit is contained in:
Cameron
2016-02-03 13:48:35 -08:00
parent edba19ef0a
commit 84550d7390

View File

@@ -3062,6 +3062,9 @@ class e_parser
*/
public function toGlyph($text, $space=" ")
{
if(!deftrue('BOOTSTRAP') || empty($text))
{
return false;
@@ -3222,6 +3225,11 @@ class e_parser
{
return;
}
if(substr($icon,0,3) == '<i ') // if it's html (ie. css sprite) return the code.
{
return $icon;
}
$ext = pathinfo($icon, PATHINFO_EXTENSION);