Clean theme (M2.7) with messages in navbar

Clean theme (M2.7) with messages in navbar

by Hartmut Scherer -
Number of replies: 2

Hi all,

In my local installation of Moodle 2.7beta (Build: 20140411), I wanted to add messages in the navbar. I used a part of the code from Bootstrap, a parent theme of Shoehorn - thank you Gareth for providing the code. This is how it looks now:

Clean theme (M2.7) with message in navbar

At the moment I am content with messages next to the custom menu and not to the login details. I added a zip-file that contains the new core_renderer in Bootstrapbase\renderers of Moodle 2.7dev with the code for messages at the top. The highlighted code in the attached PDF-file shows the lines which I copied and pasted from Bootstrap. I just wanted to share this with the Moodle community in case someone else is interested to use the Clean theme with this minor modification.

With kind regards,
Hartmut

Average of ratings: Useful (1)
In reply to Hartmut Scherer

Re: Clean theme (M2.7) with messages in navbar (updated code)

by Hartmut Scherer -

Hi all,

Gareth Barnard provided the code for the message count here: https://github.com/moodleman/moodle-theme_elegance/pull/72/files. Scroll down to renderers/core_renderer.php. 

If you use the theme Clean, go to Bootstrapbase/renderers and use the code from GitHub to update the file core_renderer.php in your installation.

With kind regards,

Hartmut

Average of ratings: Useful (1)