From: urs_hunkler Date: Wed, 10 Jan 2007 14:10:45 +0000 (+0000) Subject: 'added the body class notloggedin to be able to style pages different before loggin' X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=367e23c2136b488832ec998544bc80b6d320e7cb;p=moodle.git 'added the body class notloggedin to be able to style pages different before loggin' --- diff --git a/lib/weblib.php b/lib/weblib.php index 83c664a5c5..2fe3cfd01c 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'; }