1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Fix for glyph rendering in admin.

This commit is contained in:
Cameron 2017-01-01 09:07:02 -08:00
parent 882efff6ec
commit 062f80d1b0
4 changed files with 8 additions and 3 deletions

View File

@ -341,6 +341,11 @@ class cpage_shortcodes extends e_shortcode
function sc_cmenuicon($parm='')
{
if($parm === 'css')
{
return str_replace(".glyph", "", $this->var['menu_icon']);
}
return e107::getParser()->toIcon($this->var['menu_icon'], array('space'=>' '));
}

View File

@ -3610,7 +3610,7 @@ class e_parser
}
else
{
$prefix = 'icon-';
// $prefix = 'icon-';
$tag = 'i';
}

View File

@ -4348,8 +4348,7 @@ e107::getDebug()->log($sc_parameters);
case 'icon':
$parms['size'] = '2x';
$value = $tp->toIcon($value,$parms);
$value = "<span class='icon-preview'>".$tp->toIcon($value,$parms)."</span>";
break;

View File

@ -316,6 +316,7 @@ input[type="radio"]:checked, input[type="radio"]:checked + span { opacity:1.0;
label.legacy { margin-left:5px;margin-right:10px; display: inline-block; }
/* Core Icons & Image Buttons */
.icon-preview { font-size: 2em}
img.icon { border: 0px; vertical-align: middle; }
img.icon.list,
input.action { margin: 0px 3px }