]> git.mjollnir.org Git - moodle.git/commitdiff
- corrected layout in tag\index.php
authorluizlaydner <luizlaydner>
Wed, 8 Aug 2007 03:11:52 +0000 (03:11 +0000)
committerluizlaydner <luizlaydner>
Wed, 8 Aug 2007 03:11:52 +0000 (03:11 +0000)
tag/index.php
tag/lib.php
tag/pagelib.php

index 83bb9d5c62240636ff2abf6a33107b526b8e3218..7fd7909c39c2961b2219dcecd2c8f10c225f131f 100644 (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>';
 
index e9230c8d115caa7fdc5154bd5e4f49433ac95710..42679b12332b143bad707d35fa95abf5b23cff30 100644 (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
index 81e162db166217d724410d11b74a97d8431a1c28..d6505fc61057911777ea7d0ac7384de88b62c0d1 100644 (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');