Feature Update #19678
This commit is contained in:
parent
cdd405d7cf
commit
5dd0aa0549
@ -1745,6 +1745,14 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//If you want to load custom javascript file from your selected theme directory
|
||||||
|
if (!empty($conf->global->ALLOW_THEME_JS)) {
|
||||||
|
$theme_js = dol_buildpath('/theme/'.$conf->theme.'/'.$conf->theme.'.js', 0);
|
||||||
|
if (file_exists($theme_js)) {
|
||||||
|
print '<script src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/'.$conf->theme.'.js'.($ext ? '?'.$ext : '').'"></script>'."\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($head)) {
|
if (!empty($head)) {
|
||||||
print $head."\n";
|
print $head."\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user