Skip to content

Commit

Permalink
Improvement: Add link to policyoverviewnavigation setting, resolves #732
Browse files Browse the repository at this point in the history
.
  • Loading branch information
abias committed Oct 21, 2024
1 parent b9fa4ca commit 5d37b40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2024-10-21 - Improvement: Add link to policyoverviewnavigation setting, resolves #732.
* 2024-10-14 - Test: Change tests/fixtures/*.jpg to tests/fixtures/*.png to prevent resizing issues with JPG images

### v4.4-r2
Expand Down
2 changes: 1 addition & 1 deletion lang/en/theme_boost_union.php
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@
$string['policyheading'] = 'Policies';
// ... ... Setting: Navigation on policy overview page.
$string['policyoverviewnavigationsetting'] = 'Show navigation on policy overview page';
$string['policyoverviewnavigationsetting_desc'] = 'By default, the policy overview page (provided by tool_policy) does not show a navigation menu or footer. With this setting, you can show the primary navigation and footer on that page.';
$string['policyoverviewnavigationsetting_desc'] = 'By default, the <a href="{$a->url}">policy overview page (provided by tool_policy)</a> does not show a navigation menu or footer. With this setting, you can show the primary navigation and footer on that page.';

// Settings: Links tab.
$string['linkstab'] = 'Links';
Expand Down
3 changes: 2 additions & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,8 @@
// Setting: Navigation on policy overview page.
$name = 'theme_boost_union/policyoverviewnavigation';
$title = get_string('policyoverviewnavigationsetting', 'theme_boost_union', null, true);
$description = get_string('policyoverviewnavigationsetting_desc', 'theme_boost_union', null, true);
$policyoverviewurl = new moodle_url('/admin/tool/policy/viewall.php');
$description = get_string('policyoverviewnavigationsetting_desc', 'theme_boost_union', ['url' => $policyoverviewurl], true);
$setting = new admin_setting_configselect($name, $title, $description, THEME_BOOST_UNION_SETTING_SELECT_NO, $yesnooption);
$tab->add($setting);

Expand Down

0 comments on commit 5d37b40

Please sign in to comment.