mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Possible fix to MDL-12093 : give window without heading and navigation special css classes.
This commit is contained in:
parent
1bdacf2706
commit
80f29a5947
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user