mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-21119 lang menu and login info now handled by themes
This commit is contained in:
parent
684b988c94
commit
244a32c617
26 changed files with 155 additions and 187 deletions
13
my/index.php
13
my/index.php
|
@ -44,23 +44,10 @@
|
|||
|
||||
$header = $SITE->shortname . ': ' . $strmymoodle;
|
||||
$PAGE->navbar->add($strmymoodle);
|
||||
$loggedinas = user_login_string();
|
||||
|
||||
if (empty($CFG->langmenu)) {
|
||||
$langmenu = '';
|
||||
} else {
|
||||
$currlang = current_language();
|
||||
$langs = get_list_of_languages();
|
||||
$select = html_select::make_popup_form($CFG->wwwroot .'/my/index.php', 'lang', $langs, 'chooselang', $currlang);
|
||||
$select->nothinglabel = false;
|
||||
$select->set_label(get_accesshide(get_string('language')));
|
||||
$langmenu = $OUTPUT->select($select);
|
||||
}
|
||||
|
||||
$PAGE->set_title($strmymoodle);
|
||||
$PAGE->set_heading($header);
|
||||
$PAGE->set_button($button);
|
||||
$PAGE->set_headingmenu($loggedinas . $langmenu);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
/// The main overview in the middle of the page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue