mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-30843_b' of git://github.com/rwijaya/moodle
This commit is contained in:
commit
5bfeb5ffd3
108 changed files with 390 additions and 216 deletions
|
@ -1653,6 +1653,7 @@ function calendar_print_month_selector($name, $selected) {
|
|||
for ($i=1; $i<=12; $i++) {
|
||||
$months[$i] = userdate(gmmktime(12, 0, 0, $i, 15, 2000), '%B');
|
||||
}
|
||||
echo html_writer::label(get_string('months'), 'menu'. $name, false, array('class' => 'accesshide'));
|
||||
echo html_writer::select($months, $name, $selected, false);
|
||||
}
|
||||
|
||||
|
|
|
@ -708,7 +708,9 @@ class core_calendar_renderer extends plugin_renderer_base {
|
|||
$select = new single_select(new moodle_url(CALENDAR_URL.'set.php', array('return' => base64_encode($returnurl->out(false)), 'var' => 'setcourse', 'sesskey'=>sesskey())), 'id', $courseoptions, $selected, null);
|
||||
$select->class = 'cal_courses_flt';
|
||||
if ($label !== null) {
|
||||
$select->label = $label;
|
||||
$select->set_label($label);
|
||||
} else {
|
||||
$select->set_label(get_accesshide(get_string('course')));
|
||||
}
|
||||
return $this->output->render($select);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue