From 367e23c2136b488832ec998544bc80b6d320e7cb Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Wed, 10 Jan 2007 14:10:45 +0000 Subject: [PATCH] 'added the body class notloggedin to be able to style pages different before loggin' --- lib/weblib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index 83c664a5c56..2fe3cfd01cb 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2199,6 +2199,10 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $pageclass .= ' course-'.SITEID; } + if (!isloggedin()) { + $pageclass .= ' notloggedin'; + } + if (!empty($USER->editing)) { $pageclass .= ' editing'; }