Fix for font awesome 5
This commit is contained in:
parent
5f69f9c3a3
commit
e644de4a70
@ -2979,7 +2979,9 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'jabber','skype','twitter','facebook'
|
'jabber','skype','twitter','facebook'
|
||||||
)
|
)
|
||||||
)) {
|
)) {
|
||||||
$fakey = $pictowithoutext;
|
$fa='fa';
|
||||||
|
if (! empty($conf->global->MAIN_USE_FONT_AWESOME_5)) $fa='fas';
|
||||||
|
$fakey = $pictowithoutext;
|
||||||
$facolor = ''; $fasize = '';
|
$facolor = ''; $fasize = '';
|
||||||
$marginleftonlyshort = 2;
|
$marginleftonlyshort = 2;
|
||||||
if ($pictowithoutext == 'switch_off') {
|
if ($pictowithoutext == 'switch_off') {
|
||||||
@ -3074,6 +3076,10 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
elseif ($pictowithoutext == 'jabber') {
|
elseif ($pictowithoutext == 'jabber') {
|
||||||
$fakey = 'fa-comment-o';
|
$fakey = 'fa-comment-o';
|
||||||
}
|
}
|
||||||
|
elseif ($pictowithoutext == 'skype') {
|
||||||
|
$fakey = 'fa-'.$pictowithoutext;
|
||||||
|
if (! empty($conf->global->MAIN_USE_FONT_AWESOME_5)) $fa = 'fab';
|
||||||
|
}
|
||||||
elseif ($pictowithoutext == 'split') {
|
elseif ($pictowithoutext == 'split') {
|
||||||
$fakey = 'fa-code-fork';
|
$fakey = 'fa-code-fork';
|
||||||
}
|
}
|
||||||
@ -3095,8 +3101,6 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
}
|
}
|
||||||
$moreatt=trim($moreatt);
|
$moreatt=trim($moreatt);
|
||||||
|
|
||||||
$fa='fa';
|
|
||||||
if (! empty($conf->global->MAIN_USE_FONT_AWESOME_5)) $fa='fas';
|
|
||||||
$enabledisablehtml = '<span class="' . $fa . ' ' . $fakey . ($marginleftonlyshort ? ($marginleftonlyshort == 1 ? ' marginleftonlyshort' : ' marginleftonly') : '');
|
$enabledisablehtml = '<span class="' . $fa . ' ' . $fakey . ($marginleftonlyshort ? ($marginleftonlyshort == 1 ? ' marginleftonlyshort' : ' marginleftonly') : '');
|
||||||
$enabledisablehtml .= ' valignmiddle' . ($morecss ? ' ' . $morecss : '') . '" style="' . ($fasize ? ('font-size: ' . $fasize . ';') : '') . ($facolor ? (' color: ' . $facolor . ';') : '') . ($morestyle ? ' ' . $morestyle : '') . '"' . (($notitle || empty($titlealt)) ? '' : ' title="' . dol_escape_htmltag($titlealt) . '"') . ($moreatt ? ' ' . $moreatt : '') . '>';
|
$enabledisablehtml .= ' valignmiddle' . ($morecss ? ' ' . $morecss : '') . '" style="' . ($fasize ? ('font-size: ' . $fasize . ';') : '') . ($facolor ? (' color: ' . $facolor . ';') : '') . ($morestyle ? ' ' . $morestyle : '') . '"' . (($notitle || empty($titlealt)) ? '' : ' title="' . dol_escape_htmltag($titlealt) . '"') . ($moreatt ? ' ' . $moreatt : '') . '>';
|
||||||
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
|
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user