Hi all,
Just want to share how to add a link to preferences in the user drop down menu at the top right of Shoehorn.
I added the following code in shoehorn\classes\core_renderer.php after line 562:
$preferencestext = get_string('preferences');
if ($this->fontawesome) {
$preferences = html_writer::tag('i', '', array('class' => 'fa fa-key'));
} else {
$preferences = html_writer::tag('span', '', array('class' => 'glyphicon glyphicon-cog'));
}
$preferences .= html_writer::tag('span', $preferencestext);
$usermenu->add(
$preferences,
new moodle_url('/user/preferences.php', array('id' => $USER->id)),
$preferencestext
);
In a test site it looks like this:
With kind regards,
Hartmut