Skip to content

Commit

Permalink
MDL-55074 theme_boost: Do not show flatnav by default before login
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Oct 21, 2016
1 parent c9d6a04 commit a42a065
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion theme/boost/layout/columns2.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@

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';
Expand Down

0 comments on commit a42a065

Please sign in to comment.