From 78436982fa00b0be7c167640558c2d5a66425aaa Mon Sep 17 00:00:00 2001 From: Moc Date: Wed, 25 Jun 2014 21:48:26 +0200 Subject: [PATCH] Glyphicons are now showing on user profile again when using BS3 --- .../shortcodes/batch/user_shortcodes.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/e107_core/shortcodes/batch/user_shortcodes.php b/e107_core/shortcodes/batch/user_shortcodes.php index 41b1775c8..b2bf67595 100644 --- a/e107_core/shortcodes/batch/user_shortcodes.php +++ b/e107_core/shortcodes/batch/user_shortcodes.php @@ -275,45 +275,46 @@ class user_shortcodes extends e_shortcode function sc_user_icon($parm='') { $boot = deftrue('BOOTSTRAP'); + $tp = e107::getParser(); switch ($parm) { case 'email': - return ($boot) ? "" : $this->sc_user_email_icon(); + return ($boot) ? $tp->toGlyph('envelope') : $this->sc_user_email_icon(); break; case 'lastvisit': - return ($boot) ? "" : ''; + return ($boot) ? $tp->toGlyph('time') : ''; break; case 'birthday': - return ($boot) ? "" : $this->sc_user_birthday_icon(); + return ($boot) ? $tp->toGlyph('calendar') : $this->sc_user_birthday_icon(); break; case 'level': - return ($boot) ? "" : ''; + return ($boot) ? $tp->toGlyph('signal') : ''; break; case 'website': - return ($boot) ? "" : ''; + return ($boot) ? $tp->toGlyph('home') : ''; break; case 'location': - return ($boot) ? "" : ''; + return ($boot) ? $tp->toGlyph('map-marker') : ''; break; case 'icq': - return ($boot) ? "" : ''; + return ($boot) ? $tp->toGlyph('comment') : ''; break; case 'msn': - return ($boot) ? "" : ''; + return ($boot) ? $tp->toGlyph('comment') : ''; break; default: case 'realname': case 'user': - return ($boot) ? "" : $this->sc_user_realname_icon(); + return ($boot) ? $tp->toGlyph('user') : $this->sc_user_realname_icon(); break; }