mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Print better loggedin info at the top of the page
This commit is contained in:
parent
8df45f47bd
commit
02e44e7cf4
2 changed files with 10 additions and 4 deletions
|
@ -19,13 +19,15 @@
|
||||||
|
|
||||||
add_to_log($course->id, "user", "view all", "index.php?id=$course->id", "");
|
add_to_log($course->id, "user", "view all", "index.php?id=$course->id", "");
|
||||||
|
|
||||||
|
$loggedinas = "<p class=\"logininfo\">".user_login_string($course, $USER)."</p>";
|
||||||
|
|
||||||
if ($course->category) {
|
if ($course->category) {
|
||||||
print_header("$course->shortname: ".get_string("participants"), "$course->fullname",
|
print_header("$course->shortname: ".get_string("participants"), "$course->fullname",
|
||||||
"<A HREF=../course/view.php?id=$course->id>$course->shortname</A> -> ".
|
"<A HREF=../course/view.php?id=$course->id>$course->shortname</A> -> ".
|
||||||
get_string("participants"), "");
|
get_string("participants"), "", "", true, " ", $loggedinas);
|
||||||
} else {
|
} else {
|
||||||
print_header("$course->shortname: ".get_string("participants"), "$course->fullname",
|
print_header("$course->shortname: ".get_string("participants"), "$course->fullname",
|
||||||
get_string("participants"), "");
|
get_string("participants"), "", "", true, " ", $loggedinas);
|
||||||
}
|
}
|
||||||
|
|
||||||
$string->email = get_string("email");
|
$string->email = get_string("email");
|
||||||
|
|
|
@ -29,12 +29,16 @@
|
||||||
$personalprofile = get_string("personalprofile");
|
$personalprofile = get_string("personalprofile");
|
||||||
$participants = get_string("participants");
|
$participants = get_string("participants");
|
||||||
|
|
||||||
|
$loggedinas = "<p class=\"logininfo\">".user_login_string($course, $USER)."</p>";
|
||||||
|
|
||||||
if ($course->category) {
|
if ($course->category) {
|
||||||
print_header("$personalprofile: $fullname", "$personalprofile: $fullname",
|
print_header("$personalprofile: $fullname", "$personalprofile: $fullname",
|
||||||
"<A HREF=\"../course/view.php?id=$course->id\">$course->shortname</A> ->
|
"<A HREF=\"../course/view.php?id=$course->id\">$course->shortname</A> ->
|
||||||
<A HREF=\"index.php?id=$course->id\">$participants</A> -> $fullname", "");
|
<A HREF=\"index.php?id=$course->id\">$participants</A> -> $fullname",
|
||||||
|
"", "", true, " ", $loggedinas);
|
||||||
} else {
|
} else {
|
||||||
print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname", "$fullname", "");
|
print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname",
|
||||||
|
"$fullname", "", "", true, " ", $loggedinas);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($course->category and ! isguest() ) {
|
if ($course->category and ! isguest() ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue