Tidying up to make headings more consistent across boxes
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user