mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Support for HTML/CSS sprites in toIcon() method.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user