mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-12941 Added clear:none; to div.user-box css. Also fixed a couple of & with &
This commit is contained in:
parent
9e73868793
commit
f0067a7836
3 changed files with 21 additions and 13 deletions
|
@ -36,16 +36,18 @@ if (($edit != -1) and $PAGE->user_allowed_editing()) {
|
|||
$PAGE->print_header();
|
||||
|
||||
|
||||
echo '<table border="0" cellpadding="3" cellspacing="0" width="100%" id="layout-table">';
|
||||
echo '<tr valign="top">';
|
||||
echo '<table id="layout-table" summary="layout">';
|
||||
echo '<tr>';
|
||||
|
||||
//----------------- left column -----------------
|
||||
|
||||
$blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_LEFT]), 210);
|
||||
|
||||
if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) {
|
||||
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="left-column">';
|
||||
echo '<td style="width: '.$blocks_preferred_width.'px;" id="left-column">';
|
||||
print_container_start();
|
||||
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
|
||||
print_container_end();
|
||||
echo '</td>';
|
||||
}
|
||||
|
||||
|
@ -55,6 +57,8 @@ if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()
|
|||
|
||||
echo '<td valign="top" id="middle-column">';
|
||||
|
||||
print_container_start(true, 'middle-column-wrap');
|
||||
|
||||
$tagname = tag_display_name($tag);
|
||||
|
||||
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
|
||||
|
@ -74,7 +78,7 @@ $usercount = count_items_tagged_with($tag->id,'user');
|
|||
if ($usercount > 0) {
|
||||
|
||||
//user table box
|
||||
print_box_start('generalbox', 'tag-user-table');
|
||||
print_simplewrapper_start('clearfix generalbox', 'tag-user-table');
|
||||
|
||||
$heading = get_string('userstaggedwith', 'tag', $tagname) . ': ' . $usercount;
|
||||
print_heading($heading, '', 3);
|
||||
|
@ -85,7 +89,7 @@ if ($usercount > 0) {
|
|||
|
||||
print_tagged_users_table($tag, $userpage * $perpage, $perpage);
|
||||
|
||||
print_box_end();
|
||||
print_simplewrapper_end();
|
||||
|
||||
}
|
||||
|
||||
|
@ -123,11 +127,12 @@ if ($blogs = blog_fetch_entries('', 10, 0, 'site', '', $tag->id)) {
|
|||
}
|
||||
echo '</ul>';
|
||||
|
||||
echo '<p class="moreblogs"><a href="'.$CFG->wwwroot.'/blog/index.php?filtertype=site&filterselect=0&tagid='.$tag->id.'">'.get_string('seeallblogs', 'tag').'</a>...</p>';
|
||||
echo '<p class="moreblogs"><a href="'.$CFG->wwwroot.'/blog/index.php?filtertype=site&filterselect=0&tagid='.$tag->id.'">'.get_string('seeallblogs', 'tag').'</a>...</p>';
|
||||
|
||||
print_box_end();
|
||||
}
|
||||
|
||||
print_container_end();
|
||||
|
||||
echo '</td>';
|
||||
|
||||
|
@ -137,8 +142,10 @@ echo '</td>';
|
|||
$blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks[BLOCK_POS_RIGHT]), 210);
|
||||
|
||||
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing()) {
|
||||
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="right-column">';
|
||||
echo '<td style="width: '.$blocks_preferred_width.'px;" id="right-column">';
|
||||
print_container_start();
|
||||
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
|
||||
print_container_end();
|
||||
echo '</td>';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue