This is related to $plugin->release = '3.3.1.4 (Build: 2017040308)';
If a user is not logged in or logged in as student, a cog icon menu near top right appears which does not has any items in it and should not be there. The same menu is populated with context sensitive items when logged in as admin / manager / teacher. It appears that the same should not appear for non-logged in users and students etc.
To correct the issue, I changed following line in context_header_settings_menu() method in /theme/essential/classes/output/core_renderer.php file:
if ((($showfrontpagemenu) || ($showcoursemenu) || ($showusermenu))) {
return $this->render_navbar_action_menu($menu, $title);
} else {
return '';
}
To:
if ((($showfrontpagemenu) || ($showcoursemenu) || ($showusermenu))
&& $menu->is_empty() != 1) {
return $this->render_navbar_action_menu($menu, $title);
} else {
return '';
}
Please look into the issue and update if the solutions is correct?
Warm regards,
Mahtab Hussain
May you live in peace!
This is related to $plugin->release = '3.3.1.4 (Build: 2017040308)'; If a user is not logged in or logged in as student, a cog icon menu near top right appears which does not has any items in it and should not be there. The same menu is populated with context sensitive items when logged in as admin / manager / teacher. It appears that the same should not appear for non-logged in users and students etc.
To correct the issue, I changed following line in context_header_settings_menu() method in /theme/essential/classes/output/core_renderer.php file: if ((($showfrontpagemenu) || ($showcoursemenu) || ($showusermenu))) { return $this->render_navbar_action_menu($menu, $title); } else { return ''; } To: if ((($showfrontpagemenu) || ($showcoursemenu) || ($showusermenu)) && $menu->is_empty() != 1) { return $this->render_navbar_action_menu($menu, $title); } else { return ''; }
Please look into the issue and update if the solutions is correct? Warm regards, Mahtab Hussain