Skip to content

Commit 3bbeb65

Browse files
committed
Move the footer regions settings into a dedicated settings section
1 parent a5eccea commit 3bbeb65

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

lang/en/theme_boost_union.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,9 @@
694694
// ... ... Setting: Block region width for Outside (bottom) region.
695695
$string['blockregionoutsidebottomwidth'] = 'Block region width for \'Outside (bottom)\' region';
696696
$string['blockregionoutsidebottomwidth_desc'] = 'With this setting, you can set the width of the \'Outside (bottom)\' block region which is shown below the main content. You can choose between full width, course content width and hero width.';
697+
// ... Section: Footer regions.
698+
$string['footerregionsheading'] = 'Footer regions';
699+
$string['footerregionsheading_desc'] = 'Footer regions can not only be enabled with the layout settings above, their appearance can also be customized.';
697700
// ... ... Setting: Block region width for Footer region.
698701
$string['blockregionfooterwidth'] = 'Block region width for \'Footer\' region';
699702
$string['blockregionfooterwidth_desc'] = 'With this setting, you can set the width of the \'Footer\' block region. You can choose between full width, course content width and hero width.';

settings.php

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,19 +2446,6 @@
24462446
);
24472447
$tab->add($setting);
24482448

2449-
// Setting: Block region width for Footer region.
2450-
$name = 'theme_boost_union/blockregionfooterwidth';
2451-
$title = get_string('blockregionfooterwidth', 'theme_boost_union', null, true);
2452-
$description = get_string('blockregionfooterwidth_desc', 'theme_boost_union', null, true);
2453-
$setting = new admin_setting_configselect(
2454-
$name,
2455-
$title,
2456-
$description,
2457-
THEME_BOOST_UNION_SETTING_OUTSIDEREGIONSWITH_FULLWIDTH,
2458-
$outsideregionswidthoptions
2459-
);
2460-
$tab->add($setting);
2461-
24622449
// Setting: Outside regions horizontal placement.
24632450
$outsideregionsplacementoptions = [
24642451
// Don't use string lazy loading (= false) because the string will be directly used and would produce a
@@ -2497,6 +2484,26 @@
24972484
);
24982485
$tab->add($setting);
24992486

2487+
// Create footer regions heading.
2488+
$name = 'theme_boost_union/footerregionsheading';
2489+
$title = get_string('footerregionsheading', 'theme_boost_union', null, true);
2490+
$description = get_string('footerregionsheading_desc', 'theme_boost_union', null, true);
2491+
$setting = new admin_setting_heading($name, $title, $description);
2492+
$tab->add($setting);
2493+
2494+
// Setting: Block region width for Footer region.
2495+
$name = 'theme_boost_union/blockregionfooterwidth';
2496+
$title = get_string('blockregionfooterwidth', 'theme_boost_union', null, true);
2497+
$description = get_string('blockregionfooterwidth_desc', 'theme_boost_union', null, true);
2498+
$setting = new admin_setting_configselect(
2499+
$name,
2500+
$title,
2501+
$description,
2502+
THEME_BOOST_UNION_SETTING_OUTSIDEREGIONSWITH_FULLWIDTH,
2503+
$outsideregionswidthoptions
2504+
);
2505+
$tab->add($setting);
2506+
25002507
// Create site home right-hand blocks drawer behaviour heading.
25012508
$name = 'theme_boost_union/sitehomerighthandblockdrawerbehaviour';
25022509
$title = get_string('sitehomerighthandblockdrawerbehaviour', 'theme_boost_union', null, true);

0 commit comments

Comments
 (0)