MDL-73848 administration: Fix the breadcrumbs and nav highlights
Create or update the breadcrumbs in the site administration pages where it is required. Highlight the corresponding site adminstration tab. Highlight the primary nav to Site administration when user is navigating to any of the site administration pages. Also changed the boostnavbar so that the nodes in the secondary navigation are not shown in the breadcrumbs when user is in site administration page.
This commit is contained in:
committed by
Jun Pataleta
parent
34ce1463cc
commit
aa1c2e2382
Vendored
+4
@@ -48,6 +48,9 @@ $notifications = array();
|
||||
// Empty array to hold any form information returned from actions.
|
||||
$forminfo = [];
|
||||
|
||||
$PAGE->set_primary_active_tab('siteadminnode');
|
||||
$PAGE->navbar->add(get_string('cacheconfig', 'cache'), new moodle_url('/cache/admin.php'));
|
||||
|
||||
// Handle page actions in admin helper class.
|
||||
if (!empty($action) && confirm_sesskey()) {
|
||||
$forminfo = $adminhelper->perform_cache_actions($action, $forminfo);
|
||||
@@ -65,6 +68,7 @@ $title = array_key_exists('title', $forminfo) ? $forminfo['title'] : new lang_st
|
||||
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
|
||||
/** @var \core_cache\output\renderer $renderer */
|
||||
$renderer = $PAGE->get_renderer('core_cache');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user