mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 01:44:27 +02:00
Changes to improve group images
This commit is contained in:
parent
f2c80965f5
commit
a08b9fe9d4
@ -61,14 +61,14 @@
|
||||
if ($USER->groupediting) { // Make an editing form for group information
|
||||
print_heading($group->name);
|
||||
echo '<div align="center">';
|
||||
print_group_picture($group->id, $course->id, $group->picture, true, false, false);
|
||||
print_group_picture($group, $course->id, true, false, false);
|
||||
echo '</div>';
|
||||
print_simple_box($group->description, 'center', '50%');
|
||||
|
||||
} else { // Just display the information
|
||||
print_heading($group->name);
|
||||
echo '<div align="center">';
|
||||
print_group_picture($group->id, $course->id, $group->picture, true, false, false);
|
||||
print_group_picture($group, $course->id, true, false, false);
|
||||
echo '</div>';
|
||||
print_simple_box($group->description, 'center', '50%');
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<table align="center" class="generalbox">
|
||||
<tr>
|
||||
<td valign="top"><?php echo $t->picture ?></td>
|
||||
<td valign="top" width="100"><?php echo $t->picture ?></td>
|
||||
<td><p style="font-size: larger"><?php echo $t->name ?></p>
|
||||
<p><?php echo $t->description ?></p>
|
||||
<p><ul><?php
|
||||
|
@ -55,7 +55,7 @@
|
||||
$isteacher = isteacher($course->id);
|
||||
foreach ($groups as $group) {
|
||||
$t = $group;
|
||||
$t->picture = print_group_picture($group->id, $course->id, $group->picture, true, true, true);
|
||||
$t->picture = print_group_picture($group, $course->id, true, true, true);
|
||||
if ($t->users = get_users_in_group($group->id)) {
|
||||
foreach ($t->users as $key => $user) {
|
||||
$t->users[$key]->fullname = fullname($user, $isteacher);
|
||||
|
Loading…
x
Reference in New Issue
Block a user