forum/css MDL-16749 added a div named "posting" around the posting (merged from 1.9)

This commit is contained in:
moodler 2009-01-20 07:55:49 +00:00
parent cf7093e4f0
commit 5138378ab3

View File

@ -3118,16 +3118,18 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
// Print shortened version
echo format_text(forum_shorten_post($post->message), $post->format, $options, $course->id);
$numwords = count_words(strip_tags($post->message));
echo '<p><a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">';
echo '<div class="posting"><a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">';
echo get_string('readtherest', 'forum');
echo '</a> ('.get_string('numwords', '', $numwords).')...</p>';
echo '</a> ('.get_string('numwords', '', $numwords).')...</div>';
} else {
// Print whole message
echo '<div class="posting">';
if ($highlight) {
echo highlight($highlight, format_text($post->message, $post->format, $options, $course->id));
} else {
echo format_text($post->message, $post->format, $options, $course->id);
}
echo '</div>';
echo $attachedimages;
}