mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-72930 navigation: Remove duplicated navigation boxes.
Some pages have settings that really aren't required anymore. These have been removed and a function has been aded so that other developers can turn off the navigation overflow if they want.
This commit is contained in:
parent
f56ecc27f9
commit
0a04ebde11
4 changed files with 31 additions and 28 deletions
|
@ -433,6 +433,11 @@ class secondary extends view {
|
|||
* @return url_select|null The overflow menu data.
|
||||
*/
|
||||
public function get_overflow_menu_data(): ?url_select {
|
||||
|
||||
if (!$this->page->get_navigation_overflow_state()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$activenode = $this->find_active_node();
|
||||
$incourseadmin = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue