mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
GUI Glyph fixes and Bbcode button styling fixes.
This commit is contained in:
@@ -2692,6 +2692,17 @@ class e_parser
|
||||
return false;
|
||||
}
|
||||
|
||||
if(is_array($space))
|
||||
{
|
||||
$parm = $space;
|
||||
$space = varset($parm['space'],'');
|
||||
}
|
||||
else
|
||||
{
|
||||
$parm = array();
|
||||
}
|
||||
|
||||
|
||||
// Bootstrap 3 Glyph names.
|
||||
$bs3 = e107::getMedia()->getGlyphs('bs3','');
|
||||
|
||||
@@ -2718,10 +2729,10 @@ class e_parser
|
||||
|
||||
if($type == 'fa')
|
||||
{
|
||||
$cls = str_replace('fa-', 'fa fa-', $cls);
|
||||
$cls = str_replace('fa-', 'fa fa-', $cls);
|
||||
$cls .= (vartrue($parm['size'])) ? ' fa-'.$parm['size'] : '';
|
||||
}
|
||||
|
||||
|
||||
// $text = (deftrue('BOOTSTRAP') === 3) ? "<span class='".$cls."'></span>" : "<i class='".$cls."'></i>"; // retain space.
|
||||
|
||||
$text = "<span class='".$cls."'></span>" ;
|
||||
@@ -2756,7 +2767,7 @@ class e_parser
|
||||
|
||||
if(substr($icon,-6) == '.glyph') // Bootstrap or Font-Awesome.
|
||||
{
|
||||
return $this->toGlyph($icon);
|
||||
return $this->toGlyph($icon,$parm);
|
||||
}
|
||||
|
||||
if(strpos($icon,'e_MEDIA')!==FALSE)
|
||||
|
Reference in New Issue
Block a user