From b15aadd7b5cbe5e0a6606e482fe2d22d42a55c7b Mon Sep 17 00:00:00 2001 From: rkingdon Date: Thu, 13 Nov 2003 11:57:34 +0000 Subject: [PATCH] Change to new-style tabs. --- mod/dialogue/lib.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mod/dialogue/lib.php b/mod/dialogue/lib.php index caac11ead2..626d76a1ae 100644 --- a/mod/dialogue/lib.php +++ b/mod/dialogue/lib.php @@ -945,12 +945,12 @@ function dialogue_print_conversation($dialogue, $conversation) { function dialogue_print_tabbed_heading($tabs) { // Prints a tabbed heading where one of the tabs highlighted. // $tabs is an object with several properties. -// $tabs->names is an array of tab names -// $tabs->urls is an array of links +// $tabs->names is an array of tab names +// $tabs->urls is an array of links // $tabs->align is an array of column alignments (defaults to "center") // $tabs->size is an array of column sizes // $tabs->wrap is an array of "nowrap"s or nothing -// $tabs->highlight is an index (zero based) of "active" heading . +// $tabs->highlight is an index (zero based) of "active" heading . // $tabs->width is an percentage of the page (defualts to 80%) // $tabs->cellpadding padding on each cell (defaults to 5) @@ -1004,9 +1004,9 @@ function dialogue_print_tabbed_heading($tabs) { $wrapping = ""; } if ($key == $tabs->highlight) { - echo "cellheading2\">$tab\n"; + echo "cellheading2\">$tab\n"; } else { - echo "body\">$tab\n"; + echo "cellheading\">$tab\n"; } echo "". "wwwroot/pix/spacer.gif\" alt=\"\">\n"; @@ -1027,6 +1027,7 @@ function dialogue_print_tabbed_heading($tabs) { } + ////////////////////////////////////////////////////////////////////////////////////// function dialogue_show_conversation($dialogue, $conversation) { global $THEME, $USER; -- 2.39.5