From: moodler Date: Tue, 10 Dec 2002 02:48:05 +0000 (+0000) Subject: Added styles for forum posts X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d34189e123cabb928f758a13a8141e6984b72375;p=moodle.git Added styles for forum posts --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 4b00c2030a..1b4507c74c 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -568,21 +568,19 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link global $THEME, $USER, $CFG; if ($post->parent) { - echo "
"; - echo ""; + echo "
"; } else { - echo "
\n
"; - echo ""; + echo "
"; } - echo ""; if ($post->parent) { - echo ""; - echo "
cellcontent2\" WIDTH=35 VALIGN=TOP>"; + echo "
cellcontent2\" CLASS=\"forumpostpicture\" WIDTH=35 VALIGN=TOP>"; print_user_picture($post->userid, $courseid, $post->picture); echo "cellheading\" WIDTH=\"100%\">"; + echo "cellheading\" CLASS=\"forumpostheader\" WIDTH=\"100%\">"; } else { - echo "cellheading2\" WIDTH=\"100%*\">"; + echo "cellheading2\" CLASS=\"forumpostheadertopic\" WIDTH=\"100%*\">"; } echo "

"; echo "$post->subject
"; @@ -591,9 +589,9 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link $by->date = userdate($post->created); print_string("bynameondate", "forum", $by); echo "

cellcontent2\" WIDTH=10>"; + echo "
cellcontent2\" CLASS=\"forumpostside\" WIDTH=10>"; echo " "; - echo "cellcontent\">\n"; + echo "cellcontent\" CLASS=\"forumpostmessage\">\n"; if ($post->attachment) { $post->course = $courseid; @@ -664,7 +662,6 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link echo "

$footer

"; } echo ""; - echo "
"; echo "
\n\n"; } @@ -673,21 +670,19 @@ function forum_print_post_header(&$post, $courseid, $ownpost=false, $reply=false global $THEME, $USER, $CFG; if ($post->parent) { - echo "
"; - echo ""; + echo "
"; } else { - echo "
\n
"; - echo ""; + echo "
"; } - echo ""; if ($post->parent) { - echo ""; if ($post->parent) { - echo "
cellcontent2\" WIDTH=35 VALIGN=TOP>"; + echo "
cellcontent2\" CLASS=\"forumpostpicture\" WIDTH=35 VALIGN=TOP>"; print_user_picture($post->userid, $courseid, $post->picture); echo "cellheading\">"; + echo "cellheading\" CLASS=\"forumpostheader\">"; } else { - echo "cellheading2\">"; + echo "cellheading2\" CLASS=\"forumpostheadertopic\">"; } echo "

"; echo "$post->subject
"; @@ -698,9 +693,9 @@ function forum_print_post_header(&$post, $courseid, $ownpost=false, $reply=false echo "

cellheading\">"; + echo "cellheading\" CLASS=\"forumpostheader\">"; } else { - echo "cellheading2\">"; + echo "cellheading2\" CLASS=\"forumpostheadertopic\">"; } echo "

"; @@ -713,7 +708,6 @@ function forum_print_post_header(&$post, $courseid, $ownpost=false, $reply=false echo "wwwroot/mod/forum/discuss.php?d=$post->discussion\">".get_string("discussthistopic", "forum")." ($replystring)  "; } echo "

"; - echo "
"; echo "
\n\n"; } diff --git a/theme/standard/styles.php b/theme/standard/styles.php index 92519674e4..9175fa79f8 100644 --- a/theme/standard/styles.php +++ b/theme/standard/styles.php @@ -117,3 +117,24 @@ form { margin-bottom: 0; } .topicsoutline { } + +.forumpost { + border-width: 1px; + border-color: borders?>; + border-style: solid; +} + +.forumpostheader { +} + +.forumpostheadertopic { +} + +.forumpostpicture { +} + +.forumpostside { +} + +.forumpostmessage { +} diff --git a/theme/standardblue/styles.php b/theme/standardblue/styles.php index 92519674e4..9175fa79f8 100644 --- a/theme/standardblue/styles.php +++ b/theme/standardblue/styles.php @@ -117,3 +117,24 @@ form { margin-bottom: 0; } .topicsoutline { } + +.forumpost { + border-width: 1px; + border-color: borders?>; + border-style: solid; +} + +.forumpostheader { +} + +.forumpostheadertopic { +} + +.forumpostpicture { +} + +.forumpostside { +} + +.forumpostmessage { +} diff --git a/theme/standardgreen/styles.php b/theme/standardgreen/styles.php index 92519674e4..9175fa79f8 100644 --- a/theme/standardgreen/styles.php +++ b/theme/standardgreen/styles.php @@ -117,3 +117,24 @@ form { margin-bottom: 0; } .topicsoutline { } + +.forumpost { + border-width: 1px; + border-color: borders?>; + border-style: solid; +} + +.forumpostheader { +} + +.forumpostheadertopic { +} + +.forumpostpicture { +} + +.forumpostside { +} + +.forumpostmessage { +} diff --git a/theme/standardlogo/styles.php b/theme/standardlogo/styles.php index 92519674e4..9175fa79f8 100644 --- a/theme/standardlogo/styles.php +++ b/theme/standardlogo/styles.php @@ -117,3 +117,24 @@ form { margin-bottom: 0; } .topicsoutline { } + +.forumpost { + border-width: 1px; + border-color: borders?>; + border-style: solid; +} + +.forumpostheader { +} + +.forumpostheadertopic { +} + +.forumpostpicture { +} + +.forumpostside { +} + +.forumpostmessage { +} diff --git a/theme/standardred/styles.php b/theme/standardred/styles.php index 92519674e4..9175fa79f8 100644 --- a/theme/standardred/styles.php +++ b/theme/standardred/styles.php @@ -117,3 +117,24 @@ form { margin-bottom: 0; } .topicsoutline { } + +.forumpost { + border-width: 1px; + border-color: borders?>; + border-style: solid; +} + +.forumpostheader { +} + +.forumpostheadertopic { +} + +.forumpostpicture { +} + +.forumpostside { +} + +.forumpostmessage { +}