mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
NEW: add const to not include default CSS in top_htmlhead with DISABLE_CSS_DEFAULT_THEME
This commit is contained in:
@@ -2036,22 +2036,24 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
|
||||
print '<link rel="stylesheet" type="text/css" href="'.DOL_URL_ROOT.$fontawesome_directory.'/css/all.min.css'.($ext ? '?'.$ext : '').'">'."\n";
|
||||
}
|
||||
|
||||
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
||||
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||
$themepath = dol_buildpath($conf->css, 1);
|
||||
$themesubdir = '';
|
||||
if (!empty($conf->modules_parts['theme'])) { // This slow down
|
||||
foreach ($conf->modules_parts['theme'] as $reldir) {
|
||||
if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
|
||||
$themepath = dol_buildpath($reldir.$conf->css, 1);
|
||||
$themesubdir = $reldir;
|
||||
break;
|
||||
if (!defined('DISABLE_CSS_DEFAULT_THEME')) {
|
||||
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
||||
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||
$themepath = dol_buildpath($conf->css, 1);
|
||||
$themesubdir = '';
|
||||
if (!empty($conf->modules_parts['theme'])) { // This slow down
|
||||
foreach ($conf->modules_parts['theme'] as $reldir) {
|
||||
if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
|
||||
$themepath = dol_buildpath($reldir.$conf->css, 1);
|
||||
$themesubdir = $reldir;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
print '<link rel="stylesheet" type="text/css" href="' . $themepath . $themeparam . '">' . "\n";
|
||||
}
|
||||
|
||||
//print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
|
||||
print '<link rel="stylesheet" type="text/css" href="'.$themepath.$themeparam.'">'."\n";
|
||||
if (getDolGlobalString('MAIN_FIX_FLASH_ON_CHROME')) {
|
||||
print '<!-- Includes CSS that does not exists as a workaround of flash bug of chrome -->'."\n".'<link rel="stylesheet" type="text/css" href="filethatdoesnotexiststosolvechromeflashbug">'."\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user