Skip to content

Commit

Permalink
Better align config.php with theme_boost
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Sep 22, 2023
1 parent 5fd27ad commit 659f52c
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,12 @@
$THEME->name = 'boost_union';
$THEME->sheets = [];
$THEME->editor_sheets = [];
// Note: $THEME->editor_scss is not needed. See #242 for the explanation.
$THEME->usefallback = true;
$THEME->scss = function($theme) {
return theme_boost_union_get_main_scss_content($theme);
};

// The $THEME->layouts setting is not duplicated here as they are properly inherited from theme_boost.

$THEME->parents = ['boost'];
$THEME->enable_dock = false;
$THEME->extrascsscallback = 'theme_boost_union_get_extra_scss';
$THEME->prescsscallback = 'theme_boost_union_get_pre_scss';
$THEME->precompiledcsscallback = 'theme_boost_union_get_precompiled_css';
$THEME->yuicssmodules = array();
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->requiredblocks = '';
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
$THEME->iconsystem = \core\output\icon_system::FONTAWESOME;
$THEME->haseditswitch = true;
$THEME->usescourseindex = true;
$THEME->removedprimarynavitems = explode(',', get_config('theme_boost_union', 'hidenodesprimarynavigation'));
// By default, all boost theme do not need their titles displayed.
$THEME->activityheaderconfig = [
'notitle' => true
];

$THEME->layouts = [
// Most backwards compatible layout without the blocks.
'base' => array(
Expand Down Expand Up @@ -187,3 +168,21 @@
'defaultregion' => 'side-pre'
)
];

$THEME->parents = ['boost'];
$THEME->enable_dock = false;
$THEME->extrascsscallback = 'theme_boost_union_get_extra_scss';
$THEME->prescsscallback = 'theme_boost_union_get_pre_scss';
$THEME->precompiledcsscallback = 'theme_boost_union_get_precompiled_css';
$THEME->yuicssmodules = array();
$THEME->rendererfactory = 'theme_overridden_renderer_factory';
$THEME->requiredblocks = '';
$THEME->addblockposition = BLOCK_ADDBLOCK_POSITION_FLATNAV;
$THEME->iconsystem = \core\output\icon_system::FONTAWESOME;
$THEME->haseditswitch = true;
$THEME->usescourseindex = true;
$THEME->removedprimarynavitems = explode(',', get_config('theme_boost_union', 'hidenodesprimarynavigation'));
// By default, all boost theme do not need their titles displayed.
$THEME->activityheaderconfig = [
'notitle' => true
];

0 comments on commit 659f52c

Please sign in to comment.