]> git.mjollnir.org Git - moodle.git/commitdiff
'added the body class notloggedin to be able to style pages different before loggin'
authorurs_hunkler <urs_hunkler>
Wed, 10 Jan 2007 14:10:45 +0000 (14:10 +0000)
committerurs_hunkler <urs_hunkler>
Wed, 10 Jan 2007 14:10:45 +0000 (14:10 +0000)
lib/weblib.php

index 83c664a5c5698914163f816d45e226725e264ab4..2fe3cfd01cb85dbb95985071c0e4bf948557c363 100644 (file)
@@ -2199,6 +2199,10 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
         $pageclass .= ' course-'.SITEID;
     }
 
+    if (!isloggedin()) {
+        $pageclass .= ' notloggedin';
+    }
+
     if (!empty($USER->editing)) {
         $pageclass .= ' editing';
     }