From 3a26f0eac2cb38864c6275ad7646ed5bbbfef97c Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 8 Mar 2005 09:44:26 +0000 Subject: [PATCH] Some more style stuff (SE) --- mod/glossary/lib.php | 45 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 74db389ce82..36057819867 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -1359,7 +1359,8 @@ function glossary_print_author_menu($cm, $glossary,$mode, $hook, $sortkey = '', } function glossary_print_categories_menu($cm, $glossary, $hook, $category) { -global $CFG, $THEME; + global $CFG; + echo ''; echo ''; @@ -1562,32 +1563,31 @@ function glossary_sort_entries ( $entry0, $entry1 ) { } function glossary_print_comment($course, $cm, $glossary, $entry, $comment) { - global $THEME, $CFG, $USER; + global $CFG, $USER; - $colour = $THEME->cellheading2; - - $user = get_record("user", "id", $comment->userid); - $strby = get_string("writtenby","glossary"); + $user = get_record('user', 'id', $comment->userid); + $strby = get_string('writtenby','glossary'); $fullname = fullname($user, isteacher($course->id)); - echo '
'; - echo ""; - echo "'; + echo '
cellcontent2\" class=\"forumpostpicture\" width=\"35\" valign=\"top\">"; + echo '
'; + echo ''; + echo ''; + echo '"; - echo ""; + echo ''; + echo ''; - echo "\n
'; print_user_picture($user->id, $course->id, $user->picture); - echo "cellheading\" class=\"forumpostheader\" width=\"100%\">"; - echo "

"; - echo "wwwroot/user/view.php?id=$user->id&course=$course->id\">$fullname
"; - echo "".get_string("lastedited").": ".userdate($comment->timemodified).""; - echo "

'; + echo "wwwroot/user/view.php?id=$user->id&course=$course->id\">$fullname
"; + echo ''.get_string('lastedited').': '.userdate($comment->timemodified).''; + echo '
cellcontent2\" class=\"forumpostside\" width=\"10\">"; - echo " "; - echo "cellcontent\" class=\"forumpostmessage\">\n"; + echo '
'; + echo ' '; + echo ''; echo format_text($comment->comment, $comment->format); - echo "

"; + echo '

'; + $ineditperiod = ((time() - $comment->timemodified < $CFG->maxeditingtime) || $glossary->editalways); if ( ($glossary->allowcomments && $ineditperiod && $USER->id == $comment->userid) || isteacher($course->id) ) { echo "id&eid=$entry->id&cid=$comment->id&action=edit\">id&eid=$entry->id&cid=$comment->id&action=delete\">\""pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" />"; } - - echo "

"; - echo "
"; - echo "
\n\n"; + + echo '
'; }