Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- corrected layout in tag\index.php

  • Loading branch information...
commit 9f7882159b3db1a12258db9eab449cb5b3fe90e3 1 parent 0658afc
luizlaydner authored
Showing with 9 additions and 13 deletions.
  1. +6 −6 tag/index.php
  2. +3 −3 tag/lib.php
  3. +0 −4 tag/pagelib.php
View
12 tag/index.php
@@ -47,9 +47,9 @@
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 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 (!empty($THEME->customcorners)) print_custom_corners_end();
+//if (!empty($THEME->customcorners)) print_custom_corners_end();
echo '</td>';
@@ -100,9 +100,9 @@
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
6 tag/lib.php
@@ -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
4 tag/pagelib.php
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.