bmbrands / theme_bootstrap

A Moodle theme based on the Bootstrap CSS framework
113 stars 112 forks source link

(Re-)Add language menu from 3.1beta bootstrapbase #417

Closed OdyX closed 8 years ago

OdyX commented 8 years ago

On Moodle 3.1beta; without this, theme/bootstrap displays no language menu at all.

This is arguably duplicated code, but it is needed as long as core doesn't have a generic way to create it.

gjb2048 commented 8 years ago

Within the core renderer you don't need the $PAGE global but instead can use:

$this->page->layout_options['langmenu']

etc.

OdyX commented 8 years ago

Ah yeah, nice. Changed that.

bmbrands commented 8 years ago

Thanks again Didier. It works perfectly. I was just wondering where the language menu should actually show. Currently it shows only when 'langmenu' => true is configured in the layouts in config.php. So only on layouts login, course and mydashboard.

I am guessing it should be shown on the frontpage too.