mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-55074 theme_boost: Do not show flatnav by default before login
This commit is contained in:
parent
c9d6a04743
commit
a42a065a20
@ -26,7 +26,11 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
user_preference_allow_ajax_update('drawer-open-nav', PARAM_ALPHA);
|
||||
|
||||
$navdraweropen = (get_user_preferences('drawer-open-nav', 'true') == 'true');
|
||||
if (isloggedin()) {
|
||||
$navdraweropen = (get_user_preferences('drawer-open-nav', 'true') == 'true');
|
||||
} else {
|
||||
$navdraweropen = false;
|
||||
}
|
||||
$extraclasses = [];
|
||||
if ($navdraweropen) {
|
||||
$extraclasses[] = 'drawer-open-left';
|
||||
|
Loading…
x
Reference in New Issue
Block a user