From 3cfeb987af5e9a1d2293a52643b729d54551fdc8 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 11 Feb 2016 12:47:28 -0800 Subject: [PATCH] Support for IDs in toGlyph() --- e107_handlers/e_parse_class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 02d564dc3..d1fdd4f34 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -3310,8 +3310,10 @@ class e_parser $size = ''; } + + $idAtt = (!empty($parm['id'])) ? "id='".$parm['id']."' " : ''; - $text = "<".$tag." class='".$prefix.$id.$size.$spin.$rotate."'>" ; + $text = "<".$tag." {$idAtt}class='".$prefix.$id.$size.$spin.$rotate."'>" ; $text .= ($space !== false) ? $space : ""; return $text;