mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-78806 admin: Display the most unique information in the title first
* Page titles should display the most unique information first. For admin pages it would be useful to display the information that is unique to the page first before the broader categories that the page belongs to. * Also use the new page title separator constant.
This commit is contained in:
parent
49393a1608
commit
d7cae15e57
@ -131,8 +131,7 @@ if ($savebutton) {
|
||||
$outputhtml .= html_writer::end_tag('div');
|
||||
}
|
||||
|
||||
$visiblepathtosection = array_reverse($settingspage->visiblepath);
|
||||
$PAGE->set_title(implode(": ",$visiblepathtosection));
|
||||
$PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, $settingspage->visiblepath));
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
if ($buttons) {
|
||||
$PAGE->set_button($buttons);
|
||||
|
@ -129,9 +129,7 @@ if (empty($SITE->fullname)) {
|
||||
$PAGE->set_button($buttons);
|
||||
}
|
||||
|
||||
$visiblepathtosection = array_reverse($settingspage->visiblepath);
|
||||
|
||||
$PAGE->set_title(implode(": ",$visiblepathtosection));
|
||||
$PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, $settingspage->visiblepath));
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
|
@ -8817,8 +8817,6 @@ function admin_externalpage_setup($section, $extrabutton = '', array $extraurlpa
|
||||
$USER->editing = $adminediting;
|
||||
}
|
||||
|
||||
$visiblepathtosection = array_reverse($extpage->visiblepath);
|
||||
|
||||
if ($PAGE->user_allowed_editing() && !$PAGE->theme->haseditswitch) {
|
||||
if ($PAGE->user_is_editing()) {
|
||||
$caption = get_string('blockseditoff');
|
||||
@ -8830,7 +8828,7 @@ function admin_externalpage_setup($section, $extrabutton = '', array $extraurlpa
|
||||
$PAGE->set_button($OUTPUT->single_button($url, $caption, 'get'));
|
||||
}
|
||||
|
||||
$PAGE->set_title(implode(": ", $visiblepathtosection));
|
||||
$PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, $extpage->visiblepath));
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
|
||||
if ($hassiteconfig && empty($options['nosearch'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user