From 80f29a59473e90c795c975193f87bbc0c1482f4e Mon Sep 17 00:00:00 2001 From: scyrma Date: Thu, 29 Nov 2007 07:20:13 +0000 Subject: [PATCH] Possible fix to MDL-12093 : give window without heading and navigation special css classes. --- lib/weblib.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index 9a0511dd37c..021b9d2ab8e 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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;