Load the modal overlay menu in adaptable theme using another link

Load the modal overlay menu in adaptable theme using another link

by Edmund Evangelista -
Number of replies: 4

I'm planning to hide the top navbar of my adaptable theme. However, I want to add a new link in the lower navbar that displays the modal overlay menu similar to what the Links menu is calling. How can I load the modal overlay menu using any other link?


Average of ratings: -
In reply to Edmund Evangelista

Re: Load the modal overlay menu in adaptable theme using another link

by Fernando Acedo -
Picture of Plugin developers Picture of Testers

This is not a link. It is a JS call. Not sure if it can added as a menu item but you can try.

The code is located here:

https://bitbucket.org/covuni/moodle-theme_adaptable/src/bf9cc2182330b801a481fa60e62803de31deae32/templates/overlaymenu.mustache?at=master&fileviewer=file-view-default

In reply to Fernando Acedo

Re: Load the modal overlay menu in adaptable theme using another link

by Manoj Solanki -

Should be possible. Look for the line echo $OUTPUT->get_top_menus(); in the theme file  /theme/adaptable/layout/includes/header.php. This line calls the core renderer function get_top_menus() that itself renders the mustache template Fernando is referring to above)

You should be able to take this line out of header.php (or comment it out), and then put it in the equivalent footer file here:  /theme/adaptable/layout/includes/footer.php


In reply to Manoj Solanki

Re: Load the modal overlay menu in adaptable theme using another link

by Edmund Evangelista -

Thanks Manoj. Yes I will try this suggestion.