moodle-an-hochschulen / moodle-theme_boost_union

Theme Boost Union is an enhanced child theme of Boost which is intended, on the one hand, to make Boost simply more configurable and, on the other hand, to provide helpful additional features for the daily Moodle operation of admins, teachers and students.
GNU General Public License v3.0
55 stars 49 forks source link

Child theme support: Avoid the reimplementation of unaddableblocks in child themes #549

Closed abias closed 5 months ago

abias commented 5 months ago

Currently, a child theme of Boost Union has to reimplement the unaddableblocks setting as Modle core's get_unaddable_by_theme_block_types() function in blocklib.php accesses this setting at $this->page->theme->settings->unaddableblocks.

It would be worthwhile to investigate if this code duplication could be avoided.

abias commented 5 months ago

I was able to realize this goal within the Boost Union Child boilerplate (which is currently being worked on) only. See https://github.com/moodle-an-hochschulen/moodle-theme_boost_union_child/commit/eaca73fde96340c5f04ad254b350a523091a0f92