diff --git a/mod/forum/lib.php b/mod/forum/lib.php
index ab9a5807d1d..d0522949fd1 100644
--- a/mod/forum/lib.php
+++ b/mod/forum/lib.php
@@ -3834,9 +3834,11 @@ function forum_print_mode_form($id, $mode, $forumtype='') {
global $OUTPUT;
if ($forumtype == 'single') {
$select = new single_select(new moodle_url("/mod/forum/view.php", array('f'=>$id)), 'mode', forum_get_layout_modes(), $mode, null, "mode");
+ $select->set_label(get_string('displaymode', 'forum'), array('class' => 'accesshide'));
$select->class = "forummode";
} else {
$select = new single_select(new moodle_url("/mod/forum/discuss.php", array('d'=>$id)), 'mode', forum_get_layout_modes(), $mode, null, "mode");
+ $select->set_label(get_string('displaymode', 'forum'), array('class' => 'accesshide'));
}
echo $OUTPUT->render($select);
}
diff --git a/mod/forum/search.php b/mod/forum/search.php
index ebbc99f7f81..328bf247ec7 100644
--- a/mod/forum/search.php
+++ b/mod/forum/search.php
@@ -343,10 +343,15 @@ function forum_print_big_search_form($course) {
}
echo ' ';
- $selectors = html_writer::select_time('days', 'fromday', $datefrom)
+ $selectors = html_writer::label(get_string('day'), 'menufromday', false, array('class' => 'accesshide'))
+ . html_writer::select_time('days', 'fromday', $datefrom)
+ . html_writer::label(get_string('month'), 'menufrommonth', false, array('class' => 'accesshide'))
. html_writer::select_time('months', 'frommonth', $datefrom)
+ . html_writer::label(get_string('year'), 'menufromyear', false, array('class' => 'accesshide'))
. html_writer::select_time('years', 'fromyear', $datefrom)
+ . html_writer::label(get_string('hour'), 'menufromhour', false, array('class' => 'accesshide'))
. html_writer::select_time('hours', 'fromhour', $datefrom)
+ . html_writer::label(get_string('minute'), 'menufromminute', false, array('class' => 'accesshide'))
. html_writer::select_time('minutes', 'fromminute', $datefrom);
echo $selectors;
echo '';
@@ -369,10 +374,15 @@ function forum_print_big_search_form($course) {
}
echo ' ';
- $selectors = html_writer::select_time('days', 'today', $dateto)
+ $selectors = html_writer::label(get_string('day'), 'menutoday', false, array('class' => 'accesshide'))
+ . html_writer::select_time('days', 'today', $dateto)
+ . html_writer::label(get_string('month'), 'menutomonth', false, array('class' => 'accesshide'))
. html_writer::select_time('months', 'tomonth', $dateto)
+ . html_writer::label(get_string('year'), 'menutoyear', false, array('class' => 'accesshide'))
. html_writer::select_time('years', 'toyear', $dateto)
+ . html_writer::label(get_string('hour'), 'menutohour', false, array('class' => 'accesshide'))
. html_writer::select_time('hours', 'tohour', $dateto)
+ . html_writer::label(get_string('minute'), 'menutominute', false, array('class' => 'accesshide'))
. html_writer::select_time('minutes', 'tominute', $dateto);
echo $selectors;