Possible fix to MDL-12093 : give window without heading and navigation special css classes.

This commit is contained in:
scyrma 2007-11-29 07:20:13 +00:00
parent 1bdacf2706
commit 80f29a5947

View File

@ -2507,6 +2507,16 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
$pageclass .= ' drag';
}
/* give pages without heading or navigation special classes, to
* allow theming of very simple windows (popups and others) */
if ($heading == '') {
$pageclass .= ' noheader';
}
if ($navigation == '') {
$pageclass .= ' nonavigation';
}
$pageclass .= ' dir-'.get_string('thisdirection');
$pageclass .= ' lang-'.$currentlanguage;