From: stronk7 Date: Sun, 1 Aug 2004 00:16:17 +0000 (+0000) Subject: More glossary formats checked and slighty modified... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2ff5bb1cc6ac781219546d4b8d8fee7cab93ff5f;p=moodle.git More glossary formats checked and slighty modified... --- diff --git a/mod/glossary/formats/continuous/continuous_format.php b/mod/glossary/formats/continuous/continuous_format.php index e3b75f4134..9627176e10 100644 --- a/mod/glossary/formats/continuous/continuous_format.php +++ b/mod/glossary/formats/continuous/continuous_format.php @@ -4,31 +4,24 @@ function glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode=" global $THEME, $USER; - $return = false; - if ($entry) { - glossary_print_entry_approval($cm, $entry, $mode); - glossary_print_entry_attachment($entry,"html","right"); - glossary_print_entry_concept($entry); - echo ": "; + $colour = $THEME->cellheading2; + + echo "\n\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "
"; + glossary_print_entry_concept($entry); + echo ": "; + glossary_print_entry_definition($entry); + $entry->alias = ""; + $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons,$ratings,false); + echo "
\n"; - glossary_print_entry_definition($entry); - - $icons = ''; - if ( $printicons ) { - $icons = glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode, $hook,"html"); - } - - echo '('; - if ( $icons ) { - echo $icons; - } - $return = glossary_print_entry_ratings($course, $entry, $ratings); - - echo ')
'; - - } return $return; - } ?> diff --git a/mod/glossary/formats/fullwithauthor/fullwithauthor_format.php b/mod/glossary/formats/fullwithauthor/fullwithauthor_format.php index a1cfc48f95..8323a9b961 100644 --- a/mod/glossary/formats/fullwithauthor/fullwithauthor_format.php +++ b/mod/glossary/formats/fullwithauthor/fullwithauthor_format.php @@ -19,9 +19,6 @@ function glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mo echo ""; echo "cellheading\" class=\"forumpostheader\">"; - glossary_print_entry_approval($cm, $entry, $mode); - glossary_print_entry_attachment($entry,"html","right"); - echo ""; glossary_print_entry_concept($entry); echo "
"; @@ -29,17 +26,22 @@ function glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mo echo "$strby " . fullname($user, isteacher($course->id)) . ""; echo "  (".get_string("lastedited").": ". userdate($entry->timemodified).")"; + echo ""; + echo "\ncellheading\" width=35 valign=top class=\"forumpostheader\">"; + + glossary_print_entry_approval($cm, $entry, $mode); + glossary_print_entry_attachment($entry,"html","right"); + echo ""; + echo ""; echo "\n"; echo "\n "; - echo "\ncellcontent\" class=\"forumpostmessage\">"; + echo "\ncellcontent\" class=\"forumpostmessage\">"; glossary_print_entry_definition($entry); - glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons); + glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons,$ratings); echo ' '; - $return = glossary_print_entry_ratings($course, $entry, $ratings); - } else { echo "
"; print_string("noentry", "glossary"); diff --git a/mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php b/mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php index 903f4f04fb..c9f8ed7121 100644 --- a/mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php +++ b/mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php @@ -1,29 +1,42 @@ cellheading2; - $return = false; + + $user = get_record("user", "id", $entry->userid); + $strby = get_string("writtenby", "glossary"); echo "\n
"; echo "\n"; - echo ""; + echo "\n"; + echo ""; - echo "\n"; + echo "\n
cellheading\">"; - glossary_print_entry_approval($cm, $entry, $mode); + $return = false; if ($entry) { - glossary_print_entry_attachment($entry,"html","right"); + + echo "cellheading\" class=\"forumpostheader\">"; + echo ""; glossary_print_entry_concept($entry); - echo "
"; - echo "".get_string("lastedited").": ".userdate($entry->timemodified).""; + echo "
"; + + echo "(".get_string("lastedited").": ". + userdate($entry->timemodified).")"; + echo "
cellheading\" width=35 valign=top class=\"forumpostheader\">"; + + glossary_print_entry_approval($cm, $entry, $mode); + glossary_print_entry_attachment($entry,"html","right"); + echo "
cellcontent\">"; - + + echo "\n
cellcontent\" class=\"forumpostmessage\">"; + glossary_print_entry_definition($entry); - glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons); + glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons,$ratings); echo ' '; - $return = glossary_print_entry_ratings($course, $entry, $ratings); } else { echo "
"; print_string("noentry", "glossary");