MDL-56769 boost: Change last link in settings menu

Was: "Course/Frontpage administration"
Now: "More..."
This commit is contained in:
Damyon Wiese 2016-11-10 15:18:28 +08:00
parent 258d07d37e
commit 6fe0b5bd9b
2 changed files with 3 additions and 2 deletions

View File

@ -1191,6 +1191,7 @@ $string['morehelp'] = 'More help';
$string['moreinfo'] = 'More info';
$string['moreinformation'] = 'More information about this error';
$string['moreprofileinfoneeded'] = 'Please tell us more about yourself';
$string['morenavigationlinks'] = 'More...';
$string['mostrecently'] = 'most recently';
$string['move'] = 'Move';
$string['movecoursemodule'] = 'Move resource';

View File

@ -558,7 +558,7 @@ class core_renderer extends \core_renderer {
// We only add a list to the full settings menu if we didn't include every node in the short menu.
if ($skipped) {
$text = get_string('frontpagesettings');
$text = get_string('morenavigationlinks');
$url = new moodle_url('/course/admin.php', array('courseid' => $this->page->course->id));
$link = new action_link($url, $text, null, null, new pix_icon('t/edit', $text));
$menu->add_secondary_action($link);
@ -572,7 +572,7 @@ class core_renderer extends \core_renderer {
// We only add a list to the full settings menu if we didn't include every node in the short menu.
if ($skipped) {
$text = get_string('courseadministration');
$text = get_string('morenavigationlinks');
$url = new moodle_url('/course/admin.php', array('courseid' => $this->page->course->id));
$link = new action_link($url, $text, null, null, new pix_icon('t/edit', $text));
$menu->add_secondary_action($link);