diff --git a/CHANGES.md b/CHANGES.md index 0b0b750aafb59a7c4944babc147e4b73cf96a621..13ede38428d8518703d0e46dd39da25030e0fb81 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes ### Unreleased +* 2020-10-05 - Fixed bug that setting addablockposition was not applied to Boost Campus Child. * 2020-09-24 - Fixed bug that theme Boost Campus Child did not show the favicon set in parent theme Boost Campus. * 2020-06-09 - Improved SCSS settings to be used with admin_setting_scsscode that validates the code before saving. diff --git a/config.php b/config.php index caa754c92e982134d7a8bebc9e5e56c3d3ea5911..58f3b9af4f643c21d855b1317da3437a69515d03 100644 --- a/config.php +++ b/config.php @@ -36,4 +36,18 @@ $THEME->prescsscallback = 'theme_boost_campus_child_get_pre_scss'; $THEME->yuicssmodules = array(); $THEME->rendererfactory = 'theme_overridden_renderer_factory'; $THEME->requiredblocks = ' '; -$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_DEFAULT; + +// MODIFICATION START: +// Apply the setting from parent theme Boost Campus to define where the +// add a block widget is placed. + +// Get the config from parent theme boost_campus. +if (get_config('theme_boost_campus', 'addablockposition') == 'positionnavdrawer') { + $THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV; +} else { + $THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_DEFAULT; +} +// MODIFCATION END. +/* ORIGINAL START. +THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_DEFAULT; +ORIGINAL END. */