Skip to content
Snippets Groups Projects
Commit 9d270d6a authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Fixed bug that setting addablockposition was not applied to Boost Campus Child.

parent f4327c23
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ Changes ...@@ -6,6 +6,7 @@ Changes
### Unreleased ### 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-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. * 2020-06-09 - Improved SCSS settings to be used with admin_setting_scsscode that validates the code before saving.
......
...@@ -36,4 +36,18 @@ $THEME->prescsscallback = 'theme_boost_campus_child_get_pre_scss'; ...@@ -36,4 +36,18 @@ $THEME->prescsscallback = 'theme_boost_campus_child_get_pre_scss';
$THEME->yuicssmodules = array(); $THEME->yuicssmodules = array();
$THEME->rendererfactory = 'theme_overridden_renderer_factory'; $THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->requiredblocks = ' '; $THEME->requiredblocks = ' ';
// 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; $THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_DEFAULT;
}
// MODIFCATION END.
/* ORIGINAL START.
THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_DEFAULT;
ORIGINAL END. */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment