Skip to content

Commit

Permalink
Reverting MDL-12974 and MDL-12941 (Urs simple wrapper changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Jan 16, 2008
1 parent f0067a7 commit 353a896
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
21 changes: 7 additions & 14 deletions tag/index.php
Expand Up @@ -36,18 +36,16 @@
$PAGE->print_header();


echo '<table id="layout-table" summary="layout">';
echo '<tr>';
echo '<table border="0" cellpadding="3" cellspacing="0" width="100%" id="layout-table">';
echo '<tr valign="top">';

//----------------- 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="width: '.$blocks_preferred_width.'px;" id="left-column">';
print_container_start();
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="left-column">';
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
print_container_end();
echo '</td>';
}

Expand All @@ -57,8 +55,6 @@

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);
Expand All @@ -78,7 +74,7 @@
if ($usercount > 0) {

//user table box
print_simplewrapper_start('clearfix generalbox', 'tag-user-table');
print_box_start('generalbox', 'tag-user-table');

$heading = get_string('userstaggedwith', 'tag', $tagname) . ': ' . $usercount;
print_heading($heading, '', 3);
Expand All @@ -89,7 +85,7 @@

print_tagged_users_table($tag, $userpage * $perpage, $perpage);

print_simplewrapper_end();
print_box_end();

}

Expand Down Expand Up @@ -127,12 +123,11 @@
}
echo '</ul>';

echo '<p class="moreblogs"><a href="'.$CFG->wwwroot.'/blog/index.php?filtertype=site&amp;filterselect=0&amp;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>';

Expand All @@ -142,10 +137,8 @@
$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="width: '.$blocks_preferred_width.'px;" id="right-column">';
print_container_start();
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="right-column">';
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
print_container_end();
echo '</td>';
}

Expand Down
12 changes: 6 additions & 6 deletions tag/lib.php
Expand Up @@ -1158,7 +1158,7 @@ function print_tag_management_box($tag_object, $return=false) {

if (!isguestuser()) {

$output .= print_simplewrapper_start('box','tag-management-box', true);
$output .= print_box_start('box','tag-management-box', true);

$systemcontext = get_context_instance(CONTEXT_SYSTEM);

Expand All @@ -1184,7 +1184,7 @@ function print_tag_management_box($tag_object, $return=false) {

$output .= implode(' | ', $links);

$output .= print_simplewrapper_end(true);
$output .= print_box_end(true);

}

Expand Down Expand Up @@ -1215,7 +1215,7 @@ function print_tag_description_box($tag_object, $return=false) {
$output = '';

if ($content) {
$output .= print_simplewrapper_start('generalbox', 'tag-description',true);
$output .= print_box_start('generalbox', 'tag-description',true);
}

if (!empty($tag_object->description)) {
Expand All @@ -1229,7 +1229,7 @@ function print_tag_description_box($tag_object, $return=false) {
}

if ($content) {
$output .= print_simplewrapper_end(true);
$output .= print_box_end(true);
}

if ($return) {
Expand Down Expand Up @@ -1315,7 +1315,7 @@ function print_user_box($user, $return=false) {

$output = '';

$output .= print_simplewrapper_start('user-box', 'user'.$user->id, true);
$output .= print_box_start('user-box', 'user'.$user->id, true);

$fullname = fullname($user);
$alt = '';
Expand All @@ -1342,7 +1342,7 @@ function print_user_box($user, $return=false) {

$output .= '<strong>' . $fullname . '</strong>';

$output .= print_simplewrapper_end(true);
$output .= print_box_end(true);

if ($return) {
return $output;
Expand Down

0 comments on commit 353a896

Please sign in to comment.