From: moodler Date: Tue, 9 Sep 2003 08:37:48 +0000 (+0000) Subject: Use a shorter course search page on front page, for small screens X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e4027ac98208f062bc5751ae031f64fff4cbf406;p=moodle.git Use a shorter course search page on front page, for small screens --- 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\">";