forked from Wavyzz/dolibarr
Fix: possibility to custom helpdoc image
This commit is contained in:
@@ -1705,7 +1705,7 @@ function img_picto_common($alt, $picto, $options='', $pictoisfullpath=0)
|
||||
global $conf;
|
||||
if (! preg_match('/(\.png|\.gif)$/i',$picto)) $picto.='.png';
|
||||
if ($pictoisfullpath) return '<img src="'.$picto.'" border="0" alt="'.dol_escape_htmltag($alt).'" title="'.dol_escape_htmltag($alt).'"'.($options?' '.$options:'').'>';
|
||||
if (! empty($conf->global->MAIN_MODULE_CAN_OVERWRITE_COMMONICONS) && file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/'.$picto)) return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/'.$picto.'" border="0" alt="'.dol_escape_htmltag($alt).'" title="'.dol_escape_htmltag($alt).'"'.($options?' '.$options:'').'>';
|
||||
if (! empty($conf->global->MAIN_MODULE_CAN_OVERWRITE_COMMONICONS) && file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/'.$picto)) return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/'.$picto.'" border="0" alt="'.dol_escape_htmltag($alt).'" title="'.dol_escape_htmltag($alt).'"'.($options?' '.$options:'').'>';
|
||||
return '<img src="'.DOL_URL_ROOT.'/theme/common/'.$picto.'" border="0" alt="'.dol_escape_htmltag($alt).'" title="'.dol_escape_htmltag($alt).'"'.($options?' '.$options:'').'>';
|
||||
}
|
||||
|
||||
|
||||
@@ -1446,7 +1446,7 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
|
||||
print '" href="';
|
||||
print sprintf($helpbaseurl,urlencode(html_entity_decode($helppage)));
|
||||
print '">';
|
||||
print img_picto('',DOL_URL_ROOT.'/theme/common/helpdoc.png','',1).' ';
|
||||
print img_picto('', 'helpdoc').' ';
|
||||
print $langs->trans($mode == 'wiki' ? 'OnlineHelp': 'Help');
|
||||
//if ($mode == 'wiki') print ' ('.dol_trunc(strtr($helppage,'_',' '),8).')';
|
||||
print '</a>';
|
||||
|
||||
|
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 693 B |
BIN
htdocs/theme/bureau2crea/img/helpdoc.png
Normal file
BIN
htdocs/theme/bureau2crea/img/helpdoc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 693 B |
BIN
htdocs/theme/cameleo/img/helpdoc.png
Normal file
BIN
htdocs/theme/cameleo/img/helpdoc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 693 B |
BIN
htdocs/theme/eldy/img/helpdoc.png
Normal file
BIN
htdocs/theme/eldy/img/helpdoc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 693 B |
Reference in New Issue
Block a user