From e4027ac98208f062bc5751ae031f64fff4cbf406 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 9 Sep 2003 08:37:48 +0000 Subject: [PATCH] Use a shorter course search page on front page, for small screens --- course/lib.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/course/lib.php b/course/lib.php index 520d32e9bc..674d09983f 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1,4 +1,4 @@ -"; - print_course_search(); + print_course_search("", false, "short"); echo ""; print_single_button("$CFG->wwwroot/course/index.php", NULL, get_string("fulllistofcourses"), "get"); echo "\n"; @@ -1213,6 +1213,12 @@ function print_course_search($value="", $return=false, $format="plain") { $output .= ""; $output .= ""; $output .= "

"; + } else if ($format == "short") { + $output = "

"; + $output .= "

wwwroot/course/search.php\" method=\"get\">"; + $output .= ""; + $output .= ""; + $output .= "

"; } else if ($format == "navbar") { $output = "
"; $output .= "
wwwroot/course/search.php\" method=\"get\">"; -- 2.39.5