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>';
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);
}
-if (!empty($THEME->customcorners)) print_custom_corners_end();
+//if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '</td>';
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>';
$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
$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');
}
/**
}
}
-/*-------------------- Printรงing functions -------------------- */
+/*-------------------- Printing functions -------------------- */
/**
* Prints a box that contains the management links of a tag
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');