moodle-an-hochschulen / moodle-theme_boost_campus

Moodle 3.x Boost child theme which is intended to meet the needs of university campuses and adds several features and improvements ––– for Moodle 4.x please use our Theme Boost Union
GNU General Public License v3.0
38 stars 25 forks source link

Remove close button from notification banner #113

Closed abias closed 2 years ago

abias commented 2 years ago

On https://github.com/moodleuulm/moodle-theme_boost_campus/blob/master/lib.php#L228-L233, a notification banner is rendered.

Unfortunately, this notification banner has a close button which does not really make sense. But implementing the notification banner differently, the close button can be removed. See https://github.com/moodleuulm/moodle-local_profiletheme/blob/master/classes/profilefields.php#L220-L223 for a working example.

abias commented 2 years ago

I tried to implement this change, but was not successful. As the theme_boost_campus_infobanner_reset_visibility() function is called as a callback function when saving the Boost campus settings page, changing the way how the notification is built would output the notification during the redirect and not on the following page anymore.