mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Course category listings now have a search box in the navbar for students
and non-users
This commit is contained in:
parent
ee44a11f06
commit
98e9a035d7
2 changed files with 4 additions and 5 deletions
|
@ -27,13 +27,13 @@
|
|||
$USER->editing = false;
|
||||
}
|
||||
}
|
||||
$updatebutton = update_category_button($category->id);
|
||||
$navbaritem = update_category_button($category->id);
|
||||
|
||||
$creatorediting = !empty($USER->editing);
|
||||
$adminediting = (isadmin() and $creatorediting);
|
||||
|
||||
} else {
|
||||
$updatebutton = "";
|
||||
$navbaritem = print_course_search("", true, "navbar");
|
||||
$adminediting = false;
|
||||
}
|
||||
|
||||
|
@ -72,11 +72,11 @@
|
|||
"", "", true, $updatebutton);
|
||||
} else {
|
||||
print_header("$site->shortname: $category->name", "$site->fullname",
|
||||
"<a href=\"index.php\">$strcourses</a> -> $category->name", "", "", true, $updatebutton);
|
||||
"<a href=\"index.php\">$strcourses</a> -> $category->name", "", "", true, $navbaritem);
|
||||
}
|
||||
} else {
|
||||
print_header("$site->shortname: $category->name", "$site->fullname",
|
||||
"<a href=\"index.php\">$strcourses</a> -> $category->name", "", "", true, $updatebutton);
|
||||
"<a href=\"index.php\">$strcourses</a> -> $category->name", "", "", true, $navbaritem);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue