Skip to content

Commit 9b5cf01

Browse files
committed
Move the footer regions settings into a dedicated settings section
1 parent fde65d4 commit 9b5cf01

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
@@ -708,6 +708,9 @@
708708
// ... ... Setting: Block region width for Outside (bottom) region.
709709
$string['blockregionoutsidebottomwidth'] = 'Block region width for \'Outside (bottom)\' region';
710710
$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.';
711+
// ... Section: Footer regions.
712+
$string['footerregionsheading'] = 'Footer regions';
713+
$string['footerregionsheading_desc'] = 'Footer regions can not only be enabled with the layout settings above, their appearance can also be customized.';
711714
// ... ... Setting: Block region width for Footer region.
712715
$string['blockregionfooterwidth'] = 'Block region width for \'Footer\' region';
713716
$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
@@ -2475,19 +2475,6 @@
24752475
);
24762476
$tab->add($setting);
24772477

2478-
// Setting: Block region width for Footer region.
2479-
$name = 'theme_boost_union/blockregionfooterwidth';
2480-
$title = get_string('blockregionfooterwidth', 'theme_boost_union', null, true);
2481-
$description = get_string('blockregionfooterwidth_desc', 'theme_boost_union', null, true);
2482-
$setting = new admin_setting_configselect(
2483-
$name,
2484-
$title,
2485-
$description,
2486-
THEME_BOOST_UNION_SETTING_OUTSIDEREGIONSWITH_FULLWIDTH,
2487-
$outsideregionswidthoptions
2488-
);
2489-
$tab->add($setting);
2490-
24912478
// Setting: Outside regions horizontal placement.
24922479
$outsideregionsplacementoptions = [
24932480
// Don't use string lazy loading (= false) because the string will be directly used and would produce a
@@ -2508,6 +2495,26 @@
25082495
);
25092496
$tab->add($setting);
25102497

2498+
// Create footer regions heading.
2499+
$name = 'theme_boost_union/footerregionsheading';
2500+
$title = get_string('footerregionsheading', 'theme_boost_union', null, true);
2501+
$description = get_string('footerregionsheading_desc', 'theme_boost_union', null, true);
2502+
$setting = new admin_setting_heading($name, $title, $description);
2503+
$tab->add($setting);
2504+
2505+
// Setting: Block region width for Footer region.
2506+
$name = 'theme_boost_union/blockregionfooterwidth';
2507+
$title = get_string('blockregionfooterwidth', 'theme_boost_union', null, true);
2508+
$description = get_string('blockregionfooterwidth_desc', 'theme_boost_union', null, true);
2509+
$setting = new admin_setting_configselect(
2510+
$name,
2511+
$title,
2512+
$description,
2513+
THEME_BOOST_UNION_SETTING_OUTSIDEREGIONSWITH_FULLWIDTH,
2514+
$outsideregionswidthoptions
2515+
);
2516+
$tab->add($setting);
2517+
25112518
// Create site home right-hand blocks drawer behaviour heading.
25122519
$name = 'theme_boost_union/sitehomerighthandblockdrawerbehaviour';
25132520
$title = get_string('sitehomerighthandblockdrawerbehaviour', 'theme_boost_union', null, true);

0 commit comments

Comments
 (0)