]> git.mjollnir.org Git - moodle.git/commitdiff
Possible fix to MDL-12093 : give window without heading and navigation special css...
authorscyrma <scyrma>
Thu, 29 Nov 2007 07:20:13 +0000 (07:20 +0000)
committerscyrma <scyrma>
Thu, 29 Nov 2007 07:20:13 +0000 (07:20 +0000)
lib/weblib.php

index 9a0511dd37ccd1958b54ae3c13687f9412e0cd77..021b9d2ab8e17f450ba74fca30a177e154a3ce80 100644 (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;