From: moodler Date: Fri, 17 Oct 2003 08:19:56 +0000 (+0000) Subject: Some modification so that the encyclopedia format looks X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=21863a3bb4e9e1586ee47c9c0f2506249ff9e09e;p=moodle.git Some modification so that the encyclopedia format looks more like forum posts (in fact it uses the same styles) --- diff --git a/mod/glossary/formats/3.php b/mod/glossary/formats/3.php index ea58b9609f..e836313700 100644 --- a/mod/glossary/formats/3.php +++ b/mod/glossary/formats/3.php @@ -1,36 +1,31 @@ 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) { - 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) { if ($entry->attachment) { $entry->course = $course->id; @@ -52,11 +47,9 @@ function glossary_print_entry_by_format($course, $cm, $glossary, $entry,$current print_string("noentry", "glossary"); echo ""; } - echo "
\n"; + echo "
"; + echo "\n"; } ?> diff --git a/mod/glossary/showentry.php b/mod/glossary/showentry.php index 0b36d94f25..4377dfbbb7 100644 --- a/mod/glossary/showentry.php +++ b/mod/glossary/showentry.php @@ -18,8 +18,8 @@ $colour = $THEME->cellheading2; - echo "\n
"; - echo "
"; + echo "\n
"; + echo ""; - echo "
"; if ( $entries ) { foreach ( $entries as $entry ) { @@ -37,7 +37,7 @@ } } echo "
"; + echo "
"; } ?>