mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Tidying up to make headings more consistent across boxes
This commit is contained in:
parent
2773ced471
commit
6cbf4bd4fc
@ -73,6 +73,9 @@ $usercount = count_items_tagged_with($tag->id,'user');
|
||||
|
||||
if ($usercount > 0) {
|
||||
|
||||
//user table box
|
||||
print_box_start('generalbox', 'tag-user-table');
|
||||
|
||||
$heading = get_string('userstaggedwith', 'tag', $tagname) . ': ' . $usercount;
|
||||
print_heading($heading, '', 3);
|
||||
|
||||
@ -82,6 +85,8 @@ if ($usercount > 0) {
|
||||
|
||||
print_tagged_users_table($tag, $userpage * $perpage, $perpage);
|
||||
|
||||
print_box_end();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
10
tag/lib.php
10
tag/lib.php
@ -1303,15 +1303,7 @@ function print_tagged_users_table($tag_object, $limitfrom='' , $limitnum='', $re
|
||||
$limitfrom,
|
||||
$limitnum) );
|
||||
|
||||
$output = '';
|
||||
|
||||
//user table box
|
||||
$output .= print_box_start('generalbox', 'tag-user-table', true);
|
||||
|
||||
$output .= print_user_list($userlist, true);
|
||||
|
||||
$output .= print_box_end(true);
|
||||
//end table box
|
||||
$output = print_user_list($userlist, true);
|
||||
|
||||
if ($return) {
|
||||
return $output;
|
||||
|
Loading…
x
Reference in New Issue
Block a user