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

Allow title to be set in toGlyph()

This commit is contained in:
Cameron 2018-09-08 10:26:31 -07:00
parent a661709164
commit 5ee15f10ef

View File

@ -4119,8 +4119,9 @@ class e_parser
$style = (!empty($parm['style'])) ? "style='".$parm['style']."' " : '';
$class = (!empty($parm['class'])) ? $parm['class']." " : '';
$placeholder = isset($parm['placeholder']) ? $parm['placeholder'] : "<!-- -->";
$title = (!empty($parm['title'])) ? "title='".$this->toAttribute($parm['title'])."' " : '';
$text = "<".$tag." {$idAtt}class='".$class.$prefix.$id.$size.$spin.$rotate.$fixedW."' {$style}>".$placeholder."</".$tag.">" ;
$text = "<".$tag." {$idAtt}class='".$class.$prefix.$id.$size.$spin.$rotate.$fixedW."' {$style} {$title}>".$placeholder."</".$tag.">" ;
$text .= ($options !== false) ? $options : "";
return $text;