From 101f330fdb615ae25dad0613855c41f260f47e01 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 17 Oct 2003 08:38:16 +0000 Subject: [PATCH] Some more cleaning up of the HTML and code formatting ... --- mod/glossary/formats/1.php | 41 +++++++++++++------------------ mod/glossary/formats/2.php | 50 ++++++++++++++++---------------------- mod/glossary/formats/3.php | 12 ++++----- 3 files changed, 44 insertions(+), 59 deletions(-) diff --git a/mod/glossary/formats/1.php b/mod/glossary/formats/1.php index 25efe73f46..2a87b3852d 100644 --- a/mod/glossary/formats/1.php +++ b/mod/glossary/formats/1.php @@ -3,45 +3,38 @@ function glossary_print_entry_by_format($course, $cm, $glossary, $entry,$currentview="",$cat="") { global $THEME, $USER; -// if ($entry->timemarked < $entry->modified) { - $colour = $THEME->cellheading2; -// } else { -// $colour = $THEME->cellheading; -// } - echo "
"; + $colour = $THEME->cellheading2; - echo "\n"; + echo "\n
"; - echo "\n"; - echo ""; + echo ""; + echo ""; - echo "\n"; + echo ""; - echo "
"; + echo "\n
"; if ($entry->attachment) { - $entry->course = $course->id; - echo "
"; - echo glossary_print_attachments($entry, "html"); - echo "
"; + $entry->course = $course->id; + echo "
"; + echo glossary_print_attachments($entry, "html"); + echo "
"; } echo "$entry->concept
"; if ($entry) { - echo "  ".get_string("lastedited").": ".userdate($entry->timemodified).""; + echo "  ".get_string("lastedited").": ".userdate($entry->timemodified).""; } - echo "
cellcontent\">"; + echo "\n
cellcontent\">"; if ($entry) { - echo format_text($entry->definition, $entry->format); + echo format_text($entry->definition, $entry->format); - glossary_print_entry_icons($course, $cm, $glossary, $entry,$currentview,$cat); + glossary_print_entry_icons($course, $cm, $glossary, $entry, $currentview, $cat); } else { - echo "
"; + echo "
"; print_string("noentry", "glossary"); - echo "
"; + echo "
"; } - echo "
\n"; - - echo "
"; + echo "\n"; } diff --git a/mod/glossary/formats/2.php b/mod/glossary/formats/2.php index 23231c0032..0ec92f0860 100644 --- a/mod/glossary/formats/2.php +++ b/mod/glossary/formats/2.php @@ -1,29 +1,22 @@ timemarked < $entry->modified) { - $colour = $THEME->cellheading2; -// } else { -// $colour = $THEME->cellheading; -// } + $colour = $THEME->cellheading2; $user = get_record("user", "id", $entry->userid); - $strby = get_string("writtenby","glossary"); + $strby = get_string("writtenby", "glossary"); - echo ""; - echo "
"; + echo "\n"; - echo "\n
"; - - echo "\n"; - echo "\n"; + echo "\n"; - echo ""; + echo ""; + echo ""; - echo "\n"; - - echo "
"; + echo "\n
"; if ($entry) { - print_user_picture($user->id, $course->id, $user->picture); + print_user_picture($user->id, $course->id, $user->picture); } - echo "cellheading\">"; + echo "cellheading\" class=\"forumpostheader\">"; if ($entry->attachment) { $entry->course = $glossary->course; echo "
"; @@ -31,27 +24,26 @@ function glossary_print_entry_by_format($course, $cm, $glossary, $entry,$current echo "
"; } if ($entry) { - echo "$entry->concept
$strby $user->firstname $user->lastname"; - echo "  (".get_string("lastedited").": ".userdate($entry->timemodified).")"; + echo "$entry->concept
"; + echo "$strby $user->firstname $user->lastname"; + echo "  (".get_string("lastedited").": ". + userdate($entry->timemodified).")"; } - echo "
cellcontent\">"; + echo "\n
cellcontent\" class=\"forumpostmessage\">"; if ($entry) { - echo format_text($entry->definition, $entry->format); - - glossary_print_entry_icons($course, $cm, $glossary, $entry,$currentview,$cat); + echo format_text($entry->definition, $entry->format); + glossary_print_entry_icons($course, $cm, $glossary, $entry,$currentview,$cat); } else { - echo "
"; + echo "
"; print_string("noentry", "glossary"); - echo "
"; + echo "
"; } - echo "
\n"; + echo "
"; + echo "\n"; } ?> diff --git a/mod/glossary/formats/3.php b/mod/glossary/formats/3.php index e836313700..75f7f82c47 100644 --- a/mod/glossary/formats/3.php +++ b/mod/glossary/formats/3.php @@ -1,5 +1,4 @@ $entry->concept
"; echo "$strby $user->firstname $user->lastname"; - echo "  (".get_string("lastedited").": ".userdate($entry->timemodified).")"; + echo "  (".get_string("lastedited").": ". + userdate($entry->timemodified).")"; } echo ""; @@ -38,14 +38,14 @@ function glossary_print_entry_by_format($course, $cm, $glossary, $entry, $curren echo glossary_print_attachments($entry); echo ""; } - echo format_text($entry->definition, $entry->format); + echo format_text($entry->definition, $entry->format); - glossary_print_entry_icons($course, $cm, $glossary, $entry,$currentview,$cat); + glossary_print_entry_icons($course, $cm, $glossary, $entry,$currentview,$cat); } else { - echo "
"; + echo "
"; print_string("noentry", "glossary"); - echo "
"; + echo "
"; } echo ""; -- 2.39.5