mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 03:28:18 +01:00
FIX title on picto no more visible
This commit is contained in:
@@ -2973,7 +2973,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
//if (in_array($picto, array('switch_off', 'switch_on', 'off', 'on')))
|
//if (in_array($picto, array('switch_off', 'switch_on', 'off', 'on')))
|
||||||
if (empty($srconly) && in_array($pictowithoutext, array(
|
if (empty($srconly) && in_array($pictowithoutext, array(
|
||||||
'bank', 'close_title', 'delete', 'edit', 'ellipsis-h', 'filter', 'grip', 'grip_title', 'list', 'listlight', 'off', 'on', 'play', 'playdisabled', 'printer', 'resize',
|
'bank', 'close_title', 'delete', 'edit', 'ellipsis-h', 'filter', 'grip', 'grip_title', 'list', 'listlight', 'off', 'on', 'play', 'playdisabled', 'printer', 'resize',
|
||||||
'note','switch_off', 'switch_on', 'unlink', 'uparrow', '1downarrow', '1uparrow',
|
'note', 'split', 'switch_off', 'switch_on', 'unlink', 'uparrow', '1downarrow', '1uparrow',
|
||||||
'jabber','skype','twitter','facebook'
|
'jabber','skype','twitter','facebook'
|
||||||
)
|
)
|
||||||
)) {
|
)) {
|
||||||
@@ -3066,18 +3066,22 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
elseif ($pictowithoutext == 'jabber') {
|
elseif ($pictowithoutext == 'jabber') {
|
||||||
$fakey = 'fa-comment-o';
|
$fakey = 'fa-comment-o';
|
||||||
}
|
}
|
||||||
|
elseif ($pictowithoutext == 'split') {
|
||||||
|
$fakey = 'fa-code-fork';
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$fakey = 'fa-'.$pictowithoutext;
|
$fakey = 'fa-'.$pictowithoutext;
|
||||||
$facolor = '#444';
|
$facolor = '#444';
|
||||||
$marginleftonlyshort=0;
|
$marginleftonlyshort=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$reg=array();
|
||||||
if (preg_match('/class="([^"]+)"/', $moreatt, $reg)) {
|
if (preg_match('/class="([^"]+)"/', $moreatt, $reg)) {
|
||||||
$morecss.= ($morecss?' ':'').$reg[1];
|
$morecss.= ($morecss?' ':'').$reg[1];
|
||||||
}
|
}
|
||||||
$fa='fa';
|
$fa='fa';
|
||||||
if (! empty($conf->global->MAIN_USE_FONT_AWESOME_5)) $fa='fas';
|
if (! empty($conf->global->MAIN_USE_FONT_AWESOME_5)) $fa='fas';
|
||||||
$enabledisablehtml = '<span class="'.$fa.' '.$fakey.' '.($marginleftonlyshort?($marginleftonlyshort==1?'marginleftonlyshort':'marginleftonly'):'').' valignmiddle'.($morecss?' '.$morecss:'').'" style="'.($fasize?('font-size: '.$fasize.';'):'').($facolor?(' color: '.$facolor.';'):'').'" alt="'.dol_escape_htmltag($titlealt).'"'.(($notitle || empty($title))?'':' title="'.dol_escape_htmltag($title).'"').($moreatt?' '.$moreatt:'').'>';
|
$enabledisablehtml = '<span class="'.$fa.' '.$fakey.' '.($marginleftonlyshort?($marginleftonlyshort==1?'marginleftonlyshort':'marginleftonly'):'').' valignmiddle'.($morecss?' '.$morecss:'').'" style="'.($fasize?('font-size: '.$fasize.';'):'').($facolor?(' color: '.$facolor.';'):'').'" alt="'.dol_escape_htmltag($titlealt).'"'.(($notitle || empty($titlealt))?'':' title="'.dol_escape_htmltag($titlealt).'"').($moreatt?' '.$moreatt:'').'>';
|
||||||
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
|
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
|
||||||
$enabledisablehtml.= $titlealt;
|
$enabledisablehtml.= $titlealt;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user