- corrected layout in tag\index.php

This commit is contained in:
luizlaydner 2007-08-08 03:11:52 +00:00
parent 0658afc9a1
commit 9f7882159b
3 changed files with 9 additions and 13 deletions

View File

@ -47,9 +47,9 @@ $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="left-column">';
if(blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $PAGE->user_is_editing()) {
if (!empty($THEME->customcorners)) print_custom_corners_start();
// if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_LEFT);
if (!empty($THEME->customcorners)) print_custom_corners_end();
// if (!empty($THEME->customcorners)) print_custom_corners_end();
}
echo '</td>';
@ -59,7 +59,7 @@ echo '</td>';
echo '<td valign="top" id="middle-column">';
if (!empty($THEME->customcorners)) print_custom_corners_start(TRUE);
//if (!empty($THEME->customcorners)) print_custom_corners_start(TRUE);
$tagname = tag_display_name($tag);
@ -89,7 +89,7 @@ if ($usercount > 0) {
}
if (!empty($THEME->customcorners)) print_custom_corners_end();
//if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '</td>';
@ -100,9 +100,9 @@ $blocks_preferred_width = bounded_number(180, blocks_preferred_width($pageblocks
echo '<td style="vertical-align: top; width: '.$blocks_preferred_width.'px;" id="right-column">';
if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $PAGE->user_is_editing()) {
if (!empty($THEME->customcorners)) print_custom_corners_start();
// if (!empty($THEME->customcorners)) print_custom_corners_start();
blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
if (!empty($THEME->customcorners)) print_custom_corners_end();
// if (!empty($THEME->customcorners)) print_custom_corners_end();
}
echo '</td>';

View File

@ -698,7 +698,7 @@ function related_tags($tag_name_or_id, $limitnum=10) {
$tag_id = tag_id_from_string($tag_name_or_id);
//gets the manually added related tags
$manual_related_tags = get_item_tags('tag',$tag_id);
$manual_related_tags = get_item_tags('tag',$tag_id, 'id, name, rawname, tagtype, flag');
if ($manual_related_tags == false) $manual_related_tags = array();
//gets the correlated tags
@ -729,7 +729,7 @@ function correlated_tags($tag_name_or_id) {
$tags_id_csv_with_apos = stripcslashes($tag_correlation->correlatedtags);
return get_records_select('tag', "id IN ({$tags_id_csv_with_apos})", '', 'id, name, rawname, tagtype');
return get_records_select('tag', "id IN ({$tags_id_csv_with_apos})", '', 'id, name, rawname, tagtype, flag');
}
/**
@ -1087,7 +1087,7 @@ function tag_cron(){
}
}
/*-------------------- Printçing functions -------------------- */
/*-------------------- Printing functions -------------------- */
/**
* Prints a box that contains the management links of a tag

View File

@ -2,10 +2,6 @@
require_once($CFG->libdir.'/pagelib.php');
require_once('lib.php');
require_once($CFG->dirroot.'/lib/weblib.php');
if (!empty($THEME->customcorners)) {
require_once($CFG->dirroot.'/lib/custom_corners_lib.php');
}
define('PAGE_TAG_INDEX', 'tag-index');