mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Glyphicons are now showing on user profile again when using BS3
This commit is contained in:
@@ -275,45 +275,46 @@ class user_shortcodes extends e_shortcode
|
|||||||
function sc_user_icon($parm='')
|
function sc_user_icon($parm='')
|
||||||
{
|
{
|
||||||
$boot = deftrue('BOOTSTRAP');
|
$boot = deftrue('BOOTSTRAP');
|
||||||
|
$tp = e107::getParser();
|
||||||
|
|
||||||
switch ($parm)
|
switch ($parm)
|
||||||
{
|
{
|
||||||
case 'email':
|
case 'email':
|
||||||
return ($boot) ? "<i class='icon-envelope'></i>" : $this->sc_user_email_icon();
|
return ($boot) ? $tp->toGlyph('envelope') : $this->sc_user_email_icon();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'lastvisit':
|
case 'lastvisit':
|
||||||
return ($boot) ? "<i class='icon-time'></i>" : '';
|
return ($boot) ? $tp->toGlyph('time') : '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'birthday':
|
case 'birthday':
|
||||||
return ($boot) ? "<i class='icon-calendar'></i>" : $this->sc_user_birthday_icon();
|
return ($boot) ? $tp->toGlyph('calendar') : $this->sc_user_birthday_icon();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'level':
|
case 'level':
|
||||||
return ($boot) ? "<i class='icon-signal'></i>" : '';
|
return ($boot) ? $tp->toGlyph('signal') : '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'website':
|
case 'website':
|
||||||
return ($boot) ? "<i class='icon-home'></i>" : '';
|
return ($boot) ? $tp->toGlyph('home') : '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'location':
|
case 'location':
|
||||||
return ($boot) ? "<i class='icon-map-marker'></i>" : '';
|
return ($boot) ? $tp->toGlyph('map-marker') : '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'icq':
|
case 'icq':
|
||||||
return ($boot) ? "<i class='icon-comment'></i>" : '';
|
return ($boot) ? $tp->toGlyph('comment') : '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'msn':
|
case 'msn':
|
||||||
return ($boot) ? "<i class='icon-comment'></i>" : '';
|
return ($boot) ? $tp->toGlyph('comment') : '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case 'realname':
|
case 'realname':
|
||||||
case 'user':
|
case 'user':
|
||||||
return ($boot) ? "<i class='icon-user'></i>" : $this->sc_user_realname_icon();
|
return ($boot) ? $tp->toGlyph('user') : $this->sc_user_realname_icon();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user